solid-ui 3.0.6 → 3.1.0
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/README.md +128 -2
- package/dist/acl/access-groups.js +1 -1
- package/dist/components/footer/index.d.ts +1 -0
- package/dist/components/footer/index.esm.js +24364 -0
- package/dist/components/footer/index.esm.js.map +1 -0
- package/dist/components/footer/index.esm.min.js +137 -0
- package/dist/components/footer/index.esm.min.js.map +1 -0
- package/dist/components/footer/index.js +23252 -0
- package/dist/components/footer/index.js.map +1 -0
- package/dist/components/footer/index.min.js +125 -0
- package/dist/components/footer/index.min.js.map +1 -0
- package/dist/components/header/index.d.ts +1 -0
- package/dist/components/header/index.esm.js +1894 -0
- package/dist/components/header/index.esm.js.map +1 -0
- package/dist/components/header/index.esm.min.js +1083 -0
- package/dist/components/header/index.esm.min.js.map +1 -0
- package/dist/components/header/index.js +1855 -0
- package/dist/components/header/index.js.map +1 -0
- package/dist/components/header/index.min.js +1084 -0
- package/dist/components/header/index.min.js.map +1 -0
- package/dist/components/loginButton/index.d.ts +1 -0
- package/dist/components/loginButton/index.esm.js +719 -0
- package/dist/components/loginButton/index.esm.js.map +1 -0
- package/dist/components/loginButton/index.esm.min.js +402 -0
- package/dist/components/loginButton/index.esm.min.js.map +1 -0
- package/dist/components/loginButton/index.js +701 -0
- package/dist/components/loginButton/index.js.map +1 -0
- package/dist/components/loginButton/index.min.js +402 -0
- package/dist/components/loginButton/index.min.js.map +1 -0
- package/dist/components/signupButton/index.d.ts +1 -0
- package/dist/components/signupButton/index.esm.js +270 -0
- package/dist/components/signupButton/index.esm.js.map +1 -0
- package/dist/components/signupButton/index.esm.min.js +82 -0
- package/dist/components/signupButton/index.esm.min.js.map +1 -0
- package/dist/components/signupButton/index.js +264 -0
- package/dist/components/signupButton/index.js.map +1 -0
- package/dist/components/signupButton/index.min.js +82 -0
- package/dist/components/signupButton/index.min.js.map +1 -0
- package/dist/footer/index.d.ts.map +1 -1
- package/dist/footer/index.js +8 -4
- package/dist/footer/index.js.map +1 -1
- package/dist/icons/v2/icons-svg/contactIcons.d.ts +3 -0
- package/dist/icons/v2/icons-svg/contactIcons.d.ts.map +1 -0
- package/dist/icons/v2/icons-svg/contactIcons.js +27 -0
- package/dist/icons/v2/icons-svg/contactIcons.js.map +1 -0
- package/dist/icons/v2/icons-svg/headerIcons.d.ts +18 -0
- package/dist/icons/v2/icons-svg/headerIcons.d.ts.map +1 -0
- package/dist/icons/v2/icons-svg/headerIcons.js +245 -0
- package/dist/icons/v2/icons-svg/headerIcons.js.map +1 -0
- package/dist/icons/v2/icons-svg/pngIcons.d.ts +3 -0
- package/dist/icons/v2/icons-svg/pngIcons.d.ts.map +1 -0
- package/dist/icons/v2/icons-svg/pngIcons.js +4 -0
- package/dist/icons/v2/icons-svg/pngIcons.js.map +1 -0
- package/dist/icons/v2/icons-svg/profileIcons.d.ts +23 -0
- package/dist/icons/v2/icons-svg/profileIcons.d.ts.map +1 -0
- package/dist/icons/v2/icons-svg/profileIcons.js +317 -0
- package/dist/icons/v2/icons-svg/profileIcons.js.map +1 -0
- package/dist/pad.d.ts.map +1 -1
- package/dist/pad.js +13 -13
- package/dist/pad.js.map +1 -1
- package/dist/solid-ui.esm.js +9560 -12181
- package/dist/solid-ui.esm.js.map +1 -1
- package/dist/solid-ui.esm.min.js +15 -14
- package/dist/solid-ui.esm.min.js.map +1 -1
- package/dist/solid-ui.js +12531 -14794
- package/dist/solid-ui.js.map +1 -1
- package/dist/solid-ui.min.js +23 -22
- package/dist/solid-ui.min.js.map +1 -1
- package/dist/utils/headerFooterHelpers.d.ts.map +1 -1
- package/dist/utils/headerFooterHelpers.js +11 -2
- package/dist/utils/headerFooterHelpers.js.map +1 -1
- package/dist/v2/components/footer/Footer.d.ts +60 -0
- package/dist/v2/components/footer/Footer.d.ts.map +1 -0
- package/dist/v2/components/footer/Footer.js +148 -0
- package/dist/v2/components/footer/Footer.js.map +1 -0
- package/dist/v2/components/footer/Footer.test.d.ts +2 -0
- package/dist/v2/components/footer/Footer.test.d.ts.map +1 -0
- package/dist/v2/components/footer/Footer.test.js +53 -0
- package/dist/v2/components/footer/Footer.test.js.map +1 -0
- package/dist/v2/components/footer/index.d.ts +3 -0
- package/dist/v2/components/footer/index.d.ts.map +1 -0
- package/dist/v2/components/footer/index.js +7 -0
- package/dist/v2/components/footer/index.js.map +1 -0
- package/dist/v2/components/header/Header.d.ts +155 -0
- package/dist/v2/components/header/Header.d.ts.map +1 -0
- package/dist/v2/components/header/Header.js +845 -0
- package/dist/v2/components/header/Header.js.map +1 -0
- package/dist/v2/components/header/header.test.d.ts +2 -0
- package/dist/v2/components/header/header.test.d.ts.map +1 -0
- package/dist/v2/components/header/header.test.js +242 -0
- package/dist/v2/components/header/header.test.js.map +1 -0
- package/dist/v2/components/header/index.d.ts +4 -0
- package/dist/v2/components/header/index.d.ts.map +1 -0
- package/dist/v2/components/header/index.js +7 -0
- package/dist/v2/components/header/index.js.map +1 -0
- package/dist/v2/components/loginButton/LoginButton.d.ts +62 -0
- package/dist/v2/components/loginButton/LoginButton.d.ts.map +1 -0
- package/dist/v2/components/loginButton/LoginButton.js +497 -0
- package/dist/v2/components/loginButton/LoginButton.js.map +1 -0
- package/dist/v2/components/loginButton/LoginButton.test.d.ts +2 -0
- package/dist/v2/components/loginButton/LoginButton.test.d.ts.map +1 -0
- package/dist/v2/components/loginButton/LoginButton.test.js +53 -0
- package/dist/v2/components/loginButton/LoginButton.test.js.map +1 -0
- package/dist/v2/components/loginButton/downArrow.d.ts +2 -0
- package/dist/v2/components/loginButton/downArrow.d.ts.map +1 -0
- package/dist/v2/components/loginButton/downArrow.js +10 -0
- package/dist/v2/components/loginButton/downArrow.js.map +1 -0
- package/dist/v2/components/loginButton/index.d.ts +3 -0
- package/dist/v2/components/loginButton/index.d.ts.map +1 -0
- package/dist/v2/components/loginButton/index.js +7 -0
- package/dist/v2/components/loginButton/index.js.map +1 -0
- package/dist/v2/components/signupButton/SignupButton.d.ts +36 -0
- package/dist/v2/components/signupButton/SignupButton.d.ts.map +1 -0
- package/dist/v2/components/signupButton/SignupButton.js +84 -0
- package/dist/v2/components/signupButton/SignupButton.js.map +1 -0
- package/dist/v2/components/signupButton/SignupButton.test.d.ts +2 -0
- package/dist/v2/components/signupButton/SignupButton.test.d.ts.map +1 -0
- package/dist/v2/components/signupButton/SignupButton.test.js +49 -0
- package/dist/v2/components/signupButton/SignupButton.test.js.map +1 -0
- package/dist/v2/components/signupButton/index.d.ts +3 -0
- package/dist/v2/components/signupButton/index.d.ts.map +1 -0
- package/dist/v2/components/signupButton/index.js +7 -0
- package/dist/v2/components/signupButton/index.js.map +1 -0
- package/dist/versionInfo.js +7 -7
- package/dist/widgets/buttons.d.ts +9 -3
- package/dist/widgets/buttons.d.ts.map +1 -1
- package/dist/widgets/buttons.js +68 -7
- package/dist/widgets/buttons.js.map +1 -1
- package/package.json +34 -7
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import*as e from"rdflib";import*as t from"solid-logic";var n={6466(e,t,n){n.d(t,{v:()=>p});var i=n(5619),a=n(4961),o=n(1214),s=n(7367),r=n(52),c=n(7423),l=n(675);class p{mainCombo;defaultsCombo;isContainer;defaultsDiffer;rootElement;isUsingDefaults;constructor(e,t,n,a,s,r,c,p,u,d,m,f){if(this.subject=e,this.noun=t,this.context=n,this.statusElement=a,this.targetIsProtected=s,this.targetDoc=r,this.targetACLDoc=c,this.defaultHolder=p,this.defaultACLDoc=u,this.prospectiveDefaultHolder=d,this.store=m,this.dom=f,this.rootElement=f.createElement("div"),this.rootElement.setAttribute("style",l.i.aclGroupContent),this.isContainer="/"===r.uri.slice(-1),p&&u){this.isUsingDefaults=!0;const e=(0,i._E)(this.targetDoc,c,p,u);this.mainCombo=new o.h(r,c,this,e,{defaults:this.isContainer}),this.defaultsCombo=null,this.defaultsDiffer=!1}else this.isUsingDefaults=!1,this.mainCombo=new o.h(r,c,this,m),this.defaultsCombo=new o.h(r,c,this,m,{defaults:this.isContainer}),this.defaultsDiffer=!(0,i.P3)(this.mainCombo.aclMap,this.defaultsCombo.aclMap)}get isEditable(){return!this.isUsingDefaults}render(){if(this.rootElement.innerHTML="",this.isUsingDefaults){if(this.renderStatus(`The sharing for this ${this.noun} is the default for folder `),this.defaultHolder){const e=this.statusElement.appendChild(this.dom.createElement("a"));e.href=this.defaultHolder.uri,e.innerText=(0,s.DR)(this.defaultHolder)}}else!this.defaultsDiffer&&this.isContainer?this.renderStatus("This is also the default for things in this folder."):this.renderStatus("");return this.rootElement.appendChild(this.mainCombo.render()),this.defaultsCombo&&this.defaultsDiffer?(this.rootElement.appendChild(this.renderRemoveDefaultsController()),this.rootElement.appendChild(this.defaultsCombo.render())):this.isEditable&&this.isContainer&&this.rootElement.appendChild(this.renderAddDefaultsController()),!this.targetIsProtected&&this.isUsingDefaults?this.rootElement.appendChild(this.renderAddAclsController()):this.targetIsProtected||this.rootElement.appendChild(this.renderRemoveAclsController()),this.rootElement}renderRemoveAclsController(){const e=this.dom.createElement("button");return e.innerText=`Remove custom sharing settings for this ${this.noun} -- just use default${this.prospectiveDefaultHolder?` for ${r.label(this.prospectiveDefaultHolder)}`:""}`,e.setAttribute("style",l.i.bigButton),e.addEventListener("click",()=>this.removeAcls().then(()=>this.render()).catch(e=>this.renderStatus(e))),e}renderAddAclsController(){const e=this.dom.createElement("button");return e.innerText=`Set specific sharing for this ${this.noun}`,e.setAttribute("style",l.i.bigButton),e.addEventListener("click",()=>this.addAcls().then(()=>this.render()).catch(e=>this.renderStatus(e))),e}renderAddDefaultsController(){const e=this.dom.createElement("div");e.setAttribute("style",l.i.defaultsController);const t=e.appendChild(this.dom.createElement("div"));t.innerText="Sharing for things within the folder currently tracks sharing for the folder.",t.setAttribute("style",l.i.defaultsControllerNotice);const n=e.appendChild(this.dom.createElement("button"));return n.innerText="Set the sharing of folder contents separately from the sharing for the folder",n.setAttribute("style",l.i.bigButton),n.addEventListener("click",()=>this.addDefaults().then(()=>this.render())),e}renderRemoveDefaultsController(){const e=this.dom.createElement("div");e.setAttribute("style",l.i.defaultsController);const t=e.appendChild(this.dom.createElement("div"));t.innerText="Access to things within this folder:",t.setAttribute("style",l.i.defaultsControllerNotice);const n=e.appendChild(this.dom.createElement("button"));return n.innerText="Set default for folder contents to just track the sharing for the folder",n.setAttribute("style",l.i.bigButton),n.addEventListener("click",()=>this.removeDefaults().then(()=>this.render()).catch(e=>this.renderStatus(e))),e}renderTemporaryStatus(e){this.statusElement.setAttribute("style",l.i.aclControlBoxStatusRevealed),this.statusElement.innerText=e,this.statusElement.setAttribute("style",l.i.temporaryStatusInit),setTimeout(()=>{this.statusElement.setAttribute("style",l.i.temporaryStatusEnd)}),setTimeout(()=>{this.statusElement.innerText=""},5e3)}renderStatus(e){e||this.statusElement.setAttribute("style",l.i.aclControlBoxStatusRevealed),this.statusElement.innerText=e}async addAcls(){if(!this.defaultHolder||!this.defaultACLDoc){const e="Unable to find defaults to copy";return c.z3(e),Promise.reject(e)}(0,i._E)(this.targetDoc,this.targetACLDoc,this.defaultHolder,this.defaultACLDoc).statements.forEach(e=>this.store.add(e.subject,e.predicate,e.object,this.targetACLDoc));try{return await this.store.fetcher.putBack(this.targetACLDoc),this.isUsingDefaults=!1,Promise.resolve()}catch(e){const t=` Error writing back access control file! ${e}`;return c.z3(t),Promise.reject(t)}}async addDefaults(){this.defaultsCombo=new o.h(this.targetDoc,this.targetACLDoc,this,this.store,{defaults:!0}),this.defaultsDiffer=!0}async removeAcls(){try{await this.store.fetcher.delete(this.targetACLDoc.uri,{}),this.isUsingDefaults=!0;try{this.prospectiveDefaultHolder=await(0,i.L$)(this.targetDoc.uri)}catch(e){c.R8(e)}}catch(e){const t=`Error deleting access control file: ${this.targetACLDoc}: ${e}`;return c.z3(t),Promise.reject(t)}}async removeDefaults(){const e=this.defaultsCombo;try{this.defaultsCombo=null,this.defaultsDiffer=!1,await this.save()}catch(t){return this.defaultsCombo=e,this.defaultsDiffer=!0,c.z3(t),Promise.reject(t)}}save(){const e=(0,a.graph)();this.isContainer?this.defaultsCombo&&this.defaultsDiffer?((0,i.cl)(e,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0),(0,i.cl)(e,this.targetDoc,this.defaultsCombo.byCombo,this.targetACLDoc,!1,!0)):(0,i.cl)(e,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0,!0):(0,i.cl)(e,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0),e.fetcher=(0,a.fetcher)(e,{fetch:this.store.fetcher._fetch});const t=e.updater||new a.UpdateManager(e);return new Promise((n,a)=>{t.put(this.targetACLDoc,e.statementsMatching(void 0,void 0,void 0,this.targetACLDoc),"text/turtle",(t,o,s)=>{if(!o)return a(new Error(`ACL file save failed: ${s}`));this.store.fetcher.unload(this.targetACLDoc),this.store.add(e.statements),this.store.fetcher.requested[this.targetACLDoc.uri]="done",this.mainCombo.store=this.store,this.defaultsCombo&&(this.defaultsCombo.store=this.store),this.defaultsDiffer=!!this.defaultsCombo&&!(0,i.P3)(this.mainCombo.aclMap,this.defaultsCombo.aclMap),c.Rm("ACL modification: success!"),n()})})}}},1214(e,t,n){n.d(t,{h:()=>f});var i=n(4961),a=n(5619),o=n(4608),s=n(1795),r=n(1928),c=n(7423),l=n(675);const p=s.A.acl,u={13:"Owners",9:"Owners (write locked)",5:"Editors",3:"Posters",2:"Submitters",1:"Viewers"},d={13:!0,5:!0,3:!0,2:!0,1:!0},m={13:"can read, write, and control sharing.",9:"can read and control sharing, currently write-locked.",5:"can read and change information",3:"can add new information, and read but not change existing information",2:"can add new information but not read any",1:"can read but not change information"};class f{defaults;byCombo;aclMap;addAgentButton;rootElement;_store;constructor(e,t,n,i,o={}){this.doc=e,this.aclDoc=t,this.controller=n,this._options=o,this.defaults=this._options.defaults||!1,this._store=i,this.aclMap=(0,a.fg)(e,t,i,this.defaults),this.byCombo=(0,a.xw)(this.aclMap),this.addAgentButton=new r.g(this),this.rootElement=this.controller.dom.createElement("div"),this.rootElement.setAttribute("style",l.i.accessGroupList)}get store(){return this._store}set store(e){this._store=e,this.aclMap=(0,a.fg)(this.doc,this.aclDoc,e,this.defaults),this.byCombo=(0,a.xw)(this.aclMap)}render(){return this.rootElement.innerHTML="",this.renderGroups().forEach(e=>this.rootElement.appendChild(e)),this.controller.isEditable&&this.rootElement.appendChild(this.addAgentButton.render()),this.rootElement}renderGroups(){const e=[];for(let t=15;t>0;t--){const n=h(t);(this.controller.isEditable&&d[t]||this.byCombo[n])&&e.push(this.renderGroup(t,n))}return e}renderGroup(e,t){const n=this.controller.dom.createElement("div");n.setAttribute("style",l.i.accessGroupListItem),o.makeDropTarget(n,e=>this.handleDroppedUris(e,t).then(()=>this.controller.render()).catch(e=>this.controller.renderStatus(e)));return this.renderGroupElements(e,t).forEach(e=>n.appendChild(e)),n}renderGroupElements(e,t){const n=this.controller.dom.createElement("div");if(n.setAttribute("style",l.i.group),this.controller.isEditable)switch(e){case 1:n.setAttribute("style",l.i.group1);break;case 2:n.setAttribute("style",l.i.group2);break;case 3:n.setAttribute("style",l.i.group3);break;case 5:n.setAttribute("style",l.i.group5);break;case 9:n.setAttribute("style",l.i.group9);break;case 13:n.setAttribute("style",l.i.group13);break;default:n.setAttribute("style",l.i.group)}n.innerText=u[e]||function(e){let t="";const n=["Read","Append","Write","Control"];for(let i=0;i<4;i++)e&1<<i&&(t+=n[i]);return t}(e);const i=this.controller.dom.createElement("div");if(i.setAttribute("style",l.i.group),this.controller.isEditable)switch(e){case 1:i.setAttribute("style",l.i.group1);break;case 2:i.setAttribute("style",l.i.group2);break;case 3:i.setAttribute("style",l.i.group3);break;case 5:i.setAttribute("style",l.i.group5);break;case 9:i.setAttribute("style",l.i.group9);break;case 13:i.setAttribute("style",l.i.group13);break;default:i.setAttribute("style",l.i.group)}const a=i.appendChild(this.controller.dom.createElement("table"));(this.byCombo[t]||[]).map(([e,n])=>this.renderAgent(a,t,e,n)).forEach(e=>a.appendChild(e));const o=this.controller.dom.createElement("div");if(o.setAttribute("style",l.i.group),this.controller.isEditable)switch(e){case 1:o.setAttribute("style",l.i.group1);break;case 2:o.setAttribute("style",l.i.group2);break;case 3:o.setAttribute("style",l.i.group3);break;case 5:o.setAttribute("style",l.i.group5);break;case 9:o.setAttribute("style",l.i.group9);break;case 13:o.setAttribute("style",l.i.group13);break;default:o.setAttribute("style",l.i.group)}return o.innerText=m[e]||"Unusual combination",[n,i,o]}renderAgent(e,t,n,a){const s=o.personTR(this.controller.dom,p(n),(0,i.sym)(a),this.controller.isEditable?{deleteFunction:()=>this.deleteAgent(t,n,a).then(()=>e.removeChild(s)).catch(e=>this.controller.renderStatus(e))}:{});return s}async deleteAgent(e,t,n){const i=this.byCombo[e]||[],a=i.find(([e,i])=>e===t&&i===n);a&&i.splice(i.indexOf(a),1),await this.controller.save()}async addNewURI(e){await this.handleDroppedUri(e,h(1)),await this.controller.save()}async handleDroppedUris(e,t){try{await Promise.all(e.map(e=>this.handleDroppedUri(e,t))),await this.controller.save()}catch(e){return Promise.reject(e)}}async handleDroppedUri(e,t,n=!1){const a=function(e,t){const n=(0,i.sym)(e),a=t.findTypeURIs(n);for(const e in a)c.Rm(" drop object type includes: "+e);if(e.startsWith("http")&&3===e.split("/").length)return{pred:"origin",obj:n};if(e.startsWith("http")&&4===e.split("/").length&&e.endsWith("/"))return c.Rm("Assuming final slash on dragged origin URI was unintended!"),{pred:"origin",obj:(0,i.sym)(e.slice(0,-1))};if(s.A.vcard("WebID").uri in a)return{pred:"agent",obj:n};if(s.A.vcard("Group").uri in a)return{pred:"agentGroup",obj:n};if(n.sameTerm(s.A.foaf("Agent"))||n.sameTerm(s.A.acl("AuthenticatedAgent"))||n.sameTerm(s.A.rdf("Resource"))||n.sameTerm(s.A.owl("Thing")))return{pred:"agentClass",obj:n};if(s.A.vcard("Individual").uri in a||s.A.foaf("Person").uri in a||s.A.foaf("Agent").uri in a){const e=t.any(n,s.A.foaf("preferredURI"));return e?{pred:"agent",obj:(0,i.sym)(e)}:{pred:"agent",obj:n}}if(s.A.solid("AppProvider").uri in a)return{pred:"origin",obj:n};if(s.A.solid("AppProviderClass").uri in a)return{pred:"originClass",obj:n};return c.Rm(" Triage fails for "+e),null}(e,this.store),o=(0,i.sym)(e);if(!a&&!n){c.Rm(` Not obvious: looking up dropped thing ${o}`);try{await(this._store?.fetcher?.load(o.doc()))}catch(e){const t=`Ignore error looking up dropped thing: ${e}`;return c.z3(t),Promise.reject(new Error(t))}return this.handleDroppedUri(e,t,!0)}if(!a){const t=Object.keys(this.store.findTypeURIs(o)),n=`Error: Failed to add access target: ${e} is not a recognized ACL target type. Expected one of: vcard:WebID, vcard:Group, foaf:Person, foaf:Agent, solid:AppProvider, solid:AppProviderClass, or recognized ACL classes. Hint: try dropping a WebID profile URI, a vcard:Group URI, or a web app origin.`+(t.length>0?`Detected RDF types: ${t.join(", ")}`:"No RDF type was detected for this URI.");return c.z3(n),Promise.reject(new Error(n))}this.setACLCombo(t,e,a,this.controller.subject)}setACLCombo(e,t,n,i){e in this.byCombo||(this.byCombo[e]=[]),this.removeAgentFromCombos(t),this.byCombo[e].push([n.pred,n.obj.uri]),c.Rm(`ACL: setting access to ${i} by ${n.pred}: ${n.obj}`)}removeAgentFromCombos(e){for(let t=0;t<16;t++){const n=this.byCombo[h(t)];if(n)for(let t=0;t<n.length;t++)for(;t<n.length&&n[t][1]===e;)n.splice(t,1)}}}function h(e){const t=["Read","Append","Write","Control"],n=[];for(let i=0;i<4;i++)e&1<<i&&n.push("http://www.w3.org/ns/auth/acl#"+t[i]);return n.sort(),n.join("\n")}},7367(e,t,n){n.d(t,{DR:()=>f,Fp:()=>u,wR:()=>h});var i=n(1795),a=n(52),o=n(5619),s=n(6466),r=n(675),c=n(7423);let l=window;const p=Symbol("prevent double triggering of drop event");function u(e){if((0,c.Rm)("preventBrowserDropEvents called."),void 0!==l){if(l[p])return;l[p]=!0}e.addEventListener("drop",m,!1),e.addEventListener("dragenter",d,!1),e.addEventListener("dragover",d,!1)}function d(e){e.stopPropagation(),e.preventDefault()}function m(e){e.dataTransfer.files.length>0&&(l.confirm("Are you sure you want to drop this file here? (Cancel opens it in a new tab)")||(e.stopPropagation(),e.preventDefault(),(0,c.Rm)("@@@@ document-level DROP suppressed: "+e.dataTransfer.dropEffect)))}function f(e){let t=e.uri;"/"===t.slice(-1)&&(t=t.slice(0,-1));const n=t.lastIndexOf("/");return n>=0&&(t=t.slice(n+1)),t||"/"}function h(e,t,n,l){const p=t.dom,u=e.doc(),d=p.createElement("div");d.setAttribute("style",r.i.aclControlBoxContainer);const m=d.appendChild(p.createElement("h1"));m.textContent=`Sharing for ${n} ${a.label(e)}`,m.setAttribute("style",r.i.aclControlBoxHeader);const f=d.appendChild(p.createElement("div"));f.setAttribute("style",r.i.aclControlBoxStatus);try{(async function(e,t,n,a,r,l,p){return new Promise((u,d)=>(0,o.VM)(e,async(e,m,f,h,g,b)=>{if(!e)return d(new Error(`Error reading ${m?"":" default "}ACL. status ${f}: ${h}`));const v=function(e){const t=e.uri.split("#")[0],n=t.slice(0,-1).lastIndexOf("/"),i=t.indexOf("//");return i>=0&&n<i+2||n<0?null:t.slice(0,n+1)}(f),x=function(e,t,n){return n.holds(e,i.A.rdf("type"),i.A.space("Storage"),t)}(f,h,t)||function(e){return e.uri===e.site().uri}(f);if(!x&&v)try{const e=await(0,o.L$)(v);return u(y(e))}catch(e){(0,c.R8)(e)}return u(y());function y(e){return new s.v(n,a,r,p,x,f,h,g,b,e,t,l)}}))})(u,l,e,n,t,p,f).then(e=>d.appendChild(e.render()))}catch(e){f.innerText=e}return d}},5619(e,t,n){n.d(t,{D9:()=>v,H0:()=>w,L$:()=>T,Lu:()=>b,P3:()=>u,Tm:()=>h,Uf:()=>m,VM:()=>k,_7:()=>d,_E:()=>l,cH:()=>x,cl:()=>g,fb:()=>E,fg:()=>p,n1:()=>C,pe:()=>_,pp:()=>A,xo:()=>y,xw:()=>f});var i=n(1795),a=n(3138),o=n(52),s=n(7423),r=n(4961);const c=a.solidLogicSingleton.store;function l(e,t,n,a){const o=i.A.acl,s="/"===e.uri.slice(-1),l=c.each(void 0,o("default"),n,a).concat(c.each(void 0,o("defaultForNew"),n,a)).reduce((t,n)=>t.concat(c.statementsMatching(n,i.A.rdf("type"),o("Authorization"),a)).concat(c.statementsMatching(n,o("agent"),void 0,a)).concat(c.statementsMatching(n,o("agentClass"),void 0,a)).concat(c.statementsMatching(n,o("agentGroup"),void 0,a)).concat(c.statementsMatching(n,o("origin"),void 0,a)).concat(c.statementsMatching(n,o("originClass"),void 0,a)).concat(c.statementsMatching(n,o("mode"),void 0,a)).concat((0,r.st)(n,o("accessTo"),e,a)).concat(s?(0,r.st)(n,o("default"),e,a):[]),[]),p=(0,r.graph)();return l.forEach(e=>p.add(u(e.subject),u(e.predicate),u(e.object),(0,r.sym)(t.uri))),p;function u(e){const n=a.uri.length;return(0,r.sym)(e.uri.slice(0,n)===a.uri?t.uri+e.uri.slice(n):e.uri)}}function p(e,t,n=c,a=!1){const o=a?function(t,n){return t.each(void 0,n.acl("default"),e).concat(t.each(void 0,n.acl("defaultForNew"),e))}(n,i.A):n.each(void 0,i.A.acl("accessTo"),e),s=i.A.acl,r={agent:{},agentClass:{},agentGroup:{},origin:{},originClass:{}};return Object.keys(r).forEach(e=>{o.forEach(function(t){n.each(t,s("mode")).forEach(function(i){n.each(t,s(e)).forEach(function(n){r[e][n.uri]=r[e][n.uri]||{},r[e][n.uri][i.uri]=t})})})}),r}function u(e,t){const n=function(e,t){for(const n in{agent:!0,agentClass:!0,agentGroup:!0,origin:!0,originClass:!0})if(e[n])for(const i in e[n])for(const a in e[n][i])if(!t[n][i]||!t[n][i][a])return!1;return!0};return n(e,t)&&n(t,e)}function d(e){const t=e[0];let n,i;for(let a=1;a<e.length;a++)["agent","agentClass","agentGroup","origin","originClass"].forEach(function(o){if(n=e[a],n[o])for(i in n[o])for(const e in n[o][i])t[o][i]||(t[o][i]=[]),t[o][i][e]=!0});return t}function m(e,t){const n=[],i=function(e){if(e.length){k(e.shift().doc(),function(a,o,s,r,c,l){const u=!o;if(!a||!c||!l)return t(a,r);const d=p(u?c:s);n.push(d),i(e.slice(1))})}else t(!0,d(n))};i(e)}function f(e){const t={};return["agent","agentClass","agentGroup","origin","originClass"].forEach(function(n){for(const i in e[n]){const a=[];for(const t in e[n][i])a.push(t);a.sort();const o=a.join("\n");t[o]||(t[o]=[]),t[o].push([n,i])}}),t}function h(e,t,n,i){return g(e,t,f(n),i)}function g(e,t,n,a,o,s){const r=i.A.acl;for(const c in n){const l=n[c];if(!l.length)continue;const p=c.split("\n");let u=p.map(function(e){return e.split("#")[1]}).join("");s&&!o&&(u+="Default");const d=e.sym(a.uri+"#"+u);e.add(d,i.A.rdf("type"),r("Authorization"),a),o&&e.add(d,r("accessTo"),t,a),s&&e.add(d,r("default"),t,a);for(let t=0;t<p.length;t++)e.add(d,r("mode"),e.sym(p[t]),a);for(let t=0;t<l.length;t++){const n=l[t][0],i=l[t][1];e.add(d,r(n),e.sym(i),a)}}}function b(e){return v(f(e))}function v(e){let t="";for(const n in e){t+=n.split("\n").map(function(e){return e.split("#")[1][0]}).join("")+":";const a=e[n];for(let e=0;e<a.length;e++){const n=a[e][0],s=(0,r.sym)(a[e][1]);t+="agent"===n?"@":"",t+=s.sameTerm(i.A.foaf("Agent"))?"*":o.label(s),e<a.length-1&&(t+=",")}t+=";"}return"{"+t.slice(0,-1)+"}"}function x(e,t,n){const i=(0,r.graph)();return h(i,e,t,n),(0,r.serialize)(n,i,n.uri,"text/turtle")||""}function y(e,t,n,i,a){return w(e,t,f(n),i,a)}function w(e,t,n,i,a){const o=(0,r.graph)();g(o,t,n,i,!0),e.updater?.put(i,o.statementsMatching(void 0,void 0,void 0,i),"text/turtle",function(o,s,r){s?(e.fetcher?.unload(i),g(e,t,n,i,!0),e.fetcher.requested[i.uri]="done",a(s)):a(s,r)})}function A(e,t,n){const a=c.each(void 0,i.A.vcard("hasMember"),e);a?C(e,a,t,n):(t("This card is in no groups"),n(!0))}function C(e,t,n,i){n=n||s.Rm;const a=e.doc();k(a,function(s,r,l,d,f,h){if(!s||!f||!h)return i(!1,d);const g=p(r?l:f);m(t,function(t,s){if(!t)return i(!1,s);u(s,g)?n("Nice - same ACL. no change "+o.label(e)+" "+a):(n("Group ACLs differ for "+o.label(e)+" "+a),y(c,l,s,d,i))})})}function E(e,t,n){const i=c.any(e,a.ACL_LINK);if(!c.fetcher)throw new Error("Store has no fetcher");i?c.fetcher.webOperation("PUT",i.value,{data:t,contentType:"text/turtle"}).then(e=>{n(e.ok,e.error||"")}):c.fetcher.nowOrWhenFetched(e,void 0,function(i,o){if(!i)return n(i,"Gettting headers for ACL: "+o);const s=c.any(e,a.ACL_LINK);if(s){if(!c.fetcher)throw new Error("Store has no fetcher");c.fetcher.webOperation("PUT",s.value,{data:t,contentType:"text/turtle"}).then(e=>{n(e.ok,e.error||"")})}else n(!1,"No Link rel=ACL header for "+e)})}function k(e,t){_(e,function(n,a,o,s){const l=i.A.acl;if(!n)return t(!1,!1,a,s);const p=function(n){"/"===n.slice(-1)&&(n=n.slice(0,-1));const i=n.lastIndexOf("/");if(n.indexOf("/",n.indexOf("//")+2)>i)return t(!1,!0,404,"Found no ACL resource");n=n.slice(0,i+1);const a=(0,r.sym)(n);_(a,function(i,s,r){if(!i)return t(!1,!0,s,`( No ACL pointer ${n} ${s})${r}`);if(403===s)return t(!1,!0,s,`( default ACL file FORBIDDEN. Stop.${n})`);if(404===s)return p(n);if(200!==s)return t(!1,!0,s,`Error status '${s}' searching for default for ${a}`);if(!c.each(void 0,l("default"),c.sym(n),r).concat(c.each(void 0,l("defaultForNew"),c.sym(n),r)).length)return p(n);const u=c.sym(n);return t(!0,!1,e,o,u,r)})};return n?404!==a?403===a?t(!1,!1,a,`(Sharing not available to you)${s}`):200!==a?t(!1,!1,a,`Error ${a} accessing Access Control information for ${e}: ${s}`):t(!0,!0,e,o):void p(e.uri):t(!1,!1,a,`Error accessing Access Control information for ${e}) ${s}`)})}function _(e,t){if(!c.fetcher)throw new Error("kb has no fetcher");c.fetcher.nowOrWhenFetched(e,void 0,function(n,i){if(!n)return t(n,`Can't get headers to find ACL for ${e}: ${i}`);const o=c.any(e,a.ACL_LINK);if(o){if(!c.fetcher)throw new Error("kb has no fetcher");if(c.fetcher.nonexistent[o.value])return t(!0,404,o,`ACL file ${o} does not exist.`);c.fetcher.nowOrWhenFetched(o,void 0,function(e,n,i){e?t(!0,200,o):t(!0,i.status,o,`Can't read Access Control File ${o}: ${n}`)})}else t(!1,900,`No Link rel=ACL header for ${e}`)})}async function T(e){return new Promise((t,n)=>k((0,r.sym)(e),(i,a,o,s,r)=>i?t(a?o:r):n(new Error(`Error loading ${e}`))))}},1928(e,t,n){n.d(t,{g:()=>p});var i=n(7423),a=n(3378),o=n(967),s=n(1795),r=n(52),c=n(4608),l=n(675);class p{rootElement;barElement;isExpanded=!1;constructor(e){this.groupList=e,this.rootElement=e.controller.dom.createElement("div"),this.barElement=e.controller.dom.createElement("div")}render(){return this.rootElement.innerHTML="",this.rootElement.appendChild(this.renderAddButton()),this.rootElement.appendChild(this.barElement),this.rootElement}renderAddButton(){return c.button(this.groupList.controller.dom,`${a.Pt.iconBase}noun_34653_green.svg`,"Add ...",()=>{this.toggleBar(),this.renderBar()})}renderBar(){this.barElement.innerHTML="",this.isExpanded&&(this.barElement.appendChild(this.renderPersonButton()),this.barElement.appendChild(this.renderGroupButton()),this.barElement.appendChild(this.renderPublicButton()),this.barElement.appendChild(this.renderAuthenticatedAgentButton()),this.barElement.appendChild(this.renderBotButton()),this.barElement.appendChild(this.renderAppsButton()))}renderSimplifiedBar(e){Array.from(this.barElement.children).filter(t=>t!==e).forEach(e=>this.barElement.removeChild(e))}renderPersonButton(){return c.button(this.groupList.controller.dom,a.Pt.iconBase+c.iconForClass["vcard:Individual"],"Add Person",e=>{this.renderSimplifiedBar(e.target),this.renderNameForm(s.A.vcard("Individual"),"person").then(e=>this.addPerson(e)).then(()=>this.renderCleanup()).catch(e=>this.groupList.controller.renderStatus(e))})}renderGroupButton(){return c.button(this.groupList.controller.dom,a.Pt.iconBase+c.iconForClass["vcard:Group"],"Add Group",e=>{this.renderSimplifiedBar(e.target),this.renderNameForm(s.A.vcard("Group"),"group").then(e=>this.addGroup(e)).then(()=>this.renderCleanup()).catch(e=>this.groupList.controller.renderStatus(e))})}renderNameForm(e,t){return c.askName(this.groupList.controller.dom,this.groupList.store,this.barElement,s.A.vcard("URI"),e,t)}renderPublicButton(){return c.button(this.groupList.controller.dom,a.Pt.iconBase+c.iconForClass["foaf:Agent"],"Add Everyone",()=>this.addAgent(s.A.foaf("Agent").uri).then(()=>this.groupList.controller.renderTemporaryStatus("Adding the general public to those who can read. Drag the globe to a different level to give them more access.")).then(()=>this.renderCleanup()))}renderAuthenticatedAgentButton(){return c.button(this.groupList.controller.dom,`${a.Pt.iconBase}noun_99101.svg`,"Anyone logged In",()=>this.addAgent(s.A.acl("AuthenticatedAgent").uri).then(()=>this.groupList.controller.renderTemporaryStatus("Adding anyone logged in to those who can read. Drag the ID icon to a different level to give them more access.")).then(()=>this.renderCleanup()))}renderBotButton(){return c.button(this.groupList.controller.dom,a.Pt.iconBase+"noun_Robot_849764.svg","A Software Agent (bot)",e=>{this.renderSimplifiedBar(e.target),this.renderNameForm(s.A.schema("Application"),"bot").then(e=>this.addBot(e)).then(()=>this.renderCleanup())})}renderAppsButton(){return c.button(this.groupList.controller.dom,`${a.Pt.iconBase}noun_15177.svg`,"A Web App (origin)",e=>{this.renderSimplifiedBar(e.target);const t={div:this.barElement,dom:this.groupList.controller.dom},n=this.renderAppsTable(t).catch(e=>this.groupList.controller.renderStatus(e));this.renderAppsView();const i=this.renderNameForm(s.A.schema("WebApplication"),"webapp domain").then(e=>this.getOriginFromName(e));Promise.race([n,i]).then(e=>{e&&this.groupList.addNewURI(e)}).then(()=>this.renderCleanup())})}renderAppsView(){const e=this.groupList.controller.context.session.paneRegistry.byName("trustedApplications");if(e){const t=e.render(null,this.groupList.controller.context);t.setAttribute("style",l.i.trustedAppController);const n=c.cancelButton(this.groupList.controller.dom,()=>this.renderCleanup());n.setAttribute("style",l.i.trustedAppCancelButton),t.insertBefore(n,t.firstChild),this.barElement.appendChild(t)}}async renderAppsTable(e){await(0,o.ensureLoadedProfile)(e);const t=this.groupList.store.each(e.me,s.A.acl("trustedApp")),n=t.flatMap(e=>this.groupList.store.each(e,s.A.acl("origin")));return this.barElement.appendChild(this.groupList.controller.dom.createElement("p")).textContent=`You have ${n.length} selected web apps.`,new Promise((e,n)=>{const i=this.barElement.appendChild(this.groupList.controller.dom.createElement("table"));i.setAttribute("style",l.i.trustedAppAddApplicationsTable),t.forEach(t=>{const a=this.groupList.store.any(t,s.A.acl("origin"));a||n(new Error(`Unable to pick app: ${t.value}`));const o=c.personTR(this.groupList.controller.dom,s.A.acl("origin"),a,{}),l=this.groupList.controller.dom.createElement("table"),p=l.appendChild(this.groupList.controller.dom.createElement("tr"));p.appendChild(this.groupList.controller.dom.createElement("td")).appendChild(o);p.appendChild(this.groupList.controller.dom.createElement("td")).textContent=`Give access to ${this.groupList.controller.noun} ${r.label(this.groupList.controller.subject)}?`;p.appendChild(this.groupList.controller.dom.createElement("td")).appendChild(c.continueButton(this.groupList.controller.dom,()=>e(a.value))),i.appendChild(l)})})}renderCleanup(){this.renderBar(),this.groupList.render()}async addPerson(e){if(!e)return this.toggleBar();if(!e.match(/^https?:/i))return Promise.reject(new Error("Not a http URI"));i.Rm(`Adding to ACL person: ${e}`),await this.groupList.addNewURI(e),this.toggleBar()}async addGroup(e){if(!e)return this.toggleBar();if(!e.match(/^https?:/i))return Promise.reject(new Error("Not a http URI"));i.Rm("Adding to ACL group: "+e),await this.groupList.addNewURI(e),this.toggleBar()}async addAgent(e){await this.groupList.addNewURI(e),this.toggleBar()}async addBot(e){if(!e)return this.toggleBar();if(!e.match(/^https?:/i))return Promise.reject(new Error("Not a http URI"));i.Rm("Adding to ACL bot: "+e),await this.groupList.addNewURI(e),this.toggleBar()}async getOriginFromName(e){if(!e)return Promise.resolve();if(!e.match(/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i))return Promise.reject(new Error("Not a domain name"));const t="https://"+e;return i.Rm("Adding to ACL origin: "+t),this.toggleBar(),t}toggleBar(){this.isExpanded=!this.isExpanded}}},5923(e,t,n){n.d(t,{B:()=>o,u:()=>s});var i=n(5619),a=n(7367);const o={adoptACLDefault:i._E,readACL:i.fg,sameACL:i.P3,ACLunion:i._7,loadUnionACL:i.Uf,ACLbyCombination:i.xw,makeACLGraph:i.Tm,makeACLGraphbyCombo:i.cl,ACLToString:i.Lu,comboToString:i.D9,makeACLString:i.cH,putACLObject:i.xo,putACLbyCombo:i.H0,fixIndividualCardACL:i.pp,fixIndividualACL:i.n1,setACL:i.fb,getACLorDefault:i.VM,getACL:i.pe},s={preventBrowserDropEvents:a.Fp,shortNameForFolder:a.DR,ACLControlBox5:a.wR}},7236(e,t,n){n.d(t,{eD:()=>w,z6:()=>x});var i=n(7423),a=n(3378),o=n(6127),s=n(1795),r=n(8153),c=n(4961),l=n(675),p=n(52),u=n(4608),d=n(3138),m=n(967);const f={icons:a.Pt,ns:s.A,media:o.$,pad:r,style:l.i,utils:p,widgets:u},h=c.Namespace("http://www.w3.org/2002/01/bookmark#"),g=p.label,b=window.document||null;function v(e,t){return new Promise(function(n,i){d.store.updater.update(e,t,function(e,t,a){t?n():i(new Error(a))})})}async function x(e){const t=h("Bookmark");if(await(0,m.findAppInstances)(e,t,!0),e.instances&&e.instances.length>0)e.bookmarkDocument=e.instances[0],e.instances.length>1&&i.R8("More than one bookmark file! "+e.instances);else if(e.publicProfile){const n=c.sym(e.publicProfile.dir().uri+"bookmarks.ttl");try{i.Rm("Creating new bookmark file "+n),await d.store.fetcher.createIfNotExists(n)}catch(t){return i.R8("Can't make fresh bookmark file:"+t),e}await d.createTypeIndexLogic.registerInTypeIndex(n,e.index,t),e.bookmarkDocument=n}else i.R8("You seem to have no bookmark file, nor even a profile file!");return e}async function y(e,t,n){await d.store.fetcher.load(e.bookmarkDocument);const a=d.store.each(null,h("recalls"),t,e.bookmarkDocument);if(a.length){if(!confirm("Delete bookmark on this?"+a.length))return;for(let e=0;e<a.length;e++)try{await v(d.store.connectedStatements(a[e]),[]),n.style.backgroundColor="white",i.Rm("Bookmark deleted: "+a[e])}catch(e){i.z3("Cant delete bookmark:"+e),i.R8("Cannot delete bookmark:"+e)}}else{const a=await async function(e,t){let n="";const a=d.authn.currentUser();if(!a)throw new Error("Must be logged on to add Bookmark");const o=d.store.any(t,s.A.foaf("maker"));n=g(o)+": "+d.store.anyValue(t,s.A.sioc("content")).slice(0,80);const r=e.bookmarkDocument,l=f.widgets.newThing(r,n),p=[c.st(r,f.ns.dct("references"),l,r),c.st(l,f.ns.rdf("type"),h("Bookmark"),r),c.st(l,f.ns.dct("created"),new Date,r),c.st(l,h("recalls"),t,r),c.st(l,f.ns.foaf("maker"),a,r),c.st(l,f.ns.dct("title"),n,r)];try{await v([],p)}catch(e){const t="Making bookmark: "+e;return i.R8(t),null}return l}(e,t);n.style.backgroundColor="yellow",i.Rm("Bookmark added: "+a)}}async function w(e,t){let n;if(e.bookmarkDocument)return n=f.widgets.button(b,f.icons.iconBase+"noun_45961.svg",g(h("Bookmark")),()=>{y(e,t,n)}),n.target=t,await async function(t){await d.store.fetcher.load(e.bookmarkDocument);const n=d.store.any(null,h("recalls"),t.target,e.bookmarkDocument);t.style=f.style.buttonStyle,n&&(t.style.backgroundColor="yellow")}(n),n}},2465(e,t,n){n.d(t,{YM:()=>p,n6:()=>m,oQ:()=>d,oy:()=>f,x6:()=>u});var i=n(7423),a=n(2893),o=n(3138),s=n(1795),r=n(4961),c=(n(52),n(630)),l=n(6855);class p{constructor(e,t){this.channel=e,this.channelRoot=e.doc(),this.options=t,this.dateFolder=new a.J(this.channelRoot,"chat.ttl"),this.div=null}async createMessage(e){return this.updateMessage(e)}async updateMessage(e,t=null,n,a=null){const p=[],u=new Date,d=""+u.getTime(),f=r.term(u),h=t?t.doc():this.dateFolder.leafDocumentFromDate(u),g=o.store.sym(h.uri+"#Msg"+d),b=o.authn.currentUser(),v=(0,c.YJ)();if(v.id=g.uri,t){const e=o.store.any(t,s.A.foaf("maker"));if(e.uri!==b.uri){const t="Error you cannot delete/edit a message from someone else : \n"+e.uri;throw i.R8(t),alert(t),new Error(t)}{const e=await m(t);p.push(r.st(e,s.A.dct("isReplacedBy"),g,h));const i=o.store.any(e,s.A.sioc("has_reply"));i&&p.push(r.st(g,s.A.sioc("has_reply"),i,h)),n&&p.push(r.st(g,s.A.schema("dateDeleted"),f,h))}}else p.push(r.st(this.channel,s.A.wf("message"),g,h));if(p.push(r.st(g,s.A.sioc("content"),o.store.literal(e),h)),v.content=e,p.push(r.st(g,s.A.dct("created"),f,h)),v.created=f.value,b){p.push(r.st(g,s.A.foaf("maker"),b,h)),v.maker=b.uri;const e=await(0,l.Tn)(b),t=(0,c.vt)(v,e);p.push(r.st(g,r.sym(`${c.yv}proofValue`),r.lit(t),h))}a&&(p.push(r.st(a,s.A.sioc("has_member"),g,h)),a.doc().sameTerm(g.doc())||p.push(r.st(a,s.A.sioc("has_member"),g,a.doc())));try{await o.store.updater.updateMany([],p)}catch(e){const t="Error saving chat message: "+e;throw i.R8(t),alert(t),new Error(t)}return g}async deleteMessage(e){return this.updateMessage("(message deleted)",e,!0)}async createThread(e){const t=o.store.each(e,s.A.sioc("has_reply"),null,e.doc()).filter(e=>o.store.holds(e,s.A.rdf("type"),s.A.sioc("Thread"),e.doc()));if(t.length>0)return t[0];const n=r.sym(e.uri+"-thread"),i=[r.st(n,s.A.rdf("type"),s.A.sioc("Thread"),n.doc()),r.st(e,s.A.sioc("has_reply"),n,n.doc())];return await o.store.updater.update([],i),n}}async function u(e){const t=[e],n={};n[e.uri]=!0;let i=e;for(;;){const e=o.store.any(null,s.A.dct("isReplacedBy"),i,i.doc());if(!e||n[e.uri])break;await o.store.fetcher.load(e),t.unshift(e),n[e.uri]=!0,i=e}for(i=e;;){const e=o.store.any(i,s.A.dct("isReplacedBy"),null,i.doc());if(!e||n[e.uri])break;t.push(e),n[e.uri]=!0,i=e}return t}async function d(e){let t=e;const n={};for(;t;){if(n[t.uri])return i.z3("originalVersion: verion loop"+e),e;n[t.uri]=!0,e=t,await o.store.fetcher.load(e),t=o.store.any(null,s.A.dct("isReplacedBy"),e,e.doc())}return e}async function m(e){let t=e;const n={};for(;t;){if(n[t.uri])return i.z3("mostRecentVersion: verion loop"+e),e;n[t.uri]=!0,e=t,await o.store.fetcher.load(e),t=o.store.any(e,s.A.dct("isReplacedBy"),null,e.doc())}return e}function f(e){return o.store.holds(e,s.A.schema("dateDeleted"),null,e.doc())}},2893(e,t,n){n.d(t,{J:()=>c});var i=n(7423),a=n(3138),o=n(1795),s=n(4961);async function r(e){return await a.store.fetcher.load(e),!(a.store.statementsMatching(null,o.A.dct("created"),null,e).length>0)}class c{constructor(e,t,n){this.root=e,this.rootFolder=e.dir(),this.leafFileName=t||"index.ttl",this.membershipProperty=n||o.A.wf("leafObject")}leafDocumentFromDate(e){let t=e.toISOString().split("T")[0].replace(/-/g,"/");return t=this.root.dir().uri+t+"/"+this.leafFileName,a.store.sym(t)}dateFromLeafDocument(e){const t=this.rootFolder.uri.length,n=e.uri.slice(t,t+10).replace(/\//g,"-");return new Date(n)}async loadPrevious(e,t){async function n(e,s){function r(e){const t=e.uri.slice(0,-1).split("/").slice(-1)[0];return!!"0123456789".includes(t[0])}function c(e){return(e=e.filter(r)).sort(),t||e.reverse(),e.pop()}const l=e.dir();try{await a.store.fetcher.load(l);let n=a.store.each(l,o.A.ldp("contains"));n=n.filter(function(n){return!(t?n.uri>=e.uri:n.uri<=e.uri)});const i=c(n);if(i)return i}catch(e){if(!e.response||!e.response.status||404!==e.response.status)throw i.Rm("*** Error NON 404 for chat parent file "+l),new Error(`*** ${e.message} for chat folder ${l}`);i.Rm("Error 404 for chat parent file "+l)}if(0===s)return null;const p=await n(l,s-1);if(!p)return null;await a.store.fetcher.load(p);return c(a.store.each(p,o.A.ldp("contains")))}let s=this.leafDocumentFromDate(e).dir();for(;;){const t=await n(s,3);if(!t)return null;{const n=a.store.sym(t.uri+this.leafFileName),i=this.dateFromLeafDocument(n);if(!await r(n))return i;e=i,s=this.leafDocumentFromDate(e).dir()}}}async firstLeaf(e){const t=s.graph(),n=new s.Fetcher(t);async function a(i){delete n.requested[i.uri],await n.load(i,{force:!0});let a=t.each(i,o.A.ldp("contains"));if(a=a.filter(function(e){const t=e.uri.slice(0,-1).split("/").slice(-1)[0];return!!"0123456789".includes(t[0])}),0===a.length)throw new Error(" @@@ No children to parent2 "+i);return a.sort(),e&&a.reverse(),a[0]}const r=await a(this.root.dir()),c=await a(r),l=await a(c),p=s.sym(l.uri+"chat.ttl");await n.load(p);const u=t.each(this.root,this.membershipProperty,null,p);if(0===u.length){const e=" INCONSISTENCY -- no chat leafObject in file "+p;throw i.uP(e),new Error(e)}const d=u.map(e=>[t.any(e,o.A.dct("created")),e]);return d.sort(),e&&d.reverse(),d[0][1]}}},9509(e,t,n){n.d(t,{r5:()=>u,rg:()=>p});var i=n(4961),a=n(3138),o=n(7423),s=(n(3378),n(1795)),r=n(4608),c=n(2465),l=n(3262);async function p(e,t,n,i,a,o){const s=await(0,l.Uh)(e,n,i,a,o);a.selectedMessage&&a.selectedMessage.sameTerm(n)&&(s.style.backgroundColor="yellow",a.selectedElement=s,t.selectedElement=s);let r=!1;for(let e=t.firstChild;e;e=e.nextSibling){const n=!0===a.newestfirst,i=s.AJAR_date;if(i>e.AJAR_date&&n||i<e.AJAR_date&&!n){t.insertBefore(s,e),r=!0;break}}r||t.appendChild(s)}async function u(e,t,n,u){async function d(e,t){if((0,c.oy)(e)&&!u.showDeletedMessages)return;let n=a.store.any(null,s.A.sioc("has_member"),e,e.doc());const i=a.store.any(e,s.A.sioc("id"),null,e.doc());if(i&&!n&&(n=a.store.any(null,s.A.sioc("has_member"),i,e.doc())),u.thread){if(a.store.holds(e,s.A.sioc("has_reply"),u.thread));else if(!n||!n.sameTerm(u.thread))return}else if(n)return;t.fresh||await p(x,t,e,t.fresh,u,C)}async function m(e){const t=e?_:T;let n=t.messageTable.date;if(e&&_.limit&&n<=_.limit)return E||await g(),!0;if(n=await y.loadPrevious(n,e),n||e||E||await g(),!n)return!0;let i=!1;if(!e){const e=y.leafDocumentFromDate(new Date);i=y.leafDocumentFromDate(n).sameTerm(e)}const a=await f(n,i);return t.messageTable=a,(e?v:!v)?w.appendChild(a):w.insertBefore(a,w.firstChild),i}async function f(t,n){const i=y.leafDocumentFromDate(t);try{await a.store.fetcher.createIfNotExists(i)}catch(a){const s=e.createElement("table").appendChild(e.createElement("tr"));return a.response&&a.response.status&&404===a.response.status?await h(t,n):(o.Rm("*** Error NON 404 for chat file "+i),s.appendChild(r.errorMessageBlock(e,a,"pink")),s)}return await h(t,n)}async function h(t,n){async function i(){return await m(!1)}const o=e.createElement("table");o.style.width="100%",o.extendBackwards=async function(){const e=await m(!0);return e?o.initial=!0:o.extendedBack=!0,e},o.extendForwards=i,o.date=t;const c=y.leafDocumentFromDate(t);if(o.chatDocument=c,o.fresh=!1,o.setAttribute("style","width: 100%;"),n){o.final=!0,E=o,T.messageTable=o;const e=(0,l.LV)(x,o,C,u);v?o.insertBefore(e,o.firstChild):o.appendChild(e),o.inputRow=e}{const n=e.createElement("tr"),i=n.appendChild(e.createElement("td"));i.style="text-align: center; vertical-align: middle; color: #888; font-style: italic;",i.textContent=r.shortDate(t.toISOString(),!0);const a=n.appendChild(e.createElement("td"));u.includeRemoveButton&&a.appendChild(r.cancelButton(e,e=>{w.parentNode.removeChild(w)})),o.extendedForwards=!1,v?o.appendChild(n):o.insertBefore(n,o.firstChild)}const p=a.store.statementsMatching(null,s.A.wf("message"),null,c);!n&&p.length;for(const e of p)await d(e.object,o);return o.fresh=!0,o}async function g(){const e=new Date,t=y.leafDocumentFromDate(e),c=await f(e,!0);return w.appendChild(c),w.refresh=async function(){var e;await async function(){const e=y.leafDocumentFromDate(new Date);if(!e.sameTerm(T.messageTable.chatDocument)){E.inputRow&&(E.removeChild(E.inputRow),delete E.inputRow);const t=T.messageTable.chatDocument;if(await g(),!a.store.holds(t,s.A.rdfs("seeAlso"),e,t)){const n=[i.st(t,s.A.rdfs("seeAlso"),e,t)];try{a.store.updater.update([],n)}catch(e){alert("Unable to link old chat file to new one:"+e)}}}}(new Date),await async function(e,t){const n={};let i,o;for(i=t.firstChild;i;i=i.nextSibling)i.AJAR_subject&&(n[i.AJAR_subject.uri]=!0);const c=a.store.each(e,s.A.wf("message"),null,t.chatDocument),l={};for(const e of c)l[e.uri]=!0,n[e.uri]||await d(e,t);for(i=t.firstChild;i;)o=i.nextSibling,i.AJAR_subject&&!l[i.AJAR_subject.uri]&&t.removeChild(i),i=o;for(i=t.firstChild;i;i=i.nextSibling)i.AJAR_subject&&r.refreshTree(i)}(n,c),e=n,"Notification"in window?"granted"===Notification.permission?new Notification(e):"denied"!==Notification.permission&&Notification.requestPermission().then(function(t){"granted"===t&&new Notification(e)}):o.R8("This browser does no t support desktop notification")},a.store.updater.addDownstreamChangeListener(t,w.refresh),E=c,T.messageTable=E,c}async function b(e,t){if(S)return;S=!0;const n=!t;let i;for(;w.scrollTop<150&&_.messageTable&&!_.messageTable.initial&&_.messageTable.extendBackwards;){if(0===w.scrollHeight)return setTimeout(b,2e3),void(S=!1);const e=w.scrollHeight-w.scrollTop;if(i=await _.messageTable.extendBackwards(),n&&(w.scrollTop=w.scrollHeight-e),t&&t(),i)break}for(;u.selectedMessage&&w.scrollHeight-w.scrollTop-w.clientHeight<150&&T.messageTable&&!T.messageTable.final&&T.messageTable.extendForwards;){const e=w.scrollTop;if(i=await T.messageTable.extendForwards(),n&&(w.scrollTop=e),t&&t(),i)break}S=!1}(u=u||{}).authorDateOnLeft=!1;const v="1"===u.newestFirst||!0===u.newestFirst,x=new c.YM(n,u),y=x.dateFolder,w=e.createElement("div");x.div=w;const A=w.appendChild(e.createElement("div")),C={dom:e,statusArea:A,div:A};let E,k;const _={messageTable:null},T={messageTable:null};if(u.thread){const e=u.thread;if(k=a.store.any(null,s.A.sioc("has_reply"),e,e.doc()),k){const e=a.store.any(k,s.A.dct("created"),null,k.doc());e&&(_.limit=new Date(e.value))}}let S=!1;return await async function(){function e(){o&&o.selectedElement&&o.selectedElement.scrollIntoView({block:"center"})}let t,n,i;u.selectedMessage&&(n=u.selectedMessage.doc()),k&&(i=k.doc());const a=n||i;if(a){const e=new Date;t=y.leafDocumentFromDate(e).sameTerm(a)}let o;if(a&&!t){const n=y.dateFromLeafDocument(a);o=await f(n,t),w.appendChild(o),_.messageTable=o,T.messageTable=o,e(),setTimeout(e,1e3)}else await g(),_.messageTable=E,T.messageTable=E;await b(0,function(){u.selectedElement?u.selectedElement.scrollIntoView({block:"center"}):E.inputRow.scrollIntoView&&E.inputRow.scrollIntoView(v)}),w.addEventListener("scroll",b),u.solo&&document.body.addEventListener("scroll",b)}(),w}},6855(e,t,n){n.d(t,{Tn:()=>m,lG:()=>d});var i=n(7423),a=n(6885),o=n(508),s=n(1795),r=n(3138),c=n(4961),l=n(8425),p=n(3907);function u(e){return(0,o.My)(a.ko.getPublicKey((0,o.aT)(e)))}async function d(e){await r.store.fetcher.load(e);const t=await(0,l.AB)(e);try{await r.store.fetcher.load(t);const n=r.store.any(e,s.A.solid("publicKey"));return n?.value}catch(e){return}}async function m(e){await r.store.fetcher.load(e);const t=await(0,l.AB)(e),n=await(0,l.ED)(e),d=await(0,l.S3)(e,t);let m=await(0,l.cX)(e,n),h=!0;if(m&&d!==u(m)&&confirm("This is strange the publicKey is not valid for\n"+e?.uri+"'shall we repair keeping the private key ?")&&(h=!1),!m||!d||!h){let l=[],g=[];if(m||(m=(0,o.My)(a.ko.utils.randomSecretKey()),g=[c.st(e,s.A.solid("privateKey"),c.literal(m),r.store.sym(n))],await f(n,[],g,e.uri)),!d||!h){l=[],d&&(l=[c.st(e,s.A.solid("publicKey"),c.lit(d),r.store.sym(t))],i.Rm("delete invalid publicKey "+l));const n=u(m);g=[c.st(e,s.A.solid("publicKey"),c.literal(n),r.store.sym(t))],await f(t,l,g)}const b=n.substring(0,n.lastIndexOf("/")+1);await(0,p.lO)(b,(0,p.vb)(e.uri))}return m}async function f(e,t,n,a=""){await(async e=>{await r.store.fetcher.load(e);const t=r.store.any(r.store.sym(e),r.store.sym("http://www.iana.org/assignments/link-relations/acl"));if(t)try{const e=await r.store.fetcher.webOperation("DELETE",t.value);i.Rm("delete keyAcl"+t.value+" "+e.status)}catch(e){if(404!==e.response.status)throw new Error(e);i.Rm("delete keyAcl"+t.value+" "+e.response.status)}})(e),await r.store.updater.updateMany(t,n);const o=(0,p.G2)(e,a);await(0,p.lO)(e,o)}},3262(e,t,n){n.d(t,{LV:()=>T,Uh:()=>k,zt:()=>_});var i=n(9509),a=n(5187),o=n(7236),s=n(2465),r=n(7423),c=n(3378),l=n(3138),p=n(967),u=n(6127),d=n(1795),m=n(8153),f=n(675),h=n(52),g=n(4608),b=n(630),v=n(6855);const x=window.document,y=f.i.messageBodyStyle,w=h.label;const A=function(e,t){const n=x.createElement("a");return t&&t.uri&&(n.setAttribute("href",t.uri),n.addEventListener("click",g.openHrefInOutlineMode,!0),n.setAttribute("style","color: #3B5998; text-decoration: none; ")),n.textContent=e,n};function C(e){const t=l.store.any(e,d.A.foaf("nick"));return t?""+t.value:""+w(e)}function E(e,t,n,i){const a=e.appendChild(A(C(t),t));t.uri&&l.store.fetcher.nowOrWhenFetched(t.doc(),void 0,function(e,n){a.textContent=C(t)}),e.appendChild(x.createElement("br")),e.appendChild(A(n,i))}async function k(e,t,n,i,o){let p=!1;const u="1"===i.colorizeByAuthor||!0===i.colorizeByAuthor,f=l.store.any(t,d.A.foaf("maker")),h=l.store.any(t,d.A.dct("created")),k=await(0,s.n6)(t),_=l.store.any(k,d.A.foaf("maker")),T=f.uri===_?.uri?k:t,S=l.store.any(T,d.A.sioc("content")),L=await(0,s.x6)(T);L.length>1&&r.Rm("renderMessageRow versions: ",L.join(", "));const j=L.map(e=>l.store.each(e,d.A.sioc("has_reply"))).flat();let R=null;const N=[];for(const e of j)l.store.holds(e,d.A.rdf("type"),d.A.sioc("Thread"))?(R=e,r.Rm("renderMessageRow: found thread: "+R)):N.push(e);N.length>1&&r.Rm("renderMessageRow: found normal replies: ",N),R||(R=l.store.any(null,d.A.sioc("has_member"),t));const B=l.store.any(T,$rdf.sym(`${b.yv}proofValue`)),I=(0,b.YJ)();I.id=T.uri,I.created=l.store.any(T,d.A.dct("created")).value,I.content=S.value,I.maker=f.uri,B?.value?(0,v.lG)(f).then(e=>{e||r.R8("message is signed but "+f.uri+" is missing publicKey");e?.match(/[0-9A-Fa-f]{6}/g)?B?.value&&!(0,b.Od)(B?.value,I,e)&&r.R8("invalid signature\n"+I.id):r.R8("invalid publicKey hex string\n"+f.uri+"\n"+e)}):(p=!0,r.R8(T.uri+" is unsigned"));const O=await(0,s.oQ)(t),D=!t.sameTerm(O),$=l.store.the(O,d.A.dct("created"),null,O.doc())||l.store.the(t,d.A.dct("created"),null,t.doc()),M=x.createElement("tr");p&&M.setAttribute("style","background-color: red"),M.AJAR_date=$.value,M.AJAR_subject=t;const F=x.createElement("td");if(M.appendChild(F),i.authorDateOnLeft)E(F,f,g.shortDate($.value),t);else{const e=x.createElement("img");e.setAttribute("style","max-height: 2.5em; max-width: 2.5em; border-radius: 0.5em; margin: auto;"),g.setImage(e,f),F.appendChild(e)}let P=g.shortDate($.value);D&&(P+=" ... "+g.shortDate(h.value));const U=M.appendChild(x.createElement("td"));i.authorDateOnLeft||function(e,t,n,i){const a=e.appendChild(A(w(t),t));t.uri&&l.store.fetcher.nowOrWhenFetched(t.doc(),void 0,function(e,n){a.textContent=C(t)});const o=e.appendChild(A(n,i));o.style.fontSize="80%",o.style.marginLeft="1em",e.appendChild(x.createElement("br"))}(U,f,P,t);const z=S?S.value.trim():"??? no content?";let q=null;if(/^https?:\/[^ <>]*$/i.test(z)){if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(z)&&i.expandImagesInline){const e=function(e,t){const n=x.createElement("img");let i="10";t.inlineImageHeightEms&&(i=(""+t.inlineImageHeightEms).trim()),n.setAttribute("style","max-height: "+i+"em; border-radius: 1em; margin: 0.7em;"),e&&n.setAttribute("src",e);const a=x.createElement("a");return a.setAttribute("href",e),a.setAttribute("target","images"),a.appendChild(n),g.makeDraggable(n,$rdf.sym(e)),a}(z,i);U.appendChild(e)}else{const e=U.appendChild(x.createElement("a"));q=e.appendChild(x.createElement("p")),e.href=z,q.textContent=z,U.appendChild(e)}}else q=x.createElement("p"),U.appendChild(q),q.textContent=z;if(q){const e=u?m.lightColorHash(f):function(e){return e?"#e8ffe8":"white"}(n);q.setAttribute("style",y+"background-color: "+e+";")}const H=await(0,a.lk)(t,t.doc());H.children.length&&(U.appendChild(x.createElement("br")),U.appendChild(H));const W=x.createElement("td");M.appendChild(W);const V=g.button(x,c.Pt.iconBase+"noun_243787.svg","...");return W.appendChild(V),V.addEventListener("click",async function(n){if(M.toolTR)return M.parentNode.removeChild(M.toolTR),void delete M.toolTR;const s=x.createElement("tr"),r=await(0,a.tJ)(t,M,{...o,chatOptions:i},e);r.style="border: 0.05em solid #888; border-radius: 0 0 0.7em 0.7em; border-top: 0; height:3.5em; background-color: #fff;",M.nextSibling?M.parentElement.insertBefore(s,M.nextSibling):M.parentElement.appendChild(s),M.toolTR=s,s.appendChild(x.createElement("td"));const c=s.appendChild(x.createElement("td"));s.appendChild(x.createElement("td")),c.appendChild(r)}),R&&i.showThread&&W.appendChild(g.button(x,c.Pt.iconBase+"noun_1180164.svg","see thread",e=>{i.showThread(R,i)})),M}async function _(e,t,n,i){const a=e.parentNode,o=T(n,a,i,n.options,await(0,s.n6)(t));a.insertBefore(o,e),o.originalRow=e,e.style.visibility="hidden"}function T(e,t,n,a,s){async function h(e){await b(L.value,!0)}async function b(o,c){let l;c&&(L.setAttribute("style",y+"color: #bbb;"),L.disabled=!0);try{l=await e.updateMessage(o,s,null,a.thread)}catch(e){return void(n.statusArea||k).appendChild(g.errorMessageBlock(x,"Error writing message: "+e))}await async function(o){if(await(0,i.rg)(e,t,o,!1,a,n),s){const e=k.originalRow;e.parentNode?e.parentNode.removeChild(e):(r.R8("No parentNode on old message "+e.textContent),e.style.backgroundColor="#fee",e.style.visibility="hidden"),k.parentNode.removeChild(k)}else c&&(L.value="",L.setAttribute("style",y),L.disabled=!1,L.scrollIntoView(a.newestFirst),L.focus(),L.select())}(l)}function v(e){const n=t.chatDocument.dir().uri;g.uploadFiles(l.store.fetcher,e,n+"Files",n+"Pictures",async function(e,t){await b(t)})}const w=async function(e){for(const t of e)await b(t)};let A,C;s?(A=l.store.anyValue(s,d.A.dct("created"),null,s.doc()),C=c.Pt.iconBase+"noun_1180158.svg"):(C=c.Pt.iconBase+"noun_383448.svg",A="9999-01-01T00:00:00Z");const k=x.createElement("tr"),_=x.createElement("td"),T=x.createElement("td"),S=x.createElement("td");let L,j;k.appendChild(_),k.appendChild(T),k.appendChild(S),k.AJAR_date=A;const R={div:T,dom:x};return(0,p.ensureLoggedIn)(R).then(t=>{!function(){if(a.menuHandler){const e=g.button(x,c.Pt.iconBase+"noun_243787.svg","More");e.setAttribute("style",f.i.buttonStyle+"float: right;"),S.appendChild(e)}a.menuHandler;const t=l.authn.currentUser();if(E(_,t,"",null),L=x.createElement("textarea"),T.innerHTML="",T.appendChild(L),L.rows=3,s&&(L.value=l.store.anyValue(s,d.A.sioc("content"),null,s.doc())),L.setAttribute("style",y+"background-color: #eef;"),L.addEventListener("keydown",async function(e){"Enter"===e.code&&(!e.shiftKey&&!a.shiftEnterSendsMessage||e.shiftKey&&a.shiftEnterSendsMessage)&&await h()},!1),g.makeDropTarget(L,w,v),S.innerHTML="",j=g.button(x,C,"Send"),j.style.float="right",j.addEventListener("click",e=>h(),!1),S.appendChild(j),s){const e=S.appendChild(g.cancelButton(x));e.style.float="left",e.addEventListener("click",e=>function(e){e.originalRow.style.visibility="visible",e.parentNode.removeChild(e)}(k),!1),S.appendChild(e)}const n=e.dateFolder.leafDocumentFromDate(new Date);let i;T.appendChild(u.$.cameraButton(x,l.store,function(){return i=$rdf.sym(n.dir().uri+"Image_"+Date.now()+".png"),i},async function(e){e&&await b(e.uri)})),m.recordParticipation(e.channel,e.channel.doc())}(),Object.assign(t,n),(0,o.z6)(t).then(e=>{})}),k}},5187(e,t,n){n.d(t,{lk:()=>h,tJ:()=>g});var i=n(7423),a=n(3378),o=n(1795),s=n(4961),r=n(52),c=n(4608),l=n(7236),p=n(3138),u=n(2465),d=n(3262);const m=window.document,f={};async function h(e,t){const n=m.createElement("span");async function a(){if(n.innerHTML="",(0,u.oy)(e))return n;const i=(await(0,u.x6)(e)).map(e=>p.store.each(null,o.A.schema("target"),e,t)).flat();if(0===i.length)return n;const a=i.map(e=>[p.store.any(e,o.A.rdf("type"),null,t),p.store.any(e,o.A.sioc("content"),null,t),p.store.any(e,o.A.schema("agent"),null,t)]);a.sort(),a.forEach(e=>{const[t,i,a]=e;let o;a?(o=m.createElement("a"),o.setAttribute("href",a.uri)):o=m.createTextNode(""),o.textContent=i||f[t]||"⬜️",n.appendChild(o)})}return a().then(i.Rm("sentimentStripLinked: sentimentStripLinked async refreshed")),n.refresh=a,n}async function g(e,t,n,f){const h=m.createElement("div");if(await(0,u.n6)(e).value===o.A.schema("dateDeleted").value)return h;function g(){h.parentElement.parentElement.removeChild(h.parentElement)}async function b(e){await p.store.updater.update(p.store.connectedStatements(e),[])}let v=p.authn.currentUser();function x(e,n,i,a,l,u){function d(){f.style.backgroundColor=v?"yellow":"white"}const f=c.button(m,i,r.label(a),async function(i){if(v)await b(v),v=null,d();else{v=c.newThing(l);const i=[s.st(v,o.A.schema("agent"),e.me,l),s.st(v,o.A.rdf("type"),a,l),s.st(v,o.A.schema("target"),n,l)];if(await p.store.updater.update([],i),d(),u){let e=!1;for(let t=0;t<u.length;t++){const n=h(u[t]);n&&(await b(n),e=!0)}e&&c.refreshTree(t)}}});function h(t){const i=p.store.each(null,o.A.schema("agent"),e.me,l).filter(e=>p.store.holds(e,o.A.rdf("type"),t,l)).filter(e=>p.store.holds(e,o.A.schema("target"),n,l));return i.length?i[0]:null}function g(){v=h(a),d()}let v;return f.refresh=g,g(),f}if(v&&p.store.holds(e,o.A.foaf("maker"),v)&&(h.appendChild(c.deleteButtonWithCheck(m,h,"message",async function(){const a=p.store.any(e,o.A.foaf("maker"));if(v)if(v.sameTerm(a)){try{await f.deleteMessage(e)}catch(e){const a="Error deleting messaage "+e;i.R8(a),alert(a),(n.statusArea||t.parentNode).appendChild(c.errorMessageBlock(m,a))}t.parentNode.removeChild(t)}else alert("You can't delete the message, you are not logged in as the author, "+a);else alert("You can't delete the message, you are not logged in.");g()})),h.appendChild(c.button(m,a.Pt.iconBase+"noun_253504.svg","edit",()=>async function(t){v.value===p.store.any(e,o.A.foaf("maker")).value&&(g(),await(0,d.zt)(t,e,f,n))}(t)))),(0,l.eD)(n).then(e=>{e&&h.appendChild(e)}),v=p.authn.currentUser(),v&&await(0,u.n6)(e).value!==o.A.schema("dateDeleted").value){const t={me:v,dom:m,div:h};h.appendChild(x(t,e,a.Pt.iconBase+"noun_1384132.svg",o.A.schema("AgreeAction"),e.doc(),[o.A.schema("DisagreeAction")])),h.appendChild(x(t,e,a.Pt.iconBase+"noun_1384135.svg",o.A.schema("DisagreeAction"),e.doc(),[o.A.schema("AgreeAction")]))}p.store.any(e,o.A.dct("created"))&&h.appendChild(c.button(m,a.Pt.iconBase+"noun-reply-5506924.svg","Reply in thread",async()=>{await async function(){const t=await f.createThread(e),i=n.chatOptions;if(!i)throw new Error("replyInThread: missing options");i.showThread(t,i),g()}()}));const y=h.appendChild(c.cancelButton(m));return y.style.float="right",y.firstChild.style.opacity="0.3",y.addEventListener("click",g),h}f[o.A.schema("AgreeAction")]="👍",f[o.A.schema("DisagreeAction")]="👎",f[o.A.schema("EndorseAction")]="⭐️",f[o.A.schema("LikeAction")]="❤️"},630(e,t,n){n.d(t,{Od:()=>p,YJ:()=>c,vt:()=>u,yv:()=>r});var i=n(6885),a=n(508),o=n(4721);new TextDecoder("utf-8");const s=new TextEncoder,r="https://w3id.org/security#";function c(){return{id:"",created:"",dateDeleted:"",content:"",maker:"",sig:""}}function l(e){const t=(0,o.sc)(s.encode((n=e,JSON.stringify(n))));var n;return(0,a.My)(t)}function p(e,t,n){return i.ko.verify((0,a.aT)(e),(0,a.aT)(l(t)),(0,a.aT)(n))}function u(e,t){return(0,a.My)(i.ko.sign((0,a.aT)(l(e)),(0,a.aT)(t)))}},8613(e,t,n){n.d(t,{T:()=>u});var i=n(3138),a=n(7423),o=n(3378),s=n(967),r=n(1795),c=n(52),l=n(4608);const p=i.solidLogicSingleton.store;function u(e,t,n){const i=e.dom,u=e.div;if(e.me&&!e.me.uri)throw new Error("newThingUI: Invalid userid: "+e.me);const d="padding: 0.7em; width: 2em; height: 2em;",m=u.appendChild(i.createElement("img"));let f=!1;m.setAttribute("src",o.Pt.iconBase+"noun_34653_green.svg"),m.setAttribute("style",d),m.setAttribute("title","Add another tool");const h=function(e){const t=u.appendChild(i.createElement("pre"));t.setAttribute("style","background-color: pink"),t.appendChild(i.createTextNode(e))};function g(e){for(let t=0;t<v.length;t++){let n=d+e;v[t].disabled&&(n+="opacity: 0.3;"),v[t].setAttribute("style",n)}}function b(e){f=!f,m.setAttribute("style",d+(f?"background-color: yellow;":"")),g(f?"":"display: none;")}m.addEventListener("click",b);const v=[],x=Object.values(n).filter(e=>e.mintNew),y=x.reduce((e,t)=>(t.mintClass&&(e[t.mintClass.uri]=(e[t.mintClass.uri]||0)+1),e),{});x.forEach(n=>{const o=e.div.appendChild(i.createElement("img"));o.setAttribute("src",n.icon);const u=n.mintClass?y[n.mintClass.uri]>1?`${c.label(n.mintClass)} (using ${n.name} pane)`:c.label(n.mintClass):n.name+" @@";o.setAttribute("title","Make new "+u),o.setAttribute("style",d+"display: none;"),v.push(o),o.disabled||o.addEventListener("click",function(m){var f;!function(e){g("display: none;"),e.setAttribute("style",d+"background-color: yellow;")}(o),f={event:m,folder:e.folder||null,iconEle:o,pane:n,noun:u,noIndexHTML:!0,div:e.div,me:e.me,dom:e.dom,refreshTarget:e.refreshTarget},new Promise(function(n,o){let u;function d(n,c){(0,s.ensureLoadedProfile)(e).then(e=>{const s=Object.assign({newBase:c,folder:f.folder||void 0,workspace:n},f);for(const e in f)s[e]=f[e];a.Rm(`newThingUI: Minting new ${s.pane.name} at ${s.newBase}`),f.pane.mintNew(t,s).then(function(e){if(!e||!e.newInstance)throw new Error("Cannot mint new - missing newInstance");if(e.folder){const t=e.newInstance.uri.slice(e.folder.uri.length).includes("/");a.Rm(" new thing is packge? "+t),t?p.add(e.folder,r.A.ldp("contains"),p.sym(e.newBase),e.folder.doc()):p.add(e.folder,r.A.ldp("contains"),e.newInstance,e.folder.doc()),e.refreshTarget&&e.refreshTarget.refresh&&e.refreshTarget.refresh()}else{const t=f.div.appendChild(i.createElement("p"));t.setAttribute("style","font-size: 120%;"),t.innerHTML="Your <a target='_blank' href='"+e.newInstance.uri+"'><b>new "+f.noun+"</b></a> is ready to be set up. <br/><br/><a target='_blank' href='"+e.newInstance.uri+"'>Go to your new "+f.noun+".</a>"}b()}).catch(function(e){h(e),o(e)})},e=>{h("Error logging on: "+e)})}const m=f.pane;if(f.noun=m.mintClass?c.label(m.mintClass):m.name,f.appPathSegment=f.noun.slice(0,1).toUpperCase()+f.noun.slice(1),f.folder){const e=function(e){if(e){let t=f.folder.uri;t.endsWith("/")||(t+="/"),t=t+encodeURIComponent(e)+"/",d(null,t)}else b()};l.askName(i,p,f.div,r.A.foaf("name"),null,f.noun).then(e)}else u=(0,s.selectWorkspace)(i,{noun:f.noun,appPathSegment:f.appPathSegment},d),f.div.appendChild(u)})})})}},6589(e,t,n){n.d(t,{v:()=>i});const i={newThingUI:n(8613).T}},5912(e,t,n){n.r(t)},7423(e,t,n){function i(...e){console.log(...e)}function a(...e){console.warn(...e)}function o(...e){console.error(...e)}function s(...e){console.trace(...e)}n.d(t,{R8:()=>a,Rm:()=>i,uP:()=>s,z3:()=>o})},7134(e,t,n){n.d(t,{Ux:()=>c});var i=n(3138),a=n(675),o=n(8565);const s="https://solidproject.org",r="solidproject.org";async function c(e,t){const n=document.getElementById("PageFooter");if(!n)return;const a=(0,o.E6)(),s=await(0,o.bB)(a,e);l(n,e,a,s,t)(),i.authSession.events.on("login",l(n,e,a,s,t)),i.authSession.events.on("logout",l(n,e,a,s,t))}function l(e,t,n,c,l){return async()=>{const p=i.authn.currentUser();e.innerHTML="",e.appendChild(await function(e,t,n,i,c){const l=document.createElement("div");l.setAttribute("style",a.i.footer);const p=document.createElement("a");if(p.href=c&&c.solidProjectUrl?c.solidProjectUrl:s,p.innerText=c&&c.solidProjectName?c.solidProjectName:r,!n||!i||t&&t.equals(i)){const e=document.createElement("span");return e.innerText="Powered by ",l.appendChild(e),l.appendChild(p),l}const u=document.createElement("span");u.innerText="You're visiting ";const d=document.createElement("a");d.href=n.uri,d.innerText="the Pod";const m=document.createElement("span");m.innerText=" controlled by ";const f=document.createElement("a");f.href=i.uri,f.innerText=(0,o.mG)(e,i);const h=document.createElement("span");h.innerText=". For more info, check out ";const g=document.createElement("span");return g.innerText=".",l.appendChild(u),l.appendChild(d),l.appendChild(m),l.appendChild(f),l.appendChild(h),l.appendChild(p),l.appendChild(g),l}(t,p,n,c,l))}}},2825(e,t,n){n.d(t,{j:()=>i});const i='\n<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 26 26" fill="none">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13 25C19.6274 25 25 19.6274 25 13C25 6.37258 19.6274 1 13 1C6.37258 1 1 6.37258 1 13C1 19.6274 6.37258 25 13 25Z" fill="#D8D8D8" stroke="#8B8B8B"/>\n <mask id="mask0" mask-type="alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="26" height="26">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13 25C19.6274 25 25 19.6274 25 13C25 6.37258 19.6274 1 13 1C6.37258 1 1 6.37258 1 13C1 19.6274 6.37258 25 13 25Z" fill="white" stroke="white"/>\n </mask>\n <g mask="url(#mask0)">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M17.0468 10.4586C17.0468 14.4979 15.4281 16.9214 12.9999 16.9214C10.5718 16.9214 8.95298 14.4979 8.95298 10.4586C8.95298 6.41931 12.9999 6.41931 12.9999 6.41931C12.9999 6.41931 17.0468 6.41931 17.0468 10.4586ZM4.09668 23.3842C6.52483 17.7293 12.9999 17.7293 12.9999 17.7293C12.9999 17.7293 19.475 17.7293 21.9031 23.3842C21.9031 23.3842 17.8481 25 12.9999 25C8.15169 25 4.09668 23.3842 4.09668 23.3842Z" fill="#8B8B8B"/>\n </g>\n</svg>'},1648(e,t,n){n.d(t,{Of:()=>d});var i=n(4356),a=n(3138),o=n(967),s=n(4608),r=n(675),c=n(2825),l=n(8565);const p=i.Pt.iconBase+"noun_help.svg",u="https://solidproject.org/assets/img/solid-emblem.svg";async function d(e,t,n){const i=document.getElementById("PageHeader");if(!i)return;const o=(0,l.E6)();m(i,e,o,t,n)(),a.authSession.events.on("logout",m(i,e,o,t,n)),a.authSession.events.on("login",m(i,e,o,t,n))}function m(e,t,n,d,m){return async()=>{const v=a.authn.currentUser();e.innerHTML="",e.appendChild(await async function(e,t,n,a,d){const m=document.createElement("a");m.href=t.uri,m.setAttribute("style",r.i.headerBannerLink);const v=document.createElement("img");d&&(v.src=d.logo?d.logo:u);v.setAttribute("style",r.i.headerBannerIcon),m.appendChild(v);const x=n?await async function(e,t,n){const i=e.fetcher;i&&await i.load(t);const a=document.createElement("ul");a.setAttribute("style",r.i.headerUserMenuList),n&&n.forEach(function(e){"url"===(e.url?"url":"onclick")?a.appendChild(g(h(e.label,e.url,e.target))):a.appendChild(g(f(e.label,e.onclick)))});const o=document.createElement("nav");o.setAttribute("style",r.i.headerUserMenuNavigationMenuNotDisplayed),o.setAttribute("aria-hidden","true"),o.setAttribute("id","loggedInNav"),o.appendChild(a);const p=document.createElement("button");p.setAttribute("style",r.i.headerUserMenuTrigger),p.type="button";const u=function(e,t){let n=null;try{if(n=s.findImage(t),!n)return c.j}catch{return c.j}const i=document.createElement("div");return i.setAttribute("style",r.i.headerUserMenuPhoto),i.style.backgroundImage=`url(${n})`,i}(0,t);"string"==typeof u?p.innerHTML=u:p.appendChild(u);const d=document.createElement("div");d.setAttribute("style",r.i.headerBannerUserMenuNotDisplayed),d.appendChild(p),d.appendChild(o);const m=(0,l.nF)(e=>b(e,p,o),50);p.addEventListener("click",m);let v=setTimeout(()=>null,0);return d.addEventListener("mouseover",e=>{clearTimeout(v),m(e);const t=document.getElementById("loggedInNav");t?.setAttribute("style",r.i.headerUserMenuNavigationMenu)}),d.addEventListener("mouseout",e=>{v=setTimeout(()=>m(e),200);const t=document.getElementById("loggedInNav");t?.setAttribute("style",r.i.headerUserMenuNavigationMenuNotDisplayed)}),d}(e,n,a):function(){const e=document.createElement("div");return e.setAttribute("style",r.i.headerBannerLogin),e.appendChild((0,o.loginStatusBox)(document,null,{})),e}(),y=document.createElement("div");y.setAttribute("style",r.i.headerBanner),y.appendChild(m);const w=document.createElement("div");if(w.setAttribute("style",r.i.headerBannerRightMenu),w.appendChild(x),d&&d.helpMenuList){const e=function(e,t){if(!t)return;const n=document.createElement("ul");n.setAttribute("style",r.i.headerUserMenuList),t.forEach(function(e){"url"===(e.url?"url":"onclick")?n.appendChild(g(h(e.label,e.url,e.target))):n.appendChild(g(f(e.label,e.onclick)))});const a=document.createElement("nav");a.setAttribute("style",r.i.headerUserMenuNavigationMenuNotDisplayed),a.setAttribute("aria-hidden","true"),a.setAttribute("id","helperNav"),a.appendChild(n);const o=document.createElement("div");o.setAttribute("style",r.i.headerBannerUserMenu),o.appendChild(a);const s=document.createElement("button");s.setAttribute("style",r.i.headerUserMenuTrigger),s.type="button";const c=document.createElement("img");c.src=e&&e.helpIcon?e.helpIcon:i.Pt.iconBase+p,c.setAttribute("style",r.i.headerUserMenuTriggerImg),o.appendChild(s),s.appendChild(c);const u=(0,l.nF)(e=>b(e,s,a),50);s.addEventListener("click",u);let d=setTimeout(()=>null,0);return o.addEventListener("mouseover",e=>{clearTimeout(d),u(e);const t=document.getElementById("helperNav");t?.setAttribute("style",r.i.headerUserMenuNavigationMenu)}),o.addEventListener("mouseout",e=>{d=setTimeout(()=>u(e),200);const t=document.getElementById("helperNav");t?.setAttribute("style",r.i.headerUserMenuNavigationMenuNotDisplayed)}),o}(d,d.helpMenuList);w.appendChild(e)}return y.appendChild(w),y}(t,n,v,d,m))}}function f(e,t){const n=document.createElement("button");return n.setAttribute("style",r.i.headerUserMenuButton),n.onmouseover=function(){n.setAttribute("style",r.i.headerUserMenuButtonHover)},n.onmouseout=function(){n.setAttribute("style",r.i.headerUserMenuButton)},n.addEventListener("click",t),n.innerText=e,n}function h(e,t,n){const i=document.createElement("a");return i.setAttribute("style",r.i.headerUserMenuLink),i.onmouseover=function(){i.setAttribute("style",r.i.headerUserMenuLinkHover)},i.onmouseout=function(){i.setAttribute("style",r.i.headerUserMenuLink)},i.href=t,i.innerText=e,n&&(i.target=n),i}function g(e){const t=document.createElement("li");return t.setAttribute("style",r.i.headerUserMenuListItem),t.appendChild(e),t}function b(e,t,n){const i="true"===t.getAttribute("aria-expanded"),a="mouseover"===e.type,o="mouseout"===e.type;i&&a||!i&&o||(t.setAttribute("aria-expanded",(!i).toString()),n.setAttribute("aria-hidden",i.toString()))}},3378(e,t,n){n.d(t,{LN:()=>s,Pt:()=>o,i1:()=>r});var i=n(7423);const a="https://solidos.github.io/solid-ui/src",o=(e=n.hmd(e)).scriptURI?{iconBase:e.scriptURI.slice(0,e.scriptURI.lastIndexOf("/"))+"/icons/",originalIconBase:e.scriptURI.slice(0,e.scriptURI.lastIndexOf("/"))+"/originalIcons/"}:"undefined"!=typeof $SolidTestEnvironment&&$SolidTestEnvironment.iconBase?{iconBase:$SolidTestEnvironment.iconBase,originalIconBase:$SolidTestEnvironment.originalIconBase}:{iconBase:a+"/icons/",originalIconBase:a+"/originalIcons/"};(0,i.Rm)(" icons.iconBase is set to : "+o.iconBase);const s=o.iconBase,r=o.originalIconBase},4356(e,t,n){n.d(t,{Pt:()=>s.Pt,ns:()=>i.A});var i=n(1795),a=n(5923),o=n(6589),s=n(3378),r=n(8677),c=n(4158),l=n(7580),p=n(6127),u=n(8516),d=n(9509),m=n(8153),f=n(3605),h=n(5148),g=n(675),b=n(2174),v=n(6670),x=n(52),y=n(967),w=n(4608),A=n(1648),C=n(7134),E=n(5912);const k=window?window.document:null;"undefined"!=typeof window&&(window.UI={ns:i.A,acl:a.B,aclControl:a.u,create:o.v,createTypes:E,dom:k,icons:s.Pt,language:r,log:c,login:y,matrix:l.U,media:p.$,messageArea:u.v,infiniteMessageArea:d.r5,pad:m,participation:f,preferences:h,style:g.i,table:b.I,tabs:v,utils:x,widgets:w,initHeader:A.Of,initFooter:C.Ux})},4158(e,t,n){n.r(t),n.d(t,{LogLevel:()=>i,alert:()=>h,clear:()=>g,debug:()=>u,dumpHTML:()=>v,error:()=>m,escapeForXML:()=>w,info:()=>d,logAscending:()=>x,logDescending:()=>y,msg:()=>l,setInternals:()=>A,setLevel:()=>b,success:()=>f,warn:()=>p});let i=function(e){return e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Message=4]="Message",e[e.Success=8]="Success",e[e.Info=16]="Info",e[e.Debug=32]="Debug",e[e.All=63]="All",e}({}),a=7,o=!1,s=document,r=window;function c(e,t=4,n="mesg"){if(a&t)if(void 0!==s){const t=s.getElementById("status");if(!t)return;const i=s.createElement("span");i.setAttribute("class",n);const a=new Date;i.innerHTML=`${a.getHours()}:${a.getMinutes()}:${a.getSeconds()} [${n}] ${w(e)}<br/>`,o?t.insertBefore(i,t.firstChild):t.appendChild(i)}else"undefined"!=typeof console&&console.log(e)}function l(e){c(e)}function p(e){c(e,2,"warn")}function u(e){c(e,32,"dbug")}function d(e){c(e,16,"info")}function m(e){c(e,1,"eror")}function f(e){c(e,8,"good")}function h(e){r&&void 0!==r.alert?r.alert(e):p(e)}function g(){const e=s?.getElementById("status");e&&(e.innerHTML="")}function b(e){a=63,u("Log level is now "+e),a=e}function v(){if(!s)return;const e=a;a=63,u(s?.body?.innerHTML||""),a=e}function x(){o=!0}function y(){o=!1}function w(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function A(e,t){r=e,s=t}},967(e,t,n){n.r(t),n.d(t,{ensureLoadedPreferences:()=>y,ensureLoadedProfile:()=>w,ensureLoggedIn:()=>x,filterAvailablePanes:()=>N,findAppInstances:()=>A,getUserRoles:()=>R,loginStatusBox:()=>S,newAppInstance:()=>j,registrationControl:()=>E,registrationList:()=>_,renderScopeHeadingRow:()=>k,renderSignInPopup:()=>T,scopeLabel:()=>C,selectWorkspace:()=>L});var i=n(4961),a=n(3138),o=n(7423),s=n(675),r=n(4158),c=n(1795),l=n(6247),p=n(52),u=n(4608);a.solidLogicSingleton.store;const{loadPreferences:d,loadProfile:m}=a.solidLogicSingleton.profile,{getScopedAppInstances:f,getRegistrations:h,loadAllTypeIndexes:g,getScopedAppsFromIndex:b,deleteTypeIndexRegistration:v}=a.solidLogicSingleton.typeIndex;function x(e){const t=a.authn.currentUser();return t?(a.authn.saveUser(t,e),Promise.resolve(e)):new Promise(t=>{a.authn.checkUser().then(n=>{if(n)return o.Rm(`logIn: Already logged in as ${n}`),t(e);if(!e.div||!e.dom)return t(e);const i=S(e.dom,n=>{a.authn.saveUser(n,e),t(e)});e.div.appendChild(i)})})}async function y(e){if(e.preferencesFile)return Promise.resolve(e);let t;try{e=await w(e);const n=await d(e.me);t,e.preferencesFile=n}catch(t){let n;if(t instanceof a.UnauthorizedError)n="Oops — you are not authenticated (properly logged in), so SolidOS cannot read your preferences file. Try logging out and then logging back in.",(0,r.alert)(n);else{if(t instanceof a.CrossOriginForbiddenError)return n=`Unauthorized: Assuming preference file blocked for origin ${window.location.origin}`,e.preferencesFileError=n,e;if(t instanceof a.SameOriginForbiddenError)return n="You are not authorized to read your preference file. This may be because you are using an untrusted web app.",o.R8(n),e;if(t instanceof a.NotEditableError)return n="You are not authorized to edit your preference file. This may be because you are using an untrusted web app.",o.R8(n),e;if(t instanceof a.WebOperationError)n="You are not authorized to edit your preference file. This may be because you are using an untrusted web app.",o.R8(n);else{if(!(t instanceof a.FetchError))throw new Error(`(via loadPrefs) ${t}`);n=`Strange: Error ${t.status} trying to read your preference file.${t.message}`,(0,r.alert)(n)}}}return e}async function w(e){if(e.publicProfile)return e;try{const t=await x(e);if(!t.me)throw new Error("Could not log in");e.publicProfile=await m(t.me)}catch(t){throw e.div&&e.dom&&e.div.appendChild(u.errorMessageBlock(e.dom,t.message)),new Error(`Can't log in: ${t}`)}return e}async function A(e,t,n){let i=e.me?await f(t,e.me):[];return!0===n?i=i.filter(e=>"public"===e.scope.label):!1===n&&(i=i.filter(e=>"private"===e.scope.label)),e.instances=i.map(e=>e.instance),e}function C(e,t){return`${e.me&&e.me.sameTerm(t.agent)?"":p.label(t.agent)+" "}${t.label}`}async function E(e,t,n){function s(o){const s=function(e){const a=h(t,n),o=a.length?a[0]:u.newThing(e);return[(0,i.st)(o,c.A.solid("instance"),t,e),(0,i.st)(o,c.A.solid("forClass"),n,e)]}(o.index),r=`${C(e,o)} link to this ${e.noun}`;return u.buildCheckboxForm(e.dom,a.solidLogicSingleton.store,r,null,s,f,o.index)}const r=e.dom;if(!r||!e.div)throw new Error("registrationControl: need dom and div");const l=r.createElement("div");e.div.appendChild(l),e.me=a.authn.currentUser();const p=e.me;if(!p)return l.innerHTML='<p style="margin:2em;">(Log in to save a link to this)</p>',e;let d;try{d=await g(p)}catch(t){let n;return e.div&&e.preferencesFileError?(n="(Lists of stuff not available)",e.div.appendChild(r.createElement("p")).textContent=n):e.div&&(n=`registrationControl: Type indexes not available: ${t}`,e.div.appendChild(u.errorMessageBlock(e.dom,t))),o.Rm(n),e}l.innerHTML="<table><tbody></tbody></table>",l.setAttribute("style","font-size: 120%; text-align: right; padding: 1em; border: solid gray 0.05em;");const m=l.children[0].children[0],f=new i.BlankNode;for(const e of d){m.appendChild(r.createElement("tr")).appendChild(s(e))}return e}function k(e,t,n){const{dom:i}=e,a=C(e,n),o=i.createElement("tr"),s=o.appendChild(i.createElement("td"));s.setAttribute("colspan","3"),s.style.backgoundColor={private:"#fee",public:"#efe"}[n.label]||"white";const r=s.appendChild(i.createElement("h3"));return r.textContent=a+" links",r.style.textAlign="left",o}async function _(e,t){const n=e.dom,i=e.div,o=n.createElement("div");if(i.appendChild(o),e.me=a.authn.currentUser(),!e.me)return o.innerHTML='<p style="margin:2em;">(Log in list your stuff)</p>',e;const s=await g(e.me);o.innerHTML="<table><tbody></tbody></table>",o.setAttribute("style","font-size: 120%; text-align: right; padding: 1em; border: solid #eee 0.5em;");const r=o.firstChild.firstChild;for(const i of s){const a=k(e,0,i);r.appendChild(a);const o=await b(i,t.type||null);0===o.length&&(a.style.display="none");for(const e of o){const t=u.personTR(n,c.A.solid("instance"),e.instance,{deleteFunction:async()=>{await v(e),r.removeChild(t)}});t.children[0].style.paddingLeft="3em",r.appendChild(t)}}return e}function T(e){const t=e.createElement("div");t.setAttribute("style","position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center;"),e.body.appendChild(t);const n=e.createElement("div");n.setAttribute("style","\n background-color: white;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);\n -webkit-box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);\n -moz-box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);\n -o-box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);\n border-radius: 4px;\n min-width: 400px;\n padding: 10px;\n z-index : 10;\n "),t.appendChild(n);const i=e.createElement("div");i.setAttribute("style","\n border-bottom: 1px solid #DDD;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n "),n.appendChild(i);const o=e.createElement("label");o.setAttribute("style","margin-right: 5px; font-weight: 800"),o.innerText="Select an identity provider";const s=e.createElement("button");s.innerHTML='<img src="https://solidos.github.io/solid-ui/src/icons/noun_1180156.svg" style="width: 2em; height: 2em;" title="Cancel">',s.setAttribute("style","background-color: transparent; border: none;"),s.addEventListener("click",()=>{t.remove()}),i.appendChild(o),i.appendChild(s);const c=async e=>{try{a.solidLogicSingleton.store.updater.flagAuthorizationMetadata();const t=new URL(window.location.href).hash;t&&window.localStorage.setItem("preLoginRedirectHash",t),window.localStorage.setItem("loginIssuer",e);const n=new URL(window.location.href);n.hash="",await a.authSession.login({redirectUrl:n.href,oidcIssuer:e})}catch(e){(0,r.alert)(e.message)}},l=e.createElement("div");l.setAttribute("style","\n border-bottom: 1px solid #DDD;\n display: flex;\n flex-direction: column;\n padding-top: 10px;\n ");const p=e.createElement("div");p.setAttribute("style","\n display: flex;\n flex-direction: row;\n ");const u=e.createElement("label");u.innerText="Enter the URL of your identity provider:",u.setAttribute("style","color: #888");const d=e.createElement("input");d.setAttribute("type","text"),d.setAttribute("style","margin-left: 0 !important; flex: 1; margin-right: 5px !important"),d.setAttribute("placeholder","https://example.com"),d.value=localStorage.getItem("loginIssuer")||"";const m=e.createElement("button");m.innerText="Go",m.setAttribute("style","margin-top: 12px; margin-bottom: 12px;"),m.addEventListener("click",()=>{c(d.value)}),l.appendChild(u),p.appendChild(d),p.appendChild(m),l.appendChild(p),n.appendChild(l);const f=e.createElement("div");f.setAttribute("style","\n display: flex;\n flex-direction: column;\n padding-top: 10px;\n ");const h=e.createElement("label");h.innerText="Or pick an identity provider from the list below:",h.setAttribute("style","color: #888"),f.appendChild(h),(0,a.getSuggestedIssuers)().forEach(t=>{const n=e.createElement("button");n.innerText=t.name,n.setAttribute("style","height: 38px; margin-top: 10px"),n.addEventListener("click",()=>{c(t.uri)}),f.appendChild(n)}),n.appendChild(f)}function S(e,t=null,n={}){let i=(0,a.offlineTestID)();const p=e.createElement("div");function d(e){e&&(i=a.authn.saveUser(e),p.refresh(),t&&t(i.uri))}function m(e){const n=i;a.authSession.logout().then(function(){const e=`Your WebID was ${n}. It has been forgotten.`;i=null;try{(0,r.alert)(e)}catch(t){window.alert(e)}p.refresh(),t&&t(null)},e=>{(0,r.alert)("Fail to log out:"+e)})}function f(){i=a.authn.currentUser(),p.refresh()}return p.refresh=function(){const t=a.authSession.info;i=t&&t.webId&&t.isLoggedIn?a.solidLogicSingleton.store.sym(t.webId):null,(i&&p.me!==i.uri||!i&&p.me)&&(u.clearElement(p),i?p.appendChild(function(t,n){const i=n.buttonStyle||s.i.signInAndUpButtonStyle;let o="WebID logout";if(t){const e=a.solidLogicSingleton.store.any(t,c.A.foaf("nick"))||a.solidLogicSingleton.store.any(t,c.A.foaf("name"));e&&(o="Logout "+e.value)}const r=e.createElement("input");return r.setAttribute("type","button"),r.setAttribute("value",o),r.setAttribute("style",`${i}`),r.addEventListener("click",m,!1),r}(i,n)):p.appendChild(function(e,t,n={}){const i=(n=n||{}).buttonStyle||s.i.signInAndUpButtonStyle,r=e.createElement("div"),c="SolidSignInOrSignUpBox";o.Rm("widgets.signInOrSignUpBox"),r.setUserCallback=t,r.setAttribute("class",c),r.setAttribute("style","display:flex;");const p=e.createElement("input");r.appendChild(p),p.setAttribute("type","button"),p.setAttribute("value","Log in"),p.setAttribute("style",`${i}${s.i.headerBannerLoginInput}`+s.i.signUpBackground),a.authSession.events.on("login",()=>{const t=a.authn.currentUser();if(t){const n=t.uri,i=e.getElementsByClassName(c);o.Rm(`Logged in, ${i.length} panels to be serviced`);for(let t=0;t<i.length;t++){const a=i[t];if(a.setUserCallback)try{a.setUserCallback(n);const e=a.parentNode;e&&e.removeChild(a)}catch(t){o.Rm(`## Error satisfying login box: ${t}`),a.appendChild(u.errorMessageBlock(e,t))}}}}),p.addEventListener("click",()=>{const n=(0,a.offlineTestID)();if(n)return t(n.uri);T(e)},!1);const d=e.createElement("input");return r.appendChild(d),d.setAttribute("type","button"),d.setAttribute("value","Sign Up for Solid"),d.setAttribute("style",`${i}${s.i.headerBannerLoginInput}`+s.i.signInBackground),d.addEventListener("click",function(e){(new l.l).signup().then(function(e){o.Rm("signInOrSignUpBox signed up "+e),t(e)})},!1),r}(e,d,n))),p.me=i?i.uri:null},p.refresh(),f(),a.authSession.events.on("login",f),a.authSession.events.on("logout",f),p.me="99999",p.refresh(),p}function L(e,t,n){const r=t.noun,l=t.appPathSegment,p=(0,a.offlineTestID)(),d=e.createElement("div"),m={me:p,dom:e,div:d};function f(t,n){d.appendChild(u.errorMessageBlock(e,t,n))}function h(e){const t=a.solidLogicSingleton.store.any(e,c.A.space("uriPrefix"));let n;n=t?t.value:e.uri.split("#")[0],"/"!==n.slice(-1)&&(o.Rm(`${l}: No / at end of uriPrefix ${n}`),n=`${n}/`);const i=new Date;return n+=`${l}/id${i.getTime()}/`,n}return y(m).then(function(t){const o=t.me,l=t.preferencesFile;let p=null,m=a.solidLogicSingleton.store.each(o,c.A.space("workspace"),void 0,l);const g=a.solidLogicSingleton.store.each(o,c.A.space("storage"));0===m.length&&g&&(f(`You don't seem to have any workspaces. You have ${g.length} storage spaces.`,"white"),g.map(function(e){return m=m.concat(a.solidLogicSingleton.store.each(e,c.A.ldp("contains"))),m}).filter(e=>e.id?["public","private"].includes(e.id().toLowerCase()):"")),1===m.length&&(f(`Workspace used: ${m[0].uri}`,"white"),p=h(m[0]));const b=e.createElement("table");b.setAttribute("style","border-collapse:separate; border-spacing: 0.5em;"),d.appendChild(b),d.appendChild(e.createElement("hr"));const v=d.appendChild(e.createElement("p"));v.setAttribute("style",s.i.commentStyle),v.textContent=`Where would you like to store the data for the ${r}?\n Give the URL of the folder where you would like the data stored.\n It can be anywhere in solid world - this URI is just an idea.`;const x=d.appendChild(e.createElement("input"));x.setAttribute("type","text"),x.setAttribute("style",s.i.textInputStyle),x.size=80,x.label="base URL",x.autocomplete="on",p&&(x.value=p),t.baseField=x,d.appendChild(e.createElement("br"));const y=d.appendChild(e.createElement("button"));let w,A,C,E,k,_,T;y.setAttribute("style",s.i.buttonStyle),y.textContent=`Start new ${r} at this URI`,y.addEventListener("click",function(e){let t=x.value.replace(" ","%20");"/"!==t.slice(-1)&&(t+="/"),n(null,t)}),m=m.filter(function(e){return!a.solidLogicSingleton.store.holds(e,c.A.rdf("type"),c.A.space("MasterWorkspace"))});const S="height: 3em; margin: 1em; padding: 1em white; border-radius: 0.3em;",L=`${S}border: 0px;`;for(let t=0;t<m.length;t++){if(k=m[t],E=e.createElement("tr"),0===t&&(w=e.createElement("td"),w.setAttribute("rowspan",`${m.length}`),w.textContent="Choose a workspace for this:",w.setAttribute("style","vertical-align:middle;"),E.appendChild(w)),A=e.createElement("td"),_=a.solidLogicSingleton.store.anyValue(k,c.A.ui("style")),!_){const e=`#${(16777215&function(e){return e.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0)}(k.uri)|12632256).toString(16)}`;_=`color: black ; background-color: ${e};`}A.setAttribute("style",L+_),E.target=k.uri;let i=a.solidLogicSingleton.store.any(k,c.A.rdfs("label"));i||(i=k.uri.split("/").slice(-1)[0]||k.uri.split("/").slice(-2)[0]),A.textContent=i||"???",E.appendChild(A),0===t&&(C=e.createElement("td"),C.setAttribute("rowspan",`${m.length}1`),C.setAttribute("style","width:50%;"),E.appendChild(C)),b.appendChild(E),T=a.solidLogicSingleton.store.any(k,c.A.rdfs("comment")),T=T?T.value:"Use this workspace",A.addEventListener("click",function(t){C.textContent=T?T.value:"",C.setAttribute("style",L+_);const i=e.createElement("button");i.textContent="Continue";const a=h(k);x.value=a,i.addEventListener("click",function(e){i.disabled=!0,n(k,a),i.textContent="----\x3e"},!0),C.appendChild(i)},!0)}const j=e.createElement("tr");A=e.createElement("td"),A.setAttribute("style",S),A.textContent="+ Make a new workspace",A.addEventListener("click",async function(n){const o=b.appendChild(e.createElement("tr")).appendChild(e.createElement("td"));o.setAttribute("colspan","3"),o.style.padding="0.5em";const s=encodeURI(await u.askName(e,a.solidLogicSingleton.store,o,c.A.solid("URL"),c.A.space("Workspace"),"Workspace")),r=u.newThing(t.preferencesFile),l=[(0,i.st)(t.me,c.A.space("workspace"),r,t.preferencesFile),(0,i.st)(r,c.A.space("uriPrefix"),s,t.preferencesFile)];if(!a.solidLogicSingleton.store.updater)throw new Error("store has no updater");await a.solidLogicSingleton.store.updater.update([],l)}),j.appendChild(A),b.appendChild(j)}).catch(e=>{d.appendChild(u.errorMessageBlock(m.dom,e))}),d}function j(e,t,n){const i=function(e,t){n(e,t)},a=e.createElement("div"),o=e.createElement("button");return o.setAttribute("type","button"),a.appendChild(o),o.innerHTML=`Make new ${t.noun}`,o.addEventListener("click",n=>{a.appendChild(L(e,t,i))},!1),a.appendChild(o),a}async function R(){try{const{me:e,preferencesFile:t,preferencesFileError:n}=await y({});if(!t||n)throw new Error(n);return a.solidLogicSingleton.store.each(e,c.A.rdf("type"),null,t.doc())}catch(e){o.R8("Unable to fetch your preferences - this was the error: ",e)}return[]}async function N(e){const t=await R();return e.filter(e=>function(e,t){const n=e.audience||[];return n.reduce((e,n)=>e&&!!t.find(e=>e.equals(n)),!0)}(e,t))}a.authSession.events.on("logout",async()=>{const e=window.localStorage.getItem("loginIssuer");if(e)try{a.solidLogicSingleton.store.updater.flagAuthorizationMetadata();const t=new URL(e);t.pathname="/.well-known/openid-configuration";const n=await fetch(t.toString());if(200===n.status){const e=await n.json();e&&e.end_session_endpoint&&await fetch(e.end_session_endpoint,{credentials:"include"})}}catch(e){}window.location.reload()})},7580(e,t,n){n.d(t,{U:()=>i});const i={matrixForQuery:n(7659).p}},7659(e,t,n){n.d(t,{p:()=>s});var i=n(52),a=n(4961);const o=n(3138).solidLogicSingleton.store;function s(e,t,n,s,r,c,l){const p=e.createElement("table"),u=e.createElement("tr");u.appendChild(e.createElement("td")).setAttribute("class","MatrixCorner"),p.appendChild(u),p.lastHeader=u;let d=[];const m=[],f=function(e,t,n,a){for(;e.firstChild;)e.removeChild(e.firstChild);e.setAttribute("style",""),e.style.textAlign="center",c.cellFunction?c.cellFunction(e,t,n,a):(e.textContent=i.label(a),e.setAttribute("style","padding: 0.3em")),delete e.old},h=function(t){const n=t.toNT();if(m[n])return m[n];const s=e.createElement("tr"),r=s.appendChild(e.createElement("td"));r.setAttribute("style","padding: 0.3em;"),r.textContent=i.label(t),"NamedNode"===t.termType&&o.fetcher.nowOrWhenFetched(t.uri.split("#")[0],void 0,function(e,n,a){e&&(r.textContent=i.label(t))});for(let n=0;n<d.length;n++)f(s.appendChild(e.createElement("td")),a.fromNT(d[n]),t,null);s.dataValueNT=n,m[n]=s;for(let e=p.lastHeader.nextSibling;e;e=e.nextSibling)if(n>e.dataValueNT&&c&&c.yDecreasing||n<e.dataValueNT&&(!c||!c.yDecreasing))return p.insertBefore(s,e);return p.appendChild(s)},g=function(t){const n=t.toNT();let o=null;for(let e=0;e<d.length;e++){if(d[e]===n)return e;if(n>d[e]&&c.xDecreasing||n<d[e]&&!c.xDecreasing){d=d.slice(0,e).concat([n]).concat(d.slice(e)),o=e;break}}null===o&&(o=d.length,d.push(n));for(let n=p.firstChild;n;n=n.nextSibling){const s=n.dataValueNT,r=e.createElement("td");if(r.style.textAlign="center",n===p.firstChild?r.textContent=i.label(t):f(r,t,a.fromNT(s),null),o===d.length-1)n.appendChild(r);else{let e=n.firstChild;for(let t=0;t<o+1;t++)e=e.nextSibling;n.insertBefore(r,e)}}return o},b=function(){let e,t;const n=[],i=[];if(c.set_y)for(let e=0;e<c.set_y.length;e++)i[c.set_y[e]]=!0;if(c.set_x)for(let e=0;e<c.set_x.length;e++)n[g(c.set_x[e])+1]=!0;for(let o=1;o<p.children.length;o++){e=p.children[o];for(let o=1;o<e.children.length;o++)if(t=e.children[o],t.old){const n=a.fromNT(e.dataValueNT),i=a.fromNT(d[o-1]);f(t,i,n,null)}else i[e.dataValueNT]=!0,n[o]=!0}for(let t=0;t<p.children.length;t++)if(e=p.children[t],t>0&&!i[e.dataValueNT])delete m[e.dataValueNT],p.removeChild(e);else for(let t=e.children.length-1;t>0;t--){const i=e.children[t];n[t]||e.removeChild(i)}const o=[];for(let e=0;e<d.length;e++)n[e+1]&&o.push(d[e]);d=o};p.refresh=function(){!function(){for(let e=1;e<p.children.length;e++){const t=p.children[e];for(let e=1;e<t.children.length;e++)t.children[e].old=!0}}(),o.query(t,v,void 0,b)};const v=function(e){const t=e[n.toString()],i=e[s.toString()],a=e[r.toString()],o=h(i),c=g(t),l=o.children[c+1];f(l,t,i,a)};if(c.set_y)for(let e=0;e<c.set_y.length;e++)h(c.set_y[e]);if(c.set_x)for(let e=0;e<c.set_x.length;e++)g(c.set_x[e]);return o.query(t,v,void 0,l),p}},6127(e,t,n){n.d(t,{$:()=>a});var i=n(7008);const a={cameraCaptureControl:i.V,cameraButton:i.Y}},7008(e,t,n){n.d(t,{V:()=>l,Y:()=>p});var i=n(7423),a=n(3378),o=n(675),s=n(4608);const r=a.Pt.iconBase+"noun_Camera_1618446_000000.svg",c=a.Pt.iconBase+"noun_479395.svg";function l(e,t,n,r){const l=e.createElement("div");let p,u,d,m;const f=l.appendChild(e.createElement("table")),h=f.appendChild(e.createElement("tr")).appendChild(e.createElement("td"));h.setAttribute("colspan","4");const g=f.appendChild(e.createElement("tr"));g.appendChild(e.createElement("td")).appendChild(s.cancelButton(e)).addEventListener("click",e=>{A(),r(null)});const b=g.appendChild(e.createElement("td")).appendChild(s.button(e,c,"Retake"));b.addEventListener("click",e=>{h.removeChild(m),y()}),b.style.visibility="collapse";const v=g.appendChild(e.createElement("td")).appendChild(s.button(e,a.Pt.iconBase+"noun_10636.svg","Snap"));v.addEventListener("click",function(){m=e.createElement("canvas"),m.setAttribute("width",o.i.canvasWidth),m.setAttribute("height",o.i.canvasHeight),m.setAttribute("style",o.i.controlStyle),h.appendChild(m);m.getContext("2d").drawImage(d,0,0,m.width,m.height),d.parentNode.removeChild(d),m.toBlob(e=>{const t=`got blob type ${e.type} size ${e.size}`;i.Rm(t),p=n(),u=e,x.style.visibility="visible",b.style.visibility="visible",v.style.visibility="collapse"},"image/png")}),v.style.visibility="collapse";const x=g.appendChild(e.createElement("td")).appendChild(s.continueButton(e));function y(){if(d=h.appendChild(e.createElement("video")),d.setAttribute("controls","1"),d.setAttribute("autoplay","1"),d.setAttribute("style",o.i.controlStyle),!navigator.mediaDevices)throw new Error("navigator.mediaDevices not available");navigator.mediaDevices.getUserMedia(w).then(e=>{d.srcObject=e,v.style.visibility="visible",x.style.visibility="collapse",b.style.visibility="collapse"})}x.addEventListener("click",e=>{!function(e,n){const a=e.type;i.Rm("Putting "+e.size+" bytes of "+a+" to "+n),t.fetcher.webOperation("PUT",n.uri,{data:e,contentType:a}).then(e=>{i.Rm("ok saved "+n),A(),r(n)},e=>{A(),alert(e)})}(u,p)}),x.style.visibility="collapse";const w={video:!0};function A(){d&&d.srcObject&&d.srcObject.getVideoTracks().forEach(e=>e.stop())}return y(),l}function p(e,t,n,i){const a=e.createElement("div"),o=s.button(e,r,"Take picture");let c;async function p(e){a.removeChild(c),a.appendChild(o),i(e)}return a.appendChild(o),o.addEventListener("click",i=>{a.removeChild(o),c=l(e,t,n,p),a.appendChild(c)}),a}},8516(e,t,n){n.d(t,{v:()=>d});var i=n(3378),a=n(967),o=n(3138),s=n(1795),r=n(4961),c=n(675),l=n(52),p=n(4608);const u={icons:i.Pt,ns:s.A,rdf:r,style:c.i,widgets:p};function d(e,t,n,i,s){t=t||o.solidLogicSingleton.store,i=i.doc();const c=u.ns,p=r.Namespace("http://www.w3.org/2005/01/wf/flow#"),d=r.Namespace("http://purl.org/dc/terms/"),m=!!(s=s||{}).newestFirst,f="white-space: pre-wrap; width: 90%; font-size:100%; border: 0.07em solid #eee; padding: .2em 0.5em; margin: 0.1em 1em 0.1em 1em;",h=e.createElement("div");let g,b;const v=o.solidLogicSingleton.store.updater,x=function(t,n){const i=e.createElement("a");return n&&n.uri&&(i.setAttribute("href",n.uri),i.addEventListener("click",u.widgets.openHrefInOutlineMode,!0),i.setAttribute("style","color: #3B5998; text-decoration: none; ")),i.textContent=t,i},y=function(t,n){const i=e.createElement("pre");return i.setAttribute("style",n||"color: grey"),h.appendChild(i),i.appendChild(e.createTextNode(t)),i},w=function(e){y(e,"color: #800;")};function A(e){const t=o.solidLogicSingleton.store.any(e,u.ns.foaf("nick"));return t?""+t.value:""+l.label(e)}function C(t,n,i,a){const s=t.appendChild(x(A(n),n));n.uri&&o.solidLogicSingleton.store.fetcher.nowOrWhenFetched(n.doc(),void 0,function(e,t){s.textContent=A(n)}),t.appendChild(e.createElement("br")),t.appendChild(x(i,a))}function E(e,n){const i={};let a,o;for(a=n.firstChild;a;a=a.nextSibling)a.AJAR_subject&&(i[a.AJAR_subject.uri]=!0);const s=t.each(e,c.wf("message")),r={};for(s.forEach(function(e){r[e.uri]=!0,i[e.uri]||k(e)}),a=n.firstChild;a;)o=a.nextSibling,a.AJAR_subject&&!r[a.AJAR_subject.uri]&&n.removeChild(a),a=o}const k=function(e){const n={"?msg":e,"?creator":t.any(e,c.foaf("maker")),"?date":t.any(e,d("created")),"?content":t.any(e,c.sioc("content"))};_(n,!0)},_=function(i,a){const o=i["?creator"],s=i["?msg"],r=i["?date"],c=i["?content"],l=r.value,p=e.createElement("tr");p.AJAR_date=l,p.AJAR_subject=s;let d=!1;for(let e=g.firstChild;e;e=e.nextSibling)if(l>e.AJAR_date&&m||l<e.AJAR_date&&!m){g.insertBefore(p,e),d=!0;break}d||g.appendChild(p);const h=e.createElement("td");p.appendChild(h),C(h,o,u.widgets.shortDate(l),s);const b=e.createElement("td");p.appendChild(b);const x=e.createElement("p");x.setAttribute("style",f+(a?"background-color: #e8ffe8;":"background-color: #white;")),b.appendChild(x),x.textContent=c.value;const y=e.createElement("td");p.appendChild(y);const A=e.createElement("button");y.appendChild(A),A.textContent="-",p.setAttribute("class","hoverControl"),A.setAttribute("class","hoverControlHide"),A.setAttribute("style","color: red;"),A.addEventListener("click",function(i){y.removeChild(A);const a=e.createElement("button");a.textContent="cancel",y.appendChild(a).addEventListener("click",function(e){y.removeChild(o),y.removeChild(a),y.appendChild(A)},!1);const o=e.createElement("button");o.textContent="Delete message",y.appendChild(o).addEventListener("click",function(e){y.removeChild(o),y.removeChild(a),function(e){const i=t.statementsMatching(e).concat(t.statementsMatching(void 0,void 0,e));v.update(i,[],function(e,t,i){t?E(n,g):w("Cant delete messages:"+i)})}(s)},!1)},!1)};g=e.createElement("table"),g.fresh=!1,h.appendChild(g),g.setAttribute("style","width: 100%;");const T=function(){const o=e.createElement("tr"),s=e.createElement("td"),l=e.createElement("td"),p=e.createElement("td");o.appendChild(s),o.appendChild(l),o.appendChild(p),o.AJAR_date="9999-01-01T00:00:00Z";const m=function(){h.setAttribute("class","pendingedit"),h.disabled=!0;const a=[],s=new Date,l=""+s.getTime(),p=r.term(s),m=t.sym(i.uri+"#Msg"+l);a.push(new r.Statement(n,c.wf("message"),m,i)),a.push(new r.Statement(m,c.sioc("content"),t.literal(h.value),i)),a.push(new r.Statement(m,d("created"),p,i)),b&&a.push(new r.Statement(m,c.foaf("maker"),b,i));v.update([],a,function(n,i,a){if(i){const e={"?msg":m,"?content":t.literal(h.value),"?date":p,"?creator":b};_(e,!1),h.value="",h.setAttribute("class",""),h.disabled=!1}else o.appendChild(u.widgets.errorMessageBlock(e,"Error writing message: "+a))})};let h,g;o.appendChild(e.createElement("br"));const x={div:l,dom:e};return a.ensureLoggedIn(x).then(t=>{b=t.me,C(s,b,"",null),h=e.createElement("textarea"),l.innerHTML="",l.appendChild(h),h.rows=3,h.setAttribute("style",f+"background-color: #eef;"),h.addEventListener("keyup",function(e){13===e.keyCode&&(e.altKey||m())},!1),p.innerHTML="",g=u.widgets.button(e,u.icons.iconBase+"noun_383448.svg","Send"),g.setAttribute("style",u.style.buttonStyle+"float: right;"),g.addEventListener("click",m,!1),p.appendChild(g)}),o}();let S;if(m?g.insertBefore(T,g.firstChild):g.appendChild(T),s.query)S=s.query;else{S=new r.Query("Messages");const e={};["msg","date","creator","content"].forEach(function(t){S.vars.push(e[t]=r.variable(t))}),S.pat.add(n,p("message"),e.msg),S.pat.add(e.msg,c.dct("created"),e.date),S.pat.add(e.msg,c.foaf("maker"),e.creator),S.pat.add(e.msg,c.sioc("content"),e.content)}return t.query(S,_,void 0,function(){g.fresh=!0}),h.refresh=function(){E(n,g)},h}},6105(e,t,n){n.d(t,{A:()=>i});const i="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjAxNTcgOS4yNzM2M0MxNC4yOTU0IDguMzQwMzEgMTUuMTI4OCA2LjgyOTg0IDE1LjEyODggNS4xMjgyQzE1LjEyODggMi4zMDA1MSAxMi44MjgzIDAgMTAuMDAwNiAwQzcuMTcyODkgMCA0Ljg3MjM4IDIuMzAwNTEgNC44NzIzOCA1LjEyODJDNC44NzIzOCA2LjgyOTg0IDUuNzA1NyA4LjM0MDMxIDYuOTg1NDcgOS4yNzM2M0MzLjgwNDIyIDEwLjQ5MSAxLjUzOTA2IDEzLjU3NTQgMS41MzkwNiAxNy4xNzk1QzEuNTM5MDYgMTguNzM0NyAyLjgwNDM0IDIwIDQuMzU5NTcgMjBIMTUuNjQxNkMxNy4xOTY4IDIwIDE4LjQ2MjEgMTguNzM0NyAxOC40NjIxIDE3LjE3OTVDMTguNDYyMSAxMy41NzU0IDE2LjE5NyAxMC40OTEgMTMuMDE1NyA5LjI3MzYzWk02LjQxMDg2IDUuMTI4MkM2LjQxMDg2IDMuMTQ4ODMgOC4wMjEyMSAxLjUzODQ4IDEwLjAwMDYgMS41Mzg0OEMxMS45OCAxLjUzODQ4IDEzLjU5MDMgMy4xNDg4MyAxMy41OTAzIDUuMTI4MkMxMy41OTAzIDcuMTA3NTggMTEuOTggOC43MTc5NyAxMC4wMDA2IDguNzE3OTdDOC4wMjEyMSA4LjcxNzk3IDYuNDEwODYgNy4xMDc1OCA2LjQxMDg2IDUuMTI4MlpNMTUuNjQxNiAxOC40NjE1SDQuMzU5NTdDMy42NTI2NiAxOC40NjE1IDMuMDc3NTQgMTcuODg2NCAzLjA3NzU0IDE3LjE3OTVDMy4wNzc1NCAxMy4zNjIgNi4xODMxNiAxMC4yNTY0IDEwLjAwMDYgMTAuMjU2NEMxMy44MTgxIDEwLjI1NjQgMTYuOTIzNyAxMy4zNjIgMTYuOTIzNyAxNy4xNzk1QzE2LjkyMzcgMTcuODg2NCAxNi4zNDg2IDE4LjQ2MTUgMTUuNjQxNiAxOC40NjE1WiIgZmlsbD0iIzMxNDE1OCIvPgo8L3N2Zz4K"},1795(e,t,n){n.d(t,{A:()=>s});var i=n(5386),a=n.n(i),o=n(4961);const s=a()(o)},8153(e,t,n){n.r(t),n.d(t,{getChunks:()=>h,lightColorHash:()=>m,manageParticipation:()=>p.manageParticipation,notepad:()=>f,notepadToHTML:()=>b,participationObject:()=>p.participationObject,recordParticipation:()=>p.recordParticipation,renderParticipants:()=>p.renderParticipants,xmlEncode:()=>g});var i=n(1795),a=n(4961),o=n(4608),s=n(52),r=n(7423),c=n(3138),l=n(675),p=n(3605);const u=c.solidLogicSingleton.store,d=(0,a.Namespace)("http://www.w3.org/ns/pim/pad#");function m(e){return e&&e.uri?"#"+(16777215&(t=e.uri,t.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0))|12632256).toString(16):"#ffffff";var t}function f(e,t,n,c,p){const d=(p=p||{}).exists,f=e.createElement("table"),h=u;if(c&&!c.uri)throw new Error("UI.pad.notepad: Invalid userid");const g=u.updater,b=(0,a.Namespace)("http://www.w3.org/ns/pim/pad#");f.setAttribute("style",l.i.notepadStyle);let v=null,x=null;if(p.statusArea){const t=p.statusArea.appendChild(e.createElement("table")).appendChild(e.createElement("tr"));v=t.appendChild(e.createElement("td")),x=t.appendChild(e.createElement("td")),v&&v.setAttribute("style",l.i.upstreamStatus),x&&x.setAttribute("style",l.i.downstreamStatus)}const y=function(t,n=!1){(0,r.Rm)(t),p.statusArea&&(n?v:x).appendChild((0,o.errorMessageBlock)(e,t,"pink"))},w=function(e){p.statusArea&&(p.statusArea.innerHTML="")},A=function(e,t,n){const a=e.subject;t=t||"";const o=l.i.baseStyle,s=l.i.headingCore,r=l.i.headingStyle,c=h.any(a,i.A.dc("author"));if(!t&&c){t="color: "+(n?"#888":"black")+"; background-color: "+m(c)+";"}let p=h.any(a,b("indent"));p=p?p.value:0;const u=p>=0?o+"text-indent: "+3*p+"em;":s+r[-1-p];e.setAttribute("style",u+t)},C=function(e){const i=e.subject;if(!i)throw new Error("No chunk for line to be deleted!");const o=h.any(void 0,b("next"),i),c=h.any(i,b("next"));if(o.sameTerm(n)&&c.sameTerm(n))return void(0,r.Rm)("You can't delete the only line.");const l=h.statementsMatching(i,void 0,void 0,t).concat(h.statementsMatching(void 0,void 0,i,t)),p=[(0,a.st)(o,b("next"),c,t)];if(i instanceof a.NamedNode){const e=i.uri.slice(-4);(0,r.Rm)("Deleting line "+e)}if(!g)throw new Error("have no updater");g.update(l,p,function(t,n,a,o){if(n){const t=e.parentNode;if(t){const e=t.previousSibling;t.parentNode&&t.parentNode.removeChild(t),e&&e.firstChild&&e.firstChild.focus()}}else if(o&&409===o.status)A(e,"color: black; background-color: #ffd;"),e.state=0,(0,s.beep)(.5,512),setTimeout(function(){R()},1e3);else{(0,r.Rm)(" removePart FAILED "+i+": "+a),(0,r.Rm)(" removePart was deleting :'"+l),A(e,"color: black; background-color: #fdd;");const t=o?o.status:" [no response field] ";y("Error "+t+" saving changes: "+String(a))}})},E=function(e,n){let o=null;e.addEventListener("keydown",function(i){if(!g)throw new Error("no updater");let o,s;switch(i.keyCode){case 13:{const t=i.shiftKey;if((0,r.Rm)("enter"),t?(s=h.any(void 0,b("next"),n),o="newlinesAfter"):(s=h.any(n,b("next")),o="newlinesBefore"),s[o]=s[o]||0,s[o]+=1,s[o]>1)return void(0,r.Rm)(" queueing newline queue = "+s[o]);(0,r.Rm)(" go ahead line before "+s[o]),_(e,t);break}case 8:if(0===e.value.length)switch((0,r.Rm)("Delete key line "+n.uri.slice(-4)+" state "+e.state),e.state){case 1:case 2:return void(e.state=4);case 3:case 4:return;case void 0:case 0:e.state=3,C(e),i.preventDefault();break;default:throw new Error("pad: Unexpected state "+e)}break;case 9:{const o=i.shiftKey?-1:1;!function(e,n,i){const o=h.statementsMatching(n,b("indent")),s=o.length?Number(o[0].object.value):0;if(s+i<-3)return;const c=s+i,l=(0,a.st)(n,b("indent"),c,t);if(!g)throw new Error("no updater");g.update(o,l,function(n,i,a){i?A(e):((0,r.Rm)("Indent change FAILED '"+c+"' for "+t+": "+a),A(e,"color: black; background-color: #fdd;"),g.requestDownstreamAction(t,R))})}(e,n,o),i.preventDefault();break}case 27:(0,r.Rm)("escape"),g.requestDownstreamAction(t,R),i.preventDefault();break;case 38:e.parentNode.previousSibling&&(e.parentNode.previousSibling.firstChild.focus(),i.preventDefault());break;case 40:e.parentNode.nextSibling&&(e.parentNode.nextSibling.firstChild.focus(),i.preventDefault())}});const c=function(e){const n=e.subject;A(e,void 0,!0);const o=h.any(n,i.A.sioc("content")).value,l=[(0,a.st)(n,i.A.sioc("content"),o,t)];let p;e.value&&(p=[(0,a.st)(n,i.A.sioc("content"),e.value,t)]);const u=e.value;if(e.lastSent&&o!==e.lastSent&&console.warn("Out of order, last sent expected '"+o+"' but found '"+e.lastSent+"'"),e.lastSent=u,!g)throw new Error("no updater");g.update(l,p,function(n,i,a,l){if(i)w(),A(e),(0,r.Rm)(" Patch ok '"+o+"' -> '"+u+"' "),4===e.state?(e.state=3,C(e)):3===e.state||(2===e.state?(e.state=1,c(e)):e.state=0);else if((0,r.Rm)(" patch FAILED "+l.status+" for '"+o+"' -> '"+u+"': "+a),409===l.status)A(e,"color: black; background-color: #fdd;"),e.state=0,(0,s.beep)(.5,512),setTimeout(function(){g.requestDownstreamAction(t,R)},1e3);else{A(e,"color: black; background-color: #fdd;");const t=l?.status;t&&502!==t&&503!==t?(e.state=0,y(" Error "+t+" sending data: "+a,!0),(0,s.beep)(1,128)):(e.lastSent=void 0,e.state=0,setTimeout(()=>{0!==e.state&&void 0!==e.state||(e.state=1,c(e))},2e3))}})};e.addEventListener("input",function(t){switch(A(e,void 0,!0),(0,r.Rm)("Input event state "+e.state+" value '"+e.value+"'"),e.state){case 3:case 4:case 2:return;case 1:return void(e.state=2);case 0:case void 0:null!==o&&clearTimeout(o),o=setTimeout(()=>{o=null,0!==e.state&&void 0!==e.state||(e.state=1,c(e))},400)}})},k=function(t,n,a){let o=h.any(n,i.A.sioc("content"));o=o?o.value:"";const s=e.createElement("tr");a?f.insertBefore(s,t):t&&t.nextSibling?f.insertBefore(s,t.nextSibling):f.appendChild(s);const l=s.appendChild(e.createElement("input"));return l.subject=n,l.setAttribute("type","text"),l.value=o,c?(A(l,""),E(l,n)):(A(l,"color: #222; background-color: #fff"),(0,r.Rm)("Note can't add listeners - not logged in")),l},_=function(e,s){const l=u;let p,d,m,f,h,v=0,x=null;e?("input"!==e.tagName.toLowerCase()&&(0,r.Rm)("return pressed when current document is: "+e.tagName),p=e.subject,v=l.any(p,b("indent")),v=v?Number(v.value):0,s?(d=l.any(void 0,b("next"),p),m=p,f=d,x="newlinesAfter"):(d=p,m=l.any(p,b("next")),f=m,x="newlinesBefore"),h=e.parentNode):(d=n,m=n,h=void 0);const y=(0,o.newThing)(t),w=y.uri.slice(-4),C=[(0,a.st)(d,b("next"),m,t)],E=[(0,a.st)(d,b("next"),y,t),(0,a.st)(y,b("next"),m,t),(0,a.st)(y,i.A.dc("author"),c,t),(0,a.st)(y,i.A.sioc("content"),"",t)];if(v>0&&E.push((0,a.st)(y,b("indent"),v,t)),(0,r.Rm)(" Fresh chunk "+w+" proposed"),!g)throw new Error("no updater");g.update(C,E,function(e,t,n,i){if(t){const e=k(h,y,s);A(e),e.focus(),x&&((0,r.Rm)(" Fresh chunk "+w+" updated, queue = "+f[x]),f[x]-=1,f[x]>0&&((0,r.Rm)(" Implementing queued newlines = "+m.newLinesBefore),_(e,s)))}else(0,r.Rm)(" ERROR writing new line "+w+": "+n)})},T=function(){const e={};let t=0;function a(e){y(e),t++}if(!h.the(n,b("next")))return a("No initial next pointer"),!1;let o,s=n;for(;o=h.the(s,b("next")),o||a("No next pointer from "+s),!o.sameTerm(n);){s=o;const t=o.uri.split("#")[1];if(e[o.uri])return a("Loop!"),!1;e[o.uri]=!0;let n=h.each(o,b("next")).length;1!==n&&a("Should be 1 not "+n+" next pointer for "+t),n=h.each(o,b("indent")).length,n>1&&a("Should be 0 or 1 not "+n+" indent for "+t),n=h.each(o,i.A.sioc("content")).length,1!==n&&a("Should be 1 not "+n+" contents for "+t),n=h.each(o,i.A.dc("author")).length,1!==n&&a("Should be 1 not "+n+" author for "+t);h.statementsMatching(void 0,i.A.sioc("contents")).forEach(function(t){e[t.subject.value]||a("Loose chunk! "+t.subject.value)})}return!t},S=function(){if(1!==h.each(n,b("next")).length){const e="Pad: Inconsistent data - NEXT pointers: "+h.each(n,b("next")).length;return(0,r.Rm)(e),void(p.statusArea&&(p.statusArea.textContent+=e))}let e;const t=[];for(let e=h.the(n,b("next"));!e.sameTerm(n);e=h.the(e,b("next")))for(let n=0;n<f.children.length;n++){const i=f.children[n];i.firstChild&&i.firstChild.subject.sameTerm(e)&&(t[e.uri]=i.firstChild)}for(let n=f.children.length-1;n>=0;n--)e=f.children[n],t[e.firstChild.subject.uri]||f.removeChild(e);e=f.firstChild;for(let a=h.the(n,b("next"));!a.sameTerm(n);a=h.the(a,b("next"))){const n=h.any(a,i.A.sioc("content")).value;if(e&&t[a.uri]){const t=e.firstChild;n!==t.value&&(t.value=n),A(t),t.state=0,delete t.lastSent,e=e.nextSibling}else k(e,a,!0)}},L=function(e){if(e.refresh)e.refresh();else for(let t=0;t<e.children.length;t++)L(e.children[t])};let j=!1;const R=function(){if(j)return void(0,r.Rm)(" Already reloading - stop");j=!0;let e=1e3;const n=function(){if((0,r.Rm)("try reload - timeout = "+e),!g)throw new Error("no updater");g.reload(g.store,t,function(i,a,o){j=!1,i?((0,r.Rm)(" reloaded OK"),w(),T()?L(f):y("CONSISTENCY CHECK FAILED")):0===o.status?(y("Network error refreshing the pad. Retrying in "+e/1e3),j=!0,e*=2,setTimeout(n,e)):y("Error "+o.status+"refreshing the pad:"+a+". Stopped. "+t)})};n()};if(f.refresh=S,f.reloadAndSync=R,c||(0,r.Rm)("Warning: must be logged in for pad to be edited"),d)(0,r.Rm)("Existing pad."),T()?(S(),h.holds(n,b("next"),n)&&_()):(0,r.Rm)(f.textContent="Inconsistent data. Abort");else{(0,r.Rm)("No pad exists - making new one.");const e=[(0,a.st)(n,i.A.rdf("type"),b("Notepad"),t),(0,a.st)(n,i.A.dc("author"),c,t),(0,a.st)(n,i.A.dc("created"),new Date,t),(0,a.st)(n,b("next"),n,t)];if(!g)throw new Error("no updater");g.update([],e,function(e,t,n){t?((0,r.Rm)("Initial pad created"),_()):y(n||"")})}return f}function h(e,t){const n=[];for(let i=t.the(e,d("next"));!i.sameTerm(e);i=t.the(i,d("next")))n.push(i);return n}function g(e){return e.replace("&","&").replace("<","<").replace(">",">")}function b(e,t){const n=h(e,t);let a="<html>\n <head>\n";const o=t.anyValue(e,i.A.dct("title"));o&&(a+=` <title>${g(o)}</title>\n`),a+=" </head>\n <body>\n";let s=0;function r(e){for(;s>e;s--)a+="</ul>\n"}return n.forEach(e=>{const n=t.anyJS(e,d("indent")),o=t.anyJS(e,i.A.sioc("content"));if(!o)return;const c=g(o);if(n<0){r(0);const e=n>=-3?4+n:1;a+=`\n<h${e}>${c}</h${e}>\n`}else n>0?(r(n),function(e){for(;s<e;s++)a+="<ul>\n"}(n),a+=`<li>${c}</li>\n`):(r(n),a+=`<p>${c}</p>\n`)}),r(0),a+=" </body>\n</html>\n",a}},3605(e,t,n){n.r(t),n.d(t,{manageParticipation:()=>g,participationObject:()=>f,recordParticipation:()=>h,renderParticipants:()=>m});var i=n(7423),a=n(4961),o=n(1795),s=n(4608),r=n(52),c=n(8153),l=n(675),p=n(4762),u=n(3138);const d=u.solidLogicSingleton.store;function m(e,t,n,a,c,u){t.setAttribute("style",l.i.participantsStyle);const m=function(n){const i=d.any(n,o.A.wf("participant"));let a;if(!i)return a=e.createElement("tr"),a.textContent="???",a;const r=d.anyValue(n,o.A.ui("backgroundColor"))||p.A.participationDefaultBackground,c=e.createElement("div");c.setAttribute("style",l.i.participantsBlock),c.style.backgroundColor=r,a=(0,s.personTR)(e,null,i,u),t.appendChild(a);const m=e.createElement("td");return m.setAttribute("style",l.i.personTableTD),m.appendChild(c),a.insertBefore(m,a.firstChild),a},f=function(){const e=d.each(a,o.A.wf("participation")).map(function(e){return(0,i.Rm)("in participants"),[d.anyValue(e,o.A.cal("dtstart"))||"9999-12-31",e]});e.sort();const n=e.map(function(e){return e[1]});(0,r.syncTableToArray)(t,n,m)};return t.refresh=f,f(),t}function f(e,t,n){return new Promise(function(r,l){if(!n)throw new Error("No user id");const p=d.each(e,o.A.wf("participation")).filter(function(e){return d.holds(e,o.A.wf("participant"),n)});if(p.length>1){const e=[];for(const t of p){const n=d.anyValue(t,o.A.cal("dtstart"));n&&e.push([n,t])}e.sort(),i.R8("Multiple participation objects, picking earliest, in "+t),r(e[0][1])}if(p.length)r(p[0]);else{const i=(0,s.newThing)(t),p=[(0,a.st)(e,o.A.wf("participation"),i,t),(0,a.st)(i,o.A.wf("participant"),n,t),(0,a.st)(i,o.A.cal("dtstart"),new Date,t),(0,a.st)(i,o.A.ui("backgroundColor"),(0,c.lightColorHash)(n),t)];d.updater.update([],p,function(e,t,n){t?r(i):l(new Error("Error recording your participation: "+n))}),r(i)}})}function h(e,t,n){const r=u.authn.currentUser();if(!r)return;const l=d.each(e,o.A.wf("participation")).filter(function(e){return d.holds(e,o.A.wf("participant"),r)});if(l.length>1)throw new Error("Multiple records of your participation");if(l.length)return l[0];{if(!d.updater.editable(t))return i.Rm("Not recording participation, as no write access as "+r+" to "+t),null;const l=(0,s.newThing)(t),p=[(0,a.st)(e,o.A.wf("participation"),l,t),(0,a.st)(l,o.A.wf("participant"),r,t),(0,a.st)(l,o.A.cal("dtstart"),new Date,t),(0,a.st)(l,o.A.ui("backgroundColor"),(0,c.lightColorHash)(r),t)];return d.updater.update([],p,function(e,t,i){if(!t)throw new Error("Error recording your participation: "+i);n&&n.refresh&&n.refresh()}),l}}function g(e,t,n,i,a,o){const r=e.createElement("table");t.appendChild(r),m(e,r,0,i,0,o);try{h(i,n,r)}catch(n){t.appendChild((0,s.errorMessageBlock)(e,"Error recording your participation: "+n))}return r}},5148(e,t,n){n.r(t),n.d(t,{get:()=>d,getPreferencesForClass:()=>v,recordPersonalDefaults:()=>h,recordSharedPreferences:()=>f,renderPreferencesForm:()=>g,set:()=>m,value:()=>u});var i=n(4961),a=n(3138),o=n(7423),s=n(967),r=n(1795),c=n(3605),l=n(4608);const p=a.store,u=[];function d(e){return u[e]}function m(e,t){if("string"!=typeof t)throw o.Rm("Non-string value of preference "+e+": "+t),new Error("Non-string value of preference "+e+": "+t);this.value[e]=t}function f(e,t){return new Promise(function(n,a){const s=p.any(e,r.A.ui("sharedPreferences"));if(s)t.sharedPreferences=s,n(t);else{p.updater.editable(e.doc())||(o.Rm(` Cant make shared preferences, may not change ${e.doc}`),n(t));const s=i.sym(e.doc().uri+"#SharedPreferences"),c=[i.st(e,r.A.ui("sharedPreferences"),s,e.doc())];o.Rm("Creating shared preferences "+s),p.updater.update([],c,function(e,i,o){i?(t.sharedPreferences=s,n(t)):a(new Error("Error creating shared prefs: "+o))})}})}function h(e,t){return new Promise(function(n,a){(0,s.ensureLoadedPreferences)(t).then(t=>{if(!t.preferencesFile)return void o.Rm("Not doing private class preferences as no access to preferences file. "+t.preferencesFileError);const s=p.each(null,r.A.solid("forClass"),e,t.preferencesFile);let c,u,d=[];if(s.length){if(s.forEach(e=>{c=c||p.any(e,r.A.solid("personalDefaults"))}),c)return t.personalDefaults=c,void n(t);c=l.newThing(t.preferencesFile),u=s[0]}else u=l.newThing(t.preferencesFile),d=[i.st(u,r.A.rdf("type"),r.A.solid("TypeRegistration"),t.preferencesFile),i.st(u,r.A.solid("forClass"),e,t.preferencesFile)];c=l.newThing(t.preferencesFile),d.push(i.st(u,r.A.solid("personalDefaults"),c,t.preferencesFile)),p.updater.update([],d,function(i,o,s){o?(t.personalDefaults=c,n(t)):a(new Error("Setting preferences for "+e+": "+s))})},e=>{a(e)})})}function g(e,t,n,i){const a=i.dom.createElement("div");return c.participationObject(e,e.doc(),i.me).then(o=>{const s=i.dom;function r(e){a.appendChild(s.createElement("h5")).textContent=e}r("My view of this "+i.noun),l.appendForm(s,a,{},o,n,e.doc(),(e,t)=>{e||l.complain(i,t)}),r("Everyone's view of this "+i.noun),f(e,i).then(i=>{const o=i.sharedPreferences;l.appendForm(s,a,{},o,n,e.doc(),(e,t)=>{e||l.complain(i,t)}),r("My default view of any "+i.noun),h(t,i).then(e=>{l.appendForm(s,a,{},e.personalDefaults,n,e.preferencesFile,(t,n)=>{t||l.complain(e,n)})},e=>{l.complain(i,e)})})},e=>{a.appendChild(l.errorMessageBlock(i.dom,e))}),a}function b(e){return e.datatype?e.datatype.equals(r.A.xsd("boolean"))?"1"===e.value:e.datatype.equals(r.A.xsd("dateTime"))||e.datatype.equals(r.A.xsd("date"))?new Date(e.value):e.datatype.equals(r.A.xsd("integer"))||e.datatype.equals(r.A.xsd("float"))||e.datatype.equals(r.A.xsd("decimal"))?Number(e.value):e.value:e}function v(e,t,n,i){return new Promise(function(a,o){f(e,i).then(i=>{const s=i.sharedPreferences;if(i.me)c.participationObject(e,e.doc(),i.me).then(e=>{h(t,i).then(t=>{const i=[],o=t.personalDefaults;n.forEach(t=>{const n=p.any(e,t)||p.any(s,t)||p.any(o,t);n&&(i[t.uri]=b(n))}),a(i)},o)},o);else{const e=[];n.forEach(t=>{const n=p.any(s,t);n&&(e[t.uri]=b(n))}),a(e)}})})}},9417(e,t,n){n.d(t,{A:()=>i});const i={authEndpoint:"",fallbackAuthEndpoint:"https://databox.me/",signupEndpoint:"https://solidproject.org/get_a_pod",signupWindowHeight:600,signupWindowWidth:1024,key:"",cert:""}},6247(e,t,n){n.d(t,{l:()=>a});var i=n(9417);function a(e){this.config=e||i.A}a.prototype.listen=function(){return new Promise(function(e,t){const n=window.addEventListener?"addEventListener":"attachEvent";(0,window[n])("attachEvent"===n?"onmessage":"message",function(n){const i=n.data;if("User:"===i.slice(0,5)){const n=i.slice(5,i.length);return n&&n.length>0&&"http"===n.slice(0,4)?e(n):t(n)}},!0)})},a.prototype.signup=function(e){e=e||this.config.signupEndpoint;const t=this.config.signupWindowWidth,n=this.config.signupWindowHeight,i=window.screen.width/2-(t/2+10),a=window.screen.height/2-(n/2+50),o=e+"?origin="+encodeURIComponent(window.location.origin),s="resizable,scrollbars,status,width="+t+",height="+n+",left="+i+",top="+a;window.open(o,"Solid signup",s);const r=this;return new Promise(function(e){r.listen().then(function(t){return e(t)})})}},675(e,t,n){n.d(t,{i:()=>a});var i=n(4762);const a={checkboxStyle:"color: black; font-size: 100%; padding-left: 0.5 em; padding-right: 0.5 em;",checkboxInputStyle:"font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; border-radius:0.2em; margin: 0.1em;",fieldLabelStyle:"color: #3B5998; text-decoration: none;",formSelectStyle:"background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;",textInputStyle:"background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;",textInputStyleUneditable:"background-color: white; padding: 0.5em; border: .05em solid white; border-radius:0.2em; font-size: 100%; margin:0.4em;",buttonStyle:"background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;",commentStyle:"padding: 0.7em; border: none; font-size: 100%; white-space: pre-wrap;",iconStyle:"width: 3em; height: 3em; margin: 0.1em; border-radius: 1em;",smallButtonStyle:"margin: 0.2em; width: 1em; height:1em;",classIconStyle:"width: 3em; height: 3em; margin: 0.1em; border-radius: 0.2em; border: 0.1em solid green; padding: 0.2em; background-color: #efe;",confirmPopupStyle:"padding: 0.7em; border-radius: 0.2em; border: 0.1em solid orange; background-color: white; box-shadow: 0.5em 0.9em #888;",messageBodyStyle:"white-space: pre-wrap; width: 99%; font-size:100%; border: 0.07em solid #eee; border-radius:0.2em; padding: .3em 0.5em; margin: 0.1em;",pendingeditModifier:"color: #bbb;",personaBarStyle:"width: 100%; height: 4em; background-color: #eee; vertical-align: middle;",searchInputStyle:"border: 0.1em solid #444; border-radius: 0.2em; width: 100%; font-size: 100%; padding: 0.1em 0.6em; margin 0.2em;",autocompleteRowStyle:"border: 0.2em solid straw;",signInAndUpButtonStyle:"padding: 1em; border-radius:0.2em; font-size: 100%;",headerBannerLoginInput:"margin: 0.75em 0 0.75em 0.5em !important; padding: 0.5em !important;",signUpBackground:"background-color: #eef;",signInBackground:"background-color: #efe;",heading1Style:"font-size: 180%; font-weight: bold; color: #888888; padding: 0.5em; margin: 0.7em 0.0m;",heading2Style:"font-size: 130%; font-weight: bold; color: #888888; padding: 0.4em; margin: 0.7em 0.0em;",heading3Style:"font-size: 120%; font-weight: bold; color: #888888; padding: 0.3em; margin: 0.7em 0.0em;",heading4Style:"font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;",formHeadingStyle:"font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;",formTextInput:"font-size: 100%; margin: 0.1em; padding: 0.1em;",formGroupStyle:[`padding-left: 0em; border: 0.0em solid ${i.A.formBorderColor}; border-radius: 0.2em;`,`padding-left: 2em; border: 0.05em solid ${i.A.formBorderColor}; border-radius: 0.2em;`,`padding-left: 2em; border: 0.1em solid ${i.A.formBorderColor}; border-radius: 0.2em;`,`padding-left: 2em; border: 0.2em solid ${i.A.formBorderColor}; border-radius: 0.2em;`],formFieldLabelStyle:`color: ${i.A.lowProfileLinkColor}; text-decoration: none;`,formFieldNameBoxStyle:`padding: 0.3em; vertical-align: middle; width:${i.A.formFieldNameBoxWidth};`,multilineTextInputStyle:"font-size:100%; white-space: pre-wrap; background-color: #eef; border: 0.07em solid gray; padding: 1em 0.5em; margin: 1em 1em;",renderAsDivStyle:"display: flex; align-items: center; justify-content: space-between; height: 2.5em; padding: 1em;",imageDivStyle:"width:2.5em; padding:0.5em; height: 2.5em;",linkDivStyle:"width:2em; padding:0.5em; height: 4em;",aclControlBoxContainer:"margin: 1em;",aclControlBoxHeader:"font-size: 120%; margin: 0 0 1rem;",aclControlBoxStatus:"display: none; margin: 1rem 0;",aclControlBoxStatusRevealed:"display: block;",aclGroupContent:"maxWidth: 650;",accessGroupList:"display: grid; grid-template-columns: 1fr; margin: 1em; width: 100%;",accessGroupListItem:"display: grid; grid-template-columns: 100px auto 30%;",defaultsController:"display: flex;",defaultsControllerNotice:"color: #888; flexGrow: 1; fontSize: 80%;",bigButton:"background-color: white; border: 0.1em solid #888; border-radius: 0.3em; max-width: 50%; padding-bottom: 1em; padding-top: 1em;",group:"color: #888;",group1:"color: green;",group2:"color: #cc0;",group3:"color: orange;",group5:"color: red;",group9:"color: blue;",group13:"color: purple;",trustedAppAddApplicationsTable:"background-color: #eee;",trustedAppCancelButton:"float: right;",trustedAppControllerI:"border-color: orange; border-radius: 1em; border-width: 0.1em;",temporaryStatusInit:"background: green;",temporaryStatusEnd:"background: transparent; transition: background 5s linear;",headerUserMenuLink:"background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none;",headerUserMenuLinkHover:"background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%);",headerUserMenuTrigger:"background: none; border: 0; cursor: pointer; width: 60px; height: 60px;",headerUserMenuTriggerImg:"border-radius: 50%; height: 56px; width: 28px !important;",headerUserMenuButton:"background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%;",headerUserMenuButtonHover:"background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%);",headerUserMenuList:"list-style: none; margin: 0; padding: 0;",headerUserMenuListDisplay:"list-style: none; margin: 0; padding: 0; display:true;",headerUserMenuNavigationMenu:"background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: true;",headerUserMenuNavigationMenuNotDisplayed:"background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: none;",headerUserMenuListItem:"border-bottom: solid 1px #000000;",headerUserMenuPhoto:"border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: cover; height: 50px; width: 50px;",headerBanner:"box-shadow: 0px 1px 4px #000000; display: flex; justify-content: space-between; padding: 0 1.5em; margin-bottom: 4px;",headerBannerLink:"display: block;",headerBannerRightMenu:"display: flex;",headerBannerLogin:"margin-left: auto;",allChildrenVisible:"display:true;",headerBannerUserMenu:"border-left: solid 1px #000000; margin-left: auto;",headerBannerHelpMenu:"border-left: solid 1px #000000; margin-left: auto;",headerBannerIcon:"background-size: 65px 60px !important; height: 60px !important; width: 65px !important;",footer:"border-top: solid 1px $divider-color; font-size: 0.9em; padding: 0.5em 1.5em;",primaryButton:"background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;",primaryButtonHover:"background-color: #9f7dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;",primaryButtonNoBorder:"background-color: #ffffff; color: #7c4dff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;",primaryButtonNoBorderHover:"background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;",secondaryButton:"background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;",secondaryButtonHover:"background-color: #37cde6; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;",secondaryButtonNoBorder:"background-color: #ffffff; color: #01c9ea; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;",secondaryButtonNoBorderHover:"background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;",controlStyle:`border-radius: 0.5em; margin: 0.8em; width:${i.A.mediaModuleCanvasWidth}; height:${i.A.mediaModuleCanvasHeight};`,dragEvent:"background-color: #ccc; border: 0.25em dashed black; border-radius: 0.3em;",dropEvent:"background-color: white; border: 0em solid black;",restoreStyle:"background-color: white;",errorCancelButton:"width: 2em; height: 2em; align: right;",errorMessageBlockStyle:"margin: 0.1em; padding: 0.5em; border: 0.05em solid gray; color:black;",notepadStyle:"padding: 1em; overflow: auto; resize: horizontal; min-width: 40em;",upstreamStatus:"width: 50%;",downstreamStatus:"width: 50%;",baseStyle:"font-size: 100%; font-family: monospace; width: 100%; border: none; white-space: pre-wrap;",headingCore:"font-family: sans-serif; font-weight: bold; border: none;",headingStyle:["font-size: 110%; padding-top: 0.5em; padding-bottom: 0.5em; width: 100%;","font-size: 120%; padding-top: 1em; padding-bottom: 1em; width: 100%;","font-size: 150%; padding-top: 1em; padding-bottom: 1em; width: 100%;"],participantsStyle:"margin: 0.8em;",participantsBlock:"height: 1.5em; width: 1.5em; margin: 0.3em; border 0.01em solid #888;",personTableTD:"vertical-align: middle;",tabsNavElement:"margin: 0;",tabsRootElement:"display: flex; height: 100%; width: 100%;",tabsMainElement:"margin: 0; width:100%; height: 100%;",tabContainer:"list-style-type: none; display: flex; height: 100%; width: 100%; margin: 0; padding: 0;",makeNewSlot:"background: none; border: none; font: inherit; cursor: pointer;",ellipsis:"position: absolute; right: 0; bottom: 0; width: 20%; background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit;",setStyle:function(e,t){e.style=a[t]}}},4762(e,t,n){n.d(t,{A:()=>i});const i={highlightColor:"#7C4DFF",formBorderColor:"#888888",formHeadingColor:"#888888",lowProfileLinkColor:"#3B5998",formFieldNameBoxWidth:"8em",mediaModuleCanvasWidth:"640",mediaModuleCanvasHeight:"480",textInputSize:20,tabBorderRadius:"0.2em",textInputBackgroundColor:"#eef",textInputBackgroundColorUneditable:"#fff",textInputColor:"#000",textInputColorPending:"#888",defaultErrorBackgroundColor:"#fee",participationDefaultBackground:"white",basicMaxLength:"4096"}},5561(e,t,n){n.d(t,{i:()=>i});
|
|
2
|
+
/**
|
|
3
|
+
* @version IconicMultiSelect v0.7.0
|
|
4
|
+
* @licence MIT
|
|
5
|
+
*/
|
|
6
|
+
const i={multiselect__container:"\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n background-color: #fff;\n border-radius: 2px;\n -webkit-box-shadow: 0 1px 3px 0 #d1d1d2, 0 0 0 1px #d1d1d2;\n box-shadow: 0 1px 3px 0 #d1d1d2, 0 0 0 1px #d1d1d2;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n min-height: 36px;\n padding: 4px 8px 0 8px;\n position: relative;\n width: 354px;\n margin-bottom: 5px;\n font-size: 100%\n ",multiselect__wrapper:"\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n height: 100%;\n width: 100%;\n ",multiselect__clear_btn:"\n cursor: pointer;\n align-items: center;\n margin-bottom: 4px;\n margin-left: 4px;\n ",multiselect__options:"\n background-color: #f6f6f6;\n border-radius: 2px;\n left: 0;\n max-height: 0;\n overflow: hidden;\n position: absolute;\n top: calc(100% + 3px);\n z-index: 9999;\n width: 100%;\n opacity: 0;\n transition: max-height 0.1s ease;\n ",multiselect__options_visible:"\n background-color: #f6f6f6;\n border-radius: 2px;\n left: 0;\n max-height: 0;\n overflow: hidden;\n position: absolute;\n top: calc(100% + 3px);\n z-index: 9999;\n width: 100%;\n opacity: 0;\n transition: max-height 0.1s ease;\n max-height: 200px;\n -webkit-box-shadow: 0 1px 3px 0 #d1d1d2, 0 0 0 1px #d1d1d2;\n box-shadow: 0 1px 3px 0 #d1d1d2, 0 0 0 1px #d1d1d2;\n opacity: 1;\n transition: max-height 0.2s ease;\n ",multiselect__options_ul:"\n list-style: none;\n margin: 0;\n padding: 2px 0;\n max-height: 200px;\n overflow: auto;\n ",multiselect__options_ul_li:"\n cursor: pointer;\n padding: 4px 8px;\n ",multiselect__options_ul_li_hover:"\n background-color: #dedede;\n ",multiselect__options_ul_p_multiselect__options_no_results:"\n margin: 0;\n padding: 8px;\n text-align: center;\n ",multiselect__options_ul_p_multiselect__options_no_data:"\n margin: 0;\n padding: 8px;\n text-align: center;\n ",multiselect__options_ul_li_multiselect__options_selected:"\n background-color: #656565;\n color: #fff;\n ",multiselect__options_ul_li_multiselect__options_selected_hover:"\n background-color: #656565;\n ",multiselect__options_ul_li_arrow_selected:"\n border: 2px solid rgba(101, 101, 101, 0.5);\n ",multiselect__selected:"\n background-color: #656565;\n border-radius: 2px;\n color: #fff;\n margin-bottom: 4px;\n margin-right: 4px;\n padding: 4px 8px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n ",multiselect__selected_multiselect__remove_btn:"\n cursor: pointer;\n display: flex;\n margin-left: 6px;\n ",multiselect__input:"\n border: none;\n -ms-flex-preferred-size: 40%;\n flex-basis: 40%;\n -webkit-box-flex: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n height: 5px; \n margin-bottom: 4px;\n min-width: 40%;\n outline: none; \n ",setStyle:function(e,t){e.style=i[t]}}},2174(e,t,n){n.d(t,{I:()=>d});var i=n(7423),a=n(3378),o=n(3138),s=n(4158),r=n(1795),c=n(4961),l=n(52),p=n(4608);const u={icons:a.Pt,log:s,ns:r.A,utils:l,widgets:p};function d(e,t){const n=t.sourceDocument,a=t.tableClass,s=t.query,r=u.ns,p=o.store,d={},m={"http://www.w3.org/2002/07/owl#sameAs":!0,"http://www.w3.org/1999/02/22-rdf-syntax-ns#type":!0},f={"http://www.w3.org/2001/XMLSchema#decimal":!0,"http://www.w3.org/2001/XMLSchema#float":!0,"http://www.w3.org/2001/XMLSchema#double":!0,"http://www.w3.org/2001/XMLSchema#integer":!0,"http://www.w3.org/2001/XMLSchema#nonNegativeInteger":!0,"http://www.w3.org/2001/XMLSchema#positiveInteger":!0,"http://www.w3.org/2001/XMLSchema#nonPositiveInteger":!0,"http://www.w3.org/2001/XMLSchema#negativeInteger":!0,"http://www.w3.org/2001/XMLSchema#long":!0,"http://www.w3.org/2001/XMLSchema#int":!0,"http://www.w3.org/2001/XMLSchema#short":!0,"http://www.w3.org/2001/XMLSchema#byte":!0,"http://www.w3.org/2001/XMLSchema#unsignedLong":!0,"http://www.w3.org/2001/XMLSchema#unsignedInt":!0,"http://www.w3.org/2001/XMLSchema#unsignedShort":!0,"http://www.w3.org/2001/XMLSchema#unsignedByte":!0},h={"http://www.w3.org/2001/XMLSchema#dateTime":!0,"http://www.w3.org/2001/XMLSchema#date":!0},g={"http://xmlns.com/foaf/0.1/Image":!0,"http://purl.org/dc/terms/Image":!0},b=t.keyVariable||"?_row";let v,x,y,w,A=0,C=null,E=null;const k=e.createElement("div");k.className="tableViewPane",k.appendChild(function(){const t=e.createElement("table");t.setAttribute("class","toolbar");const n=e.createElement("tr");return y=e.createElement("td"),n.appendChild(y),w=e.createElement("td"),n.appendChild(w),t.appendChild(n),t}());const _=e.createElement("div");let T;if(k.appendChild(_),k.refresh=function(){X(T.query,T.logicalRows,T.columns,T)},s)T=ne(s),_.appendChild(T);else{const t=function(){let e,t;const i=function(){const e={},t=p.statementsMatching(void 0,u.ns.rdf("type"),a,n),i={};for(let n=0;n<t.length;++n){const a=t[n].object;if("NamedNode"!==a.termType)continue;const o=D(e,a);a.uri in i||(i[a.uri]=[]),i[a.uri].push(t[n].subject),o.addUse()}return[i,e]}();e=i[0],t=i[1];for(const n in e){const i=e[n];M(t[n],i)}const o=new R(null);return[o,B(t)]}();v=t[0],x=t[1],a||y.appendChild(function(t,n){const i=e.createElement("div");i.appendChild(e.createTextNode("Select type: "));const a=e.createElement("select");a.appendChild(I("All types","null"));for(const e in n)a.appendChild(I(n[e].getLabel(),e));return a.addEventListener("click",function(){let e;e="null"===a.value?t:n[a.value],L(e)},!1),i.appendChild(a),i}(v,x)),E=function(e){let t,n=-1,i=null;for(t in e){const a=e[t];a.useCount>n&&(i=a,n=a.useCount)}return i}(x),L(E||v)}return k;function S(e){const t=new c.Query,n=p.variable(b.slice(1));return function(e,t){const n=t.getColumns();for(let t=0;t<n.length;++t){const i=p.variable("_col"+t);e.vars.push(i),n[t].setVariable(i)}}(t,e),function(e,t,n){let i=n.type;i||(i=p.variable("_any")),e.pat.add(t,u.ns.rdf("type"),i)}(t,n,e),function(e,t,n){const i=n.getColumns();for(let n=0;n<i.length;++n){const a=i[n],o=p.formula();o.add(t,a.predicate,a.getVariable()),e.pat.optional.push(o)}}(t,n,e),t}function L(t){j(w),w.appendChild(function(t){const n=e.createElement("div"),i=t.getUnusedColumns();if(i.sort(function(e,t){const n=e.sortKey(),i=t.sortKey();return(n>i)-(n<i)}),i.length>0){n.appendChild(e.createTextNode("Add column: "));const a=e.createElement("select");a.appendChild(I("","-1"));for(let e=0;e<i.length;++e){const t=i[e];a.appendChild(I(t.getLabel(),""+e))}n.appendChild(a),a.addEventListener("click",function(){const e=Number(a.value);e>=0&&(t.addColumn(i[e]),L(t))},!1)}return n}(t));!function(e,t){C&&(C.running=!1);const n=ne(e,t);j(_),_.appendChild(n),C=e}(S(t),t)}function j(e){for(;e.childNodes.length>0;)e.removeChild(e.childNodes[0])}function R(e){this.type=e,this.columns=null,this.allColumns=[],this.useCount=0,this.getAllColumns=function(){return this.allColumns},this.getColumns=function(){if(!this.columns){const e=this.getAllColumns();this.columns=e.slice(0,7)}return this.columns},this.getUnusedColumns=function(){const e=this.getAllColumns(),t=this.getColumns(),n=[];for(let i=0;i<e.length;++i)-1===t.indexOf(e[i])&&n.push(e[i]);return n},this.addColumn=function(e){this.columns.push(e)},this.removeColumn=function(e){this.columns=this.columns.filter(function(t){return t!==e})},this.getLabel=function(){return l.label(this.type)},this.addUse=function(){this.useCount+=1}}function N(){this.useCount=0,this.checkedAnyValues=!1,this.possiblyLiteral=!0,this.possiblyNumber=!0,this.constraints=[],this.checkValue=function(e){const t=e.termType;if(this.possiblyLiteral&&"Literal"!==t&&"NamedNode"!==t)this.possiblyNumber=!1,this.possiblyLiteral=!1;else if(this.possiblyNumber)if("Literal"!==t)this.possiblyNumber=!1;else{e.value.match(/^-?\d+(\.\d*)?$/)||(this.possiblyNumber=!1)}this.checkedAnyValues=!0},this.getVariable=function(){return this.variable},this.setVariable=function(e){this.variable=e},this.getKey=function(){return this.variable.toString()},this.addUse=function(){this.useCount+=1},this.getHints=function(){return t&&t.hints&&this.variable&&t.hints[this.variable.toNT()]?t.hints[this.variable.toNT()]:{}},this.getLabel=function(){return this.getHints().label?this.getHints().label:this.predicate?this.predicate.sameTerm(r.rdf("type"))&&this.superClass?l.label(this.superClass,!0):l.label(this.predicate):this.variable?this.variable.toString():"unlabeled column?"},this.setPredicate=function(e,t,n){t?(this.inverse=e,this.constraints=this.constraints.concat(p.each(e,u.ns.rdfs("domain"))),e.sameTerm(r.rdfs("subClassOf"))&&"NamedNode"===n.termType&&(this.superClass=n,this.alternatives=p.each(void 0,r.rdfs("subClassOf"),n))):(this.predicate=e,this.constraints=this.constraints.concat(p.each(e,u.ns.rdfs("range"))))},this.getConstraints=function(){return this.constraints},this.filterFunction=function(){return!0},this.sortKey=function(){return this.getLabel().toLowerCase()},this.isImageColumn=function(){for(let e=0;e<this.constraints.length;e++)if(this.constraints[e].uri in g)return!0;return!1}}function B(e,t){const n=[];for(const i in e){const a=e[i];t&&!t(i,a)||n.push(a)}return n}function I(t,n){const i=e.createElement("option");return i.setAttribute("value",n),i.appendChild(e.createTextNode(t)),i}function O(e,t){let n;return t.uri in e?n=e[t.uri]:(n=new N,n.setPredicate(t),e[t.uri]=n),n}function D(e,t){let n;return t.uri in e?n=e[t.uri]:(n=new R(t),e[t.uri]=n),n}function $(e,t){const i=p.statementsMatching(e,void 0,void 0,n),a={};for(let e=0;e<i.length;++e){const n=i[e].predicate;if(n.uri in m)continue;const o=O(t,n);o.checkValue(i[e].object),a[n.uri]=o}return a}function M(e,t){const n={};for(let e=0;e<t.length;++e){const i=$(t[e],n);for(const e in i){i[e].addUse()}}const i=B(n);!function(e){function t(e,t){return(e.useCount<t.useCount)-(e.useCount>t.useCount)}e.sort(t)}(i),e.allColumns=i}function F(t,n){const i=e.createElement("a");return i.appendChild(e.createTextNode("[x]")),i.addEventListener("click",function(){t.removeColumn(n),L(t)},!1),i}function P(e,t){let n=!0;for(let i=0;i<t.length;++i){const a=t[i],o=a.getKey();let s=null;if(o in e.values&&(s=e.values[o][0]),!a.filterFunction(s)){n=!1;break}}const i=e._htmlRow;i.style.display=n?"":"none"}function U(e,t){for(let n=0;n<e.length;++n){P(e[n],t)}}function z(e,t,n){function i(e){return e?"Literal"===e.termType?e.value.toLowerCase():"NamedNode"===e.termType?l.label(e).toLowerCase():e.value.toLowerCase():""}!function(e,t,n,i){const a=t.getKey();if(e.sort(function(e,t){let o=null,s=null;a in e.values&&(o=e.values[a][0]),a in t.values&&(s=t.values[a][0]);const r=n(o,s);return i?-r:r}),e.length){const t=e[0]._htmlRow.parentNode;for(let n=0;n<e.length;++n)t.removeChild(e[n]._htmlRow);for(let n=0;n<e.length;++n)t.appendChild(e[n]._htmlRow)}}(e,t,function(e,t){const n=i(e),a=i(t);return n<a?-1:n>a?1:0},n)}function q(t,n,i){const a=e.createElement("div"),o=e.createElement("input");o.setAttribute("type","text"),o.style.width="70%",a.appendChild(o);const s=e.createElement("span");s.appendChild(e.createTextNode("▼")),s.addEventListener("click",function(){z(t,i,!1)},!1),a.appendChild(s);const r=e.createElement("span");r.appendChild(e.createTextNode("▲")),r.addEventListener("click",function(){z(t,i,!0)},!1),a.appendChild(r);let c=null;return i.filterFunction=function(e){if(c){if(e){let t;return t="Literal"===e.termType?e.value:"NamedNode"===e.termType?l.label(e):"",t.toLowerCase().indexOf(c)>=0}return!1}return!0},o.addEventListener("keyup",function(){c=""!==o.value?o.value.toLowerCase():null,U(t,n)},!1),a}function H(t,n,i,a){const o=e.createElement("div"),s=e.createElement("select");let r={};for(let e=0;e<a.length;++e){const t=a[e];r[t.uri]=!0}const c=G(i).initialSelection;c&&(r=c),s.setAttribute("multiple","true");for(let e=0;e<a.length;++e){const t=a[e],n=I(l.label(t),e);r[t.uri]&&(n.selected=!0),s.appendChild(n)}return o.appendChild(s),i.filterFunction=function(e){return!r||e&&r[e.uri]},s.addEventListener("click",function(){{r={};const e=s.options;for(let t=0;t<e.length;t++){const n=e[t],i=Number(n.value);e[t].selected&&(r[a[i].uri]=!0)}}U(t,n)},!0),o}function W(t,n,i){const a=e.createElement("div"),o=e.createElement("input");o.setAttribute("type","text"),o.style.width="40px",a.appendChild(o);const s=e.createElement("input");s.setAttribute("type","text"),s.style.width="40px",a.appendChild(s);let r=null,c=null;function l(){r=""===o.value?null:Number(o.value),c=""===s.value?null:Number(s.value),U(t,n)}return i.filterFunction=function(e){return e&&(e=Number(e)),!(r&&(!e||e<r))&&!(c&&(!e||e>c))},o.addEventListener("keyup",l,!1),s.addEventListener("keyup",l,!1),a}function V(e,t,n){if(n.superClass&&n.alternatives.length>0)return H(e,t,n,n.alternatives);const i=n.getConstraints();let a;for(let o=0;o<i.length;o++){if(a=i[o],n.checkedAnyValues&&n.possiblyNumber||a.uri in f)return W(e,t,n);if("http://www.w3.org/2000/01/rdf-schema#Literal"===a.uri)return q(e,t,n);const s=p.each(a,u.ns.owl("oneOf"));if(s.length>0)return H(e,t,n,s.elements)}return function(e,t,n){return n.checkedAnyValues&&n.possiblyNumber?W(e,t,n):n.possiblyLiteral?q(e,t,n):null}(e,t,n)}function Z(t,n,a){a=a||{};const o=e.createElement("a"),s=a.linkFunction;return o.setAttribute("href",t),o.appendChild(e.createTextNode(n)),s?o.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation();const t=l.getTarget(e).getAttribute("href");t||i.Rm("No href found \n"),s(t)},!0):o.addEventListener("click",u.widgets.openHrefInOutlineMode,!0),o}function G(e){return t&&t.hints&&e.variable&&t.hints[e.variable.toNT()]?t.hints[e.variable.toNT()]:{}}function J(t,n){const i=G(n),a=i.cellFormat;if(!a){if("Literal"===t.termType){if(t.datatype){if(h[t.datatype.uri])return e.createTextNode(u.widgets.shortDate(t.value));if(f[t.datatype.uri]){const n=e.createElement("span");return n.textContent=t.value,n.setAttribute("style","text-align: right"),n}}return e.createTextNode(t.value)}if("NamedNode"===t.termType&&n.isImageColumn())return function(t){const n=e.createElement("img");return n.setAttribute("src",t.uri),n.style.height="40px",n}(t);if("NamedNode"===t.termType||"BlankNode"===t.termType)return function(e,t){let n=!1;return e.uri&&(n=e.uri.match(/^mailto:(.*)/)),Z(e.uri,n?n[1]:l.label(e),t)}(t,i);if("Collection"===t.termType){const i=e.createElement("span");return i.appendChild(e.createTextNode("[")),t.elements.forEach(function(t){i.appendChild(J(t,n)),i.appendChild(e.createTextNode(", "))}),i.removeChild(i.lastChild),i.appendChild(e.createTextNode("]")),i}return e.createTextNode("unknown termtype '"+t.termType+"'!")}if("shortDate"===a)return e.createTextNode(u.widgets.shortDate(t.value))}function Q(e,t){let n,i=null;if("Literal"===e.termType)i="value";else{if("NamedNode"!==e.termType)return t.indexOf(e)>=0;i="uri"}for(n=0;n<t.length;++n)if(t[n].termType===e.termType&&t[n][i]===e[i])return!0;return!1}function Y(t,n,i){let a,o=!1;for(a in i){const e=i[a];a in t.values||(t.values[a]=[]),Q(e,t.values[a])||(t.values[a].push(e),o=!0)}o&&(j(t._htmlRow),function(t,n,i){const a=e.createElement("td");n._subject&&"uri"in n._subject&&a.appendChild(Z(n._subject.uri,"→")),t.appendChild(a);for(let a=0;a<i.length;++a){const o=i[a],s=e.createElement("td");let r;const c=o.getKey();if(c in n.values){const t=n.values[c];let i=!1;n.originalValues&&n.originalValues[c]&&t.length!==n.originalValues[c].length&&(i=!0);for(let a=0;a<t.length;++a){const l=t[a];n.originalValues&&n.originalValues[c]&&n.originalValues[c].length>a&&(r=n.originalValues[c][a],l.toString()!==r.toString()&&(i=!0)),s.appendChild(J(l,o)),a!==t.length-1&&s.appendChild(e.createTextNode(",\n")),i&&(s.style.background="#efe")}}t.appendChild(s)}n._htmlRow=t}(t._htmlRow,t,n)),P(t,n)}function K(e){if("uri"in e)return e.uri;if("_subject_id"in e)return e._subject_id;{const t=""+A;return e._subject_id=t,++A,t}}function X(n,a,o,s){n.running=!0;const r=Date.now();let c=e.createElement("tr");s.appendChild(c),c.textContent="Loading ...";for(let e=0;e<a.length;e++)a[e].original=!0,a[e].originalValues||(a[e].originalValues=a[e].values),a[e].values={};p.query(n,function(t){if(!n.running)return;c.textContent+=".";let i,r=null,l=null;if(b in t&&(l=t[b],i=K(l),i in d&&(r=d[i])),!r){const t=e.createElement("tr");s.appendChild(t),r={_htmlRow:t,_subject:l,values:{}},a.push(r),l&&(d[i]=r)}delete r.original,Y(r,o,t)},void 0,function(){c&&c.parentNode&&c.parentNode.removeChild&&(c.parentNode.removeChild(c),c=null);const e=Date.now()-r;i.Rm("Query done: "+a.length+" rows, "+e+"ms");for(let e=a.length-1;e>=0;e--)if(a[e].original){i.Rm(" deleting row "+a[e]._subject);const t=a[e]._htmlRow;t.parentNode.removeChild(t),delete d[K(a[e]._subject)],a.splice(e,1)}if(t.sortBy){const e=function(e,t){for(const n in e){const i=e[n];if(i.variable.toNT()===t)return i}throw new Error(`getColumnForVariable: no column for variable ${t}`)}(o,t.sortBy);z(a,e,t.sortReverse)}t.onDone&&t.onDone(k)})}function ee(e,t){u.log.debug(">> processing formula");for(let n=0;n<t.statements.length;++n){const i=t.statements[n];if("NamedNode"===i.predicate.termType&&"Variable"===i.object.termType){const t=i.object.toString();if(t in e){e[t].setPredicate(i.predicate,!1,i.subject)}}if("NamedNode"===i.predicate.termType&&"Variable"===i.subject.termType){const t=i.subject.toString();if(t in e){e[t].setPredicate(i.predicate,!0,i.object)}}}for(let n=0;n<t.optional.length;++n)u.log.debug("recurse to optional subformula "+n),ee(e,t.optional[n]);u.log.debug("<< finished processing formula")}function te(e){const t=[],n={};for(let i=0;i<e.vars.length;++i){const a=new N,o=e.vars[i];u.log.debug("column "+i+" : "+o),a.setVariable(o),n[o]=a,t.push(a)}return ee(n,e.pat),t}function ne(t,n){let i;i=s?te(t):n.getColumns();const a=[],o=e.createElement("table");return o.appendChild(function(t,n){const i=e.createElement("tr"),a=e.createElement("th");i.appendChild(a);for(let a=0;a<t.length;++a){const o=e.createElement("th"),s=t[a];o.appendChild(e.createTextNode(s.getLabel())),n&&o.appendChild(F(n,s)),i.appendChild(o)}return i}(i,n)),o.appendChild(function(t,n){const i=e.createElement("tr");i.className="selectors",i.appendChild(e.createElement("td"));for(let a=0;a<n.length;++a){const o=e.createElement("td"),s=V(t,n,n[a]);s&&o.appendChild(s),i.appendChild(o)}return i}(a,i)),o.logicalRows=a,o.columns=i,o.query=t,X(t,a,i,o),o}}},6670(e,t,n){n.r(t),n.d(t,{TabWidgetElement:()=>r,tabWidget:()=>c});var i=n(4608),a=n(52),o=n(675),s=n(3138);class r extends HTMLElement{bodyContainer;refresh;tabContainer}function c(e){const t=e.subject,n=e.dom||document,r=parseInt(e.orientation||"0"),c=e.backgroundColor||"#ddddcc",p=2&r,u=1&r,d=e.onClose,[m,f]=function(e){return function(e){let t=0;for(let n=0;n<3;n++)t+=parseInt(e.slice(2*n+1,2*n+3),16);return t>384}(e)?[l(e,"#ffffff",.3),"#000000"]:[l(e,"#000000",.3),"#ffffff"]}(c),h=`display: grid; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ${m}; padding: 1em;`,g=n.createElement("div");g.setAttribute("style",o.i.tabsRootElement),g.style.flexDirection=(u?"row":"column")+(p?"-reverse":"");const b=g.appendChild(n.createElement("nav"));b.setAttribute("style",o.i.tabsNavElement);const v=g.appendChild(n.createElement("main"));v.setAttribute("style",o.i.tabsMainElement);const x=b.appendChild(n.createElement("ul"));x.setAttribute("style",o.i.tabContainer),x.style.flexDirection=""+(u?"column":"row");const y=v;g.tabContainer=x,g.bodyContainer=y;const w=["0.2em","0.2em","0","0"],A=`border-radius: ${w.concat(w).slice(r,r+4).join(" ")};`,C=["0.3em","0.3em","0","0.3em"],E=C.concat(C).slice(r,r+4),k=`margin: ${E.join(" ")};`,_=`padding: ${E.join(" ")};`,T=A+`position: relative; padding: 0.7em; max-width: 20em; color: ${f};`,S=`${T+k} opacity: 50%; background-color: ${c};`,L=`${T+k} background-color: ${m};`,j="height: 100%; width: 100%;",R=j+"display: none;";if(g.refresh=B,B(),!e.startEmpty&&x.children.length&&e.selectedTab){const t=Array.from(x.children).map(e=>e.firstChild).find(t=>t.dataset.name===e.selectedTab),n=e.selectedTab.uri,i=Array.from(x.children).find(e=>e.subject&&e.subject.uri&&e.subject.uri===n),a=i||t||x.children[0],o=a.firstChild;o?.click?o.click():a instanceof HTMLElement&&a.click()}else if(!e.startEmpty){const e=x.children[0],t=e?.firstChild;t?.click?t.click():e instanceof HTMLElement&&e.click()}return g;function N(t){const i=n.createElement("li");i.setAttribute("style",S),i.subject=t;const s=i.appendChild(n.createElement("button"));if(s.setAttribute("style",o.i.makeNewSlot),s.onclick=function(){if(I(),O(),i.setAttribute("style",L),!i.bodyTR)return;i.bodyTR.setAttribute("style",j);const n=r(i);e.renderMain&&i.subject&&!1!==n.asSettings&&(n.innerHTML="loading item ..."+t,e.renderMain(n,i.subject),n.asSettings=!1)},e.renderTabSettings&&i.subject){const a=n.createElement("button");a.textContent="...",a.setAttribute("style",o.i.ellipsis),a.onclick=function(){if(I(),O(),i.setAttribute("style",L),!i.bodyTR)return;i.bodyTR.setAttribute("style",j);const n=r(i);e.renderTabSettings&&i.subject&&!0!==n.asSettings&&(n.innerHTML="loading settings ..."+t,e.renderTabSettings(n,i.subject),n.asSettings=!0)},i.appendChild(a)}return e.renderTab?e.renderTab(s,t):s.innerHTML=(0,a.label)(t),i;function r(e){const t=e.bodyTR?.children[0];if(t)return t;const i=e.bodyTR.appendChild(n.createElement("main"));return i.setAttribute("style",h),i}}function B(){const a=e.items?e.items:!1!==e.ordered?s.store.the(t,e.predicate).elements:s.store.each(t,e.predicate);let o,r,c,l,p,u=!1;for(l=0;l<x.children.length;l++)if(o=x.children[l],l>=a.length||o.subject&&!o.subject.sameTerm(a[l])){u=!0;break}if(!u&&a.length===x.children.length)return;for(p=x.children.length-1;p>=0&&(o=x.children[p],c=p-x.children.length+a.length,!o.subject||o.subject.sameTerm(a[c]));p--);const m=a.slice(l,p-x.children.length+a.length+1);for(;p>=l;)x.removeChild(x.children[l]),y.removeChild(y.children[l]),p-=1;for(r=0;r<m.length;r++){const e=N(m[r]),t=n.createElement("div");e.bodyTR=t,l===x.children.length?(x.appendChild(e),y.appendChild(t)):(x.insertBefore(e,x.children[l+r]),y.insertBefore(t,y.children[l+r]))}d&&function(e){if(e.dataset.onCloseSet){const t=e.querySelector(".unstyled");e.removeChild(t)}const t=n.createElement("li");t.classList.add("unstyled");const a=(0,i.cancelButton)(n,d);a.setAttribute("style",a.getAttribute("style")+_),t.appendChild(a),e.appendChild(t),e.dataset.onCloseSet="true"}(x)}function I(){for(let e=0;e<x.children.length;e++){const t=x.children[e];t.classList.contains("unstyled")||t.setAttribute("style",S)}}function O(){for(let e=0;e<y.children.length;e++)y.children[e].setAttribute("style",R)}}function l(e,t,n){let i,a,o,s="#";const r="0123456789abcdef";for(let c=0;c<3;c++){i=parseInt(e.slice(2*c+1,2*c+3),16),a=parseInt(t.slice(2*c+1,2*c+3),16),o=i*(1-n)+a*n;const l=parseInt((""+o).split(".")[0]),p=parseInt((""+l/16).split(".")[0]),u=parseInt((""+l%16).split(".")[0]);s+=r[p]+r[u]}return s}},8565(e,t,n){n.d(t,{E6:()=>o,bB:()=>s,mG:()=>r,nF:()=>c});var i=n(4961),a=n(4356);function o(){const{origin:e,pathname:t}=document.location,n="databrowser"===document.body?.dataset?.appShell,a=t.split("/").filter(Boolean),o=a[a.length-1]||"",s=/\.[^/]+$/.test(o);return n&&a.length>0&&!s?(0,i.sym)(`${e}/${a[0]}/`):(0,i.sym)(e).site()}async function s(e,t){try{if(!t.any(e,null,a.ns.ldp("Container"),e)){const n=(await t.fetcher.webOperation("GET",e.uri,t.fetcher.initFetchOptions(e.uri,{headers:{accept:"text/turtle"}}))).responseText;(0,i.parse)(n,t,e.uri,"text/turtle")}}catch(t){return console.error("Error loading pod "+e+": "+t),null}if(!t.holds(e,a.ns.rdf("type"),a.ns.space("Storage"),e))return console.warn("Pod "+e+" does not declare itself as a space:Storage"),null;const n=t.any(e,a.ns.solid("owner"),null,e)||t.any(null,a.ns.space("storage"),e,e);if(n){try{await t.fetcher.load(n.doc())}catch(e){return console.warn("Unable to load profile of pod owner "+n),null}return t.holds(n,a.ns.space("storage"),e,n.doc())||console.warn(`Pod owner ${n} does NOT list pod ${e} as their storage`),n}{const n=(0,i.sym)(`${e.uri}profile/card#me`);try{await t.fetcher.load(n)}catch(e){return console.error("Ooops. Guessed wrong pod owner webid {$guess} : can't load it."),null}return t.holds(n,a.ns.space("storage"),e,n.doc())?(console.warn("Using guessed pod owner webid but it links back."),n):null}}function r(e,t){return e.anyValue(t,a.ns.vcard("fn"),null,t.doc())||e.anyValue(t,a.ns.foaf("name"),null,t.doc())||t.uri}function c(e,t,n={}){let i,a,o,s=null,r=0;const c=function(){r=n.leading?Date.now():0,s=null,o=e.apply(i,a),s||(i=a=null)};return function(){const l=Date.now();r||n.leading||(r=l);const p=t-(l-r);return i=this,a=arguments,p<=0||p>t?(s&&(clearTimeout(s),s=null),r=l,o=e.apply(i,a),s||(i=a=null)):s||!1===n.trailing||(s=setTimeout(c,p)),o}}},52(e,t,n){n.r(t),n.d(t,{AJARImage:()=>S,RDFComparePredicateObject:()=>D,RDFComparePredicateSubject:()=>$,addLoadEvent:()=>k,ancestor:()=>w,beep:()=>m,clearVariableNames:()=>d,emptyNode:()=>x,escapeForXML:()=>N,findPos:()=>_,genUuid:()=>h,getAbout:()=>A,getEyeFocus:()=>T,getTarget:()=>y,getTerm:()=>C,hashColor:()=>f,include:()=>E,label:()=>r.P,labelForXML:()=>B,labelWithOntology:()=>R,newVariableName:()=>u,ontologyLabel:()=>j,predParentOf:()=>M,predicateLabel:()=>O,predicateLabelForXML:()=>I,shortName:()=>L,stackString:()=>v,syncTableToArray:()=>g,syncTableToArrayReOrdered:()=>b});var i=n(4158),a=n(3138),o=n(1795),s=n(4961),r=n(9612);const c={log:i,ns:o.A,rdf:s};let l,p=0;function u(){return"v"+p++}function d(){p=0}function m(){if(!l)return;const e=new l;return function(t,n,i,a){t=+(t||.3),i=i||"sine","function"!=typeof a&&(a=function(){});const o=e.createOscillator();o.type=i,o.frequency.value=n||256,o.connect(e.destination),o.start(0),o.stop(t)}}function f(e){e=e.uri||e;return"#"+(16777215&(t=e,t.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0))|12632256).toString(16);var t}function h(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function g(e,t,n,i){let a,o,s;for(s=0;s<e.children.length;s++)o=e.children[s],o.trashMe=!0;for(let r=0;r<t.length;r++){const c=t[r];for(a=!1,s=0;s<e.children.length;s++)if(o=e.children[s],o.subject&&o.subject.sameTerm(c)){if(i){const e=i(o,c);e&&e!==o&&(o.parentNode.replaceChild(e,o),e.subject=c,o=e)}o.trashMe=!1,a=!0;break}if(!a){const t=n(c);if(r>=e.children.length)e.appendChild(t);else{const n=e.children[r];e.insertBefore(t,n)}t.subject=c}}for(s=0;s<e.children.length;s++)o=e.children[s],o.trashMe&&e.removeChild(o)}function b(e,t,n){const i={};for(let t=0;t<e.children.length;t++){const n=e.children[t];i[n.subject.toNT()]=n}for(let a=0;a<t.length;a++){const o=t[a];if(a>=e.children.length){const t=n(o);t.subject=o,e.appendChild(t)}else{const t=e.children[a];if(t.subject.sameTerm(o));else{const a=i[o.toNT()];if(a)e.removeChild(a),e.insertBefore(a,t);else{const e=n(o);t.before(e),e.subject=o}}}}for(;e.children.length>t.length;)e.removeChild(e.children[e.children.length-1])}function v(e){let t,n=e+"\n";if(!e.stack)return n+"No stack available.\n";const i=e.stack.toString().split("\n"),a=[];for(t=0;t<i.length;t++){let e=i[t];if(e.indexOf("ecmaunit.js")>-1)break;"("===e.charAt(0)&&(e="function"+e);const n=e.split("@");a.push(n)}for(t=0;t<a.length;t++)n+=" "+a[t][1]+"\n "+a[t][0];return n}function x(e){const t=e.childNodes;for(let n=t.length-1;n>=0;n--)e.removeChild(t[n]);return e}function y(e){let t;return(e=e||window.event).target?t=e.target:e.srcElement&&(t=e.srcElement),3===t.nodeType&&(t=t.parentNode),t}function w(e,t){let n;for(n=e;n;n=n.parentNode)try{if(n.tagName===t)return n}catch(e){return}}function A(e,t){let n,i;for(n=t;n&&1===n.nodeType;n=n.parentNode)if(i=n.getAttribute("about"),i)return e.fromNT(i);c.log.debug("getAbout: No about found")}function C(e){const t=e.parentNode,n=t?t.AJAR_statement:void 0;switch(n?e.className:""){case"pred":case"pred selected":return n.predicate;case"obj":case"obj selected":return t.AJAR_inverse?n.subject:n.object;case"":case"selected":return A(a.store,e);case"undetermined selected":return e.nextSibling?n.predicate:t.AJAR_inverse?n.subject:n.object}}function E(e,t){const n=e.createElement("script");return n.setAttribute("type","text/javascript"),n.setAttribute("src",t),n}function k(e){const t=window.onload;"function"!=typeof window.onload?window.onload=e:window.onload=function(){t(),e()}}function _(e){const t=e.ownerDocument.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return[n.left-t.left,n.top-t.top]}function T(e,t,n,i){i||(i=window);const a=_(e)[1],o=window.SolidAppContext||{},s=a-(o&&o.scroll||52)-i.scrollY;if(t)return n?void i.scrollBy(0,a+e.clientHeight-(i.scrollY+i.innerHeight)):void i.scrollBy(0,s);const r=i.setInterval(function(){i.scrollBy(0,s/10),c++,10===c&&i.clearInterval(r)},50);let c=0}function S(e,t,n,i){i||(i=document);const a=i.createElement("img");return a.setAttribute("src",e),a.addEventListener("copy",function(e){e.clipboardData.setData("text/plain",""),e.clipboardData.setData("text/html",""),e.preventDefault()}),void 0!==n&&a.setAttribute("title",n),a}function L(e){let t=e;"#/".indexOf(t[t.length-1])>=0&&(t=t.slice(0,-1));const n=[];for(const e in this.prefixes)n[this.prefixes[e]]=e;let i;const a=function(e){return"ns"!==e&&(i=e,!0)};let o;const s=t.lastIndexOf("#");for(s>=0&&(t=t.slice(s-1));;){const e=t.lastIndexOf("/");for(e>=0&&(t=t.slice(e+1)),o=0;o<t.length&&this.prefixchars.indexOf(t[o]);)o++;if(t=t.slice(0,o),t.length<6&&a(t))return i;if(a(t.slice(0,3)))return i;if(a(t.slice(0,2)))return i;if(a(t.slice(0,4)))return i;if(a(t.slice(0,1)))return i;if(a(t.slice(0,5)))return i;for(o=0;;o++)if(a(t.slice(0,3)+o))return i}}function j(e){if(void 0===e.uri)return"??";let t=e.uri;const n=[];let i,a=t.lastIndexOf("#");if(a>=0)t=t.slice(0,a+1);else{if(a=t.lastIndexOf("/"),!(a>=0))return e.uri+"?!";t=t.slice(0,a+1)}for(const e in c.ns)n[c.ns[e]]=e;try{return n[t]}catch(e){}for(t=t.slice(0,-1);t;){if(a=t.lastIndexOf("/"),!(a>=0))return e.uri+"!?";if(i=t.slice(a+1),t=t.slice(0,a),"ns"!==i&&"0123456789".indexOf(i[0])<0)return i}}function R(e,t){const n=a.store.findTypeURIs(e);return n[c.ns.rdf("Predicate").uri]||n[c.ns.rdfs("Class").uri]?(0,r.P)(e,t)+" ("+j(e)+")":(0,r.P)(e,t)}function N(e){return e.replace(/&/g,"&").replace(/</g,"<")}function B(e){return N((0,r.P)(e))}function I(e,t){return N(O(e,t))}function O(e,t){const n=(0,r.P)(e);if(t){const t=a.store.any(e,c.ns.owl("inverseOf"))||a.store.any(void 0,c.ns.owl("inverseOf"),e);return t?(0,r.P)(t):"type"===n?"...":"is "+n+" of"}return n}function D(e,t){const n=e.predicate.compareTerm(t.predicate);return 0!==n?n:e.object.compareTerm(t.object)}function $(e,t){const n=e.predicate.compareTerm(t.predicate);return 0!==n?n:e.subject.compareTerm(t.subject)}function M(e){let t=e;for(;;){if(t.getAttribute("predTR"))return t;if(!t.previousSibling||"TR"!==t.previousSibling.nodeName)return c.log.error("Could not find predParent"),e;t=t.previousSibling}}"undefined"!=typeof AudioContext?l=AudioContext:"undefined"!=typeof window&&(l=window.AudioContext||window.webkitAudioContext)},8425(e,t,n){n.d(t,{AB:()=>r,ED:()=>c,S3:()=>l,cX:()=>p});var i=n(7423),a=n(3138),o=n(1795),s=n(8852);const r=e=>{let t;try{t=`${(0,s.X)(e)}/profile/keys/publicKey.ttl`}catch(e){i.z3(e)}return t},c=e=>{let t;try{t=`${(0,s.X)(e)}/settings/keys/privateKey.ttl`}catch(e){i.z3(e)}return t};async function l(e,t){return await u(e,t,"publicKey")}async function p(e,t){return await u(e,t,"privateKey")}async function u(e,t,n){try{await a.store.fetcher.load(t);const i=a.store.any(e,o.A.solid(n));return i?.value}catch(e){if(404===e.response.status){i.Rm("createIfNotExists: doc does NOT exist, will create... "+t);try{await a.store.fetcher.webOperation("PUT",t,{data:"",contentType:"text/turtle"})}catch(e){throw i.Rm("createIfNotExists doc FAILED: "+t+": "+e),e}return void delete a.store.fetcher.requested[t]}throw i.Rm("createIfNotExists doc FAILED: "+t+": "+e),e}}},3907(e,t,n){n.d(t,{G2:()=>r,lO:()=>o,vb:()=>s});var i=n(7423),a=n(3138);async function o(e,t){await a.store.fetcher.load(e);const n=a.store.any(a.store.sym(e),a.store.sym("http://www.iana.org/assignments/link-relations/acl"));if(!n)throw new Error("Key ACL doc not found!");try{await a.store.fetcher.webOperation("PUT",n.value,{data:t,contentType:"text/turtle"})}catch(e){if(404!==e?.response?.status)throw new Error(e);i.Rm("delete "+n.value+" "+e.response.status)}}const s=e=>`\n@prefix : <#>.\n@prefix acl: <http://www.w3.org/ns/auth/acl#>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix key: <./>.\n\n:ReadWrite\n a acl:Authorization;\n acl:accessTo key:;\n acl:default key:;\n acl:agent <${e}>;\n acl:mode acl:Read, acl:Write.\n`,r=(e,t)=>{let n="acl:agentClass foaf:Agent";t?.length&&(n=`acl:agent <${t}>`);return`\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix acl: <http://www.w3.org/ns/auth/acl#>.\n<#Read>\n a acl:Authorization;\n ${n};\n acl:accessTo <${e.split("/").pop()}>;\n acl:mode acl:Read.\n`}},8852(e,t,n){n.d(t,{X:()=>o});var i=n(3138),a=n(1795);const o=e=>{let t=i.store.any(e,a.A.space("preferencesFile"),null,e.doc())?.value;if(t=t?.split("/").slice(0,-2).join("/"),!t)throw new Error(`prefererencesFile is expected to exist in ${e}`);return t}},9612(e,t,n){n.d(t,{P:()=>c});var i=n(4158),a=n(3138),o=n(1795),s=n(4961);const r={log:i,ns:o.A,rdf:s};function c(e,t=!1){function n(e){return t?e.slice(0,1).toUpperCase()+e.slice(1):e}function i(e){let t="";"/"===e.slice(-1)&&(e=e.slice(0,-1));for(let n=0;n<e.length;n++)"_"!==e[n]&&"-"!==e[n]?(t+=e[n],n+1<e.length&&e[n].toUpperCase()!==e[n]&&e[n+1].toLowerCase()!==e[n+1]&&(t+=" ")):t+=" ";return"has "===t.slice(0,4)&&(t=t.slice(4)),n(t)}const o=function(e){return a.store.any(e,r.ns.ui("label"))||a.store.any(e,r.ns.link("message"))||a.store.any(e,r.ns.vcard("fn"))||a.store.any(e,r.ns.foaf("name"))||a.store.any(e,r.ns.dct("title"))||a.store.any(e,r.ns.dc("title"))||a.store.any(e,r.ns.rss("title"))||a.store.any(e,r.ns.contact("fullName"))||a.store.any(e,a.store.sym("http://www.w3.org/2001/04/roadmap/org#name"))||a.store.any(e,r.ns.cal("summary"))||a.store.any(e,r.ns.foaf("nick"))||a.store.any(e,r.ns.as("name"))||a.store.any(e,r.ns.schema("name"))||a.store.any(e,r.ns.rdfs("label"))||a.store.any(e,a.store.sym("http://www.w3.org/2004/02/skos/core#prefLabel"))}(e);if(o)return n(o.value);if("BlankNode"===e.termType)return"...";if("Collection"===e.termType)return"("+e.elements.length+")";let s=e.uri;if(void 0===s)return e.toString();try{s=s.split("/").map(decodeURIComponent).join("/")}catch(e){for(let e=s.length-3;e>0;e--){const t="0123456789abcefABCDEF";for(;"%"===s[e]&&t.indexOf(s[e+1])>=0&&t.indexOf(s[e+2])>=0;)s=s.slice(0,e)+String.fromCharCode(parseInt(s.slice(e+1,e+3),16))+s.slice(e+3)}}s=l(s,"/profile/card#me"),s=l(s,"#this"),s=l(s,"#me");const c=s.indexOf("#");if(c>=0)return i(s.slice(c+1));const p=s.lastIndexOf("/",s.length-2);return p>=0&&p<e.uri.length?i(s.slice(p+1)):n(decodeURIComponent(e.uri))}function l(e,t){const n=-1*t.length;return e.slice(n)===t?e.slice(0,n):e}},717(e,t,n){n.d(t,{w:()=>s});var i=n(6161),a=n(3138),o=n(8565);class s extends i.WF{static properties={theme:{type:String,reflect:!0},layout:{type:String,reflect:!0},position:{type:String,reflect:!0},top:{type:String,reflect:!0},right:{type:String,reflect:!0},bottom:{type:String,reflect:!0},left:{type:String,reflect:!0},store:{type:Object,attribute:!1},_user:{state:!0}};static styles=i.AH`
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
position: var(--footer-position, static);
|
|
10
|
+
top: var(--footer-top, auto);
|
|
11
|
+
right: var(--footer-right, auto);
|
|
12
|
+
bottom: var(--footer-bottom, auto);
|
|
13
|
+
left: var(--footer-left, auto);
|
|
14
|
+
width: auto;
|
|
15
|
+
max-width: var(--footer-max-width, none);
|
|
16
|
+
margin: var(--footer-margin, 0);
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
color: var(--footer-text, #4f4f4f);
|
|
19
|
+
background: transparent;
|
|
20
|
+
border: 1px solid var(--footer-border, rgba(0, 0, 0, 0.12));
|
|
21
|
+
border-radius: var(--footer-border-radius, 1rem);
|
|
22
|
+
box-shadow: var(--footer-box-shadow, 0 1px 6px rgba(0, 0, 0, 0.08));
|
|
23
|
+
font-family: var(--font-family-base, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.footer {
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: flex-start;
|
|
29
|
+
align-items: flex-start;
|
|
30
|
+
gap: 0.25rem;
|
|
31
|
+
font-size: 0.75rem;
|
|
32
|
+
line-height: 1.5;
|
|
33
|
+
text-align: left;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.footer a {
|
|
37
|
+
color: var(--footer-link, #4b32a8);
|
|
38
|
+
text-decoration: none;
|
|
39
|
+
font-weight: 600;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.footer a:hover {
|
|
43
|
+
text-decoration: underline;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.footer span {
|
|
47
|
+
color: inherit;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.footer div > strong {
|
|
51
|
+
display: block;
|
|
52
|
+
margin-bottom: 0.5rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:host([layout='mobile']) {
|
|
56
|
+
border: none;
|
|
57
|
+
box-shadow: none;
|
|
58
|
+
border-radius: 0;
|
|
59
|
+
}
|
|
60
|
+
`;constructor(){super(),this.theme="light",this.layout="desktop",this.position="static",this.top="auto",this.right="auto",this.bottom="auto",this.left="auto",this.store=null,this._user=null,this._updateFooter=this._updateFooter.bind(this)}connectedCallback(){super.connectedCallback(),a.authSession.events.on("login",this._updateFooter),a.authSession.events.on("logout",this._updateFooter),this._updateFooter()}disconnectedCallback(){"function"==typeof a.authSession.events.off?(a.authSession.events.off("login",this._updateFooter),a.authSession.events.off("logout",this._updateFooter)):"function"==typeof a.authSession.events.removeListener&&(a.authSession.events.removeListener("login",this._updateFooter),a.authSession.events.removeListener("logout",this._updateFooter)),super.disconnectedCallback()}updated(e){(e.has("position")||e.has("top")||e.has("right")||e.has("bottom")||e.has("left"))&&this._updatePositionStyles()}_updatePositionStyles(){this.style.setProperty("--footer-position",this.position),this.style.setProperty("--footer-top",this.top),this.style.setProperty("--footer-right",this.right),this.style.setProperty("--footer-bottom",this.bottom),this.style.setProperty("--footer-left",this.left)}_updateFooter(){this._user=a.authn.currentUser()}render(){return i.qy`
|
|
61
|
+
<footer class="footer">
|
|
62
|
+
${this._renderFooterContent()}
|
|
63
|
+
</footer>
|
|
64
|
+
`}_renderFooterContent(){if(!this._user)return i.qy`
|
|
65
|
+
<div>
|
|
66
|
+
<strong>Public View</strong>
|
|
67
|
+
<div>You are viewing this profile as a guest.</div>
|
|
68
|
+
</div>
|
|
69
|
+
`;const e=this.store?(0,o.mG)(this.store,this._user):this._user.uri;return i.qy`
|
|
70
|
+
<div>
|
|
71
|
+
<strong>Logged in View</strong>
|
|
72
|
+
<div>
|
|
73
|
+
You are logged in as
|
|
74
|
+
<a href=${this._user.uri} target="_blank" rel="noopener noreferrer">${e}</a>.
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
`}}},3291(e,t,n){n.d(t,{$J:()=>Y,Ag:()=>X,CS:()=>ne,Cl:()=>P,DT:()=>K,EW:()=>y,F1:()=>R,IC:()=>T,JK:()=>ie,Mj:()=>k,PO:()=>I,Pe:()=>te,Pg:()=>J,Qf:()=>G,Qy:()=>O,RG:()=>F,RS:()=>ee,Ss:()=>H,UH:()=>q,XV:()=>A,ZT:()=>j,cZ:()=>ae,cc:()=>x,er:()=>w,fT:()=>se,g7:()=>B,i:()=>_,kz:()=>M,ly:()=>z,ol:()=>Z,p_:()=>S,r6:()=>C,ri:()=>U,sf:()=>V,uA:()=>Q,uS:()=>W,vE:()=>E,wu:()=>oe,x6:()=>D,x7:()=>$});var i=n(4961),a=n(3378),o=n(1795),s=n(675),r=n(7423),c=n(4158),l=n(386),p=n(3138),u=n(52),d=n(6105),m=n(3468),f=n(9287),h=n(9326);const{iconBase:g}=a.Pt,b=g+"noun_1180156.svg",v=g+"noun_1180158.svg";function x(e,t){if(!t)return;const n=function(e){let t=e&&e.statusArea||e&&e.div||null;if(t)return t;let n=e&&e.dom;if(n||"undefined"==typeof document||(n=document),n){const i=n.getElementsByTagName("body")[0];return t=n.createElement("div"),i.insertBefore(t,i.firstElementChild),e&&(e.statusArea=t),t}return null}(e);r.Rm("Complaint: "+t),n?n.appendChild((0,m.F)(e&&e.dom||document,t)):alert(t)}function y(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function w(e){const t=e.search(/logFile=/),n=e.search(/&rulesFile=/);return e.substring(t+8,n)}function A(e,t){if(!e)return"???";const n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];try{const i=(new Date).toISOString();return e.slice(0,10)!==i.slice(0,10)||t?e.slice(0,4)===i.slice(0,4)?n[parseInt(e.slice(5,7),10)-1]+" "+parseInt(e.slice(8,10),10):e.slice(0,10):e.slice(11,16)}catch(e){return"shortdate:"+e}}function C(e,t){return t.split("{").map(function(t){const n=t.split("}")[0];return t?("000"+(e["get"+n]()+({Month:1}[n]||0))).slice(-({Milliseconds:3,FullYear:4}[n]||2))+t.split("}")[1]:""}).join("")}function E(){return C(new Date,"{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}")}function k(){return C(new Date,"{Hours}:{Minutes}:{Seconds}.{Milliseconds}")}function _(e,t){const n=p.store,i=function(e){const t=n.any(e,o.A.vcard("fn"))||n.any(e,o.A.foaf("name"))||n.any(e,o.A.vcard("organization-name"));return t?t.value:null},a=t.sameTerm(o.A.foaf("Agent"))?"Everyone":i(t);if(e.textContent=a||u.label(t),!a&&t.uri){if(!n.fetcher)throw new Error("kb has no fetcher");n.fetcher.nowOrWhenFetched(t.doc(),void 0,function(n){e.textContent=i(t)||u.label(t)})}}function T(e,t){return t.each(e,o.A.sioc("avatar")).concat(t.each(e,o.A.foaf("img"))).concat(t.each(e,o.A.vcard("logo"))).concat(t.each(e,o.A.vcard("hasPhoto"))).concat(t.each(e,o.A.vcard("photo"))).concat(t.each(e,o.A.foaf("depiction")))}const S={"solid:AppProviderClass":"noun_144.svg","solid:AppProvider":"noun_15177.svg","solid:Pod":"noun_Cabinet_1434380.svg","vcard:Group":"noun_339237.svg","vcard:Organization":"noun_143899.svg","vcard:Individual":d.A,"schema:Person":d.A,"foaf:Person":d.A,"foaf:Agent":"noun_98053.svg","acl:AuthenticatedAgent":"noun_99101.svg","prov:SoftwareAgent":"noun_Robot_849764.svg","vcard:AddressBook":"noun_15695.svg","trip:Trip":"noun_581629.svg","meeting:LongChat":"noun_1689339.svg","meeting:Meeting":"noun_66617.svg","meeting:Project":"noun_1036577.svg","ui:Form":"noun_122196.svg","rdfs:Class":"class-rectangle.svg","rdf:Property":"property-diamond.svg","owl:Ontology":"noun_classification_1479198.svg","wf:Tracker":"noun_122196.svg","wf:Task":"noun_17020_gray-tick.svg","wf:Open":"noun_17020_sans-tick.svg","wf:Closed":"noun_17020.svg"};function L(e){const t=e.uri.split("#")[0],n=t.indexOf("//");if(n<0)throw new Error("This URI does not have a web site part (origin)");const i=t.indexOf("/",n+2);return i<0?t.slice(0)+"/":t.slice(0,i+1)}function j(e){const t=g;return"string"!=typeof e&&e.uri?4!==e.uri.split("/").length||e.uri.split("/")[1]||e.uri.split("/")[3]?e.uri.startsWith("message:")||e.uri.startsWith("mid:")?t+"noun_480183.svg":e.uri.startsWith("mailto:")?t+"noun_567486.svg":e.uri.startsWith("https:")&&e.uri.indexOf("#")<0?L(e)+"favicon.ico":null:t+"noun_15177.svg":t+"noun_10636_grey.svg"}function R(e){const t=p.store,n=g;if(e.sameTerm(o.A.foaf("Agent"))||e.sameTerm(o.A.rdf("Resource")))return n+"noun_98053.svg";const i=t.any(e,o.A.sioc("avatar"))||t.any(e,o.A.foaf("img"))||t.any(e,o.A.vcard("logo"))||t.any(e,o.A.vcard("hasPhoto"))||t.any(e,o.A.vcard("photo"))||t.any(e,o.A.foaf("depiction"));return i?i.uri:null}function N(e,t,n){const i=p.store,a=R(t);if(a)return e.setAttribute("src",a),!0;const o=n[t.uri];if(o)return e.setAttribute("src",o),e.style=s.i.classIconStyle,!0;const r=j(t);if(r)return e.setAttribute("src",r),!0;const c=i.findTypeURIs(t);for(const t in c)if(n[t])return e.setAttribute("src",n[t]),!1;return e.setAttribute("src",g+"noun_10636_grey.svg"),!1}function B(e,t){const n=p.store,a={};for(const e in S){const t=e.split(":")[0],n=e.split(":")[1],s=o.A[t](n),r=S[e];r.startsWith("data:")?a[s.uri]=r:a[s.uri]=i.uri.join(r,g)}if(!N(e,t,a)&&t.uri){if(!n.fetcher)throw new Error("kb has no fetcher");n.fetcher.nowOrWhenFetched(t.doc(),void 0,n=>{n&&N(e,t,a)})}}function I(e,t){const n=e.createElement("img");n.style=s.i.iconStyle;if(n.setAttribute("src",g+(function(e){if(!e.uri)return!1;const t=e.uri.split("/");return 3===t.length||4===t.length&&""===t[3]}(t)?"noun_15177.svg":"noun_681601.svg")),t.uri&&t.uri.startsWith("https:")&&t.uri.indexOf("#")<0){const i=e.createElement("object");return i.setAttribute("data",L(t)+"favicon.ico"),i.setAttribute("type","image/x-icon"),i.appendChild(n),i}return B(n,t),n}function O(e,t,n,i){const o=g+"noun_2188_red.svg",r=e.createElement("img");r.setAttribute("src",o),r.setAttribute("style",s.i.smallButtonStyle),r.style.float="right";const c="Remove this "+n;return r.title=c,r.classList.add("hoverControlHide"),r.addEventListener("click",function(){const n=e.createElement("div");t.insertBefore(n,r),n.style.position="relative",n.appendChild(function(e,t,n,i){function o(){t.parentElement.removeChild(t)}function r(){o(),i()}const c=e.createElement("div");c.style=s.i.confirmPopupStyle,c.style.position="absolute",c.style.top="-1em",c.style.display="grid",c.style.gridTemplateColumns="auto auto";const l=e.createElement("div");l.style.gridColumn="1/2",l.style.gridRow="1";const p=e.createElement("div");p.style.gridColumn="1/2",p.style.gridRow="2";const u=$(e,o);c.appendChild(u),u.style.gridColumn="1",u.style.gridRow="2";const d=c.appendChild(e.createElement("button"));d.style=s.i.buttonStyle,d.style.gridRow="2",d.style.gridColumn="2",d.textContent="Cancel";const m=D(e,a.Pt.iconBase+"noun_925021.svg","Delete it");c.appendChild(m),m.style.gridRow="1",m.style.gridColumn="1";const f=c.appendChild(e.createElement("button"));return f.style=s.i.buttonStyle,f.style.gridRow="1",f.style.gridColumn="2",f.textContent=n,c.appendChild(f),m.addEventListener("click",r),f.addEventListener("click",r),d.addEventListener("click",o),c}(e,n,c,i))}),t.classList.add("hoverControl"),t.appendChild(r),r.setAttribute("data-testid","deleteButtonWithCheck"),r}function D(e,t,n,i,a={buttonColor:"Primary",needsBorder:!1}){const o=e.createElement("button");if(o.setAttribute("type","button"),t){const i=o.appendChild(e.createElement("img"));i.setAttribute("src",t),i.setAttribute("style","width: 2em; height: 2em;"),i.title=n,o.setAttribute("style",s.i.buttonStyle)}else o.textContent=n.toLocaleUpperCase(),o.onmouseover=function(){"Secondary"===a.buttonColor?a.needsBorder?o.setAttribute("style",s.i.secondaryButtonNoBorderHover):o.setAttribute("style",s.i.secondaryButtonHover):a.needsBorder?o.setAttribute("style",s.i.primaryButtonNoBorderHover):o.setAttribute("style",s.i.primaryButtonHover)},o.onmouseout=function(){"Secondary"===a.buttonColor?a.needsBorder?o.setAttribute("style",s.i.secondaryButtonNoBorder):o.setAttribute("style",s.i.secondaryButton):a.needsBorder?o.setAttribute("style",s.i.primaryButtonNoBorder):o.setAttribute("style",s.i.primaryButton)},"Secondary"===a.buttonColor?a.needsBorder?o.setAttribute("style",s.i.secondaryButtonNoBorder):o.setAttribute("style",s.i.secondaryButton):a.needsBorder?o.setAttribute("style",s.i.primaryButtonNoBorder):o.setAttribute("style",s.i.primaryButton);return i&&o.addEventListener("click",i,!1),o}function $(e,t){const n=D(e,b,"Cancel",t);return n.firstChild&&(n.firstChild.style.opacity="0.3"),n}function M(e,t){return D(e,v,"Continue",t)}function F(e,t,n,i,a,r){return new Promise(function(t,c){const l=e.createElement("div");i=i||o.A.foaf("name");const p=(r=r||(a?u.label(a):" "))+" "+u.label(i)+": ";l.appendChild(e.createElement("p")).textContent=p;const d=e.createElement("input");function m(){l.parentNode.removeChild(l),t(d.value.trim())}d.setAttribute("type","text"),d.setAttribute("size","100"),d.setAttribute("maxLength","2048"),d.setAttribute("style",s.i.textInputStyle),d.select(),l.appendChild(d),n.appendChild(l),d.addEventListener("keyup",function(e){13===e.keyCode&&m()},!1),l.appendChild(e.createElement("br")),l.appendChild($(e,function(e){l.parentNode.removeChild(l),t(null)})),l.appendChild(M(e,function(e){m()})),d.focus()})}const P=U;function U(e,t,n,i){const a=e.createElement("tr");i=i||{};const o=a.appendChild(e.createElement("td")),s=a.appendChild(e.createElement("td")),r=a.appendChild(e.createElement("td")),c=i.image||I(e,n);o.setAttribute("style","vertical-align: middle; width:2.5em; padding:0.5em; height: 2.5em;"),s.setAttribute("style","vertical-align: middle; text-align:left;"),r.setAttribute("style","vertical-align: middle; width:2em; padding:0.5em; height: 4em;"),o.appendChild(c);const p=s.appendChild(e.createElement("div")),u=p.appendChild(e.createElement("span"));if(i.title?u.textContent=i.title:_(u,n),"function"==typeof i.renderNameSuffix){const t=i.renderNameSuffix(n,e);if(t){const n=p.appendChild(e.createElement("span"));n.setAttribute("style","margin-left: 0.4em; opacity: 0.8;"),"string"==typeof t?n.textContent=t:n.appendChild(t)}}if("function"==typeof i.renderSupportingInfo){const t=i.renderSupportingInfo(n,e);if(t){const n=s.appendChild(e.createElement("div"));n.setAttribute("style","font-size: 90%; opacity: 0.8;"),"string"==typeof t?n.textContent=t:n.appendChild(t)}}if(i.deleteFunction&&O(e,r,i.noun||"one",i.deleteFunction),n.uri){if(!1!==i.link){r.appendChild((0,h.w)(e,n)).classList.add("HoverControlHide"),r.appendChild(e.createElement("br"))}!1!==i.draggable&&(c.setAttribute("draggable","false"),(0,l.eB)(a,n))}return a.subject=n,a}function z(e,t,n,i){const a=t.appendChild(e.createElement("div"));n?a.textContent=n:_(a,i)}function q(e,t,n,i){const a=t.appendChild(e.createElement("div"));a.setAttribute("style",s.i.linkDivStyle),i.deleteFunction&&O(e,a,i.noun||"one",i.deleteFunction),n.uri&&(!1!==i.link&&(0,h.O)(e,a,n),(0,l.eB)(t,n))}function H(e,t,n){const i=e.createElement("div");i.setAttribute("style",s.i.renderAsDivStyle);const a=(n=n||{}).image||I(e,t);if((0,f.ts)(e,i,a),z(e,i,n.title,t),q(e,i,t,n),n.clickable&&n.onClickFunction&&(0,f.lx)(i,n.onClickFunction),n.wrapInATR){return(0,f.I1)(e,i,t)}return i}function W(e){if(e.refresh)e.refresh();else for(let t=0;t<e.children.length;t++)W(e.children[t])}function V(e,t,n,a={}){const s=new Set,c=!(!a.renderSupportingInfo&&!a.renderNameSuffix);function d(n){const o=n,r={noun:A};if(r.renderSupportingInfo=a.renderSupportingInfo,r.renderNameSuffix=a.renderNameSuffix,c&&n?.uri&&C.fetcher){const e=n.doc(),t=e?.uri?C.fetcher.requested?.[e.uri]:void 0,i="done"!==t&&"failed"!==t;e?.uri&&i&&!s.has(e.uri)&&(s.add(e.uri),C.fetcher.nowOrWhenFetched(e,void 0,()=>{s.delete(e.uri),m()}))}return v&&(r.deleteFunction=function(){!function(e){if(!C.updater)throw new Error("kb has no updater");C.updater.update((0,i.st)(t,w,e,b),[],function(e,t,n,i){t?m():x(void 0,"Error deleting one: "+n)})}(o)}),P(e,w,n,r)}const m=function(){const e=C.each(t,w);e.sort(),u.syncTableToArray(T,e,d,c?function(e,t){return d(t)}:void 0)};function f(e){const n=[];if(e.forEach(function(e){const a=(0,i.sym)(e);r.Rm("Dropped on attachemnt "+e),n.push((0,i.st)(t,w,a,b))}),!C.updater)throw new Error("kb has no updater");C.updater.update([],n,function(e,t,n,i){t?m():x(void 0,"Error adding one: "+n)})}function h(e){(0,l.Zn)(C.fetcher,e,a.uploadFolder?.uri,a.uploadFolder?.uri,function(e,n){const a=[(0,i.st)(t,w,C.sym(n),b)];if(!C.updater)throw new Error("kb has no updater");C.updater.update([],a,function(e,t,n,i){t?m():x(void 0,"Error adding link to uploaded file: "+n)})})}const b=a.doc||t.doc();void 0===a.modify&&(a.modify=!0);const v=a.modify,y=a.promptIcon||g+"noun_748003.svg",w=a.predicate||o.A.wf("attachment"),A=a.noun||"attachment",C=p.store,E=n.appendChild(e.createElement("table"));E.setAttribute("style","margin-top: 1em; margin-bottom: 1em;");const k=E.appendChild(e.createElement("tr")),_=k.appendChild(e.createElement("td")),T=k.appendChild(e.createElement("td")).appendChild(e.createElement("table"));if(T.appendChild(e.createElement("tr")),E.refresh=m,m(),v){const t=D(e,y,"Drop attachments here");_.appendChild(t);const n=a.uploadFolder?h:null;if((0,l.DK)(t,f,n),(0,l.DK)(_,f,n),a.uploadFolder){const t=se(e,h);_.appendChild(t)}}return E}function Z(e){e.preventDefault(),e.stopPropagation();const t=u.getTarget(e).getAttribute("href");if(!t)return r.Rm("openHrefInOutlineMode: No href found!\n");const n=window.document;n.outlineManager?n.outlineManager.GotoSubject(p.store.sym(t),!0,void 0,!0,void 0):window&&window.panes&&window.panes.getOutliner?window.panes.getOutliner().GotoSubject(p.store.sym(t),!0,void 0,!0,void 0):r.Rm("ERROR: Can't access outline manager in this config")}function G(e){if(void 0===e.uri)return;let t=e.uri;if("http://"!==t.slice(0,7))return;t=t.slice(7);const n=t.indexOf("#");if(n>=0)t=t.slice(0,n);else{const e=t.lastIndexOf("/");if(e<0)return;t=t.slice(0,e)}return p.store.sym("http://tabulator.org/wiki/annnotation/"+t)}function J(){const e={};return p.store.statementsMatching(void 0,o.A.rdf("type"),void 0).forEach(function(t){t.object.value&&(e[t.object.value]=!0)}),p.store.statementsMatching(void 0,o.A.rdfs("subClassOf"),void 0).forEach(function(t){t.object.value&&(e[t.object.value]=!0),t.subject.value&&(e[t.subject.value]=!0)}),p.store.each(void 0,o.A.rdf("type"),o.A.rdfs("Class")).forEach(function(t){t.value&&(e[t.value]=!0)}),e}function Q(e){const t={},n={},i={};let a=0,s=0,r=0;const l=e.predicateIndex;for(const e in l){"Literal"===l[e][0].object.termType?(n[e]=!0,s++):(i[e]=!0,a++)}const p=e.each(void 0,o.A.rdf("type"),o.A.rdf("Property"));for(let e=0;e<p.length;e++){const t=p[e].toNT();i[t]||n[t]||(n[t]=!0,i[t]=!0,r++)}return t.op=i,t.dp=n,(0,c.info)(`propertyTriage: ${a} non-lit, ${s} literal. ${r} unknown.`),t}function Y(e,t){const n=e.createElement("button");return n.setAttribute("type","button"),n.textContent="Goto "+u.label(t),n.addEventListener("click",function(n){e.outlineManager.GotoSubject(t,!0,void 0,!0,void 0)},!0),n}function K(e,t){const n=e.createElement("button");return n.setAttribute("type","button"),n.textContent="✕",n.addEventListener("click",function(e){t.parentNode.removeChild(t)},!0),n}function X(e,t,n,i,a,o,s,r,c){return ee(e.createElement("div"),e,t,n,i,a,o,s,r,c)}function ee(e,t,n,i,a,o,s,r,c,l){const p="border: 0.1em solid #ddd; border-bottom: none; width: 95%; height: 2em; padding: 0.5em;";let u=null;e.innerHTML="";const d=function(e,s){let d,m;const f=function(){const e=o?n.each(void 0,a,s):n.each(s,a);x.setAttribute("class",0===e.length?"hideTillHover":""),m.setAttribute("src",r.connectIcon||g+"noun_25830.svg"),m.setAttribute("title",e.length?e.length:"attach")},h=te.twoLine.widgetForClass(i);d=h(t,s),d.setAttribute("style",p);const b=t.createElement("div");b.setAttribute("class","hideTillHover"),b.setAttribute("style","float:right; width:10%");const v=t.createElement("a");v.setAttribute("href",s.uri),v.setAttribute("style","float:right"),b.appendChild(v).textContent=">",e.appendChild(b);const x=t.createElement("div");return x.setAttribute("style",(o?"float:left;":"float:right;")+" width:30px;"),m=t.createElement("img"),f(),x.appendChild(m),e.appendChild(x),d.addEventListener("click",function(e){u===d?(d.setAttribute("style",p),u=null):(u&&u.setAttribute("style",p),d.setAttribute("style",p+"background-color: #ccc; color:black;"),u=d),c(s,e,u===d),f()},!1),m.addEventListener("click",function(e){l(s,e,o,f)},!1),e.appendChild(d),e};for(let n=0;n<s.length;n++){const i=t.createElement("div");e.appendChild(i),d(i,s[n])}return e}let te={};function ne(e,t){const n=e.querySelectorAll("link");for(let e=0;e<n.length;e++)if("stylesheet"===(n[e].getAttribute("rel")||"")&&(n[e].getAttribute("href")||"")===t)return;const i=e.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href",t),e.getElementsByTagName("head")[0].appendChild(i)}function ie(e){return oe(e,"audio")}function ae(e){return oe(e,"video")}function oe(e,t){const n=t||"image",a=p.store.findTypeURIs(e),o=i.Util.mediaTypeClass(n+"/*").uri.split("*")[0];for(const e in a)if(e.startsWith(o))return!0;return{audio:"http://purl.org/dc/dcmitype/Sound",image:"http://purl.org/dc/dcmitype/Image",video:"http://purl.org/dc/dcmitype/MovingImage"}[n]in a}function se(e,t){const n=e.createElement("div"),i=n.appendChild(e.createElement("input"));i.setAttribute("type","file"),i.setAttribute("multiple","true"),i.addEventListener("change",e=>{r.Rm("File drop event: ",e),e.files?t(e.files):e.target&&e.target.files?t(e.target.files):alert("Sorry no files .. internal error?")},!1),i.style="display:none";const a=n.appendChild(D(e,g+"noun_Upload_76574_000000.svg","Upload files",e=>{i.click()}));return(0,l.DK)(a,null,t),n}te={line:{},twoLine:{"":function(e,t){const n=e.createElement("div");return n.textContent=u.label(t),n},"http://www.w3.org/2000/10/swap/pim/qif#Transaction":function(e,t){let n="";const i=function(e){const i=p.store.any(t,o.A.qu(e));return i||(n+="@@ No value for "+e+"! "),i?u.escapeForXML(i.value):"?"},a=e.createElement("table");return a.innerHTML=`\n <tr>\n <td colspan="2"> ${i("payee")}</td>\n < /tr>\n < tr >\n <td>${i("date").slice(0,10)}</td>\n <td style = "text-align: right;">${i("amount")}</td>\n </tr>`,n&&(a.innerHTML=`\n <tr>\n <td><a href="${u.escapeForXML(t.uri)}">${u.escapeForXML(n)}</a></td>\n </tr>`),a},"http://www.w3.org/ns/pim/trip#Trip":function(e,t){const n=function(e){const n=p.store.any(t,e);return n?u.escapeForXML(n.value):"?"},i=e.createElement("table");return i.innerHTML=`\n <tr>\n <td colspan="2">${n(o.A.dc("title"))}</td>\n </tr>\n <tr style="color: #777">\n <td>${n(o.A.cal("dtstart"))}</td>\n <td>${n(o.A.cal("dtend"))}</td>\n </tr>`,i},widgetForClass:function(e){let t=te.twoLine[e.uri];const n=p.store;if(t)return t;const i=n.findSuperClassesNT(e);for(const e in i)if(t=te.twoLine[n.fromNT(e).uri],t)return t;return te.twoLine[""]}}}},9326(e,t,n){n.d(t,{O:()=>o,w:()=>a});var i=n(3378);function a(e,t,n){const a=e.createElement("a");a.setAttribute("href",t.uri),t.uri.startsWith("http")&&a.setAttribute("target","_blank");const o=a.appendChild(e.createElement("img"));return o.setAttribute("src",n||i.i1+"go-to-this.png"),o.setAttribute("style","margin: 0.3em;"),a}const o=(e,t,n)=>{const i=a(e,n);t.appendChild(i).classList.add("HoverControlHide"),t.appendChild(e.createElement("br"))}},386(e,t,n){n.d(t,{DK:()=>s,Zn:()=>c,eB:()=>r});var i=n(7423),a=n(6049),o=n(675);function s(e,t,n){const a=function(e){e.preventDefault(),e.dataTransfer.dropEffect="copy"},s=function(e){i.Rm("dragenter event dropEffect: "+e.dataTransfer.dropEffect),this.localStyle&&(this.savedStyle||(this.savedStyle=o.i.dragEvent)),e.dataTransfer.dropEffect="link",i.Rm("dragenter event dropEffect 2: "+e.dataTransfer.dropEffect)},r=function(e){i.Rm("dragleave event dropEffect: "+e.dataTransfer.dropEffect),this.savedStyle?this.localStyle=this.savedStyle:this.localStyle=o.i.dropEvent},c=function(e){e.preventDefault&&e.preventDefault(),i.Rm("Drop event. dropEffect: "+e.dataTransfer.dropEffect),i.Rm("Drop event. types: "+(e.dataTransfer.types?e.dataTransfer.types.join(", "):"NOPE"));let a,s=null;if(e.dataTransfer.types){for(let t=0;t<e.dataTransfer.types.length;t++){const o=e.dataTransfer.types[t];if("text/uri-list"===o)s=e.dataTransfer.getData(o).split("\n"),i.Rm("Dropped text/uri-list: "+s);else if("text/plain"===o)a=e.dataTransfer.getData(o);else if("Files"===o&&n){const t=e.dataTransfer.files;for(let e=0;t[e];e++){const n=t[e];i.Rm("Filename: "+n.name+", type: "+(n.type||"n/a")+" size: "+n.size+" bytes, last modified: "+(n.lastModifiedDate?n.lastModifiedDate.toLocaleDateString():"n/a"))}n(t)}}null===s&&a&&"http"===a.slice(0,4)&&(s=a,i.Rm("Waring: Poor man's drop: using text for URI"))}else s=[e.dataTransfer.getData("Text")],i.Rm("WARNING non-standard drop event: "+s[0]);return i.Rm("Dropped URI list (2): "+s),s&&t(s),this.localStyle=o.i.restoreStyle,!1};!function(e){e||i.Rm("@@@ addTargetListeners: ele "+e),e.addEventListener("dragover",a),e.addEventListener("dragenter",s),e.addEventListener("dragleave",r),e.addEventListener("drop",c)}(e)}function r(e,t){e.setAttribute("draggable","true"),e.addEventListener("dragstart",function(n){e.style.fontWeight="bold",n.dataTransfer.setData("text/uri-list",t.uri),n.dataTransfer.setData("text/plain",t.uri),n.dataTransfer.setData("text/html",e.outerHTML),i.Rm("Dragstart: "+e+" -> "+t+"de: "+n.dataTransfer.dropEffect)},!1),e.addEventListener("drag",function(e){e.preventDefault(),e.stopPropagation()},!1),e.addEventListener("dragend",function(n){e.style.fontWeight="normal",i.Rm("Dragend dropeffect: "+n.dataTransfer.dropEffect),i.Rm("Dragend: "+e+" -> "+t)},!1)}function c(e,t,n,o,s){for(let r=0;t[r];r++){const c=t[r];i.Rm(" dropped: Filename: "+c.name+", type: "+(c.type||"n/a")+" size: "+c.size+" bytes, last modified: "+(c.lastModifiedDate?c.lastModifiedDate.toLocaleDateString():"n/a"));const l=new FileReader;l.onload=function(t){return function(r){const c=r.target.result;let l="";i.Rm(" File read byteLength : "+c.byteLength);let p=t.type;if(t.type&&""!==t.type){const e=a.extension(t.type);e&&"false"!==e&&!t.name.endsWith("."+e)&&t.type!==a.lookup(t.name)&&(l="_."+e)}else if(p=a.lookup(t.name),!p){const e="Filename needs to have an extension which gives a type we know: "+t.name;throw i.Rm(e),alert(e),new Error(e)}const u=t.type.startsWith("image/")&&o||n,d=u+(u.endsWith("/")?"":"/")+encodeURIComponent(t.name)+l;e.webOperation("PUT",d,{data:c,contentType:p}).then(e=>{i.Rm(" Upload: put OK: "+d),s(t,d)},e=>{const t=" Upload: FAIL "+d+", Error: "+e;throw i.Rm(t),alert(t),new Error(t)})}}(c),l.readAsArrayBuffer(c)}}},3468(e,t,n){n.d(t,{F:()=>s});var i=n(4608),a=n(675),o=n(4762);function s(e,t,n,s){const r=e.createElement("div"),c=s||t instanceof Error?t:null;return c?(console.error(`errorMessageBlock: ${c} at: ${c.stack||"??"}`,c),r.textContent=c.message):r.textContent=t,r.appendChild((0,i.cancelButton)(e,()=>{r.parentNode&&r.parentNode.removeChild(r)})).style=a.i.errorCancelButton,r.setAttribute("style",a.i.errorMessageBlockStyle),r.style.backgroundColor=n||o.A.defaultErrorBackgroundColor,r}},1763(e,t,n){n.d(t,{Dk:()=>L,K:()=>o.K,L1:()=>M,LC:()=>O,LX:()=>U,Nr:()=>l.Nr,Nt:()=>k,PM:()=>l.PM,Ru:()=>S,WG:()=>l.WG,WY:()=>F,ZA:()=>T,ZZ:()=>o.ZZ,bk:()=>l.bk,e2:()=>B,eR:()=>I,eb:()=>R,f6:()=>_,iU:()=>D,rg:()=>o.rg,s2:()=>$,tE:()=>j,tk:()=>a.t,vx:()=>N,xV:()=>P});var i=n(3291),a=n(588),o=n(9086),s=n(7673),r=n(7423),c=n(3468),l=n(6564),p=n(8251),u=n(675),d=n(4762),m=n(3378),f=n(4158),h=n(1795),g=n(4961),b=n(3138),v=n(52),x=n(4101),y=n(4608);const w=b.store;function A(e,t,n,i,a,s,c){const l=s.children;for(let p=0;p<c.length;p++){const u=c[p];if((0,o.K)(u)===h.A.ui("Options").uri){const c=(0,o.rg)(e,u)(e,null,t,n,u,i,a);r.Rm("Refreshing Options field by replacing it."),s.insertBefore(c,l[p]),s.removeChild(l[p+1])}}}function C(e,t,n,i,a,o,s,r){const p=h.A.ui,u=b.store,d=u.any(a,p("property"));if(!d){const n=(0,c.F)(e,"No property to boolean field: "+a);return t&&t.appendChild(n),n}let m=u.any(a,p("label"));m||(m=v.label(d,!0)),o=(0,l.WG)(i,d,o);let f=u.any(i,d);void 0===f&&(f=!1);const x=g.st(i,d,!0,o),y=F(e,u,m,g.st(i,d,!1,o),x,a,o,r);return t&&t.appendChild(y),y}function E(e,t,n,i,a,s,r){(0,o.rg)(e,a)(e,t,n,i,a,s,r)}function k(e,t,n,i,a){const o=e.createElement("button");return o.setAttribute("type","button"),o.innerHTML="Edit "+v.label(h.A.ui("Form")),o.addEventListener("click",function(s){_(e,t,{},n,h.A.ui("FormForm"),i,a).setAttribute("style",h.A.ui("FormForm").sameTerm(n)?"background-color: #fee;":"background-color: #ffffe7;"),o.parentNode.removeChild(o)},!0),o}function _(e,t,n,i,a,s,r){return(0,o.rg)(e,a)(e,t,n,i,a,s,r)}function T(e,t){const n=e.each(void 0,h.A.rdf("range"),t);[h.A.rdfs("comment"),h.A.dc("title"),h.A.foaf("name"),h.A.foaf("homepage")].forEach(function(e){n.push(e)});let i=e.each(void 0,h.A.rdf("type"),t);i.length>60&&(i=i.slice(0,60));const a={};for(let t=0;t<(i.length>60?60:i.length);t++)e.statementsMatching(i[t],void 0,void 0).forEach(function(e){a[e.predicate.uri]=!0});n.forEach(function(e){a[e.uri]=!0});const o=[];for(const t in a)o.push(e.sym(t));return o}function S(e,t,n){const i=[e.sym(t)];for(;i.length>0;){const t=i.shift(),a=e.each(t,n);if(f.debug("Lists for "+t+", "+n+": "+a.length),0!==a.length)return a;const o=e.each(t,h.A.rdfs("subClassOf"));for(let e=0;e<o.length;e++)i.push(o[e]),f.debug("findClosest: add super: "+o[e])}return[]}function L(e){const t=b.store;f.debug("formsFor: subject="+e);const n=t.findTypeURIs(e);let i;for(i in n)f.debug(" type: "+i);const a=t.bottomTypeURIs(n);let o=[];for(const e in a)f.debug("candidatesFor: trying bottom type ="+e),o=o.concat(S(t,e,h.A.ui("creationForm"))),o=o.concat(S(t,e,h.A.ui("annotationForm")));return o}function j(e){const t=e.map(function(e){return[w.any(e,h.A.ui("sequence"))||9999,e]});return t.sort(function(e,t){return e[0]-t[0]}),t.map(function(e){return e[1]})}function R(e){const t=e.map(function(e){return[v.label(e).toLowerCase(),e]});return t.sort(),t.map(function(e){return e[1]})}function N(e,t,n,i,a,o,s,r){const c=e.createElement("button");return c.setAttribute("type","button"),c.innerHTML="New "+v.label(a),c.addEventListener("click",function(l){c.parentNode.appendChild(B(e,t,n,i,a,o,s,r))},!1),c}function B(e,t,n,a,s,r,c,l){const p=e.createElement("form");if(!r){const n=S(t,s.uri,h.A.ui("creationForm"));if(0===n.length){p.appendChild(e.createElement("p")).textContent="I am sorry, you need to provide information about a "+v.label(s)+" but I don't know enough information about those to ask you.";const t=p.appendChild(e.createElement("button"));return t.setAttribute("type","button"),t.setAttribute("style","float: right;"),t.innerHTML="Goto "+v.label(s),t.addEventListener("click",function(t){e.outlineManager.GotoSubject(s,!0,void 0,!0,void 0)},!1),p}f.debug("lists[0] is "+n[0]),r=n[0]}f.debug("form is "+r),p.setAttribute("style",`border: 0.05em solid ${d.A.formBorderColor}; color: ${d.A.formBorderColor}`),p.innerHTML="<h3>New "+v.label(s)+"</h3>";const u=(0,o.rg)(e,r),m=P(c);let b=!1;function x(e,t,n){return l(t,n)}f.info("paneUtils Object is "+m);const y=u(e,p,{},m,r,c,function(o,r){if(!o)return l(o,r);const u=[];n&&!t.holds(n,a,m,c)&&u.push(g.st(n,a,m,c)),n&&!t.holds(m,h.A.rdf("type"),s,c)&&u.push(g.st(m,h.A.rdf("type"),s,c)),u.length?t.updater.update([],u,x):l(!0,r),b||(b=p.appendChild(i.$J(e,m)))});return i.DT(e,y).setAttribute("style","float: right;"),p.AJAR_subject=m,p}function I(e,t,n,i,a,o){const s=e.createElement("div"),r=t.anyJS(n,i,null,a)||"",l=e.createElement("textarea");function p(r){m.disabled=!0,m.setAttribute("style","visibility: hidden; float: right;"),l.disabled=!0,l.style.color=d.A.textInputColorPending;const p=t.statementsMatching(n,i,null,a),u=g.st(n,i,l.value,a);t.updater.update(p,u,function(t,n,i){n?(l.style.color=d.A.textInputColor,l.disabled=!1):s.appendChild((0,c.F)(e,"Error (while saving change to "+a.uri+"): "+i)),o&&o(n,i)})}s.appendChild(l),l.rows=r?r.split("\n").length+2:2,l.cols=80,l.setAttribute("style",u.i.multilineTextInputStyle),null!==r?l.value=r:l.select(),s.refresh=function(){const e=t.any(n,i,null,a);e&&e.value!==l.value&&(l.value=e.value)};let m;return t.updater.editable(a.uri)?(m=y.continueButton(e,p),m.disabled=!0,m.style.visibility="hidden",m.style.float="right",s.appendChild(m),l.addEventListener("keyup",function(e){l.style.color="green",m&&(m.disabled=!1,m.style.visibility="")},!0),l.addEventListener("change",p,!0)):(l.disabled=!0,l.style.backgroundColor=d.A.textInputBackgroundColorUneditable),s}function O(e,t,n,i,a,s,l,p){f.debug("Select list length now "+a.length);let d=0;const m={},b=t.updater.editable(l.uri);for(let e=0;e<a.length;e++){const t=a[e];t.uri||r.R8(`makeSelectForClassifierOptions: option does not have an uri: ${t}, with predicate: ${i}`),t.uri&&!(t.uri in m)&&(m[t.uri]=!0,d++)}if(0===d&&!s.mint)return(0,c.F)(e,"Can't do selector with no options, subject= "+n+" property = "+i+".");let x;f.debug("makeSelectForClassifierOptions: dataDoc="+l);const y=function(){return x={},i.sameTerm(h.A.rdf("type"))?x=t.findTypeURIs(n):t.each(n,i,null,l).forEach(function(e){x[e.uri]=!0}),x};x=y();const w=function(a){A.disabled=!0;const r=[];let u=[];const d=function(e){t.holds(n,i,e,l)&&r.push(g.st(n,i,e,l))};let m;for(let a=0;a<A.options.length;a++){const o=A.options[a];if(o.selected&&o.AJAR_mint){if(s.mintClass){const a=B(e,t,n,i,s.mintClass,null,l,function(e,t){e||p(e,t,{change:"new"})});A.parentNode.appendChild(a),m=a.AJAR_subject}else m=P(l);u.push(g.st(n,i,m,l)),s.mintStatementsFun&&(u=u.concat(s.mintStatementsFun(m)))}o.AJAR_uri&&(o.selected&&!(o.AJAR_uri in x)&&u.push(g.st(n,i,t.sym(o.AJAR_uri),l)),!o.selected&&o.AJAR_uri in x&&d(t.sym(o.AJAR_uri)),o.selected&&(A.currentURI=o.AJAR_uri))}let h=A.subSelect;for(;h&&h.currentURI;)d(t.sym(h.currentURI)),h=h.subSelect;for(h=A.superSelect;h&&h.currentURI;)d(t.sym(h.currentURI)),h=h.superSelect;function b(e,t){p(e,{widget:"select",event:"new"})}f.info("makeSelectForClassifierOptions: data doc = "+l),t.updater.update(r,u,function(t,n,i){if(x=y(),!n)return A.parentNode.appendChild((0,c.F)(e,"Error updating data in select: "+i));if(A.disabled=!1,m){(0,o.rg)(e,s.subForm)(e,A.parentNode,{},m,s.subForm,l,b)}p&&p(n,{widget:"select",event:"change"})})},A=e.createElement("select");A.setAttribute("style",u.i.formSelectStyle),s.multiple&&A.setAttribute("multiple","true"),A.currentURI=null,A.refresh=function(){x=y();for(let e=0;e<A.children.length;e++){const t=A.children[e];t.AJAR_uri&&(t.selected=t.AJAR_uri in x)}A.disabled=!1};for(const n in m){const i=t.sym(n),a=e.createElement("option");s.disambiguate?a.appendChild(e.createTextNode(v.labelWithOntology(i,!0))):a.appendChild(e.createTextNode(v.label(i,!0)));const o=t.any(i,t.sym("http://www.w3.org/ns/ui#backgroundColor"));o&&a.setAttribute("style","background-color: "+o.value+"; "),a.AJAR_uri=n,n in x&&(a.setAttribute("selected","true"),A.currentURI=n),A.appendChild(a)}if(b&&s.mint){const t=e.createElement("option");t.appendChild(e.createTextNode(s.mint)),t.AJAR_mint=!0,A.insertBefore(t,A.firstChild)}if(null==A.currentURI&&!s.multiple){const t=e.createElement("option");t.appendChild(e.createTextNode(s.nullLabel)),A.insertBefore(t,A.firstChild),t.selected=!0}return b&&A.addEventListener("change",w,!1),A}function D(e,t,n,i,a,o,s,l){f.debug("Select list length now "+a.length);let p=0;const d={},m=t.updater.editable(s.uri);for(let e=0;e<a.length;e++){const t=a[e];t.uri||r.R8(`makeSelectForOptions: option does not have an uri: ${t}, with predicate: ${i}`),t.uri&&!(t.uri in d)&&(d[t.uri]=!0,p++)}if(0===p)return(0,c.F)(e,"Can't do selector with no options, subject= "+n+" property = "+i+".");let b;f.debug("makeSelectForOptions: dataDoc="+s);const x=function(){return b={},i.sameTerm(h.A.rdf("type"))?b=t.findTypeURIs(n):t.each(n,i,null,s).forEach(function(e){e.uri&&(b[e.uri]=!0)}),b};b=x();const y=function(a){w.disabled=!0;const o=[],r=[],p=function(e){t.holds(n,i,e,s)&&o.push(g.st(n,i,e,s))};for(let e=0;e<w.options.length;e++){const a=w.options[e];a.AJAR_uri&&(a.selected&&!(a.AJAR_uri in b)&&r.push(g.st(n,i,t.sym(a.AJAR_uri),s)),!a.selected&&a.AJAR_uri in b&&p(t.sym(a.AJAR_uri)),a.selected&&(w.currentURI=a.AJAR_uri))}let u=w.subSelect;for(;u&&u.currentURI;)p(t.sym(u.currentURI)),u=u.subSelect;for(u=w.superSelect;u&&u.currentURI;)p(t.sym(u.currentURI)),u=u.superSelect;f.info("selectForOptions: data doc = "+s),t.updater.update(o,r,function(t,n,i){if(b=x(),!n)return w.parentNode.appendChild((0,c.F)(e,"Error updating data in select: "+i));w.disabled=!1,l&&l(n,{widget:"select",event:"change"})})},w=e.createElement("select");w.setAttribute("style",u.i.formSelectStyle),w.currentURI=null,w.refresh=function(){b=x();for(let e=0;e<w.children.length;e++){const t=w.children[e];t.AJAR_uri&&(t.selected=t.AJAR_uri in b)}w.disabled=!1};for(const n in d){const i=t.sym(n),a=e.createElement("option");o.disambiguate?a.appendChild(e.createTextNode(v.labelWithOntology(i,!0))):a.appendChild(e.createTextNode(v.label(i,!0)));const s=t.any(i,t.sym("http://www.w3.org/ns/ui#backgroundColor"));s&&a.setAttribute("style","background-color: "+s.value+"; "),a.AJAR_uri=n,n in b&&(a.setAttribute("selected","true"),w.currentURI=n),w.appendChild(a)}if(!w.currentURI){const t=e.createElement("option");t.appendChild(e.createTextNode(o.nullLabel)),w.insertBefore(t,w.firstChild),t.selected=!0}return m&&w.addEventListener("change",y,!1),w}function $(e,t,n,i,a,o){const s=t.any(i,h.A.owl("disjointUnionOf"));let r,l=!1;return s?r=s.elements:(r=t.each(void 0,h.A.rdfs("subClassOf"),i),l=!0),f.debug("Select list length "+r.length),0===r.length?(0,c.F)(e,"Can't do "+(l?"multiple ":"")+"selector with no subclasses of category: "+i):1===r.length?(0,c.F)(e,"Can't do "+(l?"multiple ":"")+"selector with only 1 subclass of category: "+i+":"+r[1]):O(e,t,n,h.A.rdf("type"),r,{multiple:l,nullLabel:"* Select type *"},a,o)}function M(e,t,n,i,a,o){function s(){c&&(r.removeChild(c),c=null),l.currentURI&&t.any(t.sym(l.currentURI),h.A.owl("disjointUnionOf"))&&(c=M(e,t,n,t.sym(l.currentURI),a,o),l.subSelect=c.firstChild,l.subSelect.superSelect=l,r.appendChild(c))}const r=e.createElement("span");let c=null;const l=$(e,t,n,i,a,function(e,t){e&&s(),o(e,t)});return r.appendChild(l),s(),r}function F(e,t,n,i,a,o,s,p){const d=e.createElement("div"),m=(0,l.Nr)(e,t,d,o,n),f=t.updater.editable(s.uri),g=e.createElement("button"),b=g;function v(e){if(!e)return[];if(e.object)return e.why||(e.why=s),[e];if(e instanceof Array)return e;throw new Error("buildCheckboxForm: bad param "+e)}function x(e){return 0===e.filter(e=>!t.holds(e.subject,e.predicate,e.object,e.why)).length}if(g.style=u.i.checkboxInputStyle,m.appendChild(g),a=v(a),i=v(i),function(){let n=x(a),s=n;if(i.length){const r=x(i);if(n&&r)return d.appendChild(y.errorMessageBlock(e,"Inconsistent data in dataDoc!\n"+a+" and\n"+i)),d;if(!n&&!r){n=null;const e=t.any(o,h.A.ui("default"));s=e?"1"===e.value:!!p&&null}}g.state=n,g.textContent={true:"✓",false:p?"✕":" ",null:"-"}[s]}(),!f)return d;return g.addEventListener("click",function(n){b.style.color="#bbb";const o=!0===g.state?a:!1===g.state?i:[];g.newState=null===g.state||!0!==g.state&&(!p||null);const s=!0===g.newState?a:!1===g.newState?i:[];r.Rm(` Deleting ${o}`),r.Rm(` Inserting ${s}`),t.updater.update(o,s,function(n,i,a){if(i)b.style.color="#000",g.state=g.newState,g.textContent={true:"✓",false:"✕",null:"-"}[g.state];else{if(o.why){t.holds(o.subject,o.predicate,o.object,o.why)&&r.Rm(" @@@@@ weird if 409 - does hold statement")}b.style.color="#000",b.style.backgroundColor="#fee",d.appendChild((0,c.F)(e,`Checkbox: Error updating dataDoc from ${g.state} to ${g.newState}:\n\n${a}`))}})},!1),d}function P(e){const t=new Date;return g.sym(e.uri+"#id"+t.getTime())}function U(e,t,n,i,a,o,s,r,l,p,d){const m={},b=n.updater.editable(p.uri);for(let e=0;e<o.length;e++){const t=o[e];t.uri&&!(t.uri in m)&&(m[t.uri]=!0)}if(0===Object.keys(m).length&&!l.mint)return(0,c.F)(e,"Can't do selector with no options, subject= "+i+" property = "+a+".");f.debug("makeSelectForChoice: dataDoc="+p);const x=function(e){t.removeChild(t.lastChild),y.refresh()},y=e.createElement("select");y.setAttribute("style",u.i.formSelectStyle),y.setAttribute("id","formSelect"),y.currentURI=null;for(const e in m)y.appendChild(w(e));if(b&&l.mint){const t=e.createElement("option");t.appendChild(e.createTextNode(l.mint)),t.AJAR_mint=!0,y.insertBefore(t,y.firstChild)}function w(t){const i=e.createElement("option"),a=n.sym(t);let o;o=l.disambiguate?v.labelWithOntology(a,!0):v.label(a,!0),i.appendChild(e.createTextNode(o)),i.setAttribute("value",t);const r=n.any(a,n.sym("http://www.w3.org/ns/ui#backgroundColor"));return r&&i.setAttribute("style","background-color: "+r.value+"; "),i.AJAR_uri=t,z(a.value,s)&&i.setAttribute("selected","true"),i}return 0===y.children.length&&y.insertBefore(function(){const t=e.createElement("option");return t.appendChild(e.createTextNode(function(){let e="--- choice ---";return a&&"BlankNode"!==a.termType&&(e="* Select for property: "+v.label(a)+" *"),i&&"BlankNode"!==i.termType&&(e="* Select for "+v.label(i,!0)+" *"),e}())),t.disabled=!0,t.value=!0,t.hidden=!0,t.selected=!0,t}(),y.firstChild),y.update=function(t){s=t;const o=[],l=[],u=function(e){n.holds(i,a,e,p)&&o.push(g.st(i,a,e,p))},m=function(e){n.holds(i,a,e,p)||l.push(g.st(i,a,e,p)),r&&!n.holds(e,h.A.rdf("type"),n.sym(r),p)&&l.push(g.st(e,h.A.rdf("type"),n.sym(r),p))},f=n.each(i,a,null,p).map(e=>e.value);for(const e of f)z(e,s)||u(g.sym(e));for(const e of s)e in f||m(g.sym(e));n.updater.update(o,l,function(t,n,i){if(!n)return y.parentNode.appendChild((0,c.F)(e,"Error updating data in select: "+i));y.refresh(),d&&d(n,{widget:"select",event:"change"})})},y.refresh=function(){y.disabled=!0;let o,u=[];for(let t=0;t<y.options.length;t++){const c=y.options[t];if(c.selected&&c.AJAR_mint){if(l.mintClass){const t=B(e,n,i,a,r,l.subForm,p,function(e,t){e||d(e,t,{change:"new"})});y.parentNode.appendChild(t),o=t.AJAR_subject}else o=P(p);u.push(g.st(i,a,n.sym(o),p)),r&&u.push(g.st(o,h.A.rdf("type"),n.sym(r),p)),l.mintStatementsFun&&(u=u.concat(l.mintStatementsFun(o))),y.currentURI=o}c.AJAR_uri&&(c.selected&&z(c.AJAR_uri,s)&&(y.currentURI=c.AJAR_uri),z(c.AJAR_uri,s)||c.removeAttribute("selected"),z(c.AJAR_uri,s)&&c.setAttribute("selected","true"))}f.info("selectForOptions: data doc = "+p),y.currentURI&&l.subForm&&!l.multiSelect&&E(e,t,{},g.sym(y.currentURI),l.subForm,p,function(i,a){i?(n.updater.update([],u,function(n,i,a){i||t.appendChild((0,c.F)(e,"Error updating select: "+a))}),d&&d(i,{widget:"select",event:"new"})):t.appendChild((0,c.F)(e,"Error updating data in field of select: "+a))}),y.disabled=!1},b&&y.addEventListener("change",x,!1),y}function z(e,t){let n;for(n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}o.ZZ[h.A.ui("AutocompleteField").uri]=p.l,o.ZZ[h.A.ui("Form").uri]=o.ZZ[h.A.ui("Group").uri]=function(e,t,n,i,a,s,r){const l=e.createElement("div"),p=h.A.ui;if(t&&t.appendChild(l),!a)return;const d=i.toNT()+"|"+a.toNT();if(n[d])return l.appendChild(e.createTextNode("Group: see above "+d)),l;const m={};for(const e in n)m[e]=1;m[d]=1;const f=a.doc?a.doc():null,g=w.any(a,p("weight"),null,f),b=g?Number(g.value):1;if(b>3||b<0)return l.appendChild((0,c.F)(e,`Form Group weight ${b} should be 0-3`));l.setAttribute("style",u.i.formGroupStyle[b]),l.style.display="flex",l.style.flexDirection="column",l.class="form-weight-"+b;let v,x=w.any(a,p("parts"),null,f);if(x?v=x.elements:(x=w.each(a,p("part"),null,f),v=j(x)),!x)return l.appendChild((0,c.F)(e,"No parts to form! "));for(let t=0;t<v.length;t++){const a=v[t],c=(0,o.rg)(e,a),p=function(t,a){t&&a&&a.widget&&"select"===a.widget&&A(e,n,i,s,r,l,v),r(t,{widget:"group",change:a})};l.appendChild(c(e,null,m,i,a,s,p))}return l},o.ZZ[h.A.ui("Options").uri]=function(e,t,n,i,a,o,s){const r=b.store,l=e.createElement("div"),p=a.doc?a.doc():null,u=h.A.ui;t&&t.appendChild(l);let d=r.any(a,u("dependingOn"));d||(d=h.A.rdf("type"));const m=r.each(a,u("case"),null,p);let f;m||l.appendChild((0,c.F)(e,"No cases to Options form. ")),f=d.sameTerm(h.A.rdf("type"))?Object.keys(r.findTypeURIs(i)).map(e=>g.sym(e)):r.each(i,d);for(let t=0;t<m.length;t++){const d=m[t],h=r.each(d,u("for"),null,p);let g=!1;for(let e=0;e<h.length;e++)for(const t of f){const n=h[e];(t.sameTerm(h)||t.termType===n.termType&&t.value===n.value)&&(g=!0)}if(g){const t=r.the(d,u("use"));if(!t)return l.appendChild((0,c.F)(e,'No "use" part for case in form '+a)),l;_(e,l,n,i,t,o,s);break}}return l},o.ZZ[h.A.ui("Multiple").uri]=function(e,t,n,a,s,l,p){function u(e){return e.map(e=>e.toString().slice(-7)).join(", ")}async function d(){const t=P(l);if(T)D(),I.elements.push(t),await $();else{const n=L?[g.st(t,S,a,l)]:[g.st(a,S,t,l)];try{await w.updater.update([],n)}catch(t){const n="Error adding to unordered multiple: "+t;C.appendChild((0,c.F)(e,n)),r.z3(n)}M()}}function x(t){async function s(e,n){let i;for(r.Rm("pre move: "+u(I.elements)),i=0;i<I.elements.length&&!I.elements[i].sameTerm(t);i++);if(i===I.elements.length&&alert("list move: not found element for "+t),n){if(0===i)return void alert("@@ boop - already at top -temp message");I.elements.splice(i-1,2,I.elements[i],I.elements[i-1])}else{if(i===I.elements.length-1)return void alert("@@ boop - already at bottom -temp message");I.elements.splice(i,2,I.elements[i+1],I.elements[i])}await $()}f.debug("Multiple: render object: "+t);const d=(0,o.rg)(e,N)(e,null,n,t,N,l,function(e,n){r.Rm(`Item done callback for item ${t.toString()}`),e||r.z3(" Item done callback: Error: "+n),p(e,n)});if(d.subject=t,w.updater.editable(l.uri)&&(i.Qy(e,d,j,async function(){if(T){r.Rm("pre delete: "+u(I.elements));for(let e=0;e<I.elements.length;e++)if(I.elements[e].sameTerm(t))return I.elements.splice(e,1),void await $()}else if(w.holds(a,S,t,l)){const n=[g.st(a,S,t,l)];w.updater.update(n,[],function(t,n,i){n?B.removeChild(d):B.appendChild((0,c.F)(e,"Multiple: delete failed: "+i))})}}),T)){const t=e.createElement("div");t.style.display="grid",t.style.gridTemplateColumns="auto 3em",t.style.gridTemplateRows="50% 50%";const n=i.x6(e,m.Pt.iconBase+"noun_1369237.svg","Move Up",async e=>s(0,!0)),a=i.x6(e,m.Pt.iconBase+"noun_1369241.svg","Move Down",async e=>s(0,!1)),o=e.createElement("div");return o.appendChild(d),t.appendChild(o),t.appendChild(n),t.appendChild(a),n.style.gridColumn=2,a.style.gridColumn=2,n.style.gridRow=1,a.style.padding="0em",n.style.padding="0em",a.style.gridRow=2,o.style.gridColumn=1,o.style.gridRowStart="span 2",t}return d}const y=m.Pt.iconBase+"noun_19460_green.svg",w=b.store,A=s.doc?s.doc():null,C=e.createElement("div"),E=C,k=h.A.ui;t&&t.appendChild(C);const _=w.any(s,k("ordered")),T=!!_&&g.Node.toJS(_),S=w.any(s,k("property")),L=w.anyJS(s,k("reverse"),null,A);if(!S)return C.appendChild((0,c.F)(e,"No property to multiple: "+s)),E;let j=w.any(s,k("label"));j||(j=v.label(S));let R=w.any(s,k("min"));R=R?0+R.value:0;const N=w.any(s,k("part"));if(!N)return C.appendChild((0,c.F)(e,"No part to multiple: "+s)),E;const B=C.appendChild(e.createElement("div"));let I,O;if(B.style.display="flex",B.style.flexDirection="column",O=L?w.any(null,S,a,l):w.any(a,S,null,l),T?(I=L?w.any(null,S,a,l):w.any(a,S,null,l),O=I?I.elements:[]):(O=L?w.each(null,S,a,l):w.each(a,S,null,l),I=null),w.updater.editable(l.uri)){const t=C.appendChild(e.createElement("div"));t.style.padding="0.5em";const n=t.appendChild(e.createElement("img"));n.setAttribute("src",y),n.setAttribute("style","margin: 0.2em; width: 1.5em; height:1.5em"),n.title="Click to add another "+j;const i=e.createElement("span");i.textContent=(0===O.length?"Add another ":"Add ")+j,t.addEventListener("click",async e=>{await d()},!0),t.appendChild(i)}function D(){I||(I=new g.Collection,L?w.add(I,S,a,l):w.add(a,S,I,l))}async function $(){r.Rm("save list: "+u(I.elements)),D();try{await w.fetcher.putBack(l)}catch(t){return void C.appendChild((0,c.F)(e,"Error trying to put back a list: "+t))}M()}function M(){let e;if(T){const t=L?w.the(null,S,a,l):w.the(a,S,null,l);e=t?t.elements:[]}else e=L?w.each(null,S,a,l):w.each(a,S,null,l),e.sort();v.syncTableToArrayReOrdered(B,e,x)}return B.refresh=M,M(),async function(){const e=R-O.length;if(e>0){for(let t=0;t<e;t++)r.Rm("Adding extra: min "+R),await d();await $()}}().then(()=>{r.Rm(" Multiple render: async stuff ok")},e=>{r.z3(" Multiple render: async stuff fails. #### ",e)}),E},o.ZZ[h.A.ui("PhoneField").uri]=l.PM,o.ZZ[h.A.ui("EmailField").uri]=l.PM,o.ZZ[h.A.ui("ColorField").uri]=l.PM,o.ZZ[h.A.ui("DateField").uri]=l.PM,o.ZZ[h.A.ui("DateTimeField").uri]=l.PM,o.ZZ[h.A.ui("TimeField").uri]=l.PM,o.ZZ[h.A.ui("NumericField").uri]=l.PM,o.ZZ[h.A.ui("IntegerField").uri]=l.PM,o.ZZ[h.A.ui("DecimalField").uri]=l.PM,o.ZZ[h.A.ui("FloatField").uri]=l.PM,o.ZZ[h.A.ui("TextField").uri]=l.PM,o.ZZ[h.A.ui("SingleLineTextField").uri]=l.PM,o.ZZ[h.A.ui("NamedNodeURIField").uri]=l.PM,o.ZZ[h.A.ui("MultiLineTextField").uri]=function(e,t,n,i,a,o,s){const r=h.A.ui,p=b.store,u=a.doc?a.doc():null,m=p.any(a,r("property"));if(!m)return(0,c.F)(e,"No property to text field: "+a);const f=e.createElement("div");f.style.display="flex",f.style.flexDirection="row";const g=f.appendChild(e.createElement("div"));g.style.width=d.A.formFieldNameBoxWidth;const v=f.appendChild(e.createElement("div"));g.appendChild((0,l.bk)(e,m,a)),o=(0,l.WG)(i,m,o);const x=p.anyJS(i,m,null,o)||"",y=p.updater.editable(o.uri),w=a&&p.anyJS(a,h.A.ui("suppressEmptyUneditable"),null,u);!y&&w&&""===x&&(f.style.display="none");const A=I(e,p,i,m,o,s);return v.appendChild(A),t&&t.appendChild(f),f},o.ZZ[h.A.ui("BooleanField").uri]=function(e,t,n,i,a,o,s){return C(e,t,0,i,a,o,0,!1)},o.ZZ[h.A.ui("TristateField").uri]=function(e,t,n,i,a,o,s){return C(e,t,0,i,a,o,0,!0)},o.ZZ[h.A.ui("Classifier").uri]=function(e,t,n,i,a,o,s){const r=b.store,p=h.A.ui,d=r.any(a,p("category"));if(!d)return(0,c.F)(e,"No category for classifier: "+a);f.debug("Classifier: dataDoc="+o);const m=e.createElement("div");m.setAttribute("class","classifierBox");const g=e.createElement("div");g.setAttribute("class","formFieldName classifierBox-label"),g.appendChild((0,l.bk)(e,d,a)),m.appendChild(g);const v=e.createElement("div");v.setAttribute("class","formFieldValue classifierBox-selectBox");const x=M(e,r,i,d,o,function(e,t){return s(e,t)});if(x&&x.querySelectorAll){const e=x.querySelectorAll("select");e.length&&!r.updater.editable(o.uri)&&e.forEach(e=>{e.readOnly=!0,e.style=u.i.textInputStyleUneditable})}return v.appendChild(x),m.appendChild(v),t&&t.appendChild(m),m},o.ZZ[h.A.ui("Choice").uri]=function(e,t,n,a,o,s,r){const p=h.A.ui,u=b.store,d=o.doc?o.doc():null;let m;const f=e.createElement("div");f.setAttribute("class","choiceBox"),t&&t.appendChild(f);const v=e.createElement("div");v.setAttribute("class","formFieldName choiceBox-label"),f.appendChild(v);const y=e.createElement("div");y.setAttribute("class","formFieldValue choiceBox-selectBox"),f.appendChild(y);const w=u.any(o,p("property"));if(!w)return f.appendChild((0,c.F)(e,"No property for Choice: "+o));v.appendChild((0,l.bk)(e,w,o));const A=u.any(o,p("from"));if(!A)return(0,c.F)(e,"No 'from' for Choice: "+o);const C=u.any(o,p("use")),k={form:o,subForm:C,disambiguate:!1};u.any(o,p("canMintNew"))&&(k.mint="* Create new *");const _=u.any(o,p("multiselect"));_&&(k.multiSelect=!0);const T=u.each(o,p("search-full-store")).length?null:s;let S;return y.refresh=function(){let t=u.each(a,w,null,s).map(e=>e.value),n=function(e){let t,n=[];n=u.each(void 0,h.A.rdf("type"),A,d);for(const t in function(e,t,n){let i,a,o,s,r,c,l,p,u,d,m;const f={};f[t.toNT()]=!0;const h={},g=e.transitiveClosure(f,e.rdfFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#subClassOf"),!0);for(const t in g){r=e.statementsMatching(null,e.rdfFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),e.fromNT(t),n);for(let e=0,t=r.length;e<t;e++)d=r[e],h[d.subject.toNT()]=d;c=e.each(null,e.rdfFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#domain"),e.fromNT(t),n);for(let t=0,a=c.length;t<a;t++)for(s=c[t],l=e.statementsMatching(null,s,null,n),o=0,i=l.length;o<i;o++)d=l[o],h[d.subject.toNT()]=d;p=e.each(null,e.rdfFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#range"),e.fromNT(t),n);for(let t=0,i=p.length;t<i;t++)for(s=p[t],u=e.statementsMatching(null,s,null,n),m=0,a=u.length;m<a;m++)d=u[m],h[d.object.toNT()]=d}return h}(u,A,e))n.push(u.fromNT(t));if(A.sameTerm(h.A.rdfs("Class")))for(m in i.Pg())n.push(u.sym(m));else if(A.sameTerm(h.A.rdf("Property"))){for(m in t=i.uA(u),t.op)n.push(u.fromNT(m));for(m in t.dp)n.push(u.fromNT(m));k.disambiguate=!0}else if(A.sameTerm(h.A.owl("ObjectProperty"))){for(m in t=i.uA(u),t.op)n.push(u.fromNT(m));k.disambiguate=!0}else if(A.sameTerm(h.A.owl("DatatypeProperty"))){for(m in t=i.uA(u),t.dp)n.push(u.fromNT(m));k.disambiguate=!0}return n}(T);if(n.push(t),n=R(n),S=U(e,y,u,a,w,n,t,A,k,s,r),y.innerHTML="",y.appendChild(S),_){const n=new x.N({placeholder:S.selected,select:S,container:y,textField:"textField",valueField:"valueField"});n.init(),n.subscribe(function(n){if("REMOVE_OPTION"===n.action&&(t=t.filter(function(e){return e!==n.value})),"CLEAR_ALL_OPTIONS"===n.action&&(t=[]),"ADD_OPTION"===n.action){if((n.value+"").includes("Create new")){const n=P(s),i=[];i.push(g.st(a,w,u.sym(n),s)),A&&i.push(g.st(n,h.A.rdf("type"),u.sym(A),s)),C&&E(e,y,{},g.sym(n),C,s,function(a,o){a?(u.updater.update([],i,function(t,n,i){n||y.appendChild((0,c.F)(e,"Error updating select: "+i))}),t.push(n),r&&r(a,{widget:"select",event:"new"})):y.appendChild((0,c.F)(e,"Error updating data in field of select: "+o))})}else t.push(n.value)}S.update(t)})}},y.refresh(),S&&S.refresh&&S.refresh(),f},o.ZZ[h.A.ui("Comment").uri]=o.ZZ[h.A.ui("Heading").uri]=function(e,t,n,i,r,c,l){const p=h.A.ui,u=b.store;let d=u.any(r,p("contents"));d||(d="Error: No contents in comment field.");const m=r.doc?r.doc():null,f=(0,o.K)(r),g=a.t[f]||{},v=e.createElement("div");t&&t.appendChild(v);const x=v.appendChild(e.createElement(g.element));x.textContent=d,(0,s.c)(x,r);const y=u.anyJS(r,h.A.ui("suppressIfUneditable"),null,m),w=u.updater.editable(c.uri);return y&&!w&&(v.style.display="none"),v}},9238(e,t,n){n.d(t,{A:()=>d});var i=n(1795),a=n(3378),o=n(3138),s=n(4608),r=n(52),c=n(3693);const l=a.Pt.iconBase+"noun_34653_green.svg",p=a.Pt.iconBase+"noun_Search_875351.svg",u=a.Pt.iconBase+"noun_253504.svg";async function d(e,t,n,a,d,m){async function f(e,t){return a.permanent?((0,c.L)(w,!0),(0,c.L)(g,!1),(0,c.L)(b,!1)):k&&(_.removeChild(k),k=void 0),d(e,t)}async function h(){k=e.createElement("div"),k.setAttribute("style","display: flex; flex-flow: wrap;"),k.appendChild(await(0,c.r)(e,a,E,f)),k.appendChild(g),k.appendChild(b),k.appendChild(w),k.appendChild(v),_.appendChild(k)}const g=s.continueButton(e);g.setAttribute("data-testid","accept-button");const b=s.cancelButton(e);b.setAttribute("data-testid","cancel-button");const v=e.createElement("div"),x=a.targetClass?r.label(a.targetClass):"item",y=s.deleteButtonWithCheck(e,v,x,m);y.setAttribute("data-testid","delete-button");const w=s.button(e,u,"Edit",e=>{A=!A,C()});w.setAttribute("data-testid","edit-button");let A=!0;function C(){A?((0,c.L)(w,!1),(0,c.L)(g,!1),(0,c.L)(b,!1)):((0,c.L)(w,!0),(0,c.L)(g,!1),(0,c.L)(b,!1))}const E={acceptButton:g,cancelButton:b,editButton:w,deleteButton:y};let k;const _=e.createElement("div");if(_.style.display="flex",_.style.flexDirection="row",(a.permanent||a.currentObject)&&await h(),n.editable){if(_.style.width="100%",n.manualURIEntry){const a=_.appendChild(s.button(e,l,n.idNoun,async function(n){const a=await s.askName(e,o.store,_,i.A.vcard("url"),void 0,"Solid ID");if(a)return d(t,a)}));s.makeDropTarget(a,async function(e){for(const n of e)await d(t,n)},void 0)}!n.dbLookup||a.currentObject||a.permanent||_.appendChild(s.button(e,p,n.idNoun,async function(e){k?(_.removeChild(k),k=void 0):await h()}))}return C(),_}},8251(e,t,n){n.d(t,{l:()=>l});var i=n(1795),a=n(3138),o=n(4608),s=n(675),r=n(9238),c=n(4961);function l(e,t,n,l,p,u,d){if("NamedNode"!==l.termType)throw new Error("Sorry this field only works on NamedNode subjects (for editable)");const m=a.store,f=p.doc?p.doc():null,h=e.createElement("div");t&&t.appendChild(h);const g=e.createElement("div");g.setAttribute("class","formFieldName"),g.setAttribute("style",s.i.formFieldNameBoxStyle),h.appendChild(g);const b=e.createElement("div");b.setAttribute("class","formFieldValue"),h.appendChild(b);const v=m.any(p,i.A.ui("property"));if(!v)return h.appendChild(o.errorMessageBlock(e,"Error: No property given for autocomplete field: "+p));const x=m.any(p,i.A.ui("labelProperty"))||i.A.schema("name"),y=m.any(p,i.A.ui("dataSource"));if(!y)return h.appendChild(o.errorMessageBlock(e,"Error: No data source given for autocomplete field: "+p));const w={label:m.anyJS(y,i.A.schema("name"),null,y.doc()),logo:m.any(y,i.A.schema("logo"),null,y.doc())},A=m.any(p,i.A.ui("targetClass"),null,p.doc())||m.any(y,i.A.ui("targetClass"),null,y.doc());A&&(w.targetClass=A),w.objectURIBase=m.any(y,i.A.ui("objectURIBase"),null,y.doc())||void 0;const C=m.anyJS(y,i.A.ui("endpoint"),null,y.doc());if(C){if(w.endpoint=C,w.searchByNameQuery=m.anyJS(y,i.A.ui("searchByNameQuery"),null,y.doc()),!w.searchByNameQuery)return h.appendChild(o.errorMessageBlock(e,"Error: No searchByNameQuery given for endpoint data Source: "+p));w.insitituteDetailsQuery=m.anyJS(y,i.A.ui("insitituteDetailsQuery"),null,y.doc())}else{const t=m.anyJS(y,i.A.ui("searchByNameURI"));if(!t)return h.appendChild(o.errorMessageBlock(e,"Error: No searchByNameURI OR sparql endpoint given for dataSource: "+y));w.searchByNameURI=t}const E=m.anyJS(p,i.A.ui("suppressEmptyUneditable"),null,f),k=m.updater?.editable(u.uri),_={permanent:!0,targetClass:w.targetClass,queryParams:w};_.size=m.anyJS(p,i.A.ui("size"),null,f)||void 0;let T=m.any(l,v,void 0,u);if(T)_.currentObject=T,_.currentName=m.any(_.currentObject,x,null,u);else if(T=m.any(p,i.A.ui("default")),T)_.currentObject=T,_.currentName=m.any(_.currentObject,x,null,u);else if(E&&!k)return h.style.display="none",h;g.appendChild(o.fieldLabel(e,v,p));const S={editable:k,dbLookup:!0};return(0,r.A)(e,l,S,_,async function(t,n){if(!n)throw new Error("autocompleteField: No name set.");const i=m.the(l,v,null,u);if(i){const e=m.any(i,x,null,u);if(i.equals(t)&&e&&e.sameTerm(n))return}const a=i?m.statementsMatching(l,v,i,u).concat(m.statementsMatching(i,x,null,u)):[],s=[(0,c.st)(l,v,t,u),(0,c.st)(t,x,n,u)];try{await(m.updater?.updateMany(a,s))}catch(t){return d(!1,t),void h.appendChild(o.errorMessageBlock(e,"Autocomplete form data update error:"+t,null,t))}d(!0,"")},async function(t,n){const i=m.the(l,v,null,u);if(!i)return d(!1,"NO data to elete"),void h.appendChild(o.errorMessageBlock(e,"Autocomplete delete: no old data!"));const a=m.statementsMatching(l,v,i,u).concat(m.statementsMatching(i,x,null,u)),s=[];try{await(m.updater?.updateMany(a,s))}catch(t){const n=new Error("Autocomplete form data delete error:"+t);return d(!1,t),void h.appendChild(o.errorMessageBlock(e,n,null,t))}d(!0,"")}).then(e=>{b.appendChild(e)},t=>{b.appendChild(o.errorMessageBlock(e,`Error rendering autocomplete ${p}: ${t}`,"#fee",t))}),h}},3693(e,t,n){n.d(t,{L:()=>p,r:()=>u});var i=n(7423),a=n(675),o=n(4762),s=n(4608),r=n(3138),c=n(8702),l=n(8677);function p(e,t){e.style.display=t?"":"none"}async function u(e,t,n,u){function d(e,n){i.Rm("Auto complete: finish! "+e),"Literal"===e.termType&&t.queryParams.objectURIBase&&(e=r.store.sym(t.queryParams.objectURIBase.value+e.value)),h(),u(e,n)}async function m(e,t){if(n.acceptButton)return n.acceptButton.disbaled=!1,p(n.acceptButton,!0),L.value=t.value,k=t,_=e,i.Rm("Auto complete: name: "+t),i.Rm("Auto complete: waiting for accept "+e),void h();p(n.cancelButton,!0),d(e,t)}async function f(e){k&&L.value===k.value&&d(_,k)}function h(){for(;T.children.length>1;)T.removeChild(T.lastChild)}function g(){t.currentObject?(L.value=t.currentName?t.currentName.value:"??? wot no name for "+t.currentObject,k=t.currentName,x=t.currentName?t.currentName.value:void 0,_=t.currentObject):(L.value="",x=void 0,_=void 0),n.deleteButton&&p(n.deleteButton,!!t.currentObject),n.acceptButton&&p(n.acceptButton,!1),n.editButton&&p(n.editButton,!0),n.cancelButton&&p(n.cancelButton,!1),w=!1,h()}const b=t.targetClass;if(!b)throw new Error("renderAutoComplete: missing targetClass");let v;n.acceptButton&&n.acceptButton.addEventListener("click",f,!1),n.cancelButton&&n.cancelButton.addEventListener("click",async function(e){i.Rm("Auto complete: Canceled by user! "),t.permanent?g():E.parentNode&&E.parentNode.removeChild(E)},!1);let x,y=!1,w=!1,A=!1,C=20;const E=e.createElement("div");let k,_;const T=E.appendChild(e.createElement("table"));T.setAttribute("data-testid","autocomplete-table"),T.setAttribute("style","max-width: 30em; margin: 0.5em;");const S=T.appendChild(e.createElement("tr"));a.i.setStyle(S,"autocompleteRowStyle");const L=S.appendChild(e.createElement("td")).appendChild(e.createElement("input"));L.setAttribute("type","text"),g();const j=t.size||o.A.textInputSize||20;L.setAttribute("size",j),L.setAttribute("data-testid","autocomplete-input");const R=a.i.textInputStyle||"border: 0.1em solid #444; border-radius: 0.5em; width: 100%; font-size: 100%; padding: 0.1em 0.6em";return L.setAttribute("style",R),L.addEventListener("keyup",function(e){13===e.keyCode&&f()},!1),L.addEventListener("input",async function(o){p(n.cancelButton,!0),async function(){function n(t){const n=e.createElement("tr");a.i.setStyle(n,"autocompleteRowStyle"),n.setAttribute("style","padding: 0.3em;"),n.style.color=A?"#080":"#088",n.textContent=t.name.value;const o=(0,c.bindingToTerm)(t.subject),s=(0,c.bindingToTerm)(t.name);return n.addEventListener("click",async e=>{i.Rm(" click row textContent: "+n.textContent),i.Rm(" click name: "+s.value),o&&s&&m(o,s)}),n}function o(e,t){return t.name.value>e.name.value?1:t.name.name<e.name.value?-1:0}if(w)return void i.Rm(`Ignoring "${L.value}" because of lock `);i.Rm(`Setting lock at "${L.value}"`),w=!0;const r=await(0,l.getPreferredLanguages)(),p=L.value.trim().toLowerCase();if(p.length<4)h(),C=20;else{A&&x&&p.startsWith(x)||(i.Rm(` Querying database at "${p}" cf last "${x}".`),v=await async function(n,o){let r;try{r=await(0,c.queryPublicDataByName)(n,b,o||l.defaultPreferredLanguages,t.queryParams)}catch(t){return function(t){const n=T.appendChild(e.createElement("tr"));i.Rm(t);const o=new Error(t);n.appendChild(s.errorMessageBlock(e,o,"pink")),a.i.setStyle(n,"autocompleteRowStyle"),n.style.padding="1em"}("Error querying db of organizations: "+t),void(w=!1)}y=r.length<c.AUTOCOMPLETE_LIMIT,x=y?n:void 0;h();const p=(0,l.filterByLanguage)(r,o);return p}(p,r));const u=function(e,t){return t.filter(t=>function(e,t){const n=e.split(" ");for(let e=0;e<n.length;e++){const i=n[e];if(t.toLowerCase().indexOf(i)<0)return!1}return!0}(e,t.name.value))}(p,v);y&&u.length<=40&&(C=u.length),A=y&&u.length<=C,i.Rm(` Filter:"${p}" lastBindings: ${v.length}, slimmed to ${u.length}; rows: ${C}, Enough? ${y}, All displayed? ${A}`);const d=u.slice(0,C);d.sort(o),h();for(const e of d)T.appendChild(n(e));1===u.length&&m((0,c.bindingToTerm)(u[0].subject),(0,c.bindingToTerm)(u[0].name))}w=!1}()}),E}},8677(e,t,n){n.r(t),n.d(t,{addDefaults:()=>c,defaultPreferredLanguages:()=>r,filterByLanguage:()=>u,getPreferredLanguages:()=>p,getPreferredLanguagesFor:()=>l,languageCodeURIBase:()=>s});var i=n(7423),a=n(3138),o=n(1795);const s="https://www.w3.org/ns/iana/language-code/",r=["en","fr","de","it","ar"];function c(e){return e||(e=[]),e.concat(r.filter(t=>!e.includes(t)))}async function l(e){const t=e.doc();await(a.store.fetcher?.load(t));const n=a.store.any(e,o.A.schema("knowsLanguage"),null,t);if(!n)return r;const i=[];return n.elements.forEach(e=>{const n=a.store.any(e,o.A.solid("publicId"),null,t);if(!n)return void console.warn("getPreferredLanguages: No publiID of language.");if(!n.value.startsWith(s))return void console.error(`What should be a language code ${n.value} does not start with ${s}`);const r=n.value.slice(s.length);i.push(r)}),i.length>0?(console.log(` User knows languages with codes: "${i.join(",")}"`),c(i)):null}async function p(){const e=await a.authn.currentUser();if(e){const t=await l(e);if(t)return t}if("undefined"!=typeof navigator){if(navigator.languages)return c(navigator.languages.map(e=>e.split("-")[0]));if(navigator.language)return c([navigator.language.split("-")[0]])}return r}function u(e,t){const n={};e.forEach(e=>{const t=e.subject.value;n[t]=n[t]||[],n[t].push(e)});const a=t||r;a.reverse();const o=[];for(const e in n){const t=n[e].map(e=>{const t=e.name["xml:lang"];return[a.indexOf(t),e]});t.sort(),t.reverse(),o.push(t[0][1])}return i.Rm(` Filter by language: ${e.length} -> ${o.length}`),o}},8702(e,t,n){n.r(t),n.d(t,{AUTOCOMPLETE_LIMIT:()=>c,ESCOResultToBindings:()=>A,bindingToTerm:()=>y,dbPediaTypeMap:()=>h,dbpediaParameters:()=>f,escoParameters:()=>m,fetcherOptionsJsonPublicData:()=>d,getDbpediaDetails:()=>N,getWikidataDetails:()=>L,getWikidataDetailsOld:()=>j,getWikidataLocation:()=>R,instituteDetailsWikidataQuery:()=>u,loadFromBindings:()=>w,loadPublicDataThing:()=>S,queryESCODataByName:()=>C,queryPublicDataByName:()=>k,queryPublicDataConstruct:()=>T,queryPublicDataSelect:()=>_,variableNameToPredicateMap:()=>x,wikidataClasses:()=>p,wikidataIncomingClassMap:()=>v,wikidataOutgoingClassMap:()=>g,wikidataParameters:()=>b});var i=n(4961),a=n(3138),o=n(7423),s=n(1795),r=n(8677);const c=200,l=/\$\(subject\)/g,p={Corporation:"http://www.wikidata.org/entity/Q6881511",EducationalOrganization:"http://www.wikidata.org/entity/Q178706",GovernmentOrganization:"http://www.wikidata.org/entity/Q327333",MedicalOrganization:"http://www.wikidata.org/entity/Q4287745",MusicGroup:"http://www.wikidata.org/entity/Q32178211",NGO:"http://www.wikidata.org/entity/Q163740",Occupation:"http://www.wikidata.org/entity/Q28640",Project:"http://www.wikidata.org/entity/Q170584",ResearchOrganization:"http://www.wikidata.org/entity/Q31855",SportsOrganization:"http://www.wikidata.org/entity/Q4438121"},u='prefix vcard: <http://www.w3.org/2006/vcard/ns#>\nCONSTRUCT\n{ wd:Q49108 vcard:fn ?itemLabel.\nwd:Q49108 rdf:type ?klass. ?klass rdfs:label ?klassLabel; rdfs:comment ?klassDescription .\nwd:Q49108 schema:logo ?logo;\n schema:image ?image;\n schema:logo ?sealImage;\n schema:subOrganization ?subsidiary .\n ?subsidiary rdfs:label ?subsidiaryLabel .\n ?supersidiary schema:subOrganization wd:Q49108 .\n ?supersidiary rdfs:label ?supersidiaryLabel .\n wd:Q49108 schema:location ?location .\n ?location schema:elevation ?elevation .\n ?location wdt:P131 ?region . ?region rdfs:label ?regionLabel .\n ?location wdt:P625 ?coordinates .\n ?location schema:country ?country . ?country rdfs:label ?countryLabel .\n}\nWHERE\n{ optional {wd:Q49108 rdfs:label ?itemLabel} .\n optional {wd:Q49108 wdt:P154 ?logo .}\n optional {wd:Q49108 wdt:P31 ?klass .}\n optional {wd:Q49108 wdt:P158 ?sealImage .}\n optional {wd:Q49108 wdt:P18 ?image .}\n\n optional { wd:Q49108 wdt:P355 ?subsidiary . }\n optional { ?supersidiary wdt:P355 wd:Q49108. }\n\n optional { wd:Q49108 wdt:P276 ?location .\n\n optional { ?location schema:eleveation ?elevation }\n optional { ?location wdt:P131 ?region }\n optional { ?location wdt:P625 ?coordinates }\n optional { ?location wdt:P17 ?country }\n }\n SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it". }\n}',d={credentials:"omit",headers:new Headers({Accept:"application/json"})},m={label:"ESCO",logo:a.store.sym("https://ec.europa.eu/esco/portal/static_resource2/images/logo/logo_en.gif"),searchByNameURI:"https://ec.europa.eu/esco/api/search?language=$(language)&type=occupation&text=$(name)"},f={label:"DBPedia",logo:a.store.sym("https://upload.wikimedia.org/wikipedia/commons/thumb/7/73/DBpediaLogo.svg/263px-DBpediaLogo.svg.png"),searchByNameQuery:'select distinct ?subject, ?name where {\n ?subject a $(targetClass); rdfs:label ?name\n FILTER regex(?name, "$(name)", "i")\n } LIMIT $(limit)',endpoint:"https://dbpedia.org/sparql/"},h={AcademicInsitution:"http://umbel.org/umbel/rc/EducationalOrganization"},g={AcademicInsitution:"http://www.wikidata.org/entity/Q4671277",Enterprise:"http://www.wikidata.org/entity/Q6881511",Business:"http://www.wikidata.org/entity/Q4830453",NGO:"http://www.wikidata.org/entity/Q79913",CharitableOrganization:"http://www.wikidata.org/entity/Q708676",Insitute:"http://www.wikidata.org/entity/Q1664720"},b={label:"WikiData",limit:3e3,logo:a.store.sym("https://www.wikimedia.org/static/images/project-logos/wikidatawiki.png"),endpoint:"https://query.wikidata.org/sparql",searchByNameQuery:'SELECT ?subject ?name\n WHERE {\n ?klass wdt:P279* $(targetClass) .\n ?subject wdt:P31 ?klass .\n ?subject rdfs:label ?name.\n FILTER regex(?name, "$(name)", "i")\n } LIMIT $(limit) ',insitituteDetailsQuery:'CONSTRUCT\n{ wd:Q49108 schema:name ?itemLabel;\n schema:logo ?logo;\n schema:logo ?sealImage;\n schema:subOrganization ?subsidiary .\n ?subsidiary schema:name ?subsidiaryLabel .\n}\nWHERE\n{\n wd:Q49108 # rdfs:label ?itemLabel ;\n wdt:P154 ?logo;\n wdt:P158 ?sealImage ;\n wdt:P355 ?subsidiary .\n # ?subsidiary rdfs:label ?subsidiaryLabel .\n\n SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE], fr". }\n}'},v={"http://www.wikidata.org/entity/Q15936437":s.A.schema("CollegeOrUniversity"),"http://www.wikidata.org/entity/Q1664720":s.A.schema("EducationalOrganization"),"http://www.wikidata.org/entity/Q43229":s.A.schema("Organization"),"http://www.wikidata.org/entity/Q3918":s.A.schema("CollegeOrUniversity"),"http://www.wikidata.org/entity/Q170584":s.A.schema("Project"),"http://www.wikidata.org/entity/Q327333":s.A.schema("GovernmentOrganization"),"http://www.wikidata.org/entity/Q2221906":s.A.schema("Place"),"http://www.wikidata.org/entity/Q167037":s.A.schema("Corporation")},x={targetClass:s.A.rdf("type"),sealImage:s.A.schema("logo"),shortName:s.A.foaf("nick"),subsidiary:s.A.schema("subOrganization"),city:s.A.vcard("locality"),state:s.A.vcard("region"),country:s.A.vcard("country-name"),homepage:s.A.foaf("homepage"),lat:s.A.schema("latitude"),long:s.A.schema("longitude")};function y(e){const t=e.type.toLowerCase();if("uri"===t||"iri"===t)return a.store.sym(e.value);if("literal"===t)return e["xml:lang"]?new i.Literal(e.value,e["xml:lang"]):new i.Literal(e.value);throw new Error(`bindingToTerm: Unexpected type "${e.type}" in sparql binding}`)}function w(e,t,n,a,r=x){const c={};o.Rm(`loadFromBindings: subject: ${t}`),o.Rm(` doc: ${a}`),n.forEach(e=>{for(const t in e){const n=e[t],i=JSON.stringify(n);c[t]=c[t]||new Set,c[t].add(i)}});for(const n in c){const l=c[n];o.Rm(` results ${n} -> ${l}`),l.forEach(c=>{const l=JSON.parse(c),{type:p,value:u}=l;let d;if("uri"===p)d=e.sym(u);else{if("literal"!==p)throw new Error(`loadFromBindings: unexpected type: ${p}`);d=new i.Literal(u,l.language,l.datatype)}if("type"===n)v[u]?d=v[u]:o.R8("Unmapped Wikidata Class: "+u);else if("coordinates"===n){o.Rm(" @@@ hey a point: "+u);const n=/.*\(([-0-9.-]*) ([-0-9.-]*)\)/.exec(u);if(n){const o=s.A.xsd("float"),r=new i.Literal(n[1],null,o),c=new i.Literal(n[2],null,o);e.add(t,s.A.schema("longitude"),c,a),e.add(t,s.A.schema("latitude"),r,a)}else o.Rm("Bad coordinates syntax: "+u)}else{const i=r[n]||s.A.schema(n);e.add(t,i,d,a),o.Rm(` public data ${i} ${d}.`)}})}}function A(e){return e._embedded.results.map(e=>({name:{value:e.title,type:"literal"},subject:{type:"IRI",value:e.uri}}))}async function C(e,t,n){if(!n.searchByNameURI)throw new Error("Missing queryTarget.searchByNameURI on queryESCODataByName");const i=n.limit||c,s=n.searchByNameURI.replace("$(name)",e).replace("$(limit)",""+i).replace("$(targetClass)",t.toNT());o.Rm("Querying ESCO data - uri: "+s);const r=await(a.store.fetcher?.webOperation("GET",s,d)),l=r?.responseText||"";if(o.Rm(" Query result text"+l.slice(0,500)+"..."),0===l.length)throw new Error("Wot no text back from ESCO query "+s);const p=JSON.parse(l);return o.Rm(" ESCO Query result JSON"+JSON.stringify(p,null,4).slice(0,500)+"..."),A(p)}function E(e){const t=e.indexOf("SPARQL-QUERY");if(t<0)return e;o.R8(" ### Fixing JSON with wikidata error code injection "+e.slice(t,t+200));const n=e.lastIndexOf("}, {");return e.slice(0,n)+" } ] } } "}async function k(e,t,n,i){function s(n){const a=i.limit||c;return n.replace("$(name)",e).replace("$(limit)",""+a).replace("$(language)",l).replace("$(targetClass)",t.toNT())}if(!t)throw new Error("queryPublicDataByName: No class provided");const l=(await(0,r.getPreferredLanguages)()||r.defaultPreferredLanguages)[0]||"en";if(i.searchByNameQuery){const e=s(i.searchByNameQuery);return o.Rm("Querying public data - sparql: "+e),_(e,i)}if(i.searchByNameURI){const e=s(i.searchByNameURI);let t;try{t=await(a.store.fetcher?.webOperation("GET",e,d))}catch(t){throw new Error(`Exception when trying to fetch ${e} \n ${t}`)}const n=t.responseText||"";if(200!==t.status)throw new Error(`HTTP error status ${t.status} trying to fetch ${e} `);if(o.Rm(" Query result text"+n.slice(0,500)+"..."),0===n.length)throw new Error("queryPublicDataByName: No text back from public data query "+e);const r=E(n),c=JSON.parse(r);if(o.Rm(" API Query result JSON"+JSON.stringify(c,null,4).slice(0,500)+"..."),c._embedded){o.Rm(" Looks like ESCO");return A(c)}throw alert("Code me: unrecognized API return format"),new Error(`*** Need to add code to parse unrecognized API JSON return\n${JSON.stringify(c,null,4)}`)}throw new Error("Query source must have either rest API or SPARQL endpoint.")}async function _(e,t){if(!t.endpoint)throw new Error("Missing queryTarget.endpoint required for queryPublicDataSelect");const n=new URL(t.endpoint);n.searchParams.append("query",e);const i=n.href;o.Rm(" queryPublicDataSelect uri: "+i);const s=new Headers;s.append("Accept","application/json");const r={credentials:"omit",headers:s},c=await(a.store.fetcher?.webOperation("GET",i,r)),l=c?.responseText||"";if(0===l.length)throw new Error("No text back from query "+i);const p=E(l),u=JSON.parse(p);o.Rm(" Query result JSON"+JSON.stringify(u,null,4).slice(0,100)+"...");return u.results.bindings}async function T(e,t,n){if(o.Rm("queryPublicDataConstruct: sparql:",e),!n.endpoint)throw new Error("Missing queryTarget.endpoint required for queryPublicDataConstruct");const s=new URL(n.endpoint);s.searchParams.append("query",e);const r=s.href;o.Rm(" queryPublicDataConstruct uri: "+r);const c=new Headers;c.append("Accept","text/turtle");const l={credentials:"omit",headers:c},p=await(a.store.fetcher?.webOperation("GET",r,l)),u=p?.responseText||"No response text?",d=u.length>500?u.slice(0,200)+" ... "+u.slice(-200):u;if(o.Rm(" queryPublicDataConstruct result text:"+d),0===u.length)throw new Error("queryPublicDataConstruct: No text back from construct query:"+r);(0,i.parse)(u,a.store,t.uri,"text/turtle")}async function S(e,t,n){if(n.uri.startsWith("https://dbpedia.org/resource/"))return N(e,t,n);if(!n.uri.match(/^https?:\/\/www\.wikidata\.org\/entity\/.*/)){const t=n.uri.startsWith("http:")?e.sym("https:"+n.uri.slice(5)):n,i=new Headers;return i.append("Accept","text/turtle"),e.fetcher.load(t,{credentials:"omit",headers:i})}await L(e,t,n)}async function L(e,t,n){const i=u.replace(/wd:Q49108/g,n.toNT());await T(i,n,b),o.Rm("getWikidataDetails: loaded.",n)}async function j(e,t,n){const i='select distinct * where {\n optional { $(subject) wdt:P31 ?targetClass } # instance of\n optional { $(subject) wdt:P154 ?logo }\n optional { $(subject) wdt:P158 ?sealImage }\n# optional { $(subject) wdt:P159 ?headquartersLocation }\n\noptional { $(subject) wdt:P17 ?country }\noptional { $(subject) wdt:P18 ?image }\noptional { $(subject) wdt:P1813 ?shortName }\n\noptional { $(subject) wdt:P355 ?subsidiary }\n# SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it" }\n}'.replace(l,n.toNT());w(e,n,await _(i,b),n.doc())}async function R(e,t,n){const i='select distinct * where {\n\n $(subject) wdt:P276 ?location .\n\n optional { ?location wdt:P2044 ?elevation }\n optional { ?location wdt:P131 ?region }\n optional { ?location wdt:P625 ?coordinates }\noptional { ?location wdt:P17 ?country }\n\n# SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it" }\n}'.replace(l,n.toNT());o.Rm(" location query sparql:"+i);const a=await _(i,b);o.Rm(" location query bindings:",a),w(e,n,a,n.doc())}async function N(e,t,n){const i=`select distinct ?city, ?state, ?country, ?homepage, ?logo, ?lat, ?long, WHERE {\n OPTIONAL { <${n}> <http://dbpedia.org/ontology/city> ?city }\n OPTIONAL { ${n} <http://dbpedia.org/ontology/state> ?state }\n OPTIONAL { ${n} <http://dbpedia.org/ontology/country> ?country }\n OPTIONAL { ${n} foaf:homepage ?homepage }\n OPTIONAL { ${n} foaf:lat ?lat; foaf:long ?long }\n OPTIONAL { ${n} <http://dbpedia.org/ontology/country> ?country }\n }`;w(e,n,await _(i,f),n.doc()),o.Rm("Finished getDbpediaDetails.")}},6564(e,t,n){n.d(t,{Nr:()=>m,PM:()=>g,WG:()=>h,bk:()=>f});var i=n(4961),a=n(3138),o=n(1795),s=n(675),r=n(4762),c=n(52),l=n(3468),p=n(9086),u=n(588);const d=a.solidLogicSingleton.store;function m(e,t,n,i,a){n.style.display="flex",n.style.flexDirection="row";const c=n.appendChild(e.createElement("div"));c.style.width=r.A.formFieldNameBoxWidth;const p=n.appendChild(e.createElement("div"));return c.setAttribute("class","formFieldName"),c.setAttribute("style",s.i.formFieldNameBoxStyle),p.setAttribute("class","formFieldValue"),a?c.appendChild(e.createTextNode(a)):t.any(i,o.A.ui("property"))?c.appendChild(f(e,t.any(i,o.A.ui("property")),i)):(p.appendChild((0,l.F)(e,"No property or label given for form field: "+i)),c.appendChild(e.createTextNode("???"))),p}function f(e,t,n){let i=d.any(n,o.A.ui("label"));if(i||(i=(0,c.label)(t,!0)),void 0===t)return e.createTextNode("@@Internal error: undefined property");const a=e.createElement("a");return t.uri&&a.setAttribute("href",t.uri),a.setAttribute("style","color: #3B5998; text-decoration: none;"),a.textContent=i,a}function h(e,t,n){const i=d.statementsMatching(e,t);if(0===i.length)return n;if(!d.updater)throw new Error("Store has no updater");return i.length>0&&i[0].why.value&&d.updater.editable(i[0].why.value,d)?d.sym(i[0].why.value):n}function g(e,t,n,a,c,f,g){const b=d,v=c.doc?c.doc():null,x=e.createElement("div"),y=b.any(c,o.A.ui("property"));if(t&&t.appendChild(x),!y)return x.appendChild((0,l.F)(e,"Error: No property given for text field: "+c));const w=m(e,b,x,c),A=b.anyJS(c,o.A.ui("suppressEmptyUneditable"),null,v),C=(0,p.K)(c);let E=u.t[C];void 0===E&&(E={style:""});const k=E.style||"",_=s.i.textInputStyle+k,T=e.createElement("input");T.style=_,w.appendChild(T),T.setAttribute("type",E.type?E.type:"text");const S=(T.getAttribute("type")||"").toLowerCase(),L="date"===S||"datetime-local"===S,j=b.anyJS(c,o.A.ui("size"))||r.A.textInputSize||20;T.setAttribute("size",j);const R=b.any(c,o.A.ui("maxLength"));T.setAttribute("maxLength",R?""+R:r.A.basicMaxLength),f=f||h(a,y,f);let N=b.any(a,y,void 0,f);if(N||(N=b.any(c,o.A.ui("default"))),N&&N.value&&E.uriPrefix?T.value=decodeURIComponent(N.value.replace(E.uriPrefix,"")).replace(/ /g,""):N&&(T.value=N.value||N.value||""),T.setAttribute("style",_),!b.updater)throw new Error("kb has no updater");return b.updater.editable(f.uri)?(T.addEventListener("keyup",function(e){E.pattern&&T.setAttribute("style",_+(T.value.match(E.pattern)?"color: green;":"color: red;"))},!0),T.addEventListener("change",function(t){if(L&&e.activeElement===T)return void(T.dataset&&(T.dataset.deferredChange="true"));if(E.pattern&&!T.value.match(E.pattern))return;const n=!L;n&&(T.disabled=!0),T.setAttribute("style",_+"color: gray;");const s=b.statementsMatching(a,y);let r;E.namedNode?r=b.sym(T.value):E.uriPrefix?(r=encodeURIComponent(T.value.replace(/ /g,"")),r=b.sym(E.uriPrefix+T.value)):r=E.dt?new i.Literal(T.value.trim(),void 0,o.A.xsd(E.dt)):new i.Literal(T.value);let c=s.map(e=>(0,i.st)(e.subject,e.predicate,r,e.why));0===c.length&&(c=[(0,i.st)(a,y,r,f)]),function e(t,n,i){const a=[];if(n.forEach(e=>{a.includes(e.why.uri)||a.push(e.why.uri)}),t.forEach(e=>{a.includes(e.why.uri)||a.push(e.why.uri)}),0===a.length)throw new Error("updateMany has no docs to patch");if(!b.updater)throw new Error("kb has no updater");if(1===a.length)return b.updater.update(t,n,i);const o=a.pop(),s=n.filter(e=>e.why.uri===o),r=n.filter(e=>e.why.uri!==o),c=t.filter(e=>e.why.uri===o),l=t.filter(e=>e.why.uri!==o);b.updater.update(c,s,function(t,n,a){n?e(l,r,i):i(t,n,a)})}(s,c,function(t,i,a){i?(n&&(T.disabled=!1),T.setAttribute("style",_)):x.appendChild((0,l.F)(e,a)),g(i,a)})},!0),T.addEventListener("blur",function(e){if(L&&T.dataset&&"true"===T.dataset.deferredChange){delete T.dataset.deferredChange;const e=new Event("change",{bubbles:!0});T.dispatchEvent(e)}},!0),x):(T.readOnly=!0,T.style=s.i.textInputStyleUneditable+k,A&&""===T.value&&(x.style.display="none"),x)}},9086(e,t,n){n.d(t,{K:()=>c,ZZ:()=>r,rg:()=>l});var i=n(3138),a=n(4158),o=n(3468);const s=i.solidLogicSingleton.store,r={};function c(e){const t=s,n=t.findTypeURIs(e),i=t.bottomTypeURIs(n),a=[];for(const e in i)a.push(e);return a[0]}function l(e,t){const n=c(t),i=r[n];return(0,a.debug)("paneUtils: Going to implement field "+t+" of type "+n),i||function(e,i){const a=(0,o.F)(e,"No handler for field "+t+" of type "+n);return i&&i.appendChild(a),a}}},588(e,t,n){n.d(t,{t:()=>o});var i=n(1795),a=n(675);const o={[i.A.ui("ColorField").uri]:{size:9,type:"color",style:"height: 3em;",dt:"color",pattern:/^\s*#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]([0-9a-f][0-9a-f])?\s*$/},[i.A.ui("DateField").uri]:{size:20,type:"date",dt:"date",pattern:/^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?Z?\s*$/},[i.A.ui("DateTimeField").uri]:{size:20,type:"datetime-local",dt:"dateTime",pattern:/^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?(T[0-2][0-9]:[0-5][0-9](:[0-5][0-9])?)?Z?\s*$/},[i.A.ui("TimeField").uri]:{size:10,type:"time",dt:"time",pattern:/^\s*([0-2]?[0-9]:[0-5][0-9](:[0-5][0-9])?)\s*$/},[i.A.ui("IntegerField").uri]:{size:12,style:"text-align: right;",dt:"integer",pattern:/^\s*-?[0-9]+\s*$/},[i.A.ui("DecimalField").uri]:{size:12,style:"text-align: right;",dt:"decimal",pattern:/^\s*-?[0-9]*(\.[0-9]*)?\s*$/},[i.A.ui("FloatField").uri]:{size:12,style:"text-align: right;",dt:"float",pattern:/^\s*-?[0-9]*(\.[0-9]*)?((e|E)-?[0-9]*)?\s*$/},[i.A.ui("SingleLineTextField").uri]:{},[i.A.ui("NamedNodeURIField").uri]:{namedNode:!0},[i.A.ui("TextField").uri]:{},[i.A.ui("PhoneField").uri]:{size:20,uriPrefix:"tel:",pattern:/^\+?[\d-]+[\d]*$/},[i.A.ui("EmailField").uri]:{size:30,uriPrefix:"mailto:",pattern:/^\s*.*@.*\..*\s*$/},[i.A.ui("Group").uri]:{style:a.i.formGroupStyle},[i.A.ui("Comment").uri]:{element:"p",style:a.i.commentStyle},[i.A.ui("Heading").uri]:{element:"h3",style:a.i.formHeadingStyle}}},7673(e,t,n){n.d(t,{c:()=>c});var i=n(1795),a=n(3138),o=n(588),s=n(9086);const r="https://www.w3.org/ns/css#";function c(e,t){const n=(0,s.K)(t),c=o.t[n]||{},l=a.store.any(t,i.A.ui("style"));if(l)if("Literal"===l.termType)l&&e.setAttribute("style",l.value);else{a.store.statementsMatching(l,null,null,t.doc()).forEach(t=>{if(t.predicate.uri&&t.predicate.uri.startsWith(r)){const n=t.predicate.uri.slice(26);try{e.style[n]=t.object.value}catch(i){console.warn(`setFieldStyle: Error setting element style ${n} to "${t.object.value}"`),console.warn(`setFieldStyle: ... Element tagName was "${e.tagName||"???"}"`)}}})}else c.style&&e.setAttribute("style",c.style)}},4608(e,t,n){n.r(t),n.d(t,{Group:()=>i.YJ,GroupBuilder:()=>i.ZT,GroupPicker:()=>i.Kf,PeoplePicker:()=>i.OU,Person:()=>i._A,addStyleSheet:()=>o.CS,allClassURIs:()=>o.Pg,appendForm:()=>c.f6,askName:()=>o.RG,attachmentList:()=>o.sf,basicField:()=>c.PM,buildCheckboxForm:()=>c.WY,button:()=>o.x6,cancelButton:()=>o.x7,clearElement:()=>o.EW,complain:()=>o.cc,continueButton:()=>o.kz,createLinkDiv:()=>o.UH,createLinkForURI:()=>s.O,createNameDiv:()=>o.ly,defaultAnnotationStore:()=>o.Qf,deleteButtonWithCheck:()=>o.Qy,editFormButton:()=>c.Nt,errorMessageBlock:()=>r.F,extractLogURI:()=>o.er,faviconOrDefault:()=>o.PO,field:()=>c.ZZ,fieldFunction:()=>c.rg,fieldLabel:()=>c.bk,fieldParams:()=>c.tk,fieldStore:()=>c.WG,fileUploadButtonDiv:()=>o.fT,findClosest:()=>c.Ru,findImage:()=>o.F1,findImageFromURI:()=>o.ZT,formatDateTime:()=>o.r6,formsFor:()=>c.Dk,iconForClass:()=>o.p_,imagesOf:()=>o.IC,index:()=>o.Pe,isAudio:()=>o.JK,isImage:()=>o.wu,isVideo:()=>o.cZ,linkButton:()=>o.$J,linkIcon:()=>s.w,makeDescription:()=>c.eR,makeDraggable:()=>a.eB,makeDropTarget:()=>a.DK,makeSelectForCategory:()=>c.s2,makeSelectForChoice:()=>c.LX,makeSelectForClassifierOptions:()=>c.LC,makeSelectForNestedCategory:()=>c.L1,makeSelectForOptions:()=>c.iU,mostSpecificClassURI:()=>c.K,newButton:()=>c.vx,newThing:()=>c.xV,openHrefInOutlineMode:()=>o.ol,personTR:()=>o.Cl,promptForNew:()=>c.e2,propertiesForClass:()=>c.ZA,propertyTriage:()=>o.uA,publicData:()=>u,refreshTree:()=>o.uS,removeButton:()=>o.DT,renderAsDiv:()=>o.Ss,renderAsRow:()=>o.ri,renderAutoComplete:()=>p.r,renderAutocompleteControl:()=>l.A,renderNameValuePair:()=>c.Nr,selectorPanel:()=>o.Ag,selectorPanelRefresh:()=>o.RS,setImage:()=>o.g7,setName:()=>o.i,setVisible:()=>p.L,shortDate:()=>o.XV,shortTime:()=>o.Mj,sortByLabel:()=>c.eb,sortBySequence:()=>c.tE,timestamp:()=>o.vE,uploadFiles:()=>a.Zn});var i=n(5747),a=n(386),o=n(3291),s=n(9326),r=n(3468),c=n(1763),l=n(9238),p=n(3693),u=n(8702)},4101(e,t,n){n.d(t,{N:()=>a});var i=n(5561);
|
|
78
|
+
/**
|
|
79
|
+
* @version IconicMultiSelect v0.7.0
|
|
80
|
+
* @licence MIT
|
|
81
|
+
*/class a{_data;_domElements;_event=()=>{};_itemTemplate;_multiselect;_noData;_noResults;_options=[];_placeholder;_select;_selectContainer;_selectedOptions=[];_tagTemplate;_textField;_valueField;_cross='\n <svg\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M6.2253 4.81108C5.83477 4.42056 5.20161 4.42056 4.81108 4.81108C4.42056 5.20161 4.42056 5.83477 4.81108 6.2253L10.5858 12L4.81114 17.7747C4.42062 18.1652 4.42062 18.7984 4.81114 19.1889C5.20167 19.5794 5.83483 19.5794 6.22535 19.1889L12 13.4142L17.7747 19.1889C18.1652 19.5794 18.7984 19.5794 19.1889 19.1889C19.5794 18.7984 19.5794 18.1652 19.1889 17.7747L13.4142 12L19.189 6.2253C19.5795 5.83477 19.5795 5.20161 19.189 4.81108C18.7985 4.42056 18.1653 4.42056 17.7748 4.81108L12 10.5858L6.2253 4.81108Z"\n fill="currentColor"\n />\n </svg>\n ';constructor({data:e,itemTemplate:t,noData:n,noResults:i,placeholder:a,select:o,container:s,tagTemplate:r,textField:c,valueField:l}){this._data=e??[],this._itemTemplate=t??null,this._noData=n??"No data found.",this._noResults=i??"No results found.",this._placeholder=a??"Select...",this._select=o,this._selectContainer=s,this._tagTemplate=r??null,this._textField=c??null,this._valueField=l??null}init(){if(!this._select||"SELECT"!==this._select.nodeName)throw new Error(`The selector '${this._select}' did not select any valid select tag.`);if(this._itemTemplate&&0===this._data.length)throw new Error("itemTemplate must be initialized with data from the component settings");if(this._tagTemplate&&0===this._data.length)throw new Error("tagTemplate must be initialized with data from the component settings");this._options=this._data.length>0?this._getDataFromSettings():this._getDataFromSelectTag(),this._renderMultiselect(),this._renderOptionsList(),this._domElements={clear:this._multiselect.querySelector(".multiselect__clear-btn"),input:this._multiselect.querySelector(".multiselect__input"),optionsContainer:this._multiselect.querySelector(".multiselect__options"),optionsContainerList:this._multiselect.querySelector(".multiselect__options > ul"),options:{list:this._multiselect.querySelectorAll(".multiselect__options > ul > li"),find:function(e){for(let t=0;t<this.list.length;t++){const n=this.list[t];if(e(n))return n}},some:function(e){for(let t=0;t<this.list.length;t++){if(e(this.list[t],t))return!0}return!1}}},this._enableEventListenners(),this._initSelectedList()}subscribe(e){if("function"!=typeof e)throw new Error("parameter in the subscribe method is not a function");this._event=e}_addOptionToList(e,t){const n=`<span class="multiselect__selected" style="${i.i.multiselect__selected}" data-value="${e.value}">${this._tagTemplate?this._processTemplate(this._tagTemplate,t):e.text}<span class="multiselect__remove-btn" style="${i.i.multiselect__remove_btn}">${this._cross}</span></span>`;this._domElements.input.insertAdjacentHTML("beforebegin",n);const{lastElementChild:a}=this._multiselect.querySelector(`span[data-value="${e.value}"]`);a.addEventListener("click",()=>{const t=this._domElements.options.find(t=>t.dataset.value===e.value);this._handleOption(t)})}_clearSelection(){for(let e=0;e<this._selectedOptions.length;e++){const t=this._selectedOptions[e],n=this._domElements.options.find(e=>e.dataset.value===t.value);n.classList.remove("multiselect__options--selected"),n.setAttribute("style",i.i.multiselect__options),this._removeOptionFromList(n.dataset.value)}this._selectedOptions=[],this._handleClearSelectionBtn(),this._handlePlaceholder(),this._dispatchEvent({action:"CLEAR_ALL_OPTIONS",selection:this._selectedOptions})}_closeList(){this._domElements.input.value="",this._domElements.optionsContainer.classList.remove("visible"),this._domElements.optionsContainer.setAttribute("style",i.i.multiselect__options),this._filterOptions(""),this._removeAllArrowSelected()}_dispatchEvent(e){this._event(e)}_enableEventListenners(){document.addEventListener("mouseup",({target:e})=>{this._multiselect.contains(e)||(this._filterOptions(""),this._closeList(),this._handlePlaceholder())}),this._domElements.clear.addEventListener("click",()=>{this._clearSelection()});for(let e=0;e<this._domElements.options.list.length;e++){this._domElements.options.list[e].addEventListener("click",({target:e})=>{this._handleOption(e),this._closeList()})}this._domElements.input.addEventListener("focus",()=>{this._domElements.optionsContainer.classList.add("visible"),this._domElements.optionsContainer.setAttribute("style",i.i.multiselect__options_visible)}),this._domElements.input.addEventListener("input",({target:{value:e}})=>{this._domElements.options.list.length>0&&this._filterOptions(e)}),this._domElements.input.addEventListener("keydown",e=>{this._handleArrows(e),this._handleBackspace(e),this._handleEnter(e)})}_filterOptions(e){const t=this._domElements.optionsContainer.classList.contains("visible"),n=e.toLowerCase();if(!t&&e.length>0&&(this._domElements.optionsContainer.classList.add("visible"),this._domElements.optionsContainer.setAttribute("style",i.i.multiselect__options_visible)),this._domElements.options.list.length>0){for(let e=0;e<this._domElements.options.list.length;e++){const t=this._domElements.options.list[e];(this._itemTemplate?this._data[e][this._textField]:t.textContent).toLowerCase().substring(0,n.length)===n?this._domElements.optionsContainerList.appendChild(t):t.parentNode&&t.parentNode.removeChild(t)}const e=this._domElements.options.some((e,t)=>(this._itemTemplate?this._data[t][this._textField]:e.textContent).toLowerCase().substring(0,n.length)===n);this._showNoResults(!e)}}_generateId(e){let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let i=0;i<e;i++)t+=n.charAt(Math.floor(62*Math.random()));return t}_getDataFromSelectTag(){const e=[],{options:t}=this._select;for(let n=0;n<t.length;n++){const i=t[n];e.push({text:i.text,value:i.value,selected:i.hasAttribute("selected")})}return e}_getDataFromSettings(){if(this._data.length>0&&this._valueField&&this._textField){const e="string"==typeof this._valueField,t="string"==typeof this._textField,n=[];if(!e||!t)throw new Error("textField and valueField must be of type string");for(let e=0;e<this._data.length;e++){const t=this._data[e];n.push({value:t[this._valueField],text:t[this._textField],selected:"boolean"==typeof t.selected&&t.selected})}return n}return null}_handleArrows(e){if(40===e.keyCode||38===e.keyCode){e.preventDefault();const t=this._domElements.optionsContainer.classList.contains("visible"),n=this._multiselect.querySelector(".multiselect__options > ul");if(t){let t=this._multiselect.querySelector(".multiselect__options ul li.arrow-selected");const a={ArrowUp:"previous",Up:"previous",ArrowDown:"next",Down:"next"};if(!t)return n.firstElementChild.classList.add("arrow-selected"),n.firstElementChild.setAttribute("style",i.i.multiselect__options_ul_li_arrow_selected),void n.firstElementChild.scrollIntoView(!1);if(t.classList.remove("arrow-selected"),t.setAttribute("style",i.i.multiselect__options_ul_li),t=t[a[e.key]+"ElementSibling"],!t)return t=n.children["next"===a[e.key]?0:n.children.length-1],t.classList.add("arrow-selected"),t.setAttribute("style",i.i.multiselect__options_ul_li_arrow_selected),void this._scrollIntoView(n,t);t.classList.add("arrow-selected"),t.setAttribute("style",i.i.multiselect__options_ul_li_arrow_selected),this._scrollIntoView(n,t)}else this._domElements.optionsContainer.classList.add("visible"),this._domElements.optionsContainer.setAttribute("style",i.i.multiselect__options_visible),n.firstElementChild.classList.add("arrow-selected"),n.firstElementChild.setAttribute("style",i.i.multiselect__options_ul_li_arrow_selected),n.firstElementChild.scrollIntoView(!1)}}_handleBackspace(e){if(8===e.keyCode&&""===e.target.value){const e=this._selectedOptions.length>0?this._selectedOptions[this._selectedOptions.length-1]:null;if(e){const t=this._multiselect.querySelector(`li[data-value="${e.value}"]`);this._handleOption(t),0===this._selectedOptions.length&&(this._domElements.optionsContainer.classList.remove("visible"),this._domElements.optionsContainer.setAttribute("style",i.i.multiselect__options))}}}_handleClearSelectionBtn(){this._selectedOptions.length>0?this._domElements.clear.style.display="flex":this._domElements.clear.style.display="none"}_handleEnter(e){if(13===e.keyCode){const e=this._multiselect.querySelector(".multiselect__options ul li.arrow-selected");e&&(this._handleOption(e),this._closeList())}}_handleOption(e,t=!0){for(let n=0;n<this._selectedOptions.length;n++){if(this._selectedOptions[n].value===e.dataset.value)return e.classList.remove("multiselect__options--selected"),e.setAttribute("style",i.i.multiselect__options),this._selectedOptions.splice(n,1),this._removeOptionFromList(e.dataset.value),this._handleClearSelectionBtn(),this._handlePlaceholder(),t&&this._dispatchEvent({action:"REMOVE_OPTION",value:e.dataset.value,selection:this._selectedOptions})}for(let n=0;n<this._options.length;n++){const a=this._options[n];if(a.value===e.dataset.value)return e.classList.add("multiselect__options--selected"),e.setAttribute("style",i.i.multiselect__options_selected),this._selectedOptions=[...this._selectedOptions,a],this._addOptionToList(a,n),this._handleClearSelectionBtn(),this._handlePlaceholder(),t&&this._dispatchEvent({action:"ADD_OPTION",value:e.dataset.value,selection:this._selectedOptions})}}_handlePlaceholder(){this._domElements.input.placeholder=this._placeholder}_initSelectedList(){let e=!1;for(let t=0;t<this._options.length;t++){const n=this._options[t];if(n.selected){e=!0;const a=this._domElements.options.find(e=>e.dataset.value===n.value);a.classList.add("multiselect__options--selected"),a.setAttribute("style",i.i.multiselect__options_selected),this._selectedOptions=[...this._selectedOptions,n],this._addOptionToList(n,t)}}e&&this._handleClearSelectionBtn(),this._handlePlaceholder()}_processTemplate(e,t){let n=e;const i=e.match(/\$\{(\w+)\}/g).map(e=>e.replace(/\$\{|\}/g,""));for(let e=0;e<i.length;e++){const a=i[e];n=n.replace(`\${${a}}`,this._data[t][a]??"")}return n}_removeAllArrowSelected(){const e="arrow-selected",t=this._domElements.options.find(t=>t.classList.contains(e));t&&t.classList.remove(e)&&t.setAttribute("style",i.i.multiselect__options_ul_li)}_removeOptionFromList(e){const t=this._multiselect.querySelector(`span[data-value="${e}"]`);t&&t.parentNode&&t.parentNode.removeChild(t)}_renderOptionsList(){const e=`\n <div class="multiselect__options" style="${i.i.multiselect__options}">\n <ul style="${i.i.multiselect__options_ul}">\n ${this._options.length>0&&!this._itemTemplate?this._options.map(e=>`\n <li data-value="${e.value}" style="${i.i.multiselect__options_ul_li}">${e.text}</li>\n `).join(""):""}\n\n ${this._options.length>0&&this._itemTemplate?this._options.map((e,t)=>`\n <li data-value="${e.value}" style="${i.i.multiselect__options_ul_li}">${this._processTemplate(this._itemTemplate,t)}</li>\n `).join(""):""}\n ${this._showNoData(0===this._options.length)}\n </ul>\n </div>\n `;this._multiselect.insertAdjacentHTML("beforeend",e)}_renderMultiselect(){this._select.style.display="none";const e="iconic-"+this._generateId(20);this._multiselect=document.createElement("div"),this._multiselect.setAttribute("id",e),this._multiselect.setAttribute("class","multiselect__container"),this._multiselect.setAttribute("style",i.i.multiselect__container);const t=`\n <div class="multiselect__wrapper" style="${i.i.multiselect__wrapper}">\n <input class="multiselect__input" style="${i.i.multiselect__input}" placeholder="${this._placeholder}" />\n </div>\n <span style="display: none;" class="multiselect__clear-btn" style="${i.i.multiselect__clear_btn}">${this._cross}</span>\n `;this._multiselect.innerHTML=t,this._selectContainer.appendChild(this._multiselect)}_scrollIntoView(e,t){const n=e.getBoundingClientRect(),i=t.getBoundingClientRect();n.top<i.bottom-t.offsetHeight||(e.scrollTop=t.clientHeight+(t.offsetTop-t.offsetHeight)),n.bottom>i.top+t.offsetHeight||(e.scrollTop=t.clientHeight+(t.offsetTop-t.offsetHeight)-(e.offsetHeight-(t.offsetHeight+(t.offsetHeight-t.clientHeight))))}_showNoData(e){return e?`<p class="multiselect__options--no-data" style="${i.i.multiselect__options_ul_p_multiselect__options_no_data}">${this._noData}</p>`:""}_showNoResults(e){const t=this._multiselect.querySelector(".multiselect__options--no-results");if(e){const e=`<p class="multiselect__options--no-results" style="${i.i.multiselect__options_ul_p_multiselect__options_no_results}">${this._noResults}</p>`;!t&&this._domElements.optionsContainerList.insertAdjacentHTML("beforeend",e)}else t&&t.parentNode&&t.parentNode.removeChild(t)}}},5747(e,t,n){n.d(t,{Kf:()=>f,OU:()=>m,YJ:()=>h,ZT:()=>g,_A:()=>b});var i=n(580),a=n.n(i),o=n(4296),s=n(4961),r=n(7423),c=n(386),l=n(3468),p=n(3378),u=n(1795);const d=n(3138).solidLogicSingleton.store;class m{constructor(e,t,n,i){this.options=i||{},this.element=e,this.typeIndex=t,this.groupPickedCb=n,this.selectedgroup=this.options.selectedgroup,this.onSelectGroup=this.onSelectGroup.bind(this)}render(){const e=document.createElement("div");if(e.style.maxWidth="350px",e.style.minHeight="200px",e.style.outline="1px solid black",e.style.display="flex",this.selectedgroup){e.style.flexDirection="column";const t=document.createElement("div");new h(t,this.selectedgroup).render();const n=document.createElement("button");n.textContent=a()("Change group"),n.addEventListener("click",e=>{this.selectedgroup=null,this.render()}),e.appendChild(t),e.appendChild(n)}else this.findAddressBook(this.typeIndex).then(({book:t})=>{const n=document.createElement("button");n.textContent=a()("Pick an existing group"),n.style.margin="auto",n.addEventListener("click",n=>{new f(e,t,this.onSelectGroup).render()});const i=document.createElement("button");i.textContent=a()("Create a new group"),i.style.margin="auto",i.addEventListener("click",e=>{this.createNewGroup(t,this.options.defaultNewGroupName).then(({group:e})=>{new g(this.element,t,e,this.onSelectGroup).render()}).catch(e=>{this.element.appendChild((0,l.F)(document,a()(`Error creating a new group. (${e})`)))})}),e.appendChild(n),e.appendChild(i),this.element.innerHTML="",this.element.appendChild(e)}).catch(e=>{this.element.appendChild((0,l.F)(document,a()(`Could find your groups. (${e})`)))});return this.element.innerHTML="",this.element.appendChild(e),this}findAddressBook(e){return new Promise((t,n)=>{d.fetcher.nowOrWhenFetched(e,(i,a)=>{if(!i)return n(a);const o=d.any(null,u.A.solid("forClass"),u.A.vcard("AddressBook"));if(!o)return n(new Error("no address book registered in the solid type index "+e));const s=d.any(o,u.A.solid("instance"));if(!s)return n(new Error("incomplete address book registration"));d.fetcher.load(s).then(function(e){return t({book:s})}).catch(function(e){return n(new Error("Could not load address book "+e))})})})}createNewGroup(e,t){const{groupIndex:n,groupContainer:i}=y(e),a=s.sym(`${i.uri}${(0,o.A)().slice(0,8)}.ttl#this`),c=t||"Untitled Group",l=[a.doc(),n].map(t=>{const i=s.st(a,u.A.rdf("type"),u.A.vcard("Group"),t),o=s.st(a,u.A.vcard("fn"),c,a.doc(),t),r=s.st(e,u.A.vcard("includesGroup"),a,t),l=t.equals(n)?[i,o,r]:[i,o];return x(t.uri,{toIns:l}).then(()=>{l.forEach(e=>{d.add(e)})})});return Promise.all(l).then(()=>({group:a})).catch(e=>{throw r.Rm("Could not create new group. PATCH failed "+e),new Error(`Couldn't create new group. PATCH failed for (${e.xhr?e.xhr.responseURL:""} )`)})}onSelectGroup(e){this.selectedgroup=e,this.groupPickedCb(e),this.render()}}class f{constructor(e,t,n){this.element=e,this.book=t,this.onSelectGroup=n}render(){return this.loadGroups().then(e=>{const t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",e.forEach(e=>{const n=document.createElement("button");n.addEventListener("click",this.handleClickGroup(e)),new h(n,e).render(),t.appendChild(n)}),this.element.innerHTML="",this.element.appendChild(t)}).catch(e=>{this.element.appendChild((0,l.F)(document,a()(`There was an error loading your groups. (${e})`)))}),this}loadGroups(){return new Promise((e,t)=>{const{groupIndex:n}=y(this.book);d.fetcher.nowOrWhenFetched(n,(n,i)=>{if(!n)return t(i);const a=d.each(this.book,u.A.vcard("includesGroup"));return e(a)})})}handleClickGroup(e){return t=>{this.onSelectGroup(e)}}}class h{constructor(e,t){this.element=e,this.group=t}render(){const e=document.createElement("div");return e.textContent=a()(v(this.group,u.A.vcard("fn"),`[${this.group.value}]`)),this.element.innerHTML="",this.element.appendChild(e),this}}class g{constructor(e,t,n,i,a){this.element=e,this.book=t,this.group=n,this.onGroupChanged=(e,t,n)=>{a&&a(e,t,n)},this.groupChangedCb=a,this.doneBuildingCb=i}refresh(){}render(){const e=document.createElement("div");e.style.maxWidth="350px",e.style.minHeight="200px",e.style.outline="1px solid black",e.style.display="flex",e.style.flexDirection="column",(0,c.DK)(e,e=>{e.forEach(e=>{this.add(e).catch(e=>{this.element.appendChild((0,l.F)(document,a()(`Could not add the given WebId. (${e})`)))})})});const t=document.createElement("input");t.type="text",t.value=v(this.group,u.A.vcard("fn"),"Untitled Group"),t.addEventListener("change",e=>{this.setGroupName(e.target.value).catch(e=>{this.element.appendChild((0,l.F)(document,`Error changing group name. (${e})`))})});const n=document.createElement("label");if(n.textContent=a()("Group Name:"),n.appendChild(t),e.appendChild(n),d.any(this.group,u.A.vcard("hasMember")))d.match(this.group,u.A.vcard("hasMember")).forEach(t=>{const n=t.object,i=document.createElement("div");new b(i,n,this.handleRemove(n)).render(),e.appendChild(i)});else{const t=document.createElement("p");t.textContent=a()`
|
|
82
|
+
To add someone to this group, drag and drop their WebID URL onto the box.
|
|
83
|
+
`,e.appendChild(t)}const i=document.createElement("button");return i.textContent=a()("Done"),i.addEventListener("click",e=>{this.doneBuildingCb(this.group)}),e.appendChild(i),this.element.innerHTML="",this.element.appendChild(e),this}add(e){return new Promise((t,n)=>{d.fetcher.nowOrWhenFetched(e,(i,a)=>{if(!i)return this.onGroupChanged(a),n(a);const o=s.namedNode(e),r=d.any(o,u.A.rdf("type"));return r&&r.equals(u.A.foaf("Person"))?t(o):n(new Error(`Only people supported right now. (tried to add something of type ${r.value})`))})}).then(e=>{const t=s.st(this.group,u.A.vcard("hasMember"),e);return d.holdsStatement(t)?e:x(this.group.doc().uri,{toIns:[t]}).then(()=>{t.why=this.group.doc(),d.add(t),this.onGroupChanged(null,"added",e),this.render()})})}handleRemove(e){return t=>{const n=s.st(this.group,u.A.vcard("hasMember"),e);return x(this.group.doc().uri,{toDel:[n]}).then(()=>(d.remove(n),this.onGroupChanged(null,"removed",e),this.render(),!0)).catch(t=>{const n=d.any(e,u.A.foaf("name")),i=n&&n.value?`Could not remove ${n.value}. (${t})`:`Could not remove ${e.value}. (${t})`;throw new Error(i)})}}setGroupName(e){const{groupIndex:t}=y(this.book),n=[this.group.doc(),t].map(t=>{const n=d.match(this.group,u.A.vcard("fn"),null,t),i=s.st(this.group,u.A.vcard("fn"),s.literal(e));return x(t.value,{toDel:n,toIns:[i]}).then(e=>{d.removeStatements(n),i.why=t,d.add(i)})});return Promise.all(n)}}class b{constructor(e,t,n){this.webIdNode=t,this.element=e,this.handleRemove=n}render(){const e=document.createElement("div");e.style.display="flex";const t=v(this.webIdNode,u.A.foaf("img"),p.LN+"noun_15059.svg"),n=document.createElement("img");n.src=a()(t),n.width="50",n.height="50",n.style.margin="5px";const i=v(this.webIdNode,u.A.foaf("name"),`[${this.webIdNode}]`),o=document.createElement("span");o.innerHTML=a()(i),o.style.flexGrow="1",o.style.margin="auto 0";const s=document.createElement("button");return s.textContent="Remove",s.addEventListener("click",e=>this.handleRemove().catch(e=>{this.element.appendChild((0,l.F)(document,a()(`${e}`)))})),s.style.margin="5px",e.appendChild(n),e.appendChild(o),e.appendChild(s),this.element.innerHTML="",this.element.appendChild(e),this}}function v(e,t,n){const i=d.any(e,t);return i?i.value:n}function x(e,{toDel:t,toIns:n}){return new Promise((e,i)=>{d.updater.update(t,n,(t,n,a)=>{if(!n)return i(new Error(`PATCH failed for resource <${t}>: ${a}`));e()})})}function y(e){return{groupIndex:d.any(e,u.A.vcard("groupIndex")),groupContainer:d.sym(e.dir().uri+"Group/")}}},9287(e,t,n){n.d(t,{I1:()=>a,lx:()=>o,ts:()=>s});var i=n(675);const a=(e,t,n)=>{const i=e.createElement("tr");return i.appendChild(e.createElement("td")).appendChild(t),i.subject=n,i},o=(e,t)=>{e.addEventListener("click",t)},s=(e,t,n)=>{const a=t.appendChild(e.createElement("div"));a.setAttribute("style",i.i.imageDivStyle),a.appendChild(n),n.setAttribute("draggable","false")}},580(e){
|
|
84
|
+
/*!
|
|
85
|
+
* escape-html
|
|
86
|
+
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
87
|
+
* Copyright(c) 2015 Andreas Lubbe
|
|
88
|
+
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
89
|
+
* MIT Licensed
|
|
90
|
+
*/
|
|
91
|
+
var t=/["'&<>]/;e.exports=function(e){var n,i=""+e,a=t.exec(i);if(!a)return i;var o="",s=0,r=0;for(s=a.index;s<i.length;s++){switch(i.charCodeAt(s)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}r!==s&&(o+=i.substring(r,s)),r=s+1,o+=n}return r!==s?o+i.substring(r,s):o}},7598(e,t,n){
|
|
92
|
+
/*!
|
|
93
|
+
* mime-db
|
|
94
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
95
|
+
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
96
|
+
* MIT Licensed
|
|
97
|
+
*/
|
|
98
|
+
e.exports=n(1813)},6049(e,t,n){
|
|
99
|
+
/*!
|
|
100
|
+
* mime-types
|
|
101
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
102
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
103
|
+
* MIT Licensed
|
|
104
|
+
*/
|
|
105
|
+
var i,a,o=n(7598),s=n(8466).extname,r=n(983),c=/^\s*([^;\s]*)(?:;|\s|$)/,l=/^text\//i;function p(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),n=t&&o[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!l.test(t[1]))&&"UTF-8"}function u(e){if(!e||"string"!=typeof e)return!1;var n=c.exec(e),i=n&&t.extensions[n[1].toLowerCase()];return!(!i||!i.length)&&i[0]}function d(e,t,n){return(t?r(t,o[t].source):0)>(n?r(n,o[n].source):0)?t:n}function m(e,n,i){var a=["nginx","apache",void 0,"iana"],s=n?a.indexOf(o[n].source):0,r=i?a.indexOf(o[i].source):0;return"application/octet-stream"!==t.types[u]&&(s>r||s===r&&"application/"===t.types[u]?.slice(0,12))||s>r?n:i}t.charset=p,t.charsets={lookup:p},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var n=-1===e.indexOf("/")?t.lookup(e):e;if(!n)return!1;if(-1===n.indexOf("charset")){var i=t.charset(n);i&&(n+="; charset="+i.toLowerCase())}return n},t.extension=u,t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=s("x."+e).toLowerCase().slice(1);if(!n)return!1;return t.types[n]||!1},t.types=Object.create(null),t._extensionConflicts=[],i=t.extensions,a=t.types,Object.keys(o).forEach(function(e){var n=o[e].extensions;if(n&&n.length){i[e]=n;for(var s=0;s<n.length;s++){var r=n[s];a[r]=d(r,a[r],e);const i=m(r,a[r],e);i!==a[r]&&t._extensionConflicts.push([r,i,a[r]])}}})},983(e){var t={"prs.":100,"x-":200,"x.":300,"vnd.":400,default:900},n={nginx:10,apache:20,iana:40,default:30},i={application:1,font:2,audio:2,video:3,default:0};e.exports=function(e,a="default"){if("application/octet-stream"===e)return 0;const[o,s]=e.split("/"),r=s.replace(/(\.|x-).*/,"$1");return(t[r]||t.default)+(n[a]||n.default)+(i[o]||i.default)+(1-e.length/100)}},5386(e){const t={acl:"http://www.w3.org/ns/auth/acl#",arg:"http://www.w3.org/ns/pim/arg#",as:"https://www.w3.org/ns/activitystreams#",bookmark:"http://www.w3.org/2002/01/bookmark#",cal:"http://www.w3.org/2002/12/cal/ical#",cco:"http://www.ontologyrepository.com/CommonCoreOntologies/",cert:"http://www.w3.org/ns/auth/cert#",contact:"http://www.w3.org/2000/10/swap/pim/contact#",dc:"http://purl.org/dc/elements/1.1/",dct:"http://purl.org/dc/terms/",doap:"http://usefulinc.com/ns/doap#",foaf:"http://xmlns.com/foaf/0.1/",geo:"http://www.w3.org/2003/01/geo/wgs84_pos#",gpx:"http://www.w3.org/ns/pim/gpx#",gr:"http://purl.org/goodrelations/v1#",http:"http://www.w3.org/2007/ont/http#",httph:"http://www.w3.org/2007/ont/httph#",icalTZ:"http://www.w3.org/2002/12/cal/icaltzd#",ldp:"http://www.w3.org/ns/ldp#",link:"http://www.w3.org/2007/ont/link#",log:"http://www.w3.org/2000/10/swap/log#",meeting:"http://www.w3.org/ns/pim/meeting#",mo:"http://purl.org/ontology/mo/",org:"http://www.w3.org/ns/org#",owl:"http://www.w3.org/2002/07/owl#",pad:"http://www.w3.org/ns/pim/pad#",patch:"http://www.w3.org/ns/pim/patch#",prov:"http://www.w3.org/ns/prov#",pto:"http://www.productontology.org/id/",qu:"http://www.w3.org/2000/10/swap/pim/qif#",trip:"http://www.w3.org/ns/pim/trip#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rss:"http://purl.org/rss/1.0/",sched:"http://www.w3.org/ns/pim/schedule#",schema:"http://schema.org/",sioc:"http://rdfs.org/sioc/ns#",skos:"http://www.w3.org/2004/02/skos/core#",solid:"http://www.w3.org/ns/solid/terms#",space:"http://www.w3.org/ns/pim/space#",stat:"http://www.w3.org/ns/posix/stat#",tab:"http://www.w3.org/2007/ont/link#",tabont:"http://www.w3.org/2007/ont/link#",ui:"http://www.w3.org/ns/ui#",vann:"http://purl.org/vocab/vann/",vcard:"http://www.w3.org/2006/vcard/ns#",wf:"http://www.w3.org/2005/01/wf/flow#",xsd:"http://www.w3.org/2001/XMLSchema#"};e.exports=function(e={namedNode:e=>e}){const n={};for(const i in t){const a=t[i];n[i]=function(t=""){return e.namedNode(a+t)}}return n}},4961(t){t.exports=e},3138(e,n,i){e.exports=(e=>{var t={};return i.d(t,e),t})({ACL_LINK:()=>t.ACL_LINK,CrossOriginForbiddenError:()=>t.CrossOriginForbiddenError,FetchError:()=>t.FetchError,NotEditableError:()=>t.NotEditableError,SameOriginForbiddenError:()=>t.SameOriginForbiddenError,UnauthorizedError:()=>t.UnauthorizedError,WebOperationError:()=>t.WebOperationError,authSession:()=>t.authSession,authn:()=>t.authn,createTypeIndexLogic:()=>t.createTypeIndexLogic,getSuggestedIssuers:()=>t.getSuggestedIssuers,offlineTestID:()=>t.offlineTestID,solidLogicSingleton:()=>t.solidLogicSingleton,store:()=>t.store})},8466(){},3826(e,t,n){n.d(t,{AH:()=>c,Rf:()=>l,sk:()=>p});
|
|
106
|
+
/**
|
|
107
|
+
* @license
|
|
108
|
+
* Copyright 2019 Google LLC
|
|
109
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
110
|
+
*/
|
|
111
|
+
const i=globalThis,a=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),s=new WeakMap;class r{constructor(e,t,n){if(this._$cssResult$=!0,n!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(a&&void 0===e){const n=void 0!==t&&1===t.length;n&&(e=s.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&s.set(t,e))}return e}toString(){return this.cssText}}const c=(e,...t)=>{const n=1===e.length?e[0]:t.reduce((t,n,i)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[i+1],e[0]);return new r(n,e,o)},l=(e,t)=>{if(a)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const n of t){const t=document.createElement("style"),a=i.litNonce;void 0!==a&&t.setAttribute("nonce",a),t.textContent=n.cssText,e.appendChild(t)}},p=a?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new r("string"==typeof e?e:e+"",void 0,o))(t)})(e):e},8760(e,t,n){n.d(t,{AH:()=>i.AH,mN:()=>v});var i=n(3826);
|
|
112
|
+
/**
|
|
113
|
+
* @license
|
|
114
|
+
* Copyright 2017 Google LLC
|
|
115
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
116
|
+
*/const{is:a,defineProperty:o,getOwnPropertyDescriptor:s,getOwnPropertyNames:r,getOwnPropertySymbols:c,getPrototypeOf:l}=Object,p=globalThis,u=p.trustedTypes,d=u?u.emptyScript:"",m=p.reactiveElementPolyfillSupport,f=(e,t)=>e,h={toAttribute(e,t){switch(t){case Boolean:e=e?d:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},g=(e,t)=>!a(e,t),b={attribute:!0,type:String,converter:h,reflect:!1,useDefault:!1,hasChanged:g};Symbol.metadata??=Symbol("metadata"),p.litPropertyMetadata??=new WeakMap;class v extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=b){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(e,n,t);void 0!==i&&o(this.prototype,e,i)}}static getPropertyDescriptor(e,t,n){const{get:i,set:a}=s(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:i,set(t){const o=i?.call(this);a?.call(this,t),this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??b}static _$Ei(){if(this.hasOwnProperty(f("elementProperties")))return;const e=l(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(f("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(f("properties"))){const e=this.properties,t=[...r(e),...c(e)];for(const n of t)this.createProperty(n,e[n])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const n=this._$Eu(e,t);void 0!==n&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift((0,i.sk)(e))}else void 0!==e&&t.push((0,i.sk)(e));return t}static _$Eu(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return(0,i.Rf)(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){const n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(void 0!==i&&!0===n.reflect){const a=(void 0!==n.converter?.toAttribute?n.converter:h).toAttribute(t,n.type);this._$Em=e,null==a?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){const n=this.constructor,i=n._$Eh.get(e);if(void 0!==i&&this._$Em!==i){const e=n.getPropertyOptions(i),a="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:h;this._$Em=i;const o=a.fromAttribute(t,e.type);this[i]=o??this._$Ej?.get(i)??o,this._$Em=null}}requestUpdate(e,t,n,i=!1,a){if(void 0!==e){const o=this.constructor;if(!1===i&&(a=this[e]),n??=o.getPropertyOptions(e),!((n.hasChanged??g)(a,t)||n.useDefault&&n.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(o._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:i,wrapped:a},o){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??t??this[e]),!0!==a||void 0!==o)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===i&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,n]of e){const{wrapped:e}=n,i=this[t];!0!==e||this._$AL.has(t)||void 0===i||this.C(t,void 0,n,i)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}}v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[f("elementProperties")]=new Map,v[f("finalized")]=new Map,m?.({ReactiveElement:v}),(p.reactiveElementVersions??=[]).push("2.1.2")},7315(e,t,n){n.d(t,{Ak:()=>c,GV:()=>y,Pl:()=>x,fH:()=>b,hT:()=>g,u0:()=>r});var i=n(6724),a=n(2186);
|
|
117
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
118
|
+
const o=BigInt(0),s=BigInt(1);function r(e,t){const n=t.negate();return e?n:t}function c(e,t){const n=(0,a.pS)(e.Fp,t.map(e=>e.Z));return t.map((t,i)=>e.fromAffine(t.toAffine(n[i])))}function l(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function p(e,t){l(e,t);const n=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:(0,i.OG)(e),maxNumber:n,shiftBy:BigInt(e)}}function u(e,t,n){const{windowSize:i,mask:a,maxNumber:o,shiftBy:r}=n;let c=Number(e&a),l=e>>r;c>i&&(c-=o,l+=s);const p=t*i;return{nextN:l,offset:p+Math.abs(c)-1,isZero:0===c,isNeg:c<0,isNegF:t%2!=0,offsetF:p}}const d=new WeakMap,m=new WeakMap;function f(e){return m.get(e)||1}function h(e){if(e!==o)throw new Error("invalid wNAF")}class g{BASE;ZERO;Fn;bits;constructor(e,t){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=t}_unsafeLadder(e,t,n=this.ZERO){let i=e;for(;t>o;)t&s&&(n=n.add(i)),i=i.double(),t>>=s;return n}precomputeWindow(e,t){const{windows:n,windowSize:i}=p(t,this.bits),a=[];let o=e,s=o;for(let e=0;e<n;e++){s=o,a.push(s);for(let e=1;e<i;e++)s=s.add(o),a.push(s);o=s.double()}return a}wNAF(e,t,n){if(!this.Fn.isValid(n))throw new Error("invalid scalar");let i=this.ZERO,a=this.BASE;const o=p(e,this.bits);for(let e=0;e<o.windows;e++){const{nextN:s,offset:c,isZero:l,isNeg:p,isNegF:d,offsetF:m}=u(n,e,o);n=s,l?a=a.add(r(d,t[m])):i=i.add(r(p,t[c]))}return h(n),{p:i,f:a}}wNAFUnsafe(e,t,n,i=this.ZERO){const a=p(e,this.bits);for(let e=0;e<a.windows&&n!==o;e++){const{nextN:o,offset:s,isZero:r,isNeg:c}=u(n,e,a);if(n=o,!r){const e=t[s];i=i.add(c?e.negate():e)}}return h(n),i}getPrecomputes(e,t,n){let i=d.get(t);return i||(i=this.precomputeWindow(t,e),1!==e&&("function"==typeof n&&(i=n(i)),d.set(t,i))),i}cached(e,t,n){const i=f(e);return this.wNAF(i,this.getPrecomputes(i,e,n),t)}unsafe(e,t,n,i){const a=f(e);return 1===a?this._unsafeLadder(e,t,i):this.wNAFUnsafe(a,this.getPrecomputes(a,e,n),t,i)}createCache(e,t){l(t,this.bits),m.set(e,t),d.delete(e)}hasCache(e){return 1!==f(e)}}function b(e,t,n,i){let a=t,r=e.ZERO,c=e.ZERO;for(;n>o||i>o;)n&s&&(r=r.add(a)),i&s&&(c=c.add(a)),a=a.double(),n>>=s,i>>=s;return{p1:r,p2:c}}function v(e,t,n){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return(0,a.jr)(t),t}return(0,a.D0)(e,{isLE:n})}function x(e,t,n={},i){if(void 0===i&&(i="edwards"===e),!t||"object"!=typeof t)throw new Error(`expected valid ${e} CURVE object`);for(const e of["p","n","h"]){const n=t[e];if(!("bigint"==typeof n&&n>o))throw new Error(`CURVE.${e} must be positive bigint`)}const a=v(t.p,n.Fp,i),s=v(t.n,n.Fn,i),r=["Gx","Gy","a","weierstrass"===e?"b":"d"];for(const e of r)if(!a.isValid(t[e]))throw new Error(`CURVE.${e} must be valid field element of CURVE.Fp`);return{CURVE:t=Object.freeze(Object.assign({},t)),Fp:a,Fn:s}}function y(e,t){return function(n){const i=e(n);return{secretKey:i,publicKey:t(i)}}}},2186(e,t,n){n.d(t,{D0:()=>L,jr:()=>C,pS:()=>k,qy:()=>R,zH:()=>h});var i=n(6724);
|
|
119
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const a=BigInt(0),o=BigInt(1),s=BigInt(2),r=BigInt(3),c=BigInt(4),l=BigInt(5),p=BigInt(7),u=BigInt(8),d=BigInt(9),m=BigInt(16);function f(e,t){if(t<=a)throw new Error("mod: expected positive modulus, got "+t);const n=e%t;return n>=a?n:t+n}function h(e,t,n){if(t<a)throw new Error("pow2: expected non-negative exponent, got "+t);let i=e;for(;t-- >a;)i*=i,i%=n;return i}function g(e,t){if(e===a)throw new Error("invert: expected non-zero number");if(t<=a)throw new Error("invert: expected positive modulus, got "+t);let n=f(e,t),i=t,s=a,r=o,c=o,l=a;for(;n!==a;){const e=i/n,t=i-n*e,a=s-c*e,o=r-l*e;i=n,n=t,s=c,r=l,c=a,l=o}if(i!==o)throw new Error("invert: does not exist");return f(s,t)}function b(e,t,n){const i=e;if(!i.eql(i.sqr(t),n))throw new Error("Cannot find square root")}function v(e,t){const n=e,i=(n.ORDER+o)/c,a=n.pow(t,i);return b(n,a,t),a}function x(e,t){const n=e,i=(n.ORDER-l)/u,a=n.mul(t,s),o=n.pow(a,i),r=n.mul(t,o),c=n.mul(n.mul(r,s),o),p=n.mul(r,n.sub(c,n.ONE));return b(n,p,t),p}function y(e){if(e<r)throw new Error("sqrt is not defined for small field");let t=e-o,n=0;for(;t%s===a;)t/=s,n++;let i=s;const c=L(e);for(;1===_(c,i);)if(i++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===n)return v;let l=c.pow(i,t);const p=(t+o)/s;return function(e,i){const a=e;if(a.is0(i))return i;if(1!==_(a,i))throw new Error("Cannot find square root");let s=n,r=a.mul(a.ONE,l),c=a.pow(i,t),u=a.pow(i,p);for(;!a.eql(c,a.ONE);){if(a.is0(c))return a.ZERO;let e=1,t=a.sqr(c);for(;!a.eql(t,a.ONE);)if(e++,t=a.sqr(t),e===s)throw new Error("Cannot find square root");const n=o<<BigInt(s-e-1),i=a.pow(r,n);s=e,r=a.sqr(i),c=a.mul(c,r),u=a.mul(u,i)}return u}}function w(e){return e%c===r?v:e%u===l?x:e%m===d?function(e){const t=L(e),n=y(e),i=n(t,t.neg(t.ONE)),a=n(t,i),o=n(t,t.neg(i)),s=(e+p)/m;return(e,t)=>{const n=e;let r=n.pow(t,s),c=n.mul(r,i);const l=n.mul(r,a),p=n.mul(r,o),u=n.eql(n.sqr(c),t),d=n.eql(n.sqr(l),t);r=n.cmov(r,c,u),c=n.cmov(p,l,d);const m=n.eql(n.sqr(c),t),f=n.cmov(r,c,m);return b(n,f,t),f}}(e):y(e)}const A=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function C(e){const t=A.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",BYTES:"number",BITS:"number"});if((0,i.Q5)(e,t),(0,i.gr)(e.BYTES,"BYTES"),(0,i.gr)(e.BITS,"BITS"),e.BYTES<1||e.BITS<1)throw new Error("invalid field: expected BYTES/BITS > 0");if(e.ORDER<=o)throw new Error("invalid field: expected ORDER > 1, got "+e.ORDER);return e}function E(e,t,n){const i=e;if(n<a)throw new Error("invalid exponent, negatives unsupported");if(n===a)return i.ONE;if(n===o)return t;let s=i.ONE,r=t;for(;n>a;)n&o&&(s=i.mul(s,r)),r=i.sqr(r),n>>=o;return s}function k(e,t,n=!1){const i=e,a=new Array(t.length).fill(n?i.ZERO:void 0),o=t.reduce((e,t,n)=>i.is0(t)?e:(a[n]=e,i.mul(e,t)),i.ONE),s=i.inv(o);return t.reduceRight((e,t,n)=>i.is0(t)?e:(a[n]=i.mul(e,a[n]),i.mul(e,t)),s),a}function _(e,t){const n=e,i=(n.ORDER-o)/s,a=n.pow(t,i),r=n.eql(a,n.ONE),c=n.eql(a,n.ZERO),l=n.eql(a,n.neg(n.ONE));if(!r&&!c&&!l)throw new Error("invalid Legendre symbol result");return r?1:c?0:-1}const T=new WeakMap;class S{ORDER;BITS;BYTES;isLE;ZERO=a;ONE=o;_lengths;_mod;constructor(e,t={}){if(e<=o)throw new Error("invalid field: expected ORDER > 1, got "+e);let n;this.isLE=!1,null!=t&&"object"==typeof t&&("number"==typeof t.BITS&&(n=t.BITS),"function"==typeof t.sqrt&&Object.defineProperty(this,"sqrt",{value:t.sqrt,enumerable:!0}),"boolean"==typeof t.isLE&&(this.isLE=t.isLE),t.allowedLengths&&(this._lengths=Object.freeze(t.allowedLengths.slice())),"boolean"==typeof t.modFromBytes&&(this._mod=t.modFromBytes));const{nBitLength:s,nByteLength:r}=function(e,t){if(void 0!==t&&(0,i.Fe)(t),e<=a)throw new Error("invalid n length: expected positive n, got "+e);if(void 0!==t&&t<1)throw new Error("invalid n length: expected positive bit length, got "+t);const n=(0,i.dJ)(e);if(void 0!==t&&t<n)throw new Error(`invalid n length: expected bit length (${n}) >= n.length (${t})`);const o=void 0!==t?t:n;return{nBitLength:o,nByteLength:Math.ceil(o/8)}}(e,n);if(r>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");this.ORDER=e,this.BITS=s,this.BYTES=r,Object.freeze(this)}create(e){return f(e,this.ORDER)}isValid(e){if("bigint"!=typeof e)throw new TypeError("invalid field element: expected bigint, got "+typeof e);return a<=e&&e<this.ORDER}is0(e){return e===a}isValidNot0(e){return!this.is0(e)&&this.isValid(e)}isOdd(e){return(e&o)===o}neg(e){return f(-e,this.ORDER)}eql(e,t){return e===t}sqr(e){return f(e*e,this.ORDER)}add(e,t){return f(e+t,this.ORDER)}sub(e,t){return f(e-t,this.ORDER)}mul(e,t){return f(e*t,this.ORDER)}pow(e,t){return E(this,e,t)}div(e,t){return f(e*g(t,this.ORDER),this.ORDER)}sqrN(e){return e*e}addN(e,t){return e+t}subN(e,t){return e-t}mulN(e,t){return e*t}inv(e){return g(e,this.ORDER)}sqrt(e){let t=T.get(this);return t||T.set(this,t=w(this.ORDER)),t(this,e)}toBytes(e){return this.isLE?(0,i.z)(e,this.BYTES):(0,i.lq)(e,this.BYTES)}fromBytes(e,t=!1){(0,i.DO)(e);const{_lengths:n,BYTES:a,isLE:o,ORDER:s,_mod:r}=this;if(n){if(e.length<1||!n.includes(e.length)||e.length>a)throw new Error("Field.fromBytes: expected "+n+" bytes, got "+e.length);const t=new Uint8Array(a);t.set(e,o?0:t.length-e.length),e=t}if(e.length!==a)throw new Error("Field.fromBytes: expected "+a+" bytes, got "+e.length);let c=o?(0,i.lX)(e):(0,i.Ph)(e);if(r&&(c=f(c,s)),!t&&!this.isValid(c))throw new Error("invalid field element: outside of range 0..ORDER");return c}invertBatch(e){return k(this,e)}cmov(e,t,n){return(0,i.e8)(n,"condition"),n?t:e}}function L(e,t={}){return new S(e,t)}function j(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");if(e<=o)throw new Error("field order must be greater than 1");const t=(0,i.dJ)(e-o);return Math.ceil(t/8)}function R(e,t,n=!1){(0,i.DO)(e);const a=e.length,s=j(t),r=Math.max(function(e){const t=j(e);return t+Math.ceil(t/2)}(t),16);if(a<r||a>1024)throw new Error("expected "+r+"-1024 bytes of input, got "+a);const c=f(n?(0,i.lX)(e):(0,i.Ph)(e),t-o)+o;return n?(0,i.z)(c,s):(0,i.lq)(c,s)}Object.freeze(S.prototype)},4032(e,t,n){n.d(t,{x3:()=>m});var i=n(6724),a=n(7315);
|
|
120
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
121
|
+
const o=(e,t)=>(e+(e>=0?t:-t)/p)/t;class s extends Error{constructor(e=""){super(e)}}const r={Err:s,_tlv:{encode:(e,t)=>{const{Err:n}=r;if((0,i.gr)(e,"tag"),e<0||e>255)throw new n("tlv.encode: wrong tag");if("string"!=typeof t)throw new TypeError('"data" expected string, got type='+typeof t);if(1&t.length)throw new n("tlv.encode: unpadded data");const a=t.length/2,o=(0,i.zW)(a);if(o.length/2&128)throw new n("tlv.encode: long form length too big");const s=a>127?(0,i.zW)(o.length/2|128):"";return(0,i.zW)(e)+s+o+t},decode(e,t){const{Err:n}=r;t=(0,i.DO)(t,void 0,"DER data");let a=0;if(e<0||e>255)throw new n("tlv.encode: wrong tag");if(t.length<2||t[a++]!==e)throw new n("tlv.decode: wrong tlv");const o=t[a++];let s=0;if(!!(128&o)){const e=127&o;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");const i=t.subarray(a,a+e);if(i.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===i[0])throw new n("tlv.decode(long): zero leftmost byte");for(const e of i)s=s<<8|e;if(a+=e,s<128)throw new n("tlv.decode(long): not minimal encoding")}else s=o;const c=t.subarray(a,a+s);if(c.length!==s)throw new n("tlv.decode: wrong value length");return{v:c,l:t.subarray(a+s)}}},_int:{encode(e){const{Err:t}=r;if((0,i.Nf)(e),e<c)throw new t("integer: negative integers are not allowed");let n=(0,i.zW)(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=r;if(e.length<1)throw new t("invalid signature integer: empty");if(128&e[0])throw new t("invalid signature integer: negative");if(e.length>1&&0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return(0,i.Ph)(e)}},toSig(e){const{Err:t,_int:n,_tlv:a}=r,o=(0,i.DO)(e,void 0,"signature"),{v:s,l:c}=a.decode(48,o);if(c.length)throw new t("invalid signature: left bytes after parsing");const{v:l,l:p}=a.decode(2,s),{v:u,l:d}=a.decode(2,p);if(d.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(l),s:n.decode(u)}},hexFromSig(e){const{_tlv:t,_int:n}=r,i=t.encode(2,n.encode(e.r))+t.encode(2,n.encode(e.s));return t.encode(48,i)}};Object.freeze(r._tlv),Object.freeze(r._int),Object.freeze(r);const c=BigInt(0),l=BigInt(1),p=BigInt(2),u=BigInt(3),d=BigInt(4);function m(e,t={}){const n=(0,a.Pl)("weierstrass",e,t),s=n.Fp,r=n.Fn;let p=n.CURVE;const{h:m,n:g}=p;(0,i.Q5)(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object"});const{endo:b,allowInfinityPoint:v}=t;if(b&&(!s.is0(p.a)||"bigint"!=typeof b.beta||!Array.isArray(b.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const x=h(s,r);function y(){if(!s.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}const w=void 0===t.toBytes?function(e,t,n){if(v&&t.is0())return Uint8Array.of(0);const{x:a,y:o}=t.toAffine(),r=s.toBytes(a);if((0,i.e8)(n,"isCompressed"),n){y();const e=!s.isOdd(o);return(0,i.Id)(f(e),r)}return(0,i.Id)(Uint8Array.of(4),r,s.toBytes(o))}:t.toBytes,A=void 0===t.fromBytes?function(e){(0,i.DO)(e,void 0,"Point");const{publicKey:t,publicKeyUncompressed:n}=x,a=e.length,o=e[0],r=e.subarray(1);if(v&&1===a&&0===o)return{x:s.ZERO,y:s.ZERO};if(a!==t||2!==o&&3!==o){if(a===n&&4===o){const e=s.BYTES,t=s.fromBytes(r.subarray(0,e)),n=s.fromBytes(r.subarray(e,2*e));if(!E(t,n))throw new Error("bad point: is not on curve");return{x:t,y:n}}throw new Error(`bad point: got length ${a}, expected compressed=${t} or uncompressed=${n}`)}{const e=s.fromBytes(r);if(!s.isValid(e))throw new Error("bad point: is not on curve, wrong x");const t=C(e);let n;try{n=s.sqrt(t)}catch(e){const t=e instanceof Error?": "+e.message:"";throw new Error("bad point: is not on curve, sqrt error"+t)}y();return!(1&~o)!==s.isOdd(n)&&(n=s.neg(n)),{x:e,y:n}}}:t.fromBytes;function C(e){const t=s.sqr(e),n=s.mul(t,e);return s.add(s.add(n,s.mul(e,p.a)),p.b)}function E(e,t){const n=s.sqr(t),i=C(e);return s.eql(n,i)}if(!E(p.Gx,p.Gy))throw new Error("bad curve params: generator point");const k=s.mul(s.pow(p.a,u),d),_=s.mul(s.sqr(p.b),BigInt(27));if(s.is0(s.add(k,_)))throw new Error("bad curve params: a or b");function T(e,t,n=!1){if(!s.isValid(t)||n&&s.is0(t))throw new Error(`bad point coordinate ${e}`);return t}function S(e){if(!(e instanceof R))throw new Error("Weierstrass Point expected")}function L(e){if(!b||!b.basises)throw new Error("no endo");return function(e,t,n){(0,i.aK)("scalar",e,c,n);const[[a,s],[r,p]]=t,u=o(p*e,n),d=o(-s*e,n);let m=e-u*a-d*r,f=-u*s-d*p;const h=m<c,g=f<c;h&&(m=-m),g&&(f=-f);const b=(0,i.OG)(Math.ceil((0,i.dJ)(n)/2))+l;if(m<c||m>=b||f<c||f>=b)throw new Error("splitScalar (endomorphism): failed for k");return{k1neg:h,k1:m,k2neg:g,k2:f}}(e,b.basises,r.ORDER)}function j(e,t,n,i,o){return n=new R(s.mul(n.X,e),n.Y,n.Z),t=(0,a.u0)(i,t),n=(0,a.u0)(o,n),t.add(n)}class R{static BASE=new R(p.Gx,p.Gy,s.ONE);static ZERO=new R(s.ZERO,s.ONE,s.ZERO);static Fp=s;static Fn=r;X;Y;Z;constructor(e,t,n){this.X=T("x",e),this.Y=T("y",t,!0),this.Z=T("z",n),Object.freeze(this)}static CURVE(){return p}static fromAffine(e){const{x:t,y:n}=e||{};if(!e||!s.isValid(t)||!s.isValid(n))throw new Error("invalid affine point");if(e instanceof R)throw new Error("projective point not allowed");return s.is0(t)&&s.is0(n)?R.ZERO:new R(t,n,s.ONE)}static fromBytes(e){const t=R.fromAffine(A((0,i.DO)(e,void 0,"point")));return t.assertValidity(),t}static fromHex(e){return R.fromBytes((0,i.aT)(e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return B.createCache(this,e),t||this.multiply(u),this}assertValidity(){const e=this;if(e.is0()){if(t.allowInfinityPoint&&s.is0(e.X)&&s.eql(e.Y,s.ONE)&&s.is0(e.Z))return;throw new Error("bad point: ZERO")}const{x:n,y:i}=e.toAffine();if(!s.isValid(n)||!s.isValid(i))throw new Error("bad point: x or y not field elements");if(!E(n,i))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(!s.isOdd)throw new Error("Field doesn't support isOdd");return!s.isOdd(e)}equals(e){S(e);const{X:t,Y:n,Z:i}=this,{X:a,Y:o,Z:r}=e,c=s.eql(s.mul(t,r),s.mul(a,i)),l=s.eql(s.mul(n,r),s.mul(o,i));return c&&l}negate(){return new R(this.X,s.neg(this.Y),this.Z)}double(){const{a:e,b:t}=p,n=s.mul(t,u),{X:i,Y:a,Z:o}=this;let r=s.ZERO,c=s.ZERO,l=s.ZERO,d=s.mul(i,i),m=s.mul(a,a),f=s.mul(o,o),h=s.mul(i,a);return h=s.add(h,h),l=s.mul(i,o),l=s.add(l,l),r=s.mul(e,l),c=s.mul(n,f),c=s.add(r,c),r=s.sub(m,c),c=s.add(m,c),c=s.mul(r,c),r=s.mul(h,r),l=s.mul(n,l),f=s.mul(e,f),h=s.sub(d,f),h=s.mul(e,h),h=s.add(h,l),l=s.add(d,d),d=s.add(l,d),d=s.add(d,f),d=s.mul(d,h),c=s.add(c,d),f=s.mul(a,o),f=s.add(f,f),d=s.mul(f,h),r=s.sub(r,d),l=s.mul(f,m),l=s.add(l,l),l=s.add(l,l),new R(r,c,l)}add(e){S(e);const{X:t,Y:n,Z:i}=this,{X:a,Y:o,Z:r}=e;let c=s.ZERO,l=s.ZERO,d=s.ZERO;const m=p.a,f=s.mul(p.b,u);let h=s.mul(t,a),g=s.mul(n,o),b=s.mul(i,r),v=s.add(t,n),x=s.add(a,o);v=s.mul(v,x),x=s.add(h,g),v=s.sub(v,x),x=s.add(t,i);let y=s.add(a,r);return x=s.mul(x,y),y=s.add(h,b),x=s.sub(x,y),y=s.add(n,i),c=s.add(o,r),y=s.mul(y,c),c=s.add(g,b),y=s.sub(y,c),d=s.mul(m,x),c=s.mul(f,b),d=s.add(c,d),c=s.sub(g,d),d=s.add(g,d),l=s.mul(c,d),g=s.add(h,h),g=s.add(g,h),b=s.mul(m,b),x=s.mul(f,x),g=s.add(g,b),b=s.sub(h,b),b=s.mul(m,b),x=s.add(x,b),h=s.mul(g,x),l=s.add(l,h),h=s.mul(y,x),c=s.mul(v,c),c=s.sub(c,h),h=s.mul(v,g),d=s.mul(y,d),d=s.add(d,h),new R(c,l,d)}subtract(e){return S(e),this.add(e.negate())}is0(){return this.equals(R.ZERO)}multiply(e){const{endo:n}=t;if(!r.isValidNot0(e))throw new RangeError("invalid scalar: out of range");let i,o;const s=e=>B.cached(this,e,e=>(0,a.Ak)(R,e));if(n){const{k1neg:t,k1:a,k2neg:r,k2:c}=L(e),{p:l,f:p}=s(a),{p:u,f:d}=s(c);o=p.add(d),i=j(n.beta,l,u,t,r)}else{const{p:t,f:n}=s(e);i=t,o=n}return(0,a.Ak)(R,[i,o])[0]}multiplyUnsafe(e){const{endo:n}=t,i=this,o=e;if(!r.isValid(o))throw new RangeError("invalid scalar: out of range");if(o===c||i.is0())return R.ZERO;if(o===l)return i;if(B.hasCache(this))return this.multiply(o);if(n){const{k1neg:e,k1:t,k2neg:s,k2:r}=L(o),{p1:c,p2:l}=(0,a.fH)(R,i,t,r);return j(n.beta,c,l,e,s)}return B.unsafe(i,o)}toAffine(e){let t=e;const{X:n,Y:i,Z:a}=this;if(s.eql(a,s.ONE))return{x:n,y:i};const o=this.is0();null==t&&(t=o?s.ONE:s.inv(a));const r=s.mul(n,t),c=s.mul(i,t),l=s.mul(a,t);if(o)return{x:s.ZERO,y:s.ZERO};if(!s.eql(l,s.ONE))throw new Error("invZ was invalid");return{x:r,y:c}}isTorsionFree(){const{isTorsionFree:e}=t;return m===l||(e?e(R,this):B.unsafe(this,g).is0())}clearCofactor(){const{clearCofactor:e}=t;return m===l?this:e?e(R,this):this.multiplyUnsafe(m)}isSmallOrder(){return m===l?this.is0():this.clearCofactor().is0()}toBytes(e=!0){return(0,i.e8)(e,"isCompressed"),this.assertValidity(),w(R,this,e)}toHex(e=!0){return(0,i.My)(this.toBytes(e))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}const N=r.BITS,B=new a.hT(R,t.endo?Math.ceil(N/2):N);return N>=8&&R.BASE.precompute(8),Object.freeze(R.prototype),Object.freeze(R),R}function f(e){return Uint8Array.of(e?2:3)}function h(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}},6885(e,t,n){n.d(t,{ko:()=>_});var i=n(4721),a=n(508),o=n(7315),s=n(2186),r=n(4032),c=n(6724);
|
|
122
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
123
|
+
const l={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},p={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},u=BigInt(0),d=BigInt(2);const m=(0,s.D0)(l.p,{sqrt:function(e){const t=l.p,n=BigInt(3),i=BigInt(6),a=BigInt(11),o=BigInt(22),r=BigInt(23),c=BigInt(44),p=BigInt(88),u=e*e*e%t,f=u*u*e%t,h=(0,s.zH)(f,n,t)*f%t,g=(0,s.zH)(h,n,t)*f%t,b=(0,s.zH)(g,d,t)*u%t,v=(0,s.zH)(b,a,t)*b%t,x=(0,s.zH)(v,o,t)*v%t,y=(0,s.zH)(x,c,t)*x%t,w=(0,s.zH)(y,p,t)*y%t,A=(0,s.zH)(w,c,t)*x%t,C=(0,s.zH)(A,n,t)*f%t,E=(0,s.zH)(C,r,t)*v%t,k=(0,s.zH)(E,i,t)*u%t,_=(0,s.zH)(k,d,t);if(!m.eql(m.sqr(_),e))throw new Error("Cannot find square root");return _}}),f=(0,r.x3)(l,{Fp:m,endo:p}),h={};function g(e,...t){let n=h[e];if(void 0===n){const t=(0,i.sc)((0,c.Mh)(e));n=(0,c.Id)(t,t),h[e]=n}return(0,i.sc)((0,c.Id)(n,...t))}const b=e=>e.toBytes(!0).slice(1),v=e=>e%d===u;function x(e){const{Fn:t,BASE:n}=f,i=t.fromBytes(e),a=n.multiply(i);return{scalar:v(a.y)?i:t.neg(i),bytes:b(a)}}function y(e){const t=m;if(!t.isValidNot0(e))throw new Error("invalid x: Fail if x ≥ p");const n=t.create(e*e),i=t.create(n*e+BigInt(7));let a=t.sqrt(i);v(a)||(a=t.neg(a));const o=f.fromAffine({x:e,y:a});return o.assertValidity(),o}const w=c.Ph;function A(...e){return f.Fn.create(w(g("BIP0340/challenge",...e)))}function C(e){return x(e).bytes}function E(e,t,n=(0,a.po)(32)){const{Fn:i,BASE:o}=f,s=(0,c.DO)(e,void 0,"message"),{bytes:r,scalar:l}=x(t),p=(0,c.DO)(n,32,"auxRand"),u=i.toBytes(l^w(g("BIP0340/aux",p))),d=g("BIP0340/nonce",u,r,s),m=i.create(w(d));if(0n===m)throw new Error("sign failed: k is zero");const h=o.multiply(m),y=v(h.y)?m:i.neg(m),C=b(h),E=A(C,r,s),_=new Uint8Array(64);if(_.set(C,0),_.set(i.toBytes(i.create(y+E*l)),32),!k(_,s,r))throw new Error("sign: Invalid signature produced");return _}function k(e,t,n){const{Fp:i,Fn:a,BASE:o}=f,s=(0,c.DO)(e,64,"signature"),r=(0,c.DO)(t,void 0,"message"),l=(0,c.DO)(n,32,"publicKey");try{const e=y(w(l)),t=w(s.subarray(0,32));if(!i.isValidNot0(t))return!1;const n=w(s.subarray(32,64));if(!a.isValidNot0(n))return!1;const c=A(a.toBytes(t),b(e),r),p=o.multiplyUnsafe(n).add(e.multiplyUnsafe(a.neg(c))),{x:u,y:d}=p.toAffine();return!(p.is0()||!v(d)||u!==t)}catch(e){return!1}}const _=(()=>{const e=e=>(e=void 0===e?(0,a.po)(48):e,(0,s.qy)(e,l.n));return Object.freeze({keygen:(0,o.GV)(e,C),getPublicKey:C,sign:E,verify:k,Point:f,utils:Object.freeze({randomSecretKey:e,taggedHash:g,lift_x:y,pointToBytes:b}),lengths:Object.freeze({secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48})})})()},6724(e,t,n){n.d(t,{DO:()=>a,Fe:()=>o,Id:()=>r,Mh:()=>y,My:()=>s,Nf:()=>d,OG:()=>E,Ph:()=>g,Q5:()=>k,aK:()=>A,aT:()=>c,dJ:()=>C,e8:()=>u,gr:()=>m,lX:()=>b,lq:()=>v,z:()=>x,zW:()=>f});var i=n(508);
|
|
124
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const a=(e,t,n)=>(0,i.DO)(e,t,n),o=i.Fe,s=i.My,r=(...e)=>(0,i.Id)(...e),c=e=>(0,i.aT)(e),l=BigInt(0),p=BigInt(1);function u(e,t=""){if("boolean"!=typeof e){throw new TypeError((t&&`"${t}" `)+"expected boolean, got type="+typeof e)}return e}function d(e){if("bigint"==typeof e){if(!w(e))throw new RangeError("positive bigint expected, got "+e)}else o(e);return e}function m(e,t=""){if("number"!=typeof e){throw new TypeError((t&&`"${t}" `)+"expected number, got type="+typeof e)}if(!Number.isSafeInteger(e)){throw new RangeError((t&&`"${t}" `)+"expected safe integer, got "+e)}}function f(e){const t=d(e).toString(16);return 1&t.length?"0"+t:t}function h(e){if("string"!=typeof e)throw new TypeError("hex string expected, got "+typeof e);return""===e?l:BigInt("0x"+e)}function g(e){return h((0,i.My)(e))}function b(e){return h((0,i.My)(function(e){return Uint8Array.from(a(e))}((0,i.DO)(e)).reverse()))}function v(e,t){if((0,i.Fe)(t),0===t)throw new RangeError("zero length");const n=(e=d(e)).toString(16);if(n.length>2*t)throw new RangeError("number too large");return(0,i.aT)(n.padStart(2*t,"0"))}function x(e,t){return v(e,t).reverse()}function y(e){if("string"!=typeof e)throw new TypeError("ascii string expected, got "+typeof e);return Uint8Array.from(e,(t,n)=>{const i=t.charCodeAt(0);if(1!==t.length||i>127)throw new RangeError(`string contains non-ASCII character "${e[n]}" with code ${i} at position ${n}`);return i})}const w=e=>"bigint"==typeof e&&l<=e;function A(e,t,n,i){if(!function(e,t,n){return w(e)&&w(t)&&w(n)&&t<=e&&e<n}(t,n,i))throw new RangeError("expected valid "+e+": "+n+" <= n < "+i+", got "+t)}function C(e){if(e<l)throw new Error("expected non-negative bigint, got "+e);let t;for(t=0;e>l;e>>=p,t+=1);return t}const E=e=>(p<<BigInt(e))-p;function k(e,t={},n={}){if("[object Object]"!==Object.prototype.toString.call(e))throw new TypeError("expected valid options object");const i=(t,n)=>Object.entries(t).forEach(([t,i])=>function(t,n,i){if(!i&&"function"!==n&&!Object.hasOwn(e,t))throw new TypeError(`param "${t}" is invalid: expected own property`);const a=e[t];if(i&&void 0===a)return;const o=typeof a;if(o!==n||null===a)throw new TypeError(`param "${t}" is invalid: expected ${n}, got ${o}`)}(t,i,n));i(t,!1),i(n,!0)}},6793(e,t,n){n.d(t,{Az:()=>l,DM:()=>c,TQ:()=>o,ol:()=>s,r9:()=>a,tT:()=>p,yc:()=>r});var i=n(508);function a(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}class s{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,t,n,a){this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=a,this.buffer=new Uint8Array(e),this.view=(0,i.O8)(this.buffer)}update(e){(0,i.CC)(this),(0,i.DO)(e);const{view:t,buffer:n,blockLen:a}=this,o=e.length;for(let s=0;s<o;){const r=Math.min(a-this.pos,o-s);if(r===a){const t=(0,i.O8)(e);for(;a<=o-s;s+=a)this.process(t,s);continue}n.set(e.subarray(s,s+r),this.pos),this.pos+=r,s+=r,this.pos===a&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,i.CC)(this),(0,i.Ht)(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:a,isLE:o}=this;let{pos:s}=this;t[s++]=128,(0,i.uH)(this.buffer.subarray(s)),this.padOffset>a-s&&(this.process(n,0),s=0);for(let e=s;e<a;e++)t[e]=0;n.setBigUint64(a-8,BigInt(8*this.length),o),this.process(n,0);const r=(0,i.O8)(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const l=c/4,p=this.get();if(l>p.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)r.setUint32(4*e,p[e],o)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());const{blockLen:t,buffer:n,length:i,finished:a,destroyed:o,pos:s}=this;return e.destroyed=o,e.finished=a,e.length=i,e.pos=s,i%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}}const r=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),l=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),p=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])},6211(e,t,n){n.d(t,{CQ:()=>b,CW:()=>g,Ei:()=>d,F8:()=>v,TH:()=>x,Vl:()=>f,Vr:()=>h,WQ:()=>m,jm:()=>c,lD:()=>s,qh:()=>u,rE:()=>l,ry:()=>p,xn:()=>r});const i=BigInt(2**32-1),a=BigInt(32);function o(e,t=!1){return t?{h:Number(e&i),l:Number(e>>a&i)}:{h:0|Number(e>>a&i),l:0|Number(e&i)}}function s(e,t=!1){const n=e.length;let i=new Uint32Array(n),a=new Uint32Array(n);for(let s=0;s<n;s++){const{h:n,l:r}=o(e[s],t);[i[s],a[s]]=[n,r]}return[i,a]}const r=(e,t,n)=>e>>>n,c=(e,t,n)=>e<<32-n|t>>>n,l=(e,t,n)=>e>>>n|t<<32-n,p=(e,t,n)=>e<<32-n|t>>>n,u=(e,t,n)=>e<<64-n|t>>>n-32,d=(e,t,n)=>e>>>n-32|t<<64-n;function m(e,t,n,i){const a=(t>>>0)+(i>>>0);return{h:e+n+(a/2**32|0)|0,l:0|a}}const f=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),h=(e,t,n,i)=>t+n+i+(e/2**32|0)|0,g=(e,t,n,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(i>>>0),b=(e,t,n,i,a)=>t+n+i+a+(e/2**32|0)|0,v=(e,t,n,i,a)=>(e>>>0)+(t>>>0)+(n>>>0)+(i>>>0)+(a>>>0),x=(e,t,n,i,a,o)=>t+n+i+a+o+(e/2**32|0)|0},4721(e,t,n){n.d(t,{sc:()=>l});var i=n(6793),a=(n(6211),n(508));const o=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=new Uint32Array(64);class r extends i.ol{constructor(e){super(64,e,8,!1)}get(){const{A:e,B:t,C:n,D:i,E:a,F:o,G:s,H:r}=this;return[e,t,n,i,a,o,s,r]}set(e,t,n,i,a,o,s,r){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|i,this.E=0|a,this.F=0|o,this.G=0|s,this.H=0|r}process(e,t){for(let n=0;n<16;n++,t+=4)s[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=s[e-15],n=s[e-2],i=(0,a.Ow)(t,7)^(0,a.Ow)(t,18)^t>>>3,o=(0,a.Ow)(n,17)^(0,a.Ow)(n,19)^n>>>10;s[e]=o+s[e-7]+i+s[e-16]|0}let{A:n,B:r,C:c,D:l,E:p,F:u,G:d,H:m}=this;for(let e=0;e<64;e++){const t=m+((0,a.Ow)(p,6)^(0,a.Ow)(p,11)^(0,a.Ow)(p,25))+(0,i.r9)(p,u,d)+o[e]+s[e]|0,f=((0,a.Ow)(n,2)^(0,a.Ow)(n,13)^(0,a.Ow)(n,22))+(0,i.TQ)(n,r,c)|0;m=d,d=u,u=p,p=l+t|0,l=c,c=r,r=n,n=t+f|0}n=n+this.A|0,r=r+this.B|0,c=c+this.C|0,l=l+this.D|0,p=p+this.E|0,u=u+this.F|0,d=d+this.G|0,m=m+this.H|0,this.set(n,r,c,l,p,u,d,m)}roundClean(){(0,a.uH)(s)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),(0,a.uH)(this.buffer)}}class c extends r{A=0|i.yc[0];B=0|i.yc[1];C=0|i.yc[2];D=0|i.yc[3];E=0|i.yc[4];F=0|i.yc[5];G=0|i.yc[6];H=0|i.yc[7];constructor(){super(32)}}i.ol;const l=(0,a.qj)(()=>new c,(0,a.nx)(1))},508(e,t,n){function i(e,t=""){if("number"!=typeof e){throw new TypeError(`${t&&`"${t}" `}expected number, got ${typeof e}`)}if(!Number.isSafeInteger(e)||e<0){throw new RangeError(`${t&&`"${t}" `}expected integer >= 0, got ${e}`)}}function a(e,t,n=""){const i=(a=e)instanceof Uint8Array||ArrayBuffer.isView(a)&&"Uint8Array"===a.constructor.name&&"BYTES_PER_ELEMENT"in a&&1===a.BYTES_PER_ELEMENT;var a;const o=e?.length,s=void 0!==t;if(!i||s&&o!==t){const a=(n&&`"${n}" `)+"expected Uint8Array"+(s?` of length ${t}`:"")+", got "+(i?`length=${o}`:"type="+typeof e);if(!i)throw new TypeError(a);throw new RangeError(a)}return e}function o(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){a(e,void 0,"digestInto() output");const n=t.outputLen;if(e.length<n)throw new RangeError('"digestInto() output" expected to be of length >='+n)}function r(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function c(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function l(e,t){return e<<32-t|e>>>t}n.d(t,{CC:()=>o,DO:()=>a,Fe:()=>i,Ht:()=>s,Id:()=>w,My:()=>d,O8:()=>c,Ow:()=>l,aT:()=>y,nx:()=>E,po:()=>C,qj:()=>A,uH:()=>r});const p=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),u=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function d(e){if(a(e),p)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=u[e[n]];return t}const m=48,f=57,h=65,g=70,b=97,v=102;function x(e){return e>=m&&e<=f?e-m:e>=h&&e<=g?e-(h-10):e>=b&&e<=v?e-(b-10):void 0}function y(e){if("string"!=typeof e)throw new TypeError("hex string expected, got "+typeof e);if(p)try{return Uint8Array.fromHex(e)}catch(e){if(e instanceof SyntaxError)throw new RangeError(e.message);throw e}const t=e.length,n=t/2;if(t%2)throw new RangeError("hex string expected, got unpadded hex of length "+t);const i=new Uint8Array(n);for(let t=0,a=0;t<n;t++,a+=2){const n=x(e.charCodeAt(a)),o=x(e.charCodeAt(a+1));if(void 0===n||void 0===o){const t=e[a]+e[a+1];throw new RangeError('hex string expected, got non-hex character "'+t+'" at index '+a)}i[t]=16*n+o}return i}function w(...e){let t=0;for(let n=0;n<e.length;n++){const i=e[n];a(i),t+=i.length}const n=new Uint8Array(t);for(let t=0,i=0;t<e.length;t++){const a=e[t];n.set(a,i),i+=a.length}return n}function A(e,t={}){const n=(t,n)=>e(n).update(t).digest(),i=e(void 0);return n.outputLen=i.outputLen,n.blockLen=i.blockLen,n.canXOF=i.canXOF,n.create=t=>e(t),Object.assign(n,t),Object.freeze(n)}function C(e=32){i(e,"bytesLength");const t="object"==typeof globalThis?globalThis.crypto:null;if("function"!=typeof t?.getRandomValues)throw new Error("crypto.getRandomValues must be defined");if(e>65536)throw new RangeError(`"bytesLength" expected <= 65536, got ${e}`);return t.getRandomValues(new Uint8Array(e))}const E=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])})},5228(e,t,n){n.d(t,{AH:()=>i.AH,WF:()=>s,qy:()=>a.qy});var i=n(8760),a=n(6752);
|
|
125
|
+
/**
|
|
126
|
+
* @license
|
|
127
|
+
* Copyright 2017 Google LLC
|
|
128
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
129
|
+
*/
|
|
130
|
+
const o=globalThis;class s extends i.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=(0,a.XX)(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return a.c0}}s._$litElement$=!0,s.finalized=!0,o.litElementHydrateSupport?.({LitElement:s});const r=o.litElementPolyfillSupport;r?.({LitElement:s});(o.litElementVersions??=[]).push("4.2.2")},6752(e,t,n){n.d(t,{XX:()=>z,c0:()=>_,qy:()=>k});
|
|
131
|
+
/**
|
|
132
|
+
* @license
|
|
133
|
+
* Copyright 2017 Google LLC
|
|
134
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
135
|
+
*/
|
|
136
|
+
const i=globalThis,a=e=>e,o=i.trustedTypes,s=o?o.createPolicy("lit-html",{createHTML:e=>e}):void 0,r="$lit$",c=`lit$${Math.random().toFixed(9).slice(2)}$`,l="?"+c,p=`<${l}>`,u=document,d=()=>u.createComment(""),m=e=>null===e||"object"!=typeof e&&"function"!=typeof e,f=Array.isArray,h=e=>f(e)||"function"==typeof e?.[Symbol.iterator],g="[ \t\n\f\r]",b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,x=/>/g,y=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),w=/'/g,A=/"/g,C=/^(?:script|style|textarea|title)$/i,E=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),k=E(1),_=(E(2),E(3),Symbol.for("lit-noChange")),T=Symbol.for("lit-nothing"),S=new WeakMap,L=u.createTreeWalker(u,129);function j(e,t){if(!f(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s?s.createHTML(t):t}const R=(e,t)=>{const n=e.length-1,i=[];let a,o=2===t?"<svg>":3===t?"<math>":"",s=b;for(let t=0;t<n;t++){const n=e[t];let l,u,d=-1,m=0;for(;m<n.length&&(s.lastIndex=m,u=s.exec(n),null!==u);)m=s.lastIndex,s===b?"!--"===u[1]?s=v:void 0!==u[1]?s=x:void 0!==u[2]?(C.test(u[2])&&(a=RegExp("</"+u[2],"g")),s=y):void 0!==u[3]&&(s=y):s===y?">"===u[0]?(s=a??b,d=-1):void 0===u[1]?d=-2:(d=s.lastIndex-u[2].length,l=u[1],s=void 0===u[3]?y:'"'===u[3]?A:w):s===A||s===w?s=y:s===v||s===x?s=b:(s=y,a=void 0);const f=s===y&&e[t+1].startsWith("/>")?" ":"";o+=s===b?n+p:d>=0?(i.push(l),n.slice(0,d)+r+n.slice(d)+c+f):n+c+(-2===d?t:f)}return[j(e,o+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]};class N{constructor({strings:e,_$litType$:t},n){let i;this.parts=[];let a=0,s=0;const p=e.length-1,u=this.parts,[m,f]=R(e,t);if(this.el=N.createElement(m,n),L.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=L.nextNode())&&u.length<p;){if(1===i.nodeType){if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(r)){const t=f[s++],n=i.getAttribute(e).split(c),o=/([.?@])?(.*)/.exec(t);u.push({type:1,index:a,name:o[2],strings:n,ctor:"."===o[1]?$:"?"===o[1]?M:"@"===o[1]?F:D}),i.removeAttribute(e)}else e.startsWith(c)&&(u.push({type:6,index:a}),i.removeAttribute(e));if(C.test(i.tagName)){const e=i.textContent.split(c),t=e.length-1;if(t>0){i.textContent=o?o.emptyScript:"";for(let n=0;n<t;n++)i.append(e[n],d()),L.nextNode(),u.push({type:2,index:++a});i.append(e[t],d())}}}else if(8===i.nodeType)if(i.data===l)u.push({type:2,index:a});else{let e=-1;for(;-1!==(e=i.data.indexOf(c,e+1));)u.push({type:7,index:a}),e+=c.length-1}a++}}static createElement(e,t){const n=u.createElement("template");return n.innerHTML=e,n}}function B(e,t,n=e,i){if(t===_)return t;let a=void 0!==i?n._$Co?.[i]:n._$Cl;const o=m(t)?void 0:t._$litDirective$;return a?.constructor!==o&&(a?._$AO?.(!1),void 0===o?a=void 0:(a=new o(e),a._$AT(e,n,i)),void 0!==i?(n._$Co??=[])[i]=a:n._$Cl=a),void 0!==a&&(t=B(e,a._$AS(e,t.values),a,i)),t}class I{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:n}=this._$AD,i=(e?.creationScope??u).importNode(t,!0);L.currentNode=i;let a=L.nextNode(),o=0,s=0,r=n[0];for(;void 0!==r;){if(o===r.index){let t;2===r.type?t=new O(a,a.nextSibling,this,e):1===r.type?t=new r.ctor(a,r.name,r.strings,this,e):6===r.type&&(t=new P(a,this,e)),this._$AV.push(t),r=n[++s]}o!==r?.index&&(a=L.nextNode(),o++)}return L.currentNode=u,i}p(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class O{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,i){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=B(this,e,t),m(e)?e===T||null==e||""===e?(this._$AH!==T&&this._$AR(),this._$AH=T):e!==this._$AH&&e!==_&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):h(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==T&&m(this._$AH)?this._$AA.nextSibling.data=e:this.T(u.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,i="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=N.createElement(j(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(t);else{const e=new I(i,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=S.get(e.strings);return void 0===t&&S.set(e.strings,t=new N(e)),t}k(e){f(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,i=0;for(const a of e)i===t.length?t.push(n=new O(this.O(d()),this.O(d()),this,this.options)):n=t[i],n._$AI(a),i++;i<t.length&&(this._$AR(n&&n._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=a(e).nextSibling;a(e).remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class D{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,i,a){this.type=1,this._$AH=T,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=T}_$AI(e,t=this,n,i){const a=this.strings;let o=!1;if(void 0===a)e=B(this,e,t,0),o=!m(e)||e!==this._$AH&&e!==_,o&&(this._$AH=e);else{const i=e;let s,r;for(e=a[0],s=0;s<a.length-1;s++)r=B(this,i[n+s],t,s),r===_&&(r=this._$AH[s]),o||=!m(r)||r!==this._$AH[s],r===T?e=T:e!==T&&(e+=(r??"")+a[s+1]),this._$AH[s]=r}o&&!i&&this.j(e)}j(e){e===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class $ extends D{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===T?void 0:e}}class M extends D{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==T)}}class F extends D{constructor(e,t,n,i,a){super(e,t,n,i,a),this.type=5}_$AI(e,t=this){if((e=B(this,e,t,0)??T)===_)return;const n=this._$AH,i=e===T&&n!==T||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==T&&(n===T||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class P{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){B(this,e)}}const U=i.litHtmlPolyfillSupport;U?.(N,O),(i.litHtmlVersions??=[]).push("3.3.2");const z=(e,t,n)=>{const i=n?.renderBefore??t;let a=i._$litPart$;if(void 0===a){const e=n?.renderBefore??null;i._$litPart$=a=new O(t.insertBefore(d(),e),e,void 0,n??{})}return a._$AI(e),a}},6161(e,t,n){n.d(t,{AH:()=>i.AH,WF:()=>i.WF,qy:()=>i.qy});n(8760),n(6752);var i=n(5228)},7697(e,t,n){n.d(t,{A:()=>i});const i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}},3689(e,t,n){let i;n.d(t,{A:()=>o});const a=new Uint8Array(16);function o(){if(!i){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");i=crypto.getRandomValues.bind(crypto)}return i(a)}},8249(e,t,n){n.d(t,{k:()=>a});const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function a(e,t=0){return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}},4296(e,t,n){n.d(t,{A:()=>s});var i=n(7697),a=n(3689),o=n(8249);const s=function(e,t,n){return!i.A.randomUUID||t||e?function(e,t,n){const i=(e=e||{}).random??e.rng?.()??(0,a.A)();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=i[e];return t}return(0,o.k)(i)}(e,t,n):i.A.randomUUID()}},1813(e){e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/ace+json":{"source":"iana","compressible":true},"application/ace-groupcomm+cbor":{"source":"iana"},"application/ace-trl+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/aif+cbor":{"source":"iana"},"application/aif+json":{"source":"iana","compressible":true},"application/alto-cdni+json":{"source":"iana","compressible":true},"application/alto-cdnifilter+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-propmap+json":{"source":"iana","compressible":true},"application/alto-propmapparams+json":{"source":"iana","compressible":true},"application/alto-tips+json":{"source":"iana","compressible":true},"application/alto-tipsparams+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/appinstaller":{"compressible":false,"extensions":["appinstaller"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/appx":{"compressible":false,"extensions":["appx"]},"application/appxbundle":{"compressible":false,"extensions":["appxbundle"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/automationml-aml+xml":{"source":"iana","compressible":true,"extensions":["aml"]},"application/automationml-amlx+zip":{"source":"iana","compressible":false,"extensions":["amlx"]},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/bufr":{"source":"iana"},"application/c2pa":{"source":"iana"},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/ce+cbor":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/cid-edhoc+cbor-seq":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/city+json-seq":{"source":"iana"},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-eap":{"source":"iana"},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/concise-problem-details+cbor":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cose-x509":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwl":{"source":"iana","extensions":["cwl"]},"application/cwl+json":{"source":"iana","compressible":true},"application/cwl+yaml":{"source":"iana"},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana","extensions":["dcm"]},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dpop+jwt":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/eat+cwt":{"source":"iana"},"application/eat+jwt":{"source":"iana"},"application/eat-bun+cbor":{"source":"iana"},"application/eat-bun+json":{"source":"iana","compressible":true},"application/eat-ucs+cbor":{"source":"iana"},"application/eat-ucs+json":{"source":"iana","compressible":true},"application/ecmascript":{"source":"apache","compressible":true,"extensions":["ecma"]},"application/edhoc+cbor-seq":{"source":"iana"},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.legacyesn+json":{"source":"iana","compressible":true},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/entity-statement+jwt":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdf":{"source":"iana","extensions":["fdf"]},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geopose+json":{"source":"iana","compressible":true},"application/geoxacml+json":{"source":"iana","compressible":true},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gnap-binding-jws":{"source":"iana"},"application/gnap-binding-jwsd":{"source":"iana"},"application/gnap-binding-rotation-jws":{"source":"iana"},"application/gnap-binding-rotation-jwsd":{"source":"iana"},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/grib":{"source":"iana"},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"iana","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"apache","charset":"UTF-8","compressible":true,"extensions":["js"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/jscontact+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jsonpath":{"source":"iana"},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwk-set+jwt":{"source":"iana"},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/linkset":{"source":"iana"},"application/linkset+json":{"source":"iana","compressible":true},"application/load-control+xml":{"source":"iana","compressible":true},"application/logout+jwt":{"source":"iana"},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4","mpg4","mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msix":{"compressible":false,"extensions":["msix"]},"application/msixbundle":{"compressible":false,"extensions":["msixbundle"]},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":true,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/ohttp-keys":{"source":"iana"},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg","one","onea"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["sig","asc"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/private-token-issuer-directory":{"source":"iana"},"application/private-token-request":{"source":"iana"},"application/private-token-response":{"source":"iana"},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/provided-claims+jwt":{"source":"iana"},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.implied-document+xml":{"source":"iana","compressible":true},"application/prs.implied-executable":{"source":"iana"},"application/prs.implied-object+json":{"source":"iana","compressible":true},"application/prs.implied-object+json-seq":{"source":"iana"},"application/prs.implied-object+yaml":{"source":"iana"},"application/prs.implied-structure":{"source":"iana"},"application/prs.mayfile":{"source":"iana"},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.vcfbzip2":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true,"extensions":["xsf"]},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"apache"},"application/reputon+json":{"source":"iana","compressible":true},"application/resolve-response+jwt":{"source":"iana"},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-checklist":{"source":"iana"},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-signed-tal":{"source":"iana"},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"apache"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana","extensions":["sql"]},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/sslkeylogfile":{"source":"iana"},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/st2110-41":{"source":"iana"},"application/stix+json":{"source":"iana","compressible":true},"application/stratum":{"source":"iana"},"application/swid+cbor":{"source":"iana"},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tm+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/toc+cbor":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"source":"iana","compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/trust-chain+json":{"source":"iana","compressible":true},"application/trust-mark+jwt":{"source":"iana"},"application/trust-mark-delegation+jwt":{"source":"iana"},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/uccs+cbor":{"source":"iana"},"application/ujcs+json":{"source":"iana","compressible":true},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vc":{"source":"iana"},"application/vc+cose":{"source":"iana"},"application/vc+jwt":{"source":"iana"},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.1ob":{"source":"iana"},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3a+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ach+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc8+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.5gsa2x":{"source":"iana"},"application/vnd.3gpp.5gsa2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gsv2x":{"source":"iana"},"application/vnd.3gpp.5gsv2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.crs+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.current-location-discovery+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-msgstore-ctrl-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.pinapp-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.seal-group-doc+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-network-qos-management-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-ue-config-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-unicast-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-user-profile-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.v2x":{"source":"iana"},"application/vnd.3gpp.vae-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acm.addressxfer+json":{"source":"iana","compressible":true},"application/vnd.acm.chatbot+json":{"source":"iana","compressible":true},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"apache","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"apache"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.parquet":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.apexlang":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"apache"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autodesk.fbx":{"extensions":["fbx"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.belightsoft.lhzd+zip":{"source":"iana","compressible":false},"application/vnd.belightsoft.lhzl+zip":{"source":"iana","compressible":false},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.bzip3":{"source":"iana"},"application/vnd.c3voc.schedule+xml":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.cncf.helm.chart.content.v1.tar+gzip":{"source":"iana"},"application/vnd.cncf.helm.chart.provenance.v1.prov":{"source":"iana"},"application/vnd.cncf.helm.config.v1+json":{"source":"iana","compressible":true},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datalog":{"source":"iana"},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.dcmp+xml":{"source":"iana","compressible":true,"extensions":["dcmp"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.eln+zip":{"source":"iana","compressible":false},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.erofs":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"apache","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.fdsn.stationxml+xml":{"source":"iana","charset":"XML-BASED","compressible":true},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.freelog.comic":{"source":"iana"},"application/vnd.frogans.fnc":{"source":"apache","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"apache","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.ga4gh.passport+jwt":{"source":"iana"},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.genozip":{"source":"iana"},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.gentoo.catmetadata+xml":{"source":"iana","compressible":true},"application/vnd.gentoo.ebuild":{"source":"iana"},"application/vnd.gentoo.eclass":{"source":"iana"},"application/vnd.gentoo.gpkg":{"source":"iana"},"application/vnd.gentoo.manifest":{"source":"iana"},"application/vnd.gentoo.pkgmetadata+xml":{"source":"iana","compressible":true},"application/vnd.gentoo.xpak":{"source":"iana"},"application/vnd.geo+json":{"source":"apache","compressible":true},"application/vnd.geocube+xml":{"source":"apache","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.pinboard":{"source":"iana"},"application/vnd.geogebra.slides":{"source":"iana","extensions":["ggs"]},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.gnu.taler.exchange+json":{"source":"iana","compressible":true},"application/vnd.gnu.taler.merchant+json":{"source":"iana","compressible":true},"application/vnd.google-apps.audio":{},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.drawing":{"compressible":false,"extensions":["gdraw"]},"application/vnd.google-apps.drive-sdk":{"compressible":false},"application/vnd.google-apps.file":{},"application/vnd.google-apps.folder":{"compressible":false},"application/vnd.google-apps.form":{"compressible":false,"extensions":["gform"]},"application/vnd.google-apps.fusiontable":{},"application/vnd.google-apps.jam":{"compressible":false,"extensions":["gjam"]},"application/vnd.google-apps.mail-layout":{},"application/vnd.google-apps.map":{"compressible":false,"extensions":["gmap"]},"application/vnd.google-apps.photo":{},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.script":{"compressible":false,"extensions":["gscript"]},"application/vnd.google-apps.shortcut":{},"application/vnd.google-apps.site":{"compressible":false,"extensions":["gsite"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-apps.unknown":{},"application/vnd.google-apps.video":{},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"apache","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true,"extensions":["xdcf"]},"application/vnd.gpxsee.map+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.hsl":{"source":"iana"},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"apache"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"apache","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"apache"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.ipfs.ipns-record":{"source":"iana"},"application/vnd.ipld.car":{"source":"iana"},"application/vnd.ipld.dag-cbor":{"source":"iana"},"application/vnd.ipld.dag-json":{"source":"iana"},"application/vnd.ipld.raw":{"source":"iana"},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kdl":{"source":"iana"},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.keyman.kmp+zip":{"source":"iana","compressible":false},"application/vnd.keyman.kmx":{"source":"iana"},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.ldev.productlicensing":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.mdl":{"source":"iana"},"application/vnd.mdl-mbsdf":{"source":"iana"},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.medicalholodeck.recordxr":{"source":"iana"},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mermaid":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.modl":{"source":"iana"},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-visio.viewer":{"extensions":["vdx"]},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msgpack":{"source":"iana"},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.nato.bindingdataobject+cbor":{"source":"iana"},"application/vnd.nato.bindingdataobject+json":{"source":"iana","compressible":true},"application/vnd.nato.bindingdataobject+xml":{"source":"iana","compressible":true,"extensions":["bdo"]},"application/vnd.nato.openxmlformats-package.iepd+zip":{"source":"iana","compressible":false},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"apache","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oai.workflows":{"source":"iana"},"application/vnd.oai.workflows+json":{"source":"iana","compressible":true},"application/vnd.oai.workflows+yaml":{"source":"iana"},"application/vnd.oasis.opendocument.base":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"apache","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-master-template":{"source":"iana"},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"apache","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"apache","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.onvif.metadata":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openvpi.dspx+json":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.procrate.brushset":{"extensions":["brushset"]},"application/vnd.procreate.brush":{"extensions":["brush"]},"application/vnd.procreate.dream":{"extensions":["drm"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.pt.mundusmundi":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true,"extensions":["xhtm"]},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.relpipe":{"source":"iana"},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.sketchometry":{"source":"iana"},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.smintio.portals.archive":{"source":"iana"},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sybyl.mol2":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uic.osdm+json":{"source":"iana","compressible":true},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml","uo"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.veraison.tsm-report+cbor":{"source":"iana"},"application/vnd.veraison.tsm-report+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw","vsdx","vtx"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vocalshaper.vsp4":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.wasmflow.wafl":{"source":"iana"},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordlift":{"source":"iana"},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xarin.cpj":{"source":"iana"},"application/vnd.xecrets-encrypted":{"source":"iana"},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/voucher-jws+json":{"source":"iana","compressible":true},"application/vp":{"source":"iana"},"application/vp+cose":{"source":"iana"},"application/vp+jwt":{"source":"iana"},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blender":{"extensions":["blend"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-compressed":{"extensions":["rar"]},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-ipynb+json":{"compressible":true,"extensions":["ipynb"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zip-compressed":{"extensions":["zip"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xfdf":{"source":"iana","extensions":["xfdf"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yaml":{"source":"iana"},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+cbor":{"source":"iana"},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yang-sid+json":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zip+dotlottie":{"extensions":["lottie"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana","extensions":["adts","aac"]},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flac":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/matroska":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/midi-clip":{"source":"iana"},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a","m4b"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"apache"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"source":"iana","compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp","dib"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/dpx":{"source":"iana","extensions":["dpx"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/j2c":{"source":"iana"},"image/jaii":{"source":"iana","extensions":["jaii"]},"image/jais":{"source":"iana","extensions":["jais"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpg","jpeg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm","jpgm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxl":{"source":"iana","extensions":["jxl"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false,"extensions":["jfif"]},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif","btf"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.clip":{"source":"iana"},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"iana","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-adobe-dng":{"extensions":["dng"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-emf":{"source":"iana"},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-wmf":{"source":"iana"},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/bhttp":{"source":"iana"},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/mls":{"source":"iana"},"message/news":{"source":"apache"},"message/ohttp-req":{"source":"iana"},"message/ohttp-res":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime","mht","mhtml"]},"message/s-http":{"source":"apache"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"apache"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/jt":{"source":"iana","extensions":["jt"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/prc":{"source":"iana","extensions":["prc"]},"model/step":{"source":"iana","extensions":["step","stp","stpnc","p21","210"]},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/u3d":{"source":"iana","extensions":["u3d"]},"model/vnd.bary":{"source":"iana","extensions":["bary"]},"model/vnd.cld":{"source":"iana","extensions":["cld"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana","extensions":["pyo","pyox"]},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usda":{"source":"iana","extensions":["usda"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"apache"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/hl7v2":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["md","markdown"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/prs.texi":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.exchangeable":{"source":"iana"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"apache"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.vcf":{"source":"iana"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vnd.zoo.kcl":{"source":"iana"},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/wgsl":{"source":"iana","extensions":["wgsl"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/evc":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/h266":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/lottie+json":{"source":"iana","compressible":true},"video/matroska":{"source":"iana"},"video/matroska-3d":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts","m2t","m2ts","mts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.planar":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"apache"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={id:e,loaded:!1,exports:{}};return n[e](o,o.exports,a),o.loaded=!0,o.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};a.d(o,{w:()=>s.w});var s=a(717);const r="solid-ui-footer";customElements.get(r)||customElements.define(r,s.w);const c=o.w;export{c as Footer};
|
|
137
|
+
//# sourceMappingURL=index.esm.min.js.map
|