mashlib 2.1.5-test.3 → 2.1.5

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.
@@ -366,7 +366,7 @@ var r=n(8287),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t
366
366
  *
367
367
  * This source code is licensed under the MIT license found in the
368
368
  * LICENSE file in the root directory of this source tree.
369
- */function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<a(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>a(c,n))l<i&&0>a(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else{if(!(l<i&&0>a(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}var l=[],u=[],d=1,p=null,f=3,h=!1,m=!1,g=!1,v=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(l,t)}t=r(u)}}function A(e){if(g=!1,x(e),!m)if(null!==r(l))m=!0,E||(E=!0,C());else{var t=r(u);null!==t&&I(A,t.startTime-e)}}var C,E=!1,k=-1,_=5,S=-1;function T(){return!!v||!(t.unstable_now()-S<_)}function P(){if(v=!1,E){var e=t.unstable_now();S=e;var n=!0;try{e:{m=!1,g&&(g=!1,y(k),k=-1),h=!0;var a=f;try{t:{for(x(e),p=r(l);null!==p&&!(p.expirationTime>e&&T());){var o=p.callback;if("function"==typeof o){p.callback=null,f=p.priorityLevel;var s=o(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof s){p.callback=s,x(e),n=!0;break t}p===r(l)&&i(l),x(e)}else i(l);p=r(l)}if(null!==p)n=!0;else{var c=r(u);null!==c&&I(A,c.startTime-e),n=!1}}break e}finally{p=null,f=a,h=!1}n=void 0}}finally{n?C():E=!1}}}if("function"==typeof w)C=function(){w(P)};else if("undefined"!=typeof MessageChannel){var F=new MessageChannel,R=F.port2;F.port1.onmessage=P,C=function(){R.postMessage(null)}}else C=function(){b(P,0)};function I(e,n){k=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e||(_=0<e?Math.floor(1e3/e):5)},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_requestPaint=function(){v=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?o+a:o:a=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(e.sortIndex=a,n(u,e),null===r(l)&&e===r(u)&&(g?(y(k),k=-1):g=!0,I(A,a-o))):(e.sortIndex=s,n(l,e),m||h||(m=!0,E||(E=!0,C()))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},9982(e,t,n){"use strict";e.exports=n(4477)},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 r in t){const i=t[r];n[r]=function(t=""){return e.namedNode(i+t)}}return n}},8236(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RDFXMLPane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.RDFXMLPane={icon:r.icons.originalIconBase+"22-text-xml4.png",name:"RDFXML",audience:[o.solid("Developer")],label:function(e,t){const n=t.session.store;if("http://www.w3.org/2007/ont/link#ProtocolEvent"in n.findTypeURIs(e))return null;const r=n.statementsMatching(void 0,void 0,void 0,e).length;return 0===r?null:"As RDF/XML ("+r+")"},render:function(e,t){const n=t.dom,r=t.session.store,a=n.createElement("div");a.setAttribute("class","RDFXMLPane");const o=r.statementsMatching(void 0,void 0,void 0,e),s=i.Serializer(r);s.suggestNamespaces(r.namespaces),s.setBase(e.uri);const c=s.statementsToXML(o),l=n.createElement("PRE");return l.appendChild(n.createTextNode(c)),a.appendChild(l),a}}},6686(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_534313.svg",name:"audio",label:function(e,t){const n=t.session.store.findTypeURIs(e),r=i.Util.mediaTypeClass("audio/*").uri.split("*")[0];for(const e in n)if(e.startsWith(r))return"Play audio";return null},render:function(e,t){const n=t.session.store,r=t.dom,i=!1,a=!0,s=!0,c=!1,l=function(e){const t=e.lastIndexOf(".");if(t<0)return e;return t<e.lastIndexOf("/")?e:e.slice(0,t)},u=function(e){const t=e.uri.split("/").slice(-3),n=function(e){try{return decodeURIComponent(e)}catch(t){return e}};v.textContent=n(t[0]),b.textContent=n(t[1]),y.textContent=n(l(t[2]))},d=function(e,t){return new Promise(function(r){if(t=t||0,!a)return r(null);const i=n.any(void 0,o.ldp("contains"),e)||e.dir();if(!i)return r(null);n.fetcher.load(i).then(function(a){const l=n.each(i,o.ldp("contains"));let u;l.sort();for(let a=0;a<l.length;a++)if(e.uri===l[a].uri){if(u=(a+1)%l.length,0!==u)return r(l[u]);if(!s)return r(c?l[u]:null);if(1===t||!s)return r(null);d(i,t+1).then(function(e){e&&n.fetcher.load(e).then(function(t){const i=n.each(e,o.ldp("contains"));return 0===i.length?r(null):(i.sort(),r(i[0]))})})}})})},p=function(e){const t=n.sym(e.target.getAttribute("src"));if(!a)return;const r=function(t){d(t).then(function(t){t&&(!function(e){const t=n.any(void 0,o.ldp("contains"),e);if(!t)return!1;const r=n.each(t,o.ldp("contains"));if(r.length<2)return!1;const i=e.uri;for(let e=0;e<r.length;e++){const t=r[e].uri;if(i.length>t.length&&i.startsWith(l(t)))return!0;if(i.endsWith(".m4a")&&t.endsWith(".mp3")&&l(i)===l(t))return!0}return!1}(t)?(u(t),w.appendChild(f(t,!0)),w.removeChild(e.target)):r(t))})};r(t)},f=function(e,t){const i=r.createElement("audio");return i.setAttribute("controls","yes"),n.fetcher._fetch(e.uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);i.setAttribute("src",t)}),t&&i.setAttribute("autoplay","autoplay"),i.addEventListener("ended",p,!1),i},h=r.createElement("div"),m=h.appendChild(r.createElement("table")),g="padding: 0.3em; color:white; background-color: black;",v=m.appendChild(r.createElement("tr"));v.style.cssText=g;const b=m.appendChild(r.createElement("tr"));b.style.cssText=g;const y=m.appendChild(r.createElement("tr"));y.style.cssText=g;const w=m.appendChild(r.createElement("tr"));return u(e),w.appendChild(f(e,i)),!n.holds(void 0,o.ldp("contains"),e)&&e.dir()&&n.fetcher.load(e.dir()),h}}},5382(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classInstancePane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.classInstancePane={icon:r.icons.originalIconBase+"tango/22-folder-open.png",name:"classInstance",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store.each(void 0,o.rdf("type"),e).length;return n>0?"List ("+n+")":null},render:function(e,t){const n=t.dom,a=t.getOutliner(n),s=t.session.store,c=function(e,t){const r=n.createElement("pre");r.setAttribute("style","background-color: "+t||0),l.appendChild(r),r.appendChild(n.createTextNode(e))},l=n.createElement("div");l.setAttribute("class","instancePane"),l.setAttribute("style"," border-top: solid 1px #777; border-bottom: solid 1px #777; margin-top: 0.5em; margin-bottom: 0.5em ");const u=s.statementsMatching(void 0,o.rdf("type"),e);if(u.length>0){const t={},d=[];u.forEach(e=>{t[e.subject.toNT()]=e});for(const n in s.findMembersNT(e))t[n]||d.push(i.st(s.fromNT(n),o.rdf("type"),e));if(d.length&&c("There are "+u.length+" explicit and "+d.length+" implicit members of "+r.utils.label(e)),e.sameTerm(o.rdf("Property")));else if(e.sameTerm(o.rdfs("Class"))){const e=s.statementsMatching(void 0,o.rdf("type"),void 0),t={};e.forEach(function(e){t[e.object]=e});const n=[];for(const e in t)n.push(i.st(i.sym(e),o.rdf("type"),o.rdfs("Class")));c("Total of "+e.length+" type statements and "+n.length+" unique types.")}if(u.length>10){const e=n.createElement("TR");e.appendChild(n.createTextNode(""+u.length)),l.appendChild(e)}a.appendPropertyTRs(l,u,!0,function(e){return!0}),d.length&&(c("Implicit:"),a.appendPropertyTRs(l,d,!0,function(e){return!0}))}return l}}},6106(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.basicPreferencesPane=void 0;var r=n(8230),i=n(500);const a=t.basicPreferencesPane={icon:i.icons.iconBase+"noun_Sliders_341315_000000.svg",name:"basicPreferences",label:e=>null,render:(e,t)=>{const n=t.dom,a=t.session.store;function s(e,t){e||c.appendChild(i.widgets.errorMessageBlock(n,t,"#fee"))}const c=n.createElement("div"),l=function(e,t){const n=o(e,t,"User types"),r=n.appendChild(t.createElement("p"));r.innerText="Here you can self-assign user types to help the data browser know which views you would like to access.";const i=n.appendChild(t.createElement("a"));i.href="https://github.com/solidos/userguide/#role",i.innerText="Read more";const a=n.appendChild(t.createElement("div"));return a}(c,n);function u(e,t){e=e.doc(),a.holds(void 0,void 0,void 0,e)||(0,r.parse)(t,a,e.uri,"text/turtle",null)}const d=a.sym("urn:uuid:93774ba1-d3b6-41f2-85b6-4ae27ffd2597#this");u(d,'@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix : <#>.\n\n:this <http://purl.org/dc/elements/1.1/title> "Basic preferences" ;\n a ui:Form ;\n ui:part :categorizeUser, :privateComment, :personalInformationHeading;\n ui:parts ( :personalInformationHeading :privateComment :categorizeUser ).\n\n:personalInformationHeading a ui:Heading;\n ui:contents "Personal information".\n\n:privateComment a ui:Comment;\n ui:contents "This information is private.".\n\n:categorizeUser a ui:Classifier;\n ui:label "Level of user"; ui:property rdf:type ; ui:category solid:User.\n');return u(a.sym("urn:uuid:93774ba1-d3b6-41f2-85b6-4ae27ffd2597-ONT"),'@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix schema: <http:/schema.org/>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.\n@prefix : <#>.\n\nsolid:User a rdfs:Class;\n rdfs:label "user"@en, "utilisateur"@fr;\n rdfs:comment """Any person who might use a Solid-based system""";\n rdfs:subClassOf foaf:Person, schema:Person, vcard:Individual.\n\n# Since these options are opt-in, it is a bit strange to have new users opt in\n# That they are new users - also we do not use this class for anything specific\n# yet\n# solid:NewUser a rdfs:Class;\n# rdfs:label "new user"@en;\n# rdfs:comment """A person who might use a Solid-based system who has a low\n# level of familiarity with technical details.""";\n# rdfs:subClassOf solid:User.\n\nsolid:PowerUser a rdfs:Class;\n rdfs:label "power user"@en;\n rdfs:comment """A person who might use a Solid-based system\n who is prepared to be given a more complex interface in order\n to be provided with more pwerful features.""";\n rdfs:subClassOf solid:User.\n\n solid:Developer a rdfs:Class;\n rdfs:label "Developer";\n rdfs:comment """Any person who might use a Solid-based system,\n who has software development skills.""";\n rdfs:subClassOf solid:User.\n'),async function(){const e=await i.login.ensureLoadedPreferences({dom:n,div:c});if(!e.preferencesFile)return;i.widgets.appendForm(n,l,{},e.me,d,e.preferencesFile,s).style.borderStyle="none";const r=t.session.paneRegistry.byName("trustedApplications");r&&c.appendChild(r.render(null,t)),function(e,t,n,r){const a=o(e,r,"Delete account"),s=t.each(n,i.ns.space("storage"),null,n.doc()),c=s.map(e=>e.value),l=a.appendChild(r.createElement("ul"));c.forEach(async e=>{const t=await async function(e,t){const n=t.createElement("a");n.textContent=`Delete your account at ${e}`;const r=await async function(e){const t=new URL(e),n=new URL(e);n.pathname=t.pathname="/account/delete";const r=n.hostname.split(".");n.hostname=r.slice(1).join(".");if((await fetch(n.href,{method:"HEAD"})).ok)return n.href;if((await fetch(t.href,{method:"HEAD"})).ok)return t.href;return null}(e);if("string"!=typeof r)return null;return n.href=r,n}(e,r);if(t){l.appendChild(r.createElement("li")).appendChild(t)}})}(c,a,e.me,n)}(),c}};t.default=a;function o(e,t,n){const r=e.appendChild(t.createElement("div"));r.style.border="0.3em solid #418d99",r.style.borderRadius="0.5em",r.style.padding="0.7em",r.style.marginTop="0.7em";return r.appendChild(t.createElement("h3")).innerText=n,r}},5682(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.dashboardPane=void 0;var r=n(500),i=n(9332),a=n(730);const o=t.dashboardPane={icon:r.icons.iconBase+"noun_547570.svg",name:"dashboard",label:e=>"NamedNode"===e.termType&&e.uri===e.site().uri?"Dashboard":null,render:(e,t)=>{const n=t.dom.createElement("div"),r=()=>{n.innerHTML="",function(e,t,n,r){const o=new URL(window.location.href).searchParams.get("uri");if(t&&(o||t.site().uri===r.site().uri))return function(e,t){const n=t.getOutliner(t.dom);n.getDashboard().then(t=>e.appendChild(t))}(e,n);(function(e,t){const n=document.createElement("div");e.appendChild(n);const r=n.attachShadow({mode:"open"}),o=document.createElement("link");o.rel="stylesheet",o.href="/common/css/bootstrap.min.css",r.appendChild(o),(0,a.generateHomepage)(t,i.store,i.store.fetcher).then(e=>r.appendChild(e))})(e,r)}(n,i.authn.currentUser()||null,t,e)};return i.authSession.events.on("login",()=>{r()}),i.authSession.events.on("sessionRestore",()=>{r()}),r(),n}};t.default=o},730(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateHomepage=async function(e,t,n){const a=await async function(e,t,n){const a=e.site().uri,o=(0,r.sym)(`${a}profile/card#me`);try{return await n.load(o),o}catch(e){}try{await n.load(e)}catch(t){return e}const s=t.any(e,i.ns.foaf("primaryTopic"),null,e.doc());if(s&&"NamedNode"===s.termType)try{return await n.load(s),s}catch(t){return e}return e}(e,t,n),o=function(e,t){return e.anyValue(t,i.ns.vcard("fn"),null,t.doc())||e.anyValue(t,i.ns.foaf("name"),null,t.doc())||new URL(t.uri).host.split(".")[0]}(t,a),s=document.createElement("div");return s.classList.add("container"),s.appendChild(function(e,t){const n=document.createElement("a");n.href=e,n.innerText=t;const r=document.createElement("span");r.innerText="'s Pod";const i=document.createElement("h1");return i.appendChild(n),i.appendChild(r),i}(a.uri,o)),s.appendChild(function(e){const t=document.createElement("section"),n=document.createElement("h2");n.innerText="Data",t.appendChild(n);const r=document.createElement("div");r.classList.add("list-group"),t.appendChild(r);const i=document.createElement("a");return i.classList.add("list-group-item"),i.href=window.document.location.href+"public/",i.innerText=`View ${e}'s files`,r.appendChild(i),t}(o)),s};var r=n(8230),i=n(500)},1424(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dataContentPane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.dataContentPane={icon:r.icons.originalIconBase+"rdf_flyer.24.gif",name:"dataContents",audience:[o.solid("Developer")],label:function(e,t){if("http://www.w3.org/2007/ont/link#ProtocolEvent"in t.session.store.findTypeURIs(e))return null;const n=t.session.store.statementsMatching(void 0,void 0,void 0,e).length;return 0===n?null:"Data ("+n+")"},statementsAsTables:function(e,t,n){const a=t.dom,o=a.createElement("table"),s=i.Serializer(t.session.store),c=s.rootSubjects(e);let l=c.roots;const u=c.subjects,d=c.loopBreakers;for(const e in d);const p={},f={};function h(e){const t=a.createElement("table");let n=null;const i=u[s.toStr(e)];if(!i)return t.appendChild(a.createTextNode("...")),t;i.sort();let o,c=0;for(let e=0;e<i.length;e++){const s=i[e],l=a.createElement("tr");if(s.predicate.uri!==n){n&&c>1&&o.setAttribute("rowspan",""+c),o=a.createElement("td"),o.setAttribute("class","pred");const e=a.createElement("a");e.setAttribute("href",s.predicate.uri),e.addEventListener("click",r.widgets.openHrefInOutlineMode,!0),e.appendChild(a.createTextNode(r.utils.predicateLabelForXML(s.predicate))),o.appendChild(e),l.appendChild(o),n=s.predicate.uri,c=0}c++;const u=a.createElement("td");u.appendChild(m(s.object)),l.appendChild(u),t.appendChild(l)}return n&&c>1&&o.setAttribute("rowspan",""+c),t}function m(e){let n,i;switch(e.termType){case"NamedNode":return i=a.createElement("a"),i.setAttribute("href",e.uri),i.addEventListener("click",r.widgets.openHrefInOutlineMode,!0),i.appendChild(a.createTextNode(r.utils.label(e))),i;case"Literal":return e.datatype&&e.datatype.uri?"http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral"===e.datatype.uri?(n=a.createElement("div"),n.setAttribute("class","embeddedXHTML"),n.innerHTML=e.value,n):a.createTextNode(e.value):(n=a.createElement("div"),n.setAttribute("style","white-space: pre-wrap;"),n.textContent=e.value,n);case"BlankNode":{if(e.toNT()in p){f[e.toNT()]=!0;const t=a.createElement("a");return t.setAttribute("href","#"+e.toNT().slice(2)),t.setAttribute("class","bnodeRef"),t.textContent="*"+e.toNT().slice(3),t}p[e.toNT()]=!0;const t=h(e);return p[e.toNT()]=t,r.utils.ancestor(t,"TABLE")&&"white"===r.utils.ancestor(t,"TABLE").style.backgroundColor?t.style.backgroundColor="#eee":t.style.backgroundColor="white",t}case"Collection":n=a.createElement("table"),n.setAttribute("class","collectionAsTables");for(let t=0;t<e.elements.length;t++){const r=a.createElement("tr");n.appendChild(r),r.appendChild(m(e.elements[t]))}return n;case"Graph":return n=t.session.paneRegistry.byName("dataContents").statementsAsTables(e.statements,t),n.setAttribute("class","nestedFormula"),n;case"Variable":return n=a.createTextNode("?"+e.uri),n}throw new Error("Unhandled node type: "+e.termType)}n&&(l=n.concat(l.filter(function(e){for(let t=0;t<n.length;t++)if(e.sameTerm(n[t]))return!1;return!0})));for(let e=0;e<l.length;e++){const t=a.createElement("tr");t.setAttribute("style",`background-color: ${e%2==0?"#f0f0f0":"white"};`),o.appendChild(t);const n=a.createElement("td");t.appendChild(n);const i=a.createElement("td");t.appendChild(i);const s=l[e];"BlankNode"===s.termType?n.appendChild(a.createTextNode(r.utils.label(s))):n.appendChild(m(s)),i.appendChild(h(s))}for(const e in f){const t=p[e],n=a.createElement("a");n.setAttribute("id",e.slice(2)),n.setAttribute("class","bnodeDef"),n.textContent=e.slice(3)+")",t.insertBefore(n,t.firstChild)}return o},render:function(e,t){const n=t.dom;t.getOutliner(n);const i=t.session.store,a=n.createElement("div");a.setAttribute("class","dataContentPane");const o=i.statementsMatching(void 0,void 0,void 0,e);return function(){const n=[];i.holds(e,void 0,void 0,e)&&n.push(e);const s=i.any(e,r.ns.foaf("primaryTopic"),void 0,e);s&&n.push(s),a.appendChild(t.session.paneRegistry.byName("dataContents").statementsAsTables(o,t,n))}(),a}}},4064(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultPane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.defaultPane={icon:r.icons.originalIconBase+"about.png",name:"default",audience:[o.solid("Developer")],label:function(e){return"about "},render:function(e,t){const n=t.dom,a=function(e,n){return void 0===t.session.paneRegistry.byName("internal").predicates[e.uri]&&(!n||"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"!==e.uri)},o=t.getOutliner(n),s=t.session.store;r.log.info("@defaultPane.render, dom is now "+n.location),e=s.canon(e);const c=n.createElement("div");c.setAttribute("class","defaultPane");let l=s.statementsMatching(e);if(o.appendPropertyTRs(c,l,!1,a),l=s.statementsMatching(void 0,void 0,e),o.appendPropertyTRs(c,l,!0,a),"Literal"===e.termType&&"http://"===e.value.slice(0,7)&&o.appendPropertyTRs(c,[i.st(s.sym(e.value),r.ns.link("uri"),e)],!0,a),"NamedNode"===e.termType&&s.updater.editable(i.Util.uri.docpart(e.uri),s)||"BlankNode"===e.termType&&s.anyStatementMatching(e)&&s.anyStatementMatching(e).why&&s.anyStatementMatching(e).why.uri&&s.updater.editable(s.anyStatementMatching(e).why.uri)){const e=n.createElement("tr"),t=n.createElement("td");t.setAttribute("colspan","2"),t.setAttribute("notSelectable","true");const i=n.createElement("img");i.src=r.icons.originalIconBase+"tango/22-list-add-new.png",i.addEventListener("click",function(e){o.UserInput.addNewPredicateObject(e),e.stopPropagation(),e.preventDefault()}),i.className="bottom-border-active",c.appendChild(e).appendChild(t).appendChild(i)}return c}}},2970(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=c(n(500)),a=c(n(8230)),o=c(n(6049)),s=(r=n(3505))&&r.__esModule?r:{default:r};function c(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(c=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}t.default={icon:i.icons.iconBase+"dokieli-logo.png",name:"Dokieli",mintClass:i.ns.solid("DokieliDocument"),label:function(e,t){return null},mintNew:function(e,t){const n=e.session.store;let r=t.newInstance;if(!r){let e=t.newBase;e.endsWith("/")&&(e=e.slice(0,-1),t.newBase=e),r=n.sym(e)}const i=o.lookup(r.uri);i&&i.includes("html")||(r=a.sym(r.uri+".html")),t.newInstance=r;let c=s.default,l=r.uri.split("/").slice(-1)[0];l=decodeURIComponent(l.split(".")[0]);const u=l.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");return c=c.replace("<title>","<title>"+u),c=c.replace("</article>","<h1>"+u+"</h1></article>"),new Promise(function(e){n.fetcher.webOperation("PUT",r.uri,{data:c,contentType:"text/html"}).then(function(){e(t)}).catch(function(e){})})}}},3505(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default='<!DOCTYPE html>\n<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">\n <head>\n <meta charset="utf-8" />\n <title></title>\n <meta content="width=device-width, initial-scale=1" name="viewport" />\n <link href="https://dokie.li/media/css/basic.css" media="all" rel="stylesheet" title="Basic" />\n <link href="https://dokie.li/media/css/dokieli.css" media="all" rel="stylesheet" />\n <script src="https://dokie.li/scripts/dokieli.js"><\/script>\n </head>\n\n <body about="" prefix="rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# rdfs: http://www.w3.org/2000/01/rdf-schema# owl: http://www.w3.org/2002/07/owl# xsd: http://www.w3.org/2001/XMLSchema# rdfa: http://www.w3.org/ns/rdfa# dcterms: http://purl.org/dc/terms/ dctypes: http://purl.org/dc/dcmitype/ foaf: http://xmlns.com/foaf/0.1/ pimspace: http://www.w3.org/ns/pim/space# skos: http://www.w3.org/2004/02/skos/core# prov: http://www.w3.org/ns/prov# mem: http://mementoweb.org/ns# qb: http://purl.org/linked-data/cube# schema: http://schema.org/ void: http://rdfs.org/ns/void# rsa: http://www.w3.org/ns/auth/rsa# cert: http://www.w3.org/ns/auth/cert# wgs: http://www.w3.org/2003/01/geo/wgs84_pos# bibo: http://purl.org/ontology/bibo/ sioc: http://rdfs.org/sioc/ns# doap: http://usefulinc.com/ns/doap# dbr: http://dbpedia.org/resource/ dbp: http://dbpedia.org/property/ sio: http://semanticscience.org/resource/ opmw: http://www.opmw.org/ontology/ deo: http://purl.org/spar/deo/ doco: http://purl.org/spar/doco/ cito: http://purl.org/spar/cito/ fabio: http://purl.org/spar/fabio/ oa: http://www.w3.org/ns/oa# as: https://www.w3.org/ns/activitystreams# ldp: http://www.w3.org/ns/ldp# solid: http://www.w3.org/ns/solid/terms# acl: http://www.w3.org/ns/auth/acl# earl: http://www.w3.org/ns/earl# spec: http://www.w3.org/ns/spec# odrl: http://www.w3.org/ns/odrl/2/ dio: https://w3id.org/dio# rel: https://www.w3.org/ns/iana/link-relations/relation#" typeof="schema:CreativeWork prov:Entity">\n <main>\n <article about="" typeof="schema:Article">\n\n </article>\n </main>\n </body>\n</html>\n'},5238(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formPane=void 0;var r=o(n(500)),i=n(9332),a=o(n(8230));function o(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const s=r.ns;t.formPane={icon:r.icons.iconBase+"noun_122196.svg",name:"form",audience:[s.solid("PowerUser")],label:function(e){const t=r.widgets.formsFor(e).length;return r.log.debug("Form pane: forms for "+e+": "+t),t?t+" forms":null},render:function(e,t){const n=t.session.store,o=t.dom,c=function(e,t){const n=o.createElement("p");return n.setAttribute("style",t||"color: grey; background-color: white"),p.appendChild(n).textContent=e,n},l=function(e,t){c(e,"style")},u=function(e,t){e||l("Sorry, failed to save your change:\n"+t)},d=i.authn.currentUser(),p=o.createElement("div");if(p.setAttribute("class","formPane"),d){0===n.each(d,s.ui("workspace")).length&&c("You don't seem to have any workspaces defined. A workspace is a place on the web (http://..) or in the file system (file:///) to store application data.\n")}else c("You are not logged in. If you log in and have workspaces then you would be able to select workspace in which to put this new information");const f=function(e,t){n.fetcher.nowOrWhenFetched(e.uri,t,function(n,i){if(!n)return l("Cannot load store "+e.uri+": "+i);const s=r.widgets.formsFor(t);for(let n=0;n<s.length;n++){const i=s[n],c=o.createElement("h4");if(p.appendChild(c),i.uri){const e=a.Util.uri.document(i.uri);if(e.uri!==i.uri){p.appendChild(r.widgets.editFormButton(o,p,i,e,u)).setAttribute("style","float: right;")}}const l=o.createElement("a");l.setAttribute("href",i.uri),c.appendChild(l),l.textContent=r.utils.label(i,!0),r.widgets.appendForm(o,p,{},t,i,e,u)}})};let h=null;const m=a.Util.uri.docpart(e.uri);if(e.uri!==m&&n.updater.editable(m,n)&&(h=e.doc()),h=h||n.any(n.sym(m),s.link("annotationStore")),!h){const t={},n=[];h.statementsMatching(e).forEach(function(e){t[e.why.uri]=1}),h.statementsMatching(void 0,void 0,e).forEach(function(e){t[e.why.uri]=2});for(const e in t)n.push(t[e],e);n.sort();for(let e=0;e<n.length;e++){const t=n[e][1];if(t&&h.updater.editable(t)){h=h.sym(t);break}}}const g="2014";if(h)f(h,e);else{l("No suitable store is known, to edit <"+e.uri+">.");const t=r.login.selectWorkspace(o,function(t){c("Workspace selected OK: "+t);const n=h.each(void 0,s.space("workspace"),t);for(let r=0;r<n.length;r++){const i=n[r],a=h.any(t,s.space("store")),o=h.any(t,s.cal("dtstart")).value(),c=h.any(t,s.cal("dtend")).value();if(a&&o&&c&&o<=g&&c>g){f(a,e);break}l("Note no suitable annotation store in activity: "+i)}});p.appendChild(t)}return p}}},8426(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(9332),i=n(500);const a={icon:i.icons.iconBase+"noun_547570.svg",global:!0,name:"home",label:function(){return"home"},render:function(e,t){const n=t.dom,a=n.createElement("div"),o=r.authn.currentUser();return async function(){const e={div:a,dom:n,statusArea:a,me:o};a.appendChild(n.createElement("h4")).textContent="Create new thing somewhere";const r={div:a.appendChild(n.createElement("div")),dom:n,statusArea:a,me:o},s=await i.login.filterAvailablePanes(t.session.paneRegistry.list);i.create.newThingUI(r,t,s),i.login.registrationList(e,{}).then(function(){})}(),a}};t.default=a},6380(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(500),a=n(8230),o=n(23),s=(r=n(5454))&&r.__esModule?r:{default:r};const c=e=>{if(!e)return!1;const t=e.split("?")[0].split("#")[0];return/\.(md|markdown|mdown|mkd|mkdn)$/i.test(t)},l=new Map,u={icon:function(e,t){if(e&&c(e.uri))return i.icons.iconBase+"markdown.svg";if(e){const n=t.session.store,r=l.get(e.uri);if("dokieli"===r)return i.icons.iconBase+"dokieli-logo.png";if("html"===r)return i.icons.originalIconBase+"tango/22-text-x-generic.png";const a=n.fetcher.getHeader(e.doc(),"content");if(a&&a.length>0){const t=a[0],n=t.includes('<script src="https://dokie.li/scripts/dokieli.js">')||t.includes("dokieli.css");return l.set(e.uri,n?"dokieli":"html"),n?i.icons.iconBase+"dokieli-logo.png":i.icons.originalIconBase+"tango/22-text-x-generic.png"}const o=n.fetcher.getHeader(e.doc(),"content-type");if("text/html"===(o?o[0].split(";",1)[0].trim():null))return n.fetcher._fetch(e.uri).then(e=>e.text()).then(t=>{const n=t.includes('<script src="https://dokie.li/scripts/dokieli.js">')||t.includes("dokieli.css");return l.set(e.uri,n?"dokieli":"html"),n?i.icons.iconBase+"dokieli-logo.png":i.icons.originalIconBase+"tango/22-text-x-generic.png"}).catch(()=>(l.set(e.uri,"html"),i.icons.originalIconBase+"tango/22-text-x-generic.png"))}return i.icons.originalIconBase+"tango/22-text-x-generic.png"},name:"humanReadable",label:function(e,t){const n=t.session.store,r=["text/plain","text/html","text/markdown","application/xhtml+xml","image/png","image/jpeg","application/pdf","video/mp4"];if(!e.uri)return null;if(n.findTypeURIs(e)[i.ns.link("WebPage").uri])return"view";if(c(e.uri))return"View";if(function(e,t,n){const r=e.fetcher.getHeader(t,"content-type");if(r)for(let e=0;e<r.length;e++)for(let t=0;t<n.length;t++)if(r[e].indexOf(n[t])>=0)return!0;return!1}(n,e,r)||function(e,t,n){const r=e.findTypeURIs(t);for(let e=0;e<n.length;e++)if(a.Util.mediaTypeClass(n[e]).uri in r)return!0;return!1}(n,e,r)){const t=n.fetcher.getHeader(e.doc(),"content-type");return"text/html"!==(t?t[0].split(";",1)[0].trim():null)||l.has(e.uri)||n.fetcher._fetch(e.uri).then(e=>e.text()).then(t=>{const n=t.includes('<script src="https://dokie.li/scripts/dokieli.js">')||t.includes("dokieli.css");l.set(e.uri,n?"dokieli":"html")}).catch(()=>{l.set(e.uri,"html")}),"View"}return null},render:function(e,t){const n=t.dom,r=n.createElement("div"),i=t.session.store,a=i.fetcher.getHeader(e.doc(),"content-type"),u=a?a[0].split(";",1)[0].trim():null,d="text/markdown"===u||c(e.uri);r.setAttribute("class","docView");const p=(t,n)=>{t.setAttribute("src",e.uri),t.setAttribute("class","doc"),t.setAttribute("style",`border: 1px solid; padding: 1em; height: ${n}em; width: 800px; resize: both; overflow: auto;`)};if(d){const t=n.createElement("DIV");!function(t){i.fetcher.webOperation("GET",e.uri).then(e=>{const n=e.responseText,r=Math.min(30,n.split(/\n/).length+5),i=o.marked.parse(n),a=s.default.sanitize(i);t.innerHTML=a,t.setAttribute("class","doc"),t.setAttribute("style",`border: 1px solid; padding: 1em; height: ${r}em; width: 800px; resize: both; overflow: auto;`)}).catch(e=>{t.innerHTML="<p>Error loading content</p>"})}(t);const a=n.createElement("TR");a.appendChild(t),r.appendChild(a)}else{const t=n.createElement("IFRAME");"text/html"!==u&&"application/xhtml+xml"!==u||t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),i.fetcher.webOperation("GET",e.uri).then(n=>{const r=n.responseText,i=r.includes('<script src="https://dokie.li/scripts/dokieli.js">')?-10:5,a=Math.min(30,r.split(/\n/).length+i),o=r.includes('<script src="https://dokie.li/scripts/dokieli.js">')||r.includes("dokieli.css");l.set(e.uri,o?"dokieli":"html"),p(t,a)}).catch(e=>{p(t,30)});const a=n.createElement("TR");a.appendChild(t),r.appendChild(a)}return r}};t.default=u},2168(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imagePane=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));t.imagePane={icon:r.icons.originalIconBase+"tango/22-image-x-generic.png",name:"image",label:function(e,t){const n=t.session.store;if(!n.anyStatementMatching(e,r.ns.rdf("type"),n.sym("http://purl.org/dc/terms/Image")))return null;return function(e,t,n){const r=e.fetcher.getHeader(t,"content-type");if(r)for(let e=0;e<r.length;e++)for(let t=0;t<n.length;t++)if(r[e].indexOf(n[t])>=0)return!0;return!1}(n,e,["application/pdf"])?null:"view"},render:function(e,t){const n=t.dom,r=t.session.store,i=n.createElement("div");i.setAttribute("class","imageView");const a=n.createElement("IMG");r.fetcher._fetch(e.uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);a.setAttribute("src",t)}),a.setAttribute("style","max-width: 100%; max-height: 100%;");const o=n.createElement("TR");return o.appendChild(a),i.appendChild(o),i}}},7523(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"OutlineManager",{enumerable:!0,get:function(){return o.default}}),t.UI=void 0,Object.defineProperty(t,"byName",{enumerable:!0,get:function(){return c.byName}}),t.getOutliner=p,Object.defineProperty(t,"initMainPage",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"list",{enumerable:!0,get:function(){return c.list}}),Object.defineProperty(t,"paneForIcon",{enumerable:!0,get:function(){return c.paneForIcon}}),Object.defineProperty(t,"paneForPredicate",{enumerable:!0,get:function(){return c.paneForPredicate}}),Object.defineProperty(t,"register",{enumerable:!0,get:function(){return c.register}}),Object.defineProperty(t,"versionInfo",{enumerable:!0,get:function(){return r.default}});var r=d(n(4959)),i=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));t.UI=i;var a=n(9332),o=d(n(7981)),s=n(2371),c=n(4059),l=n(6813),u=d(n(5218));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if(!e.outlineManager){const t=(0,l.createContext)(e,{list:c.list,paneForIcon:c.paneForIcon,paneForPredicate:c.paneForPredicate,register:c.register,byName:c.byName},a.store,a.solidLogicSingleton);e.outlineManager=new o.default(t)}return e.outlineManager}"undefined"!=typeof window&&p(window.document),(0,s.registerPanes)(e=>(0,c.register)(e.default||e)),"undefined"!=typeof window&&(window.panes={getOutliner:p})},4930(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500),i=n(8230);const a={icon:r.icons.originalIconBase+"tango/22-emblem-system.png",name:"internal",label:function(){return"under the hood"},render:function(e,t){const n=t.dom,a=t.session.store,o=a.canon(e),s=a.findTypeURIs(o);function c(e){if(s["http://www.w3.org/2007/ont/link#ProtocolEvent"])return!0;const n=t.session.paneRegistry.byName("internal");return n&&n.predicates&&!(void 0===n.predicates[e.uri])}const l=n.createElement("div");function u(e,t){const n=e.fetcher;if(n)return new Promise(function(i,a){n.load(t).then(function(){const o=e.each(t,r.ns.ldp("contains")).map(t=>e.holds(t,r.ns.rdf("type"),r.ns.ldp("BasicContainer"))?u(e,t):n.webOperation("DELETE",t.uri));Promise.all(o).then(()=>{n.webOperation("DELETE",t.uri).then(()=>{i(void 0)}).catch(e=>{a(new Error("Unable to delete "+t+": "+e))}),i(void 0)},e=>{alert(e),a(e)})})})}l.setAttribute("class","internalPane"),l.setAttribute("style","background-color: #ddddff; padding: 0.5em; border-radius: 1em;");if(e.uri&&!e.uri.includes("#")){const t=l.appendChild(n.createElement("table"));t.style.width="100%",t.style.margin="1em";const i=t.appendChild(n.createElement("tr")),o=i.appendChild(n.createElement("td")),s=e.uri&&e.uri.endsWith("/")||a.holds(e,r.ns.rdf("type"),r.ns.ldp("Container")),c=s?"folder":"file";if(!function(e){const t=e.site().uri;return e.uri===t||e.uri===t+"profile/"||e.uri===t+"profile/card"||e.uri===t+"settings/"||e.uri===t+"settings/prefs.ttl"||e.uri===t+"settings/privateTypeIndex.ttl"||e.uri===t+"settings/publicTypeIndex.ttl"||e.uri===t+"settings/serverSide.ttl"}(e)){const t=r.widgets.deleteButtonWithCheck(n,o,c,function(){if(!confirm(`Are you sure you want to delete ${e}? This cannot be undone.`))return;if(!a.fetcher)throw new Error("Store has no fetcher");(s?u(a,e)||Promise.resolve():a.fetcher.webOperation("DELETE",e.uri)||Promise.resolve()).then(()=>{}).catch(t=>{alert("Unable to delete "+e+": "+t)})});t.style="height: 2em;",t.class="",o.appendChild(t)}const d=i.appendChild(n.createElement("td")),p=r.widgets.button(n,r.icons.iconBase+"noun_479395.svg","refresh");d.appendChild(p),p.addEventListener("click",()=>{if(!a.fetcher)throw new Error("Store has no fetcher");a.fetcher.refresh(e,function(t,n){let r;r=t?"Refreshed OK: "+e:"Error refreshing: "+e+": "+n,alert(r)})})}let d=a.statementsMatching(e),p="";if(!a.fetcher)throw new Error("Store has no fetcher");if(e.uri&&(d.push((0,i.st)(e,(0,i.sym)("http://www.w3.org/2007/ont/link#uri"),e.uri,a.fetcher.appNode)),e.uri.indexOf("#")>=0?(p=e.uri.split("#")[0],d.push((0,i.st)(e,(0,i.sym)("http://www.w3.org/2007/ont/link#documentURI"),e.uri.split("#")[0],a.fetcher.appNode)),d.push((0,i.st)(e,(0,i.sym)("http://www.w3.org/2007/ont/link#document"),(0,i.sym)(e.uri.split("#")[0]),a.fetcher.appNode))):p=e.uri),p){if(!a.updater)throw new Error("Store has no updater");const t=a.updater.editable(p);t&&d.push((0,i.st)(e,(0,i.sym)("http://www.w3.org/ns/rww#editable"),(0,i.literal)(t.toString()),a.fetcher.appNode))}const f=t.getOutliner(n);return f.appendPropertyTRs(l,d,!1,c),d=a.statementsMatching(void 0,void 0,e),f.appendPropertyTRs(l,d,!0,c),l},predicates:{"http://www.w3.org/2007/ont/link#request":1,"http://www.w3.org/2007/ont/link#requestedBy":1,"http://www.w3.org/2007/ont/link#source":1,"http://www.w3.org/2007/ont/link#session":2,"http://www.w3.org/2007/ont/link#uri":1,"http://www.w3.org/2007/ont/link#documentURI":1,"http://www.w3.org/2007/ont/link#document":1,"http://www.w3.org/2007/ont/link#all":1,"http://www.w3.org/2007/ont/link#Document":1,"http://www.w3.org/ns/rww#editable":1,"http://www.w3.org/2000/01/rdf-schema#seeAlso":1,"http://www.w3.org/2002/07/owl#":1},classes:{"http://www.w3.org/2007/ont/link#ProtocolEvent":1}};t.default=a},8399(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFooter=function(e){(0,r.initFooter)(e,{solidProjectUrl:i,solidProjectName:a})};var r=n(500);const i="https://solidproject.org",a="solidproject.org"},3469(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHeader=async function(e,t){(0,i.initHeader)(e,await async function(e){const t={label:l,onclick:()=>{r.authSession.logout()}};let n=[];return n=n.concat(await async function(e){const t=await e.getDashboardItems();return t.map(t=>({label:t.label,onclick:()=>async function(e,t){e.showDashboard({pane:t})}(e,t.tabName||t.paneName)}))}(e)),n.push(t),n}(t),{logo:o,helpIcon:a,helpMenuList:[{label:s,url:u,target:"_blank"},{label:c,url:d,target:"_blank"}]})};var r=n(9332),i=n(500);const a=i.icons.iconBase+"noun_help.svg",o="https://solidproject.org/assets/img/solid-emblem.svg",s="User guide",c="Report a problem",l="Log out",u="https://solidos.github.io/userguide/",d="https://github.com/solidos/solidos/issues"},5218(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=async function(e,t){const n=(0,r.getOutliner)(document);let o=t=t||window.location.href;"string"==typeof t&&(o=e.sym(t));n.GotoSubject(o,!0,void 0,!0,void 0);const s=await(0,i.createHeader)(e,n),c=(0,a.createFooter)(e);return Promise.all([s,c])};var r=n(7523),i=n(3469),a=n(8399)},7334(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.n3Pane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.n3Pane={icon:r.icons.originalIconBase+"w3c/n3_smaller.png",name:"n3",audience:[o.solid("Developer")],label:function(e,t){const n=t.session.store;if("http://www.w3.org/2007/ont/link#ProtocolEvent"in n.findTypeURIs(e))return null;const r=n.statementsMatching(void 0,void 0,void 0,e).length;return 0===r?null:"Data ("+r+") as N3"},render:function(e,t){const n=t.dom,r=t.session.store,a=n.createElement("div");a.setAttribute("class","n3Pane");const o=r.statementsMatching(void 0,void 0,void 0,e),s=i.Serializer(r);s.suggestNamespaces(r.namespaces),s.setBase(e.uri);const c=s.statementsToN3(o),l=n.createElement("PRE");return l.appendChild(n.createTextNode(c)),a.appendChild(l),a}}},6813(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createContext=function(e,t,n,i){return{dom:e,getOutliner:r.getOutliner,session:{paneRegistry:t,store:n,logic:i}}};var r=n(7523)},7981(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.dom;this.document=e.dom,this.outlineIcons=c.outlineIcons,this.labeller=this.labeller||{},this.labeller.LanguagePreference="";const d=this,p=this;let f=[];this.selection=f,this.ancestor=a.utils.ancestor,this.sparql=i.UpdateManager,this.kb=o.store;const h=o.store,m=o.store.fetcher;t.outline=this,this.qs=new u.QuerySource,this.UserInput=new l.UserInput(this),this.clipboardAddress="tabulator:clipboard",this.UserInput.clipboardInit(this.clipboardAddress);const g=this.outlineElement;async function v(e={}){const n=t.createElement("div"),i=o.authn.currentUser();if(!i)throw alert("Must be logged in for this"),new Error("Not logged in");const s=await b();return n.appendChild(a.tabs.tabWidget({dom:t,subject:i,items:s,renderMain:function(e,n){const i=r.byName(n.paneName);e.innerHTML="";const a=e.appendChild(t.createElement("table")),s=o.authn.currentUser();p.GotoSubject(n.subject||s,!0,i,!1,void 0,a)},renderTab:function(e,t){e.dataset.globalPaneName=t.tabName||t.paneName,e.textContent=t.label},ordered:!0,orientation:0,backgroundColor:"#eeeeee",selectedTab:e.selectedTab,onClose:e.onClose})),n}async function b(){const e=o.authn.currentUser();if(!e)return[];t.createElement("div");const[n]=await Promise.all([async function(){async function t(e){return await x(e),!!h.holds(e,$.rdf("type"),$.space("Storage"),e.doc())&&(n.push(e),!0)}try{await h.fetcher.load(e.doc())}catch(e){return[]}let n=h.each(e,$.space("storage"),null,e.doc());n.map(async e=>{await x(e)});try{const e=new URL(window.location.href).searchParams.get("uri")||window.location.href;await async function(e){const n=new URL(e);let r=n.pathname;for(;r.length;)if(r=r.substring(0,r.lastIndexOf("/")),await t(h.sym(`${n.origin}${r}/`)))return}(e)}catch(e){}return n=function(e){const t=[];return e.forEach(e=>{t.find(t=>t.equals(e))||t.push(e)}),t}(n),n.length?n.map((t,n)=>{function r(e){return e.uri.split("//")[1].slice(0,-1)}return{paneName:"folder",tabName:`folder-${n}`,label:r(e).startsWith(r(t))?"Your storage":r(t),subject:t,icon:a.icons.iconBase+"noun_Cabinet_251723.svg"}}):[]}()]);return[{paneName:"home",label:"Your stuff",icon:a.icons.iconBase+"noun_547570.svg"},{paneName:"basicPreferences",label:"Preferences",icon:a.icons.iconBase+"noun_Sliders_341315_00000.svg"},{paneName:"profile",label:"Your Profile",icon:a.icons.iconBase+"noun_15059.svg"},{paneName:"editProfile",label:"Edit your Profile",icon:a.icons.iconBase+"noun_492246.svg"}].concat(n)}function y(){return w("outline")}function w(e){return document.getElementById(e)||(()=>{const t=document.createElement("div");t.id=e;return(document.querySelector('[role="main"]')||document.body).appendChild(t)})()}async function x(e){if(!h.any(e,$.ldp("contains"),void 0,e.doc())){const t=(await h.fetcher.webOperation("GET",e.uri,h.fetcher.initFetchOptions(e.uri,{headers:{accept:"text/turtle"}}))).responseText;i.parse(t,h,e.uri,"text/turtle")}}async function A(n,r,i){const o=t.createElement("tr");i.hover&&o.setAttribute("class","hoverControl");const s=o.appendChild(t.createElement("td"));s.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;display:flex; justify-content: space-between; flex-direction: row;"),s.setAttribute("notSelectable","true"),s.setAttribute("about",n.toNT()),s.setAttribute("colspan","2");const c=s.appendChild(t.createElement("div"));c.style="display:flex; justify-content: flex-start; align-items: center; flex-wrap: wrap;";const l=!!r;if(!i.solo&&!l){c.appendChild(a.utils.AJARImage(a.icons.originalIconBase+"tbl-collapse.png","collapse",void 0,t)).addEventListener("click",N);const e=c.appendChild(t.createElement("h1"));e.appendChild(t.createTextNode(a.utils.label(n))),e.style="font-size: 150%; margin: 0 0.6em 0 0; padding: 0.1em 0.4em;",a.widgets.makeDraggable(e,n)}return c.appendChild(await async function(i,s={}){const c="width: 24px; border-radius: 0.5em; border-top: solid #222 1px; border-left: solid #222 0.1em; border-bottom: solid #eee 0.1em; border-right: solid #eee 0.1em; margin-left: 1em; padding: 3px; background-color: #ffd;",l="width: 24px; border-radius: 0.5em; margin-left: 1em; padding: 3px",u=i.appendChild(t.createElement("nav"));u.style="display:flex; justify-content: flex-start; align-items: center;";const d=s.hideList?[]:await async function(e,t){e.uri.endsWith("/")&&await x(e);const n=t.session.paneRegistry,r=n.list.filter(n=>n.label(e,t)&&!n.global);if(0===r.length)return[n.byName("internal")];const i=await a.login.filterAvailablePanes(r);return 0===i.length?[r[0]]:n.list.indexOf(r[0])<n.list.indexOf(i[0])?[r[0]].concat(i):i}(n,e);o.firstPane=r||function(e,t){return e.find(e=>e.shouldGetFocus&&e.shouldGetFocus(t))||e[0]}(d,n);const p=d.indexOf(o.firstPane);return 1!==d.length&&d.forEach((r,d)=>{const f=r.label(n,e),h="function"==typeof r.icon?r.icon(n,e):r.icon,m=a.utils.AJARImage(h,f,f,t);h instanceof Promise&&h.then(e=>{m.setAttribute("src",e)}).catch(e=>{}),m.style=r===o.firstPane?c:l;!function(r,o){r.addEventListener("click",function(u){let d;for(d=i;d.parentNode&&"TABLE"!==d.nodeName;d=d.parentNode);if("TABLE"!==d.nodeName)throw new Error("outline: internal error.");const p=function(e){for(let n=d.firstChild;n;n=n.nextSibling)void 0!==n.pane&&(e&&n.pane!==e||(n.paneButton&&(n.paneButton.setAttribute("class","paneHidden"),n.paneButton.style=l),C(n),n.pane.requireQueryButton&&d.parentNode.className&&1===f&&t.getElementById("queryButton")&&t.getElementById("queryButton").setAttribute("style","display:none;")))};"paneHidden"===r.getAttribute("class")?(u.shiftKey||p(),function(i){let o;a.log.info("outline: Rendering pane (2): "+i.name);try{o=i.render(n,e,s)}catch(e){o=t.createElement("div"),o.setAttribute("class","exceptionPane");const n=t.createElement("pre");o.appendChild(n),n.appendChild(t.createTextNode(a.utils.stackString(e)))}i.requireQueryButton&&t.getElementById("queryButton")&&t.getElementById("queryButton").removeAttribute("style");const c=d.firstChild.nextSibling,l=t.createElement("tr");l.appendChild(t.createElement("td")).appendChild(o),c?d.insertBefore(l,c):d.appendChild(l),l.pane=i,l.paneButton=r}(o),r.setAttribute("class","paneShown"),r.style=c):(p(o),r.setAttribute("class","paneHidden"),r.style=l);let f=0;for(let e=d.firstChild;e;e=e.nextSibling)e.pane&&e.pane.requireQueryButton&&f++},!1)}(m,r),m.setAttribute("class",d!==p?"paneHidden":"paneShown"),d===p&&(o.paneButton=m),u.appendChild(m)}),u}(s,{hideList:l})),o.firstChild.tabulatorSelect=function(){R(this,!0)},o.firstChild.tabulatorDeselect=function(){R(this,!1)},o}function C(e){const n=e.parentNode,r=n.parentNode,i=t.createElement("table");i.classList.add("placeholderTable"),r.replaceChild(i,n),n.removeChild(e),r.replaceChild(n,i)}this.init=function(){y().outline=this},this.appendAccessIcons=function(e,t,n){if("NamedNode"!==n.termType)return;const r=e.uris(n);r.sort();let i=null;for(let e=0;e<r.length;e++)r[e]!==i&&(i=r[e],p.appendAccessIcon(t,i))},this.appendAccessIcon=function(e,n){if(!n)return"";const r=i.uri.docpart(n);if("http:"!==r.slice(0,5))return"";const o=m.getState(r);let s,l,u;switch(o){case"unrequested":s=c.outlineIcons.src.icon_unrequested,l="fetch",u=j;break;case"requested":s=c.outlineIcons.src.icon_requested,l="fetching",u=L;break;case"fetched":s=c.outlineIcons.src.icon_fetched,u=O,l="loaded";break;case"failed":s=c.outlineIcons.src.icon_failed,l="failed",u=L;break;case"unpermitted":s=c.outlineIcons.src.icon_failed,u=L,l="no perm";break;case"unfetchable":s=c.outlineIcons.src.icon_failed,u=L,l="cannot fetch";break;default:a.log.error("?? state = "+o)}const p=a.utils.AJARImage(s,l,c.outlineIcons.tooltips[s].replace(/[Tt]his resource/,r),t);return p.setAttribute("uri",n),p.addEventListener("click",u),function(e,t){a.log.debug("Button callbacks for "+t+" added");const n=function(n){return function(r){return r.indexOf("#"),!!e&&(!!d.ancestor(e,"DIV")&&(r===t&&(e.src=n,e.title=c.outlineIcons.tooltips[n]),!0))}};m.addCallback("request",n(c.outlineIcons.src.icon_requested)),m.addCallback("done",n(c.outlineIcons.src.icon_fetched)),m.addCallback("fail",n(c.outlineIcons.src.icon_failed))}(p,r),e.appendChild(p),p},this.outlineObjectTD=function(e,n,r,i){const o=t.createElement("td");o.classList.add("obj"),o.setAttribute("notSelectable","false"),o.style.margin="0.2em",o.style.border="none",o.style.padding="0",o.style.verticalAlign="top";return("NamedNode"===e.termType||"BlankNode"===e.termType||"Literal"===e.termType&&e.value.slice&&("ftp://"===e.value.slice(0,6)||"https://"===e.value.slice(0,8)||"http://"===e.value.slice(0,7)))&&(o.setAttribute("about",e.toNT()),o.appendChild(a.utils.AJARImage(a.icons.originalIconBase+"tbl-expand-trans.png","expand",void 0,t)).addEventListener("click",B)),o.setAttribute("class","obj"),h.whether(e,a.ns.rdf("type"),a.ns.link("Request"))&&(o.className="undetermined"),n||(n=V),o.appendChild(n(e)),r&&function(e,n,r){const i=a.utils.AJARImage(c.outlineIcons.src.icon_remove_node,"remove",void 0,t);i.addEventListener("click",D),i.node=r,i.setAttribute("about",n.toNT()),i.style.marginLeft="5px",i.style.marginRight="10px",e.appendChild(i)}(o,e,r),o.tabulatorSelect=function(){R(this,!0)},o.tabulatorDeselect=function(){R(this,!1)},o.addEventListener("click",M),o},this.outlinePredicateTD=function(e,n,r,i){const o=t.createElement("TD");let s;switch(o.setAttribute("about",e.toNT()),o.setAttribute("class",i?"pred internal":"pred"),e.termType){case"BlankNode":o.className="undetermined";break;case"NamedNode":s=a.utils.predicateLabelForXML(e,r);break;case"Collection":s=a.utils.predicateLabelForXML(e.elements[0],r)}s=s?s.slice(0,1).toUpperCase()+s.slice(1):"...";const l=t.createElement("TD");l.classList.add("labelTD"),l.setAttribute("notSelectable","true"),l.appendChild(t.createTextNode(s)),o.appendChild(l),l.style.width="100%",o.appendChild(_.construct(t));for(const e in c.outlineIcons.termWidgets){if(!n||!n.AJAR_statement)break;c.outlineIcons.termWidgets[e].filter&&c.outlineIcons.termWidgets[e].filter(n.AJAR_statement,"pred",r)&&_.addIcon(o,c.outlineIcons.termWidgets[e])}return o.tabulatorSelect=function(){R(this,!0)},o.tabulatorDeselect=function(){R(this,!1)},o.addEventListener("click",M),o},this.getDashboard=v,this.getDashboardItems=b,this.showDashboard=async function(e={}){const t=w("GlobalDashboard"),n=y();if(t.childNodes.length>0&&e.pane){n.style.display="none",t.style.display="inherit";const r=t.querySelector(`[data-global-pane-name="${e.pane}"]`);if(r)return void r.click()}const r=await v({selectedTab:e.pane,onClose:a});o.authSession.events.on("logout",a),n.style.display="none",t.appendChild(r);const i=t.querySelector(`[data-global-pane-name="${e.pane}"]`);function a(){t.style.display="none",n.style.display="inherit"}i&&i.click()};const E=this.propertyTable=function(n,r,i,o){return a.log.debug("Property table for: "+n),n=h.canon(n),r?(a.log.info("Re-expand: "+r),r):((r=t.createElement("table")).classList.add("tableFullWidth"),A(n,i,o).then(i=>{if(r.appendChild(i),i.firstPane){let s;try{a.log.info("outline: Rendering pane (1): "+i.firstPane.name),s=i.firstPane.render(n,e,o)}catch(e){s=t.createElement("div"),s.setAttribute("class","exceptionPane");const n=t.createElement("pre");s.appendChild(n),n.appendChild(t.createTextNode(a.utils.stackString(e)))}const c=t.createElement("tr");c.appendChild(t.createElement("td")).appendChild(s),i.firstPane.requireQueryButton&&t.getElementById("queryButton")&&t.getElementById("queryButton").removeAttribute("style"),r.appendChild(c),c.pane=i.firstPane,c.paneButton=i.paneButton}}),r)};function k(e,t,n){const r=e.createElement("TR");r.AJAR_statement=t,r.AJAR_inverse=n,r.setAttribute("predTR","true");const i=p.outlinePredicateTD(t.predicate,r,n);return r.appendChild(i),r}this.propertyTR=k,this.appendPropertyTRs=function(e,n,r,i){if(a.log.debug("Property list length = "+n.length),0===n.length)return"";let o,s,c;r?(o=function(e){return e.subject},n=n.sort(a.utils.RDFComparePredicateSubject)):(o=function(e){return e.object},n=n.sort(a.utils.RDFComparePredicateObject));const l=n.length;for(s=0;s<l;s++){let u=n[s];if(i&&!i(u.predicate,r))continue;const f=k(t,u,r);e.appendChild(f);const m=f.firstChild;let g=W.defaults[u.predicate.uri],v=0,b=0,y=0;for(c=0;c+s<l&&n[s+c].predicate.sameTerm(u.predicate);c++)c>0&&o(n[s+c]).sameTerm(o(n[s+c-1]))&&v++,o(n[s+c]).lang&&d.labeller.LanguagePreference&&(b+=1,o(n[s+c]).lang.indexOf(d.labeller.LanguagePreference)>=0&&y++);if(y>0&&b===v+1){for(let e=s;e<=s+v;e++)if(d.labeller.LanguagePreference&&o(n[e]).lang.indexOf(d.labeller.LanguagePreference)>=0){f.appendChild(p.outlineObjectTD(o(n[e]),g,void 0,u));break}s+=v}else f.appendChild(p.outlineObjectTD(o(u),g,void 0,u)),f.showNobj=function(i){const l=c-v,d=2*i<l?i:l,f=[];if(1!==l){let v;m.setAttribute("rowspan",d===l?l:i+1),d<l&&1===d&&m.setAttribute("rowspan",2);let b=0;for(v=1;v<c;v++)if(h.canon(o(n[s+v])).sameTerm(h.canon(o(n[s+v-1]))))a.log.info("there are duplicates here: %s",n[s+v-1]);else{b++,u=n[s+v],g=W.defaults[u.predicate.uri];const i=t.createElement("tr");i.style.colspan="1",i.appendChild(p.outlineObjectTD(o(n[s+v]),g,void 0,u)),i.AJAR_statement=u,i.AJAR_inverse=r,e.appendChild(i),b>=d&&(i.style.display="none",f.push(i))}d===l&&m.setAttribute("rowspan",b+1)}if(d<l){const n=t.createElement("tr"),r=n.appendChild(t.createElement("td"));if(r.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;"),r.setAttribute("notSelectable","false"),l>i){const e=t.createElement("a");r.appendChild(e);const n=function(n,r,i,o){return function(r){e.innerHTML="","none"===r?(e.appendChild(a.utils.AJARImage(a.icons.originalIconBase+"tbl-more-trans.png","more","See all",t)),e.appendChild(t.createTextNode(l-o+" more...")),n.setAttribute("rowspan",o+1)):(e.appendChild(a.utils.AJARImage(a.icons.originalIconBase+"tbl-shrink.png","(less)",void 0,t)),n.setAttribute("rowspan",l+1));for(let e=0;e<f.length;e++)f[e].style.display=r}}(m,0,0,i);let o="none";const s=function(e){return n(o),o="none"===o?"":"none",e&&e.stopPropagation(),!1};s(),e.addEventListener("click",s,!1)}e.appendChild(n)}},f.showAllobj=function(){f.showNobj(c-v)},f.showNobj(10),s+=c-1}};const _={};n.g.termWidget=_,_.construct=function(e){const t=(e=e||document).createElement("TD");return t.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;"),t.setAttribute("class","iconTD"),t.setAttribute("notSelectable","true"),t.style.width="0px",t},_.addIcon=function(e,n,r){const i=e.childNodes[1];if(!i)return;let o=i.style.width;const s=a.utils.AJARImage(n.src,n.alt,n.tooltip,t);o=parseInt(o),o+=n.width,i.style.width=o+"px",i.appendChild(s),r&&s.addEventListener("click",r)},_.removeIcon=function(e,n){const r=e.childNodes[1];let a;if(!r)return;let o=r.style.width;o=parseInt(o),o-=n.width,r.style.width=o+"px";for(let e=0;e<r.childNodes.length;e++){const o=r.childNodes[e],s=o.src;try{a=t.location.href.split("?")[0]}catch(e){a=""}s===i.uri.join(n.src,a)&&r.removeChild(o)}},_.replaceIcon=function(e,t,n,r){_.removeIcon(e,t),_.addIcon(e,n,r)};function S(e){const t=e.getAttribute("class");return!!(t&&t.indexOf("selected")>=0)}function T(e){const t=p.targetOf(e).parentNode;_.replaceIcon(t.parentNode,c.outlineIcons.termWidgets.optOn,c.outlineIcons.termWidgets.optOff,P),t.parentNode.parentNode.removeAttribute("optional")}function P(e){const t=p.targetOf(e).parentNode;_.replaceIcon(t.parentNode,c.outlineIcons.termWidgets.optOff,c.outlineIcons.termWidgets.optOn,T),t.parentNode.parentNode.setAttribute("optional","true")}function F(e,t){const n=c.outlineIcons.termWidgets.optOn,r=c.outlineIcons.termWidgets.optOff;for(let i=e;i.parentNode;i=i.parentNode)for(;;){if(i.getAttribute("predTR")){let e=i.getAttribute("parentOfSelected");e=e?parseInt(e):0,0===e&&t>0&&_.addIcon(i.childNodes[0],i.getAttribute("optional")?n:r,i.getAttribute("optional")?T:P),e+=t,i.setAttribute("parentOfSelected",e),0===e&&(i.removeAttribute("parentOfSelected"),_.removeIcon(i.childNodes[0],i.getAttribute("optional")?n:r));break}if(!i.previousSibling||"TR"!==i.previousSibling.nodeName)break;i=i.previousSibling}}function R(e,t){if("TD"!==e.nodeName)throw a.log.debug("down"+e.nodeName),new Error("Expected TD in setSelected: "+e.nodeName+" : "+e.textContent);a.log.debug("pass");let n=e.getAttribute("class");if(n||(n=""),t){n+=" selected",(n.indexOf("pred")>=0||n.indexOf("obj")>=0)&&F(e,1),f.push(e);const t=a.utils.getTerm(e);p.showURI(t);let r=e.AJAR_statement;if(void 0===r&&e.parentNode&&(r=e.parentNode.AJAR_statement),r){const t=r.why,i=o.store.updater.editable(t.uri,h);i&&n.indexOf("pred")>=0&&_.addIcon(e,c.outlineIcons.termWidgets.addTri)}}else a.log.debug("cla=$"+n+"$"),"selected"===n&&(n=""),n=n.replace(" selected",""),(n.indexOf("pred")>=0||n.indexOf("obj")>=0)&&F(e,-1),n.indexOf("pred")>=0&&_.removeIcon(e,c.outlineIcons.termWidgets.addTri),f=f.filter(function(t){return t===e}),a.log.info("Deselecting "+e.textContent);"undefined"!=typeof sourceWidget&&p.showSource(),e.setAttribute("class",n)}function I(){for(let e=f.length-1;e>=0;e--)R(f[e],!1);f=[]}function B(e){const t=p.targetOf(e),n=t.parentNode,i=a.utils.getAbout(h,t);e.altKey&&r.byName("internal");e.shiftKey?q(n,i):e.altKey?z(n,i,{pane:r.byName("internal"),immediate:!0}):z(n,i)}function N(e){const t=p.targetOf(e),n=a.utils.getAbout(h,t);e.altKey&&r.byName("internal");H(t.parentNode.parentNode,n)}function L(e){const t=p.targetOf(e).getAttribute("uri");e.altKey?m.fetch(i.uri.docpart(t),{force:!0}):m.refresh(h.sym(i.uri.docpart(t)))}function O(e){const t=p.targetOf(e).getAttribute("uri");e.altKey?m.fetch(i.uri.docpart(t),{force:!0}):m.refresh(h.sym(i.uri.docpart(t)))}function j(e){const t=p.targetOf(e).getAttribute("uri");m.fetch(i.uri.docpart(t))}function D(e){const t=p.targetOf(e);let n=t.node;n.childNodes.length>1&&(n=t.parentNode),C(n)}function M(e){if(p.UserInput._tabulatorMode)return p.UserInput.Click(e);const t=p.targetOf(e);let n;for(n=a.utils.ancestor(t,"TD");n&&"false"!==n.getAttribute("notSelectable");n=a.utils.ancestor(n.parentNode,"TD"));if(!n)return;const r=S(n);if(a.log.debug("Was node selected before: "+r),e.altKey)R(n,!S(n));else if(e.shiftKey)R(n,!0);else{if(I(),p.UserInput.clearInputAndSave(e),R(n,!0),2===e.detail)return void e.stopPropagation();let t;if(n.parentNode&&(t=n.parentNode.AJAR_statement),!t)return;const i=t.why,a=o.store.updater.editable(i.uri,h);r&&a&&p.UserInput.Click(e,f[0])}a.log.debug("Was node selected after: "+S(n)+", count="+f.length),e.stopPropagation()}function U(e){t.title=a.utils.label(e),t.location.href.startsWith(e.site().uri)}function z(e,n,r){const o=(r=r||{}).pane;let s=!!r.already;const c=r.immediate;a.log.info("@outlineExpand, dom is now "+t.location),m.removeCallback("done","expand"),m.removeCallback("fail","expand");let l=h.canon(n);function u(){if(l=h.canon(l),!e||!e.parentNode||!e.parentNode.parentNode)return!1;let t;if(a.log.info("@@ REPAINTING "),s){for(a.log.info(" ... p is "+e),t=e.firstChild;t.nextSibling&&(a.log.info(" ... checking node "+t),"table"!==t.nodeName);t=t.nextSibling);t=E(l,t,o,r)}else t=E(l,void 0,o,r);s=!0,a.utils.ancestor(e,"TABLE")&&"white"===a.utils.ancestor(e,"TABLE").style.backgroundColor?t.style.backgroundColor="#eee":t.style.backgroundColor="white",a.utils.emptyNode(e).appendChild(t),p.focusTd=e,a.log.debug("expand: Node for "+l+" expanded");const n=h.each(l,a.ns.rdfs("seeAlso"));for(let e=0;e<n.length;e++)25===e&&a.log.warn("expand: Warning: many ("+n.length+") seeAlso links for "+l),m.lookUpThing(n[e],l)}function d(e){if(arguments[3])return!0;const t=h.canon(l);a.log.info("@@ expand: relevant subject="+t+", uri="+e+", already="+s);const n=h.sym(i.uri.docpart(e));if(e.indexOf("#")>=0)throw new Error("Internal error: hash in "+e);return!function(){if(!t.uri)return!0;const r=h.uris(t);if(!r)return!1;for(let t=0;t<r.length;t++)for(let n=i.uri.docpart(r[t]);n;n=h.HTTPRedirects[n])if(e===n)return!0;return!!h.anyStatementMatching(t,void 0,void 0,n)}()||(a.log.success("@@ expand OK: relevant subject="+t+", uri="+e+", source="+s),u(),!1)}r.solo&&U(l),a.log.debug("outlineExpand: dereferencing "+l);const f=t.createElement("span");e.appendChild(f),m.addCallback("done",d),m.addCallback("fail",d);const v=[];if(l.uri&&"rdf"===l.uri.split(":")[0])u();else{for(let e=0;e<v.length;e++){let t;if(t===v[e](l))return u(),a.log.debug("outline 1815"),void(t[1]&&g.removeChild(g.lastChild))}if(!l.uri||c||a.widgets.isAudio(l)||a.widgets.isVideo(l))u();else{const n=l.doc()&&l.doc().uri?l.doc().uri:""+l.doc(),i=function(r,i){if(e.querySelector&&n){if(e.querySelector('[data-outline-error-for="'+n+'"]'))return}const o=a.widgets.errorMessageBlock(t,r,"#fee",i instanceof Error?i:void 0);n&&o.setAttribute("data-outline-error-for",n),e.appendChild(o)};let o=!1;const s=m.nowOrWhenFetched(l.doc(),void 0,function(e,t){e?(m.lookUpThing(l),u(),r.solo&&U(l)):(o=!0,i(t,void 0))});s&&"function"==typeof s.catch&&s.catch(function(e){o||(o=!0,i(e,e))})}}}function H(e,t){let n,r,i,o,s=a.utils.ancestor(e,"TR");for(s=a.utils.ancestor(s.parentNode,"TR"),s&&(n=s.AJAR_statement),r=e.parentNode;"TD"!==r.tagName;r=r.parentNode)if(void 0===r)return void alert("Not enclosed in TD!");a.log.debug("Collapsing subject "+t),n&&(a.log.debug("looking up pred "+n.predicate.uri+"in defaults"),i=W.defaults[n.predicate.uri]),a.log.debug("view= "+i),"outline"===r.parentNode.parentNode.id&&(o=r.parentNode),p.replaceTD(p.outlineObjectTD(t,i,o,n),r)}function q(e,t){let n=null;for(let t=e.parentNode;t;t=t.parentNode)a.log.debug("level "+t.tagName),"TD"===t.tagName&&(n=t);a.utils.emptyNode(n).appendChild(E(t)),U(t),n.setAttribute("about",t.toNT())}new function(){this.pat=h.formula(),this.vars=[]},this.statusBarClick=function(e){const t=a.utils.getTarget(e);t.label&&(window.content.location=t.label)},this.showURI=function(e){e&&t.getElementById("UserURI")&&(t.getElementById("UserURI").value="NamedNode"===e.termType?e.uri:"")},this.showSource=function(){if("undefined"!=typeof sourceWidget){for(const e in sourceWidget.sources)sourceWidget.sources[e].setAttribute("class","");for(let e=0;e<f.length;e++){if(!f[e].parentNode)continue;const t=f[e].parentNode.AJAR_statement;if(!t)continue;const n=t.why;n&&n.uri&&sourceWidget.highlight(n,!0)}}},this.getSelection=function(){return f},this.targetOf=function(e){let t;if(e||(e=window.event),e.target)t=e.target;else{if(!e.srcElement)return a.log.error("can't get target for event "+e),!1;t=e.srcElement}return 3===t.nodeType&&(t=t.parentNode),t},this.walk=function(e,n){const r=n||f[0];let i;switch(e){case"down":try{i=r.parentNode.nextSibling.lastChild}catch(e){return void this.walk("up")}I(),R(i,!0);break;case"up":try{i=r.parentNode.previousSibling.lastChild}catch(e){return}I(),R(i,!0);break;case"right":if(I(),r.nextSibling||"strong"===r.lastChild.tagName)R(r.nextSibling,!0);else{R(t.evaluate("table/div/tr/td[2]",r,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,!0)}break;case"left":if(I(),r.previousSibling&&"undetermined"===r.previousSibling.className)return R(r.previousSibling,!0),!0;R(a.utils.ancestor(r.parentNode,"TD"),!0);break;case"moveTo":I(),R(n,!0)}"down"!==e&&"up"!==e||i.tabulatorSelect||this.walk(e)},this.OutlinerKeypressPanel=function(e){function n(e){e&&t.getElementById("UserURI")&&(t.getElementById("UserURI").value="NamedNode"===e.termType?e.uri:"")}function i(e){return arguments[3]||(u("right",l),n(a.utils.getAbout(h,f[0]))),!0}let s,c;if(a.log.info("Key "+e.keyCode+" pressed"),"TEXTAREA"===a.utils.getTarget(e).tagName)return;if("UserURI"===a.utils.getTarget(e).id)return;if(f.length>1)return;if(0===f.length)return void(13!==e.keyCode&&38!==e.keyCode&&40!==e.keyCode&&37!==e.keyCode&&39!==e.keyCode||(this.walk("right",p.focusTd),n(a.utils.getAbout(h,f[0]))));const l=f[0];switch(m.removeCallback("done","setSelectedAfterward"),m.removeCallback("fail","setSelectedAfterward"),e.keyCode){case 13:if("HTML"===a.utils.getTarget(e).tagName){const e=a.utils.getAbout(h,l);s=l.parentNode.AJAR_statement.why,c=o.store.updater.editable(s.uri,h),e?d.GotoSubject(e,!0):c&&p.UserInput.Enter(l)}else this.UserInput.Keypress(e),this.walk("down"),e.stopPropagation();return;case 38:this.walk("up"),e.stopPropagation(),e.preventDefault();break;case 40:this.walk("down"),e.stopPropagation(),e.preventDefault()}if("INPUT"===a.utils.getTarget(e).tagName)return;let u;switch(e.keyCode){case 46:case 8:s=l.parentNode.AJAR_statement.why,c=o.store.updater.editable(s.uri,h),c&&(e.preventDefault(),this.UserInput.Delete(l));break;case 37:{if(this.walk("left"))return;const e=a.utils.ancestor(l.parentNode,"TD");H(l,a.utils.getAbout(h,e));break}case 39:{const e=a.utils.getAbout(h,l);if(e){if(u=this.walk,l.nextSibling)return void this.walk("right");"TABLE"!==l.firstChild.tagName&&(m.addCallback("done",i),m.addCallback("fail",i),z(l,e,{pane:r.byName("defaultPane")})),i()}}break;case 38:case 40:break;default:switch(e.charCode){case 99:if(e.ctrlKey){p.UserInput.copyToClipboard(p.clipboardAddress,l);break}break;case 118:case 112:if(e.ctrlKey){p.UserInput.pasteFromClipboard(p.clipboardAddress,l);break}break;default:a.utils.getTarget(e).tagName}}if(n(a.utils.getAbout(h,f[0])),f[0]){const e=a.utils.findPos(f[0])[1];e+f[0].clientHeight>window.scrollY+window.innerHeight&&a.utils.getEyeFocus(f[0],!0,!0,window),e<window.scrollY+54&&a.utils.getEyeFocus(f[0],!0,void 0,window)}},this.OutlinerMouseclickPanel=function(e){switch(p.UserInput._tabulatorMode){case 0:!function(e){a.log.info("@TabulatorMousedown, dom.location is now "+t.location);const n=p.targetOf(e);if(!n)return;const r=n.tagName;"INPUT"!==r&&"TEXTAREA"!==r&&(p.UserInput.clearMenu(),p.UserInput.lastModified&&p.UserInput.lastModified.parentNode.nextSibling&&p.UserInput.backOut(),(!n.src||n.src.slice(n.src.indexOf("/icons/")+1)!==c.outlineIcons.src.icon_show_choices&&n.src.slice(n.src.indexOf("/icons/")+1)!==c.outlineIcons.src.icon_add_triple)&&p.UserInput.clearInputAndSave(e),n.src&&n.src.slice(n.src.indexOf("/icons/")+1)===c.outlineIcons.src.icon_show_choices||p.UserInput.clearMenu(),e&&e.stopPropagation())}(e);break;case 1:p.UserInput.Click(e)}},this.replaceTD=function(e,t){let n;S(t)&&(n=!0);for(let e=f.length-1;e>-1;e--)for(let n=f[e];n.parentNode;n=n.parentNode)n===t&&R(f[e],!1);t.parentNode.replaceChild(e,t),n&&R(e,!0)},d.outlineRefocus=q,this.GotoFormURI_enterKey=function(e){13===e.keyCode&&d.GotoFormURI(e)},this.GotoFormURI=function(e){!function(e){const t=h.sym(e);this.GotoSubject(t,!0)}(t.getElementById("UserURI").value)},this.GotoURIinit=function(e){const t=h.sym(e);this.GotoSubject(t)},this.GotoSubject=function(e,n,r,i,o,s){s=s||t.getElementById("outline"),i&&(a.utils.emptyNode(s),s.style.width="100%");const c=function(){const n=t.createElement("TR");n.style.verticalAlign="top",s.appendChild(n);const r=p.outlineObjectTD(e,void 0,n);return n.appendChild(r),r}();if(i&&U(e),n){z(c,e,{pane:r,solo:i});const t=c.parentNode;a.utils.getEyeFocus(t,!1,void 0,window)}if(i&&t&&t.defaultView&&t.defaultView.history&&document.location.href!==e.uri){const n=r?{paneName:r.name}:{};try{t.defaultView.history.pushState(n,e.uri,e.uri)}catch(e){}}return e};const $=a.ns,W=(0,s.propertyViews)(t);function V(n){let i;if("Literal"===n.termType){const e={integer:"text-align: right;",decimal:"text-align: '.';",double:"text-align: '.';"};i=t.createElement("span"),i.textContent=n.value;let r="";if(n.datatype&&n.datatype.uri){const t=a.ns.xsd("").uri;n.datatype.uri.slice(0,t.length)===t&&(r=e[n.datatype.uri.slice(t.length)])}i.setAttribute("style",r||"white-space: pre-wrap;")}else if("NamedNode"===n.termType||"BlankNode"===n.termType)if(i=t.createElement("span"),i.setAttribute("about",n.toNT()),p.appendAccessIcons(h,i,n),"NamedNode"===n.termType)if("tel:"===n.uri.slice(0,4)){const e=n.uri.slice(4),r=t.createElement("a");i.appendChild(t.createTextNode(e)),r.setAttribute("href",n.uri),r.appendChild(a.utils.AJARImage(c.outlineIcons.src.icon_telephone,"phone","phone "+e,t)),i.appendChild(r),r.firstChild.setAttribute("class","phoneIcon")}else{i.appendChild(t.createTextNode(a.utils.label(n)));const e=a.widgets.linkIcon(t,n);i.appendChild(e),a.widgets.makeDraggable(i,n)}else i.appendChild(t.createTextNode(a.utils.label(n)));else if("Collection"===n.termType){i=t.createElement("table"),i.classList.add("tableFullWidth"),i.setAttribute("about",n.toNT());for(let e=0;e<n.elements.length;e++){const r=n.elements[e],a=i.appendChild(t.createElement("tr")),o=a.appendChild(t.createElement("td"));o.classList.add("obj"),o.setAttribute("notSelectable","false"),o.setAttribute("about",n.toNT()),o.innerHTML=e+1+")",a.appendChild(p.outlineObjectTD(r))}}else"Graph"===n.termType?(i=r.byName("dataContentPane").statementsAsTables(n.statements,e),i.setAttribute("class","nestedFormula")):(a.log.error("Object "+n+" has unknown term type: "+n.termType),i=t.createTextNode("[unknownTermType:"+n.termType+"]"));return a.log.debug("contents: "+i.innerHTML),i}return this.createTabURI=function(){t.getElementById("UserURI").value=t.URL+"?uri="+t.getElementById("UserURI").value},this.UserInput.setSelected=R,this.UserInput.deselectAll=I,this.UserInput.views=W,this.outlineExpand=z,this};var r=d(n(4059));n(3824);var i=d(n(8230)),a=d(n(500)),o=n(9332),s=n(8071),c=n(7132),l=n(7339),u=d(n(2697));function d(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(d=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}},7132(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.outlineIcons=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));const i=t.outlineIcons={};i.src=[],i.tooltips=[],i.src.icon_expand=r.icons.originalIconBase+"tbl-expand-trans.png",i.src.icon_more=r.icons.originalIconBase+"tbl-more-trans.png",i.src.icon_collapse=r.icons.originalIconBase+"tbl-collapse.png",i.src.icon_internals=r.icons.originalIconBase+"tango/22-emblem-system.png",i.src.icon_instances=r.icons.originalIconBase+"tango/22-folder-open.png",i.src.icon_foaf=r.icons.originalIconBase+"foaf/foafTiny.gif",i.src.icon_social=r.icons.originalIconBase+"social/social.gif",i.src.icon_mb=r.icons.originalIconBase+"microblog/microblog.png",i.src.icon_shrink=r.icons.originalIconBase+"tbl-shrink.png",i.src.icon_rows=r.icons.originalIconBase+"tbl-rows.png",i.src.icon_unrequested=r.icons.originalIconBase+"16dot-blue.gif",i.src.icon_fetched=r.icons.originalIconBase+"16dot-green.gif",i.src.icon_failed=r.icons.originalIconBase+"16dot-red.gif",i.src.icon_requested=r.icons.originalIconBase+"16dot-yellow.gif",i.src.icon_CVPane=r.icons.originalIconBase+"CV.png",i.src.icon_defaultPane=r.icons.originalIconBase+"about.png",i.src.icon_visit=r.icons.originalIconBase+"tango/22-text-x-generic.png",i.src.icon_dataContents=r.icons.originalIconBase+"rdf_flyer.24.gif",i.src.icon_n3Pane=r.icons.originalIconBase+"w3c/n3_smaller.png",i.src.icon_RDFXMLPane=r.icons.originalIconBase+"22-text-xml4.png",i.src.icon_imageContents=r.icons.originalIconBase+"tango/22-image-x-generic.png",i.src.icon_airPane=r.icons.originalIconBase+"1pt5a.gif",i.src.icon_LawPane=r.icons.originalIconBase+"law.jpg",i.src.icon_pushbackPane=r.icons.originalIconBase+"pb-logo.png",i.src.icon_photoPane=r.icons.originalIconBase+"photo_small.png",i.src.icon_tagPane=r.icons.originalIconBase+"tag_small.png",i.src.icon_TinyTag=r.icons.originalIconBase+"tag_tiny.png",i.src.icon_photoBegin=r.icons.originalIconBase+"photo_begin.png",i.src.icon_photoNext=r.icons.originalIconBase+"photo_next.png",i.src.icon_photoBack=r.icons.originalIconBase+"photo_back.png",i.src.icon_photoEnd=r.icons.originalIconBase+"photo_end.png",i.src.icon_photoImportPane=r.icons.originalIconBase+"flickr_small.png",i.src.icon_retract=r.icons.originalIconBase+"retract.gif",i.src.icon_refresh=r.icons.originalIconBase+"refresh.gif",i.src.icon_optoff=r.icons.originalIconBase+"optional_off.PNG",i.src.icon_opton=r.icons.originalIconBase+"optional_on.PNG",i.src.icon_map=r.icons.originalIconBase+"compassrose.png",i.src.icon_retracted=i.src.icon_unrequested,i.src.icon_retracted=i.src.icon_unrequested,i.src.icon_time=r.icons.originalIconBase+"icons/Wclocksmall.png",i.src.icon_telephone=r.icons.originalIconBase+"silk/telephone.png",i.src.icon_time=r.icons.originalIconBase+"Wclocksmall.png",i.src.icon_remove_node=r.icons.originalIconBase+"tbl-x-small.png",i.src.icon_add_triple=r.icons.originalIconBase+"tango/22-list-add.png",i.src.icon_add_new_triple=r.icons.originalIconBase+"tango/22-list-add-new.png",i.src.icon_show_choices=r.icons.originalIconBase+"userinput_show_choices_temp.png",i.src.icon_display_reasons=r.icons.originalIconBase+"tango/22-help-browser.png",i.tooltips[i.src.icon_display_reasons]="Display explanations",i.tooltips[i.src.icon_add_triple]="Add more",i.tooltips[i.src.icon_add_new_triple]="Add one",i.tooltips[i.src.icon_remove_node]="Remove",i.tooltips[i.src.icon_expand]="View details.",i.tooltips[i.src.icon_collapse]="Hide details.",i.tooltips[i.src.icon_shrink]="Shrink list.",i.tooltips[i.src.icon_internals]="Under the hood",i.tooltips[i.src.icon_instances]="List",i.tooltips[i.src.icon_foaf]="Friends",i.tooltips[i.src.icon_rows]="Make a table of data like this",i.tooltips[i.src.icon_unrequested]="Fetch this.",i.tooltips[i.src.icon_fetched]="Fetched successfully.",i.tooltips[i.src.icon_failed]="Failed to load. Click to retry.",i.tooltips[i.src.icon_requested]="This is being fetched. Please wait...",i.tooltips[i.src.icon_visit]="View document",i.tooltips[i.src.icon_retract]="Remove this source and all its data from tabulator.",i.tooltips[i.src.icon_refresh]="Refresh this source and reload its triples.",i.OutlinerIcon=function(e,t,n,r,i){return this.src=e,this.alt=n,this.width=t,this.tooltip=r,this.filter=i,this},i.termWidgets={},i.termWidgets.optOn=new i.OutlinerIcon(i.src.icon_opton,20,"opt on","Make this branch of your query mandatory."),i.termWidgets.optOff=new i.OutlinerIcon(i.src.icon_optoff,20,"opt off","Make this branch of your query optional."),i.termWidgets.addTri=new i.OutlinerIcon(i.src.icon_add_triple,18,"add tri","Add one")},8071(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.propertyViews=function(e){const t={properties:[],defaults:[],classes:[]},n=(0,i.default)(e),o=(0,a.default)(e);return s(t,r.ns.foaf("depiction").uri,n,!0),s(t,r.ns.foaf("img").uri,n,!0),s(t,r.ns.foaf("thumbnail").uri,n,!0),s(t,r.ns.foaf("logo").uri,n,!0),s(t,r.ns.schema("image").uri,n,!0),s(t,r.ns.foaf("mbox").uri,o,!0),t},t.viewsAddPropertyView=s;var r=n(500),i=o(n(3660)),a=o(n(6357));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n,r){e.properties[t]||(e.properties[t]=[]),e.properties[t].push(n),r&&(e.defaults[t]=n)}},2697(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuerySource=function(){this.queries=[],this.listeners=[],this.addQuery=function(e){let t;for(null!==e.name&&""!==e.name||(e.name="Query #"+(this.queries.length+1)),e.id=this.queries.length,this.queries.push(e),t=0;t<this.listeners.length;t++)null!==this.listeners[t]&&this.listeners[t].addQuery(e)},this.removeQuery=function(e){let t;for(t=0;t<this.listeners.length;t++)null!==this.listeners[t]&&this.listeners[t].removeQuery(e);null!==this.queries[e.id]&&delete this.queries[e.id]},this.addListener=function(e){let t;for(this.listeners.push(e),t=0;t<this.queries.length;t++)null!==this.queries[t]&&e.addQuery(this.queries[t])},this.removeListener=function(e){let t;for(t=0;t<this.queries.length;t++)null!==this.queries[t]&&e.removeQuery(this.queries[t]);for(t=0;t<this.listeners.length;t++)this.listeners[t]===e&&delete this.listeners[t]}},t.makeQueryRow=l,t.viewAndSaveQuery=function(e,t){const n=e.qs;i.log.info("outline.doucment is now "+e.document.location);const r=function(e,t){const n=new a.Query,r=e.length;let o,s,c,u;for(o=0;o<r;o++)s=e[o],u=s.parentNode,c=u.AJAR_statement,i.log.debug("Statement "+c),s.getAttribute("class").indexOf("pred")>=0&&(i.log.info(" We have a predicate"),l(n,u)),s.getAttribute("class").indexOf("obj")>=0&&(i.log.info(" We have an object"),l(n,u,!0));function d(e){const t=e.statements.length;let n,r;for(let i=0;i<t;i++)n=e.statements[i],r=n.tr,void 0!==r&&(r.AJAR_pattern=null,r.AJAR_variable=null);for(const t in e.optional)d(e.optional[t])}return t.addQuery(n),d(n.pat),n}(t,n);for(let e=0;e<n.listeners.length;e++)n.listeners[e].getActiveView().view.drawQuery(r),n.listeners[e].updateQueryControls(n.listeners[e].getActiveView())};var r=n(9332),i=o(n(500)),a=o(n(8230));function o(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const s=[];function c(e){let t=e;for(;;){if(t.getAttribute("predTR"))return t;if(!t.previousSibling||"TR"!==t.previousSibling.nodeName)return e;t=t.previousSibling}}function l(e,t,n){const o=t.AJAR_inverse;let u,d,p;let f=null;for(d=t.parentNode;d;d=d.parentNode)if(void 0!==d.AJAR_statement){d.setAttribute("bla",d.AJAR_statement),d.AJAR_variable||l(e,d),u=d.AJAR_variable;const t=c(d);t.getAttribute("optionalSubqueriesIndex")&&(f=t.getAttribute("optionalSubqueriesIndex"),p=s[f]);break}p||(p=e.pat);const h=c(t),m=h.getAttribute("optional");if(m||(f?h.setAttribute("optionalSubqueriesIndex",f):h.removeAttribute("optionalSubqueriesIndex")),m){const e=r.store.formula();s.push(e),h.setAttribute("optionalSubqueriesIndex",s.length-1),p.optional.push(e),p=e}const g=t.AJAR_statement,v=t.AJAR_inverse?g.subject:g.object;let b=!0;v.isBlank&&n&&window.alert("You cannot constrain a query with a blank node. No constraint will be added."),u||(b=!1,u=o?g.object:g.subject);const y=t.AJAR_variable?t.AJAR_variable:r.store.variable(i.utils.newVariableName());e.vars.push(y),y.label=b?u.label:i.utils.label(u),y.label+=" "+i.utils.predicateLabelForXML(g.predicate,o);const w=(x=y,A=u,o?new a.Statement(x,g.predicate,A):new a.Statement(A,g.predicate,x));var x,A;return y.label=y.label.slice(0,1).toUpperCase()+y.label.slice(1),n&&(p.constraints[y]=new function(e){return this.describe=function(t){return t+" = "+e.toNT()},this.test=function(t){return e.sameTerm(t)},this}(v)),i.log.info("Pattern: "+w),w.tr=t,t.AJAR_pattern=w,t.AJAR_variable=y,i.log.debug("Query pattern: "+w),p.statements.push(w),y}},7339(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserInput=function e(t){const n=t.document;this.menuId="predicateMenu1";const s=function(e){},u=r.ns.rdf,d=o.Namespace("http://purl.org/ontology/bibo/"),p=o.Namespace("http://purl.org/dc/elements/1.1/");let f=!1;c||(c=new o.Formula,c.superFormula=i.store);l||(l=new o.IndexedFormula);l.name="TempFormula",i.store.updater||(i.store.updater=new o.UpdateManager(i.store));return{sparqler:i.store.updater,lastModified:null,lastModifiedStat:null,statIsInverse:!1,addNewPredicateObject:function(e){if("bottom-border-active"!==r.utils.getTarget(e).className)return;const a=t.UserInput,s=r.utils.getTarget(e),c=n.createElement("tr");r.utils.ancestor(s,"DIV").insertBefore(c,r.utils.ancestor(s,"TR"));const l=n.createElement("tr"),u=a.generateRequest("(TBD)",l,!0);c.appendChild(l.firstChild);const d=a.generateRequest("(Enter text or drag an object onto this field)",l,!1);if(c.appendChild(l.firstChild),r.utils.ancestor(s,"TR").previousSibling&&r.utils.ancestor(s,"TR").previousSibling.AJAR_statement){const e=r.utils.ancestor(s,"TR").previousSibling.AJAR_statement;a.formUndetStat(c,e.subject,u,d,e.why,!1)}else{const e=r.utils.getAbout(i.store,r.utils.ancestor(s.parentNode.parentNode,"TD")),t=i.store.sym(o.Util.uri.docpart(e.uri));a.formUndetStat(c,e,u,d,t,!1)}t.walk("moveTo",c.firstChild),r.log.info("addNewPredicateObject: selection = "+t.getSelection().map(function(e){return e.textContent}).join(", ")),this.startFillInText(t.getSelection()[0])},addNewObject:function(e){const n=r.utils.getTarget(e).parentNode.parentNode,i=n.parentNode.AJAR_inverse;this.lastModifiedStat=n.parentNode.AJAR_statement;const a=this.appendToPredicate(n),o=this.generateRequest(" (Error) ",a,!1),s=a.previousSibling.AJAR_statement;i?this.formUndetStat(a,o,s.predicate,s.object,s.why,!0):this.formUndetStat(a,s.subject,s.predicate,o,s.why,!1),t.walk("moveTo",a.lastChild),this.startFillInText(a.lastChild)},Delete:function(e){this.deleteTriple(e,!1)},Enter:function(e){this.literalModification(e)},Click:function(e){const t=r.utils.getTarget(e);"Literal"===r.utils.getTerm(t).termType&&(this.literalModification(t),e.preventDefault(),e.stopPropagation())},pasteFromClipboard:function(e,n){function i(e){const n=t.clipboard[e].shift();if(null!==n){switch(e){case"predicates":case"objects":{const e=t.clipboard.all;for(let t=0;;t++)if(n.sameTerm(e[t])){e.splice(t,1);break}break}case"all":throw new Error("hostorical code not understood - what is theCollection?")}return n}r.log.warn("no more element in clipboard!")}let a;switch(n.className){case"undetermined selected":if(a=n.nextSibling?i("predicates"):i("objects"),!a)return;break;case"pred selected":if(a=i("objects"),!a)return;break;case"selected":{const e=i("all");if(!e)return;return a=e[0],void this.insertTermTo(n,a,e[1])}}this.insertTermTo(n,a)},startFillInText:function(e){switch(this.whatSortOfEditCell(e)){case"DatatypeProperty-like":r.utils.emptyNode(e),this.lastModified=this.createInputBoxIn(e," (Please Input) "),this.lastModified.isNew=!1,this.lastModified.select();break;case"predicate":this.performAutoCompleteEdit(e,"PredicateAutoComplete");break;case"ObjectProperty-like":case"no-idea":this.performAutoCompleteEdit(e,"GeneralAutoComplete")}},literalModification:function(e){if(r.log.debug("entering literal Modification with "+e+e.textContent),-1!==e.className.indexOf(" pendingedit"))return r.log.warn("The node you attempted to edit has a request still pending.\nPlease wait for the request to finish (the text will turn black)\nbefore editing this node again."),!0;const t=e;if(!this.getStatementAbout(t))return;let a,o,s;try{a=r.utils.getTerm(t),o=r.utils.ancestor(t,"TR")}catch(n){r.log.warn("userinput.js: "+n+r.utils.getAbout(i.store,e)),r.log.error(t+" getStatement Error:"+n)}try{s=o.lastChild}catch(e){r.log.error(e+"@"+t)}if("Literal"===a.termType){if(s.removeChild(s.firstChild),a.value.match("\n")){const e=n.createElement("textarea");e.appendChild(n.createTextNode(a.value)),e.setAttribute("rows",(a.value.match(/\n/g).length+1).toString()),e.setAttribute("cols","100"),e.setAttribute("class","textinput"),s.appendChild(e),this.lastModified=e}else this.lastModified=this.createInputBoxIn(s,a.value);this.lastModified.isNew=!1,this.lastModified.select()}return!0},performAutoCompleteEdit:function(e,t){r.utils.emptyNode(e),this.lastModified=this.createInputBoxIn(e,""),this.lastModified.select(),this.lastModified.addEventListener("keypress",this.getAutoCompleteHandler(t),!1),this.getAutoCompleteHandler(t)(1)},backOut:function(){this.deleteTriple(this.lastModified.parentNode,!0),this.lastModified=null},clearMenu:function(){const e=n.getElementById(this.menuID);e&&e.parentNode.removeChild(e)},clearInputAndSave:function(e){let n;if(!this.lastModified)return;if(!this.lastModified.isNew)try{n=this.getStatementAbout(this.lastModified).object}catch(e){return}let s,c,l,d,p=this.lastModifiedStat;if(this.lastModified.value!==this.lastModified.defaultValue){let c;if(""===this.lastModified.value)return this.lastModified.value=this.lastModified.defaultValue,void this.clearInputAndSave();if(this.lastModified.isNew){p=new o.Statement(p.subject,p.predicate,i.store.literal(this.lastModified.value),p.why),s=this.views.defaults[p.predicate.uri],c=r.utils.ancestor(this.lastModified,"TR");try{i.store.updater.update([],[p],function(e,n,i){n||(r.log.error("Error occurs while inserting "+p+"\n\n"+i+"\n"),t.UserInput.deleteTriple(c.lastChild,!0))})}catch(e){return void r.log.error("Error inserting fact "+p+":\n\t"+e+"\n")}p=i.store.add(p.subject,p.predicate,i.store.literal(this.lastModified.value),p.why)}else{if(this.statIsInverse)return r.log.error("Invalid Input: a literal can't be a subject in RDF/XML"),void this.backOut();let s,l,d;switch(n.termType){case"Literal":{const t=this.lastModified.value;c=r.utils.ancestor(this.lastModified,"TR");const a=this.lastModified.defaultValue;l=o.st(p.subject,p.predicate,i.store.literal(this.lastModified.value),p.why);try{i.store.updater.update([p],[l],function(e,i,o){i?n.value=t:(r.log.warn("Error occurs while editing "+p+"\n\n"+o),c.lastChild.textContent=a),c.lastChild.className=c.lastChild.className.replace(/ pendingedit/g,"")})}catch(e){return void r.log.warn("Error occurs while editing "+p+":\n\t"+e)}break}case"BlankNode":{const n=i.store.literal(this.lastModified.value,"");if("Collection"!==p.predicate.termType)return void this.fillInRequest("object",this.lastModified.parentNode,i.store.literal(this.lastModified.value));{const f=p.predicate.elements[0];if(i.store.any(void 0,f,n)){if(!e){const t=this.lastModified.parentNode;(e={}).pageX=r.utils.findPos(t)[0],e.pageY=r.utils.findPos(t)[1]+t.clientHeight}this.showMenu(e,"DidYouMeanDialog",void 0,{dialogTerm:i.store.any(void 0,f,n),bnodeTerm:p.subject})}else{s=r.utils.ancestor(r.utils.ancestor(this.lastModified,"TR").parentNode,"TR").AJAR_statement,l=o.st(p.subject,f,n,p.why);const a=i.store.the(p.subject,u("type"));d=i.store.anyStatementMatching(p.subject,u("type"),a,p.why),c=r.utils.ancestor(r.utils.ancestor(this.lastModified,"TR"),"TD").parentNode;try{i.store.updater.update([],[s,l,d],function(e,n,r){n||t.UserInput.deleteTriple(c.lastChild,!0)})}catch(e){return}i.store.remove(p),i.store.add(p.subject,f,n,p.why)}const h=r.utils.ancestor(this.lastModified.parentNode.parentNode,"TD"),m=a.byName("default");t.outlineExpand(h,p.subject,{pane:m,already:!0}),t.walk("right",t.focusTd)}break}}}}else{if(this.lastModified.isNew)return c=r.utils.ancestor(this.lastModified,"TR"),l=this.generateRequest("(To be determined. Re-type of drag an object onto this field)"),d=c.previousSibling.AJAR_statement,this.formUndetStat(c,d.subject,d.predicate,l,d.why,!1),void(this.lastModified=null);if("Collection"===p.predicate.termType){i.store.removeMany(p.subject);const e=r.utils.ancestor(r.utils.ancestor(this.lastModified,"TR").parentNode,"TR");return d=e.AJAR_statement,l=this.generateRequest("(To be determined. Re-type of drag an object onto this field)"),this.formUndetStat(e,d.subject,d.predicate,l,d.why,!1),t.replaceTD(t.outlineObjectTD(l,s),e.lastChild),void(this.lastModified=null)}if(this.statIsInverse){if("BlankNode"===p.subject.termType)return void this.backOut()}else if("BlankNode"===p.object.termType)return void this.backOut()}c=r.utils.ancestor(this.lastModified,"TR"),this.statIsInverse?t.replaceTD(t.outlineObjectTD(p.subject,s),c.lastChild):t.replaceTD(t.outlineObjectTD(i.store.literal(this.lastModified.value),s),c.lastChild),this.lastModified.value!==this.lastModified.defaultValue&&(c.lastChild.className+=" pendingedit"),this.lastModified=null},deleteTriple:function(e,n){if(r.log.debug("deleteTriple entered"),!n&&-1!==e.className.indexOf(" pendingedit"))return void t.walk("up");const a=this.getStatementAbout(e);if(!(n||i.store.whether(a.object,u("type"),r.ns.link("Request"))||i.store.whether(a.predicate,u("type"),r.ns.link("Request"))||i.store.whether(a.subject,u("type"),r.ns.link("Request")))){r.log.debug("about to send SPARQLUpdate");try{i.store.updater.update([a],[],function(t,n,r){n?s():e.className=e.className.replace(/ pendingedit/g,"")}),e.className+=" pendingedit"}catch(e){return r.log.error(e),void r.log.warn("Error deleting statement "+a+":\n\t"+e)}r.log.debug("SPARQLUpdate sent")}r.log.debug("about to remove "+a),r.log.debug("removed"),t.walk("up");const o=e.parentNode;function s(){let e,t;for(e=o;1===e.childNodes.length;e=e.previousSibling);if(e===o){const n=e.nextSibling;n.nextSibling&&1===n.childNodes.length&&(t=e.firstChild,t.setAttribute("rowspan",parseInt(t.getAttribute("rowspan"))-1),n.insertBefore(e.firstChild,n.firstChild)),o.parentNode.removeChild(o)}else t=e.firstChild,t.setAttribute("rowspan",parseInt(t.getAttribute("rowspan"))-1),o.parentNode.removeChild(o)}n&&s()},clipboardInit:function(){t.clipboard={},t.clipboard.objects=[],t.clipboard.predicates=[],t.clipboard.all=[]},copyToClipboard:function(e,n){const i=r.utils.getTerm(n);switch(n.className){case"selected":case"obj selected":t.clipboard.objects.unshift(i);break;case"pred selected":case"pred internal selected":t.clipboard.predicates.unshift(i)}t.clipboard.all.unshift(i)},insertTermTo:function(e,a,o){let s,l;switch(e.className){case"undetermined selected":s=this.views.defaults[e.parentNode.AJAR_statement.predicate.uri],this.fillInRequest(e.nextSibling?"predicate":"object",e,a);break;case"pred selected":{const n=this.appendToPredicate(e);l=e.parentNode.AJAR_statement,s=this.views.defaults[l.predicate.uri],n.appendChild(t.outlineObjectTD(a,s));const o=e.parentNode.AJAR_inverse;o?n.AJAR_statemnet=i.store.add(a,l.predicate,l.object,l.why):n.AJAR_statement=i.store.add(l.subject,l.predicate,a,l.why);try{i.store.updater.update([],[n.AJAR_statement],function(e,t,i){t||r.log.error("userinput.js (pred selected): Fail trying to insert statement "+n.AJAR_statement+": "+i)})}catch(e){return void r.log.error("Exception trying to insert statement "+n.AJAR_statement+": "+r.utils.stackString(e))}n.AJAR_inverse=o,c.statements.push(n.AJAR_statement);break}case"selected":{const i=r.utils.ancestor(e,"TABLE").lastChild,s=i.insertBefore(n.createElement("tr"),i.lastChild);if(l=s.previousSibling.AJAR_statement,void 0===o&&(o=!0),o)this.formUndetStat(s,l.subject,this.generateRequest("(TBD)",s,!0),a,l.why,!1),s.appendChild(t.outlineObjectTD(a)),t.walk("moveTo",s.firstChild),this.startFillInText(s.firstChild);else{const e=this.generateRequest("(To be determined. Re-type of drag an object onto this field)",s);this.formUndetStat(s,l.subject,a,e,l.why,!1),s.insertBefore(t.outlinePredicateTD(a,s,!1,!1),s.firstChild),t.walk("moveTo",s.lastChild),this.startFillInText(s.lastChild)}break}}},Refill:function(e,t){r.log.info("Refill"+t.textContent);const n=t.nextSibling;let a;if(n){let s,c,l;if("undetermined"===t.nextSibling.className){s=r.utils.getAbout(i.store,r.utils.ancestor(t,"TABLE").parentNode),c=i.store.any(s,u("type")),l=[];const e=".\n";l[0]="SELECT ?pred WHERE{\n?pred "+u("type")+u("Property")+".\n?pred "+r.ns.rdfs("domain")+c+".}",l[1]="SELECT ?pred ?class\nWHERE{\n?pred "+u("type")+u("Property")+".\n"+c+r.ns.rdfs("subClassOf")+" ?class.\n?pred "+r.ns.rdfs("domain")+" ?class.\n}",l[2]="SELECT ?pred WHERE{\n"+s+u("type")+i.store.variable("subjectClass")+e+i.store.variable("pred")+r.ns.rdfs("domain")+i.store.variable("subjectClass")+e+"}",a=l.map(o.SPARQLToQuery)}else{s=r.utils.getAbout(i.store,r.utils.ancestor(t,"TABLE").parentNode),c=i.store.any(s,u("type"));const e=t.parentNode.AJAR_statement.object;l="SELECT ?pred WHERE{"+s+u("type")+"?subjectClass.\n"+e+u("type")+"?objectClass.\n?pred "+r.ns.rdfs("domain")+"?subjectClass.\n?pred "+r.ns.rdfs("range")+"?objectClass.\n}",a=o.SPARQLToQuery(l)}this.showMenu(e,"GeneralPredicateChoice",a,{isPredicate:n,selectedTd:t})}else{const a=t.parentNode.AJAR_statement.predicate;if((i.store.whether(a,u("type"),r.ns.owl("DatatypeProperty"))||"Collection"===a.termType||i.store.whether(a,r.ns.rdfs("range"),r.ns.rdfs("Literal")))&&(t.className="",r.utils.emptyNode(t),this.lastModified=this.createInputBoxIn(t," (Please Input) "),this.lastModified.isNew=!1,this.lastModified.select()),t.parentNode.AJAR_statement.predicate.sameTerm(u("type"))){const i="SELECT ?class WHERE{?class "+u("type")+r.ns.rdfs("Class")+".}",a=o.SPARQLToQuery(i);this.showMenu(e,"TypeChoice",a,{isPredicate:n,selectedTd:t})}}},getAutoCompleteHandler:function(e){let a;return"PredicateAutoComplete"===e?e="predicate":"JournalTAC"!==e&&(e="all"),a="JournalTAC"===e?n.getElementById("inpid_journal_title"):this.lastModified||t.getSelection()[0].firstChild,a.value,function(o){const s={},c=a.parentNode;e||(e=c.nextSibling?"predicate":"all"),s.pageX=r.utils.findPos(c)[0],s.pageY=r.utils.findPos(c)[1]+c.clientHeight,s.pageX,s.pageY;let l=n.getElementById(t.UserInput.menuID);function u(e){e&&(l.lastHighlight&&(l.lastHighlight.className=""),l.lastHighlight=e,l.lastHighlight.className="activeItem",t.showURI(r.utils.getAbout(i.store,l.lastHighlight)))}if(o){let d=a.value;if("object"==typeof o)switch(o.keyCode,o.stopPropagation(),l&&!l.lastHighlight&&u(l.firstChild.firstChild),o.keyCode){case 13:case 9:if(!l)return void t.UserInput.clearInputAndSave();if(!l.lastHighlight)return"JournalTAC"===e?(t.UserInput.clearMenu(),"no lastH"):void 0;if("INPUT"===l.lastHighlight.tagName)switch(l.lastHighlight.value){case"New...":t.UserInput.createNew();break;case"GiveURI":t.UserInput.inputURI()}else{if("JournalTAC"===e){if(f&&l.lastHighlight){const e=l.lastHighlight.firstChild.firstChild.innerHTML;let t=l.lastHighlight.firstChild.nextSibling.innerHTML;return t=t.slice(4,-4),["gotdptitle",e,t]}return"asGivenTxt"}const n=r.utils.getAbout(i.store,l.lastHighlight),o="predicate"===e?"predicate":"object";t.UserInput.clearMenu(),t.UserInput.fillInRequest(o,a.parentNode,n)}return;case 38:return f=!0,""!==d||"TR"!==l.lastHighlight.tagName||l.lastHighlight.previousSibling?u(l.lastHighlight.previousSibling):u(l.firstChild.firstChild),"I'm a little Arrow Up";case 40:return f=!0,"INPUT"===l.lastHighlight.tagName?u(l.childNodes[1].firstChild):u(l.lastHighlight.nextSibling),"I'm a little Down Arrow";case 37:case 39:return void("INPUT"===l.lastHighlight.tagName&&(37===o.keyCode?u(l.lastHighlight.previousSibling):u(l.lastHighlight.nextSibling)));case 8:d=d.slice(0,-1);break;case 27:return l?void t.UserInput.clearMenu():void t.UserInput.backOut();default:f=!1,d+=String.fromCharCode(o.charCode),o.charCode,String.fromCharCode(o.charCode)}if("all"===e?(t.UserInput.clearMenu(),t.UserInput.showMenu(s,"GeneralAutoComplete",void 0,{inputText:d,selectedTd:c}),0===d.length&&t.UserInput.WildCardButtons()):"predicate"===e?(t.UserInput.clearMenu(),t.UserInput.showMenu(s,"PredicateAutoComplete",void 0,{inputText:d,isPredicate:!0,selectedTd:c})):"JournalTAC"===e&&(t.UserInput.clearMenu(),t.UserInput.showMenu(s,"JournalTitleAutoComplete",void 0,{inputText:d},"orderisuseless")),l=n.getElementById(t.UserInput.menuID),!l)return;return u(l.firstChild.firstChild),t.showURI(r.utils.getAbout(i.store,l.lastHighlight)),"nothing to return"}}},WildCardButtons:function(){const e=n.getElementById(t.UserInput.menuID),i=e.insertBefore(n.createElement("div"),e.firstChild),a=i.appendChild(n.createElement("input")),o=i.appendChild(n.createElement("input"));a.type="button",a.value="New...",o.type="button",o.value="Know its URI",i.addEventListener("mouseover",function(e){const i=n.getElementById(t.UserInput.menuID);i.lastHighlight&&(i.lastHighlight.className=""),i.lastHighlight=r.utils.ancestor(r.utils.getTarget(e),"INPUT"),i.lastHighlight&&(i.lastHighlight.className="activeItem")},!1),a.addEventListener("click",this.createNew,!1),o.addEventListener("click",this.inputURI,!1)},Keypress:function(e){if(13===e.keyCode)if("TEXTAREA"!==t.targetOf(e).tagName)this.clearInputAndSave();else{const t=parseInt(this.lastModified.getAttribute("rows"));this.lastModified.setAttribute("rows",(t+1).toString()),e.stopPropagation()}},Mousedown:function(t){window.addEventListener("keypress",function(t){!t.ctrlKey||115!==t.charCode&&113!==t.charCode||e.switchMode()},!1),window.addEventListener("mousedown",e.Mousedown,!1),document.getElementById("outline").oncontextmenu=function(){return!1},2===t.button&&(e.switchMode(),t&&(t.preventDefault(),t.stopPropagation()))},Mouseover:function(e){if(this.className="bottom-border-active",1===this._tabulatorMode)switch(r.utils.getTarget(e).tagName){case"TD":{const t=r.utils.getTarget(e);"pred"===t.className&&(t.style.cursor="copy");break}case"DIV":{const t=r.utils.getTarget(e);"bottom-border"===r.utils.getTarget(e).className&&(t.style.borderColor="rgb(100%,65%,0%)",t.style.cursor="copy");break}}},Mouseout:function(e){if(this.className="bottom-border",1===this._tabulatorMode){const t=r.utils.getTarget(e);"bottom-border"===r.utils.getTarget(e).className&&(t.style.borderColor="transparent",t.style.cursor="auto")}},whatSortOfEditCell:function(e){if(e.nextSibling)return"predicate";const t=this.getStatementAbout(e).predicate;return i.store.whether(t,r.ns.rdf("type"),r.ns.owl("DatatypeProperty"))||i.store.whether(t,r.ns.rdfs("range"),r.ns.rdfs("Literal"))||"Collection"===t.termType?"DatatypeProperty-like":i.store.whether(t,u("type"),r.ns.owl("ObjectProperty"))?"ObjectProperty-like":"no-idea"},getStatementAbout:function(e){const t=r.utils.ancestor(e,"TR");if(!t)throw new Error("No ancestor TR for the TD we clicked on:"+e);let n;try{n=t.AJAR_statement}catch(n){throw new Error("No AJAR_statement!"+e+e.textContent+" has ancestor "+t)}return this.lastModifiedStat=t.AJAR_statement,this.statIsInverse=t.AJAR_inverse,n},createInputBoxIn:function(e,i){r.log.info("myDocument in createInputBoxIn is now "+n.location),r.log.info("outline.document is now "+t.document.location);const a=n.createElement("input");return a.setAttribute("value",i),a.setAttribute("class","textinput"),"undetermined selected"!==e.className&&(a.setAttribute("size","100"),a.addEventListener("keypress",function(e){38!==e.keyCode&&40!==e.keyCode||(t.OutlinerKeypressPanel(e),t.UserInput.clearInputAndSave())},!1)),e.appendChild(a),a},createNew:function(e){t.UserInput.clearMenu();const n=t.getSelection()[0],r=n.parentNode.AJAR_statement.why,a=i.store.nextSymbol(r);t.UserInput.fillInRequest("object",n,a),t.outlineExpand(t.getSelection()[0],a)},inputURI:function(e){const n=t.UserInput;n.clearMenu();const a=t.getSelection()[0];r.utils.emptyNode(a);const o=" (Type a URI) ";n.lastModified=n.createInputBoxIn(a,o),n.lastModified.select(),n.lastModified.addEventListener("keypress",function(e){switch(e.stopPropagation(),e.keyCode){case 13:case 9:if(this.value!==o){const e=this.value;n.fillInRequest("object",a,i.store.sym(e))}}},!1)},appendToPredicate:function(e){let t,r=!1;try{for(t=e.parentNode.nextSibling;1===t.childNodes.length&&t.AJAR_statement;t=t.nextSibling);}catch(e){r=!0}const i=n.createElement("tr");if(i.style.colspan="1",i.style.display="block",i.style.display="",e.hasAttribute("rowspan")&&e.setAttribute("rowspan",parseInt(e.getAttribute("rowspan"))+1),e.hasAttribute("rowspan")||e.setAttribute("rowspan","2"),r){const t=e.parentNode.parentNode;"defaultPane"===t.className?t.insertBefore(i,t.lastChild):t.appendChild(i)}else t.parentNode.insertBefore(i,t);return i},bnode2symbol:function(e,t){i.store.copyTo(e,t,["two-direction","delete"])},generateRequest:function(e,n,i,a){let o;a||(o=n||r.utils.ancestor(this.lastModified,"TR"),r.utils.emptyNode(o));const s=l,c=s.bnode();if(s.add(c,r.ns.rdf("type"),r.ns.link("Request")),e.length,s.add(c,r.ns.link("message"),s.literal(e)),s.add(c,r.ns.link("to"),s.literal("The User")),s.add(c,r.ns.link("from"),s.literal("The User")),!a){let n;n=i?o.appendChild(t.outlinePredicateTD(c,o,!1,!1)):o.appendChild(t.outlineObjectTD(c)),n.className="undetermined",n.textContent=e}return c},showMenu:function(e,a,c,l,f){r.log.info("myDocument is now "+n.location),r.log.info("outline.doucment is now "+t.document.location);const h=this,m=n.createElement("div");if(l)for(const e in l);m.id=this.menuID,m.className="outlineMenu",m.style.top=e.pageY+"px",m.style.left=e.pageX+"px";if("JournalTitleAutoComplete"===a){const e=function(e){let t=0,n=0,r=0,i=0,a=0,o=0;for(;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)a=e.offsetLeft,o=e.offsetTop,a!==r&&(t+=e.offsetLeft-e.scrollLeft),o!==i&&(n+=e.offsetTop-e.scrollTop),r=a,i=o,e=e.parentNode;return{top:n+54,left:t-38}}(n.getElementById("inpid_journal_title"));e.left-=n.getElementById("inpid_journal_title").scrollTop,m.style.top=e.top+"px",m.style.left=e.left+"px"}n.body.appendChild(m);const g=m.appendChild(n.createElement("table"));let v;switch(m.lastHighlight=null,g.addEventListener("mouseover",function(e){m.lastHighlight&&(m.lastHighlight.className=""),m.lastHighlight=r.utils.ancestor(r.utils.getTarget(e),"TR"),m.lastHighlight&&(m.lastHighlight.className="activeItem")},!1),a){case"DidYouMeanDialog":v=function(e){const n=r.utils.ancestor(r.utils.getTarget(e),"TR");2===n.childNodes.length&&n.nextSibling?(i.store.add(A,void 0,void 0),t.UserInput.clearMenu()):2===n.childNodes.length&&t.UserInput.clearMenu()};break;case"LimitedPredicateChoice":{const e=l.clickedTd;v=function(n){const a=r.utils.getAbout(i.store,r.utils.getTarget(n)),o=e.parentNode.AJAR_statement.predicate.elements;for(let e=0;e<o.length;e++)o[e].sameTerm(a)&&o.unshift(o.splice(e,1)[0]);t.UserInput.clearMenu();const s=e.parentNode,c=t.outlinePredicateTD(s.AJAR_statement.predicate,s);s.insertBefore(c,e),s.removeChild(e),h.lastModified.select()};break}case"PredicateAutoComplete":case"GeneralAutoComplete":case"GeneralPredicateChoice":case"JournalTitleAutoComplete":case"TypeChoice":{const e=l.isPredicate,n=l.selectedTd;v=function(a){const o=r.utils.getAbout(i.store,r.utils.getTarget(a));r.utils.getTarget(a),e?t.UserInput.fillInRequest("predicate",n,o)&&t.UserInput.clearMenu():t.UserInput.fillInRequest("object",n,o)&&t.UserInput.clearMenu()};break}default:throw new Error("userinput: unexpected mode")}g.addEventListener("click",v,!1);const b={};function y(e){g.firstChild&&"no-suggest"===g.firstChild.className&&g.removeChild(g.firstChild);const t=r.utils.predicateLabelForXML(e,!1);if(!e.uri)return;let i="??";for(const t in b)if(r.log.debug(b[t]),o.Util.string_startswith(e.uri,b[t])){i=t;break}const a=g.appendChild(n.createElement("tr"));a.setAttribute("about",e);a.appendChild(n.createElement("th")).appendChild(n.createElement("div")).appendChild(n.createTextNode(t)),a.appendChild(n.createElement("td")).appendChild(n.createTextNode(i.toUpperCase()))}function w(e){return function(t){y(t[e.vars[0]])}}let x,A,C,E;switch(i.store.each(void 0,r.ns.rdf("type"),r.ns.owl("Ontology")).forEach(function(e){const t=r.utils.label(e);if(!t)return;const n=t.value.match(/\((.+?)\)/);n?b[n[1]]=e.uri:b[t.value]=e.uri}),a){case"DidYouMeanDialog":{const e=l.dialogTerm;A=l.bnodeTerm,m.style.width="auto";const t=g.appendChild(n.createElement("tr")).appendChild(n.createElement("th"));t.appendChild(n.createTextNode("Did you mean..."));const a=i.store.statementsMatching(e);let o;for(o=0;o<a.length&&!i.store.whether(a[o].predicate,u("type"),r.ns.owl("InverseFunctionalProperty"));o++);const s=a[o].predicate,c=i.store.any(e,a[o].predicate),d=r.utils.label(e)+" who has "+r.utils.label(s)+" "+c+"?",p=g.appendChild(n.createElement("tr")).appendChild(n.createElement("th"));p.appendChild(n.createTextNode(d)),t.setAttribute("colspan","2"),p.setAttribute("colspan","2");const f=g.appendChild(n.createElement("tr"));f.appendChild(n.createElement("th")).appendChild(n.createTextNode("Yes")),f.appendChild(n.createElement("td")).appendChild(n.createTextNode("BOOLEAN"));const h=g.appendChild(n.createElement("tr"));h.appendChild(n.createElement("th")).appendChild(n.createTextNode("No")),h.appendChild(n.createElement("td")).appendChild(n.createTextNode("BOOLEAN"));break}case"PredicateAutoComplete":{x=l.inputText;const n=t.labeller.searchAdv(x,void 0,"predicate"),r=[];for(let t=0;t<n.length;t++){const r={vars:[]};r.vars.push("Kenny");const a={};a.Kenny=i.store.fromNT(n[t].NT);try{w(r)(a)}catch(e){throw new Error("I'll deal with bnodes later...[Kenny]"+e)}}const a=r[0];if(0===a.length)return void this.clearMenu();for(let e=0;e<a.length&&e<10;e++)y(a[e][1]);break}case"GeneralAutoComplete":{let i;x=l.inputText;try{i=t.labeller.search(x)}catch(e){}const a=i[0],o=i[1];if(0===a.length)return void this.clearMenu();for(let e=0;e<a.length&&e<10;e++){const t=a[e][1].toNT();C=g.appendChild(n.createElement("tr")),C.setAttribute("about",t),E=C.appendChild(n.createElement("th")),E.appendChild(n.createElement("div")).appendChild(n.createTextNode(a[e][0]));const i=o[e],s=i?r.utils.label(i):"";C.appendChild(n.createElement("td")).appendChild(n.createTextNode(s))}break}case"JournalTitleAutoComplete":{x=l.inputText;const e=i.store.each(void 0,u("type"),d("Journal")),t=[];for(let r=0;r<e.length;r++){const a=e[r],o=i.store.each(a,p("title"),void 0),c=o+"",l=x.toLowerCase();if(-1!==c.toLowerCase().search(l)){s(),t.push(o);const e=g.appendChild(n.createElement("tr"));e.setAttribute("about","journalTitle");e.appendChild(n.createElement("th")).appendChild(n.createElement("div")).appendChild(n.createTextNode(o)),e.appendChild(n.createElement("td")).appendChild(n.createTextNode(a))}}break}case"LimitedPredicateChoice":{const e=r.utils.getAbout(i.store,l.clickedTd);e.termType="Collection";const t=i.store.each(e,r.ns.link("element"));for(let e=0;e<t.length;e++)y(t[e]);break}default:{C=g.appendChild(n.createElement("tr")),C.className="no-suggest",E=C.appendChild(n.createElement("th")),E.appendChild(n.createElement("div")).appendChild(n.createTextNode("No suggested choices. Try to type instead.")),C.appendChild(n.createElement("td")).appendChild(n.createTextNode("OK")),C.addEventListener("click",function(e){h.clearMenu(),e.stopPropagation()},"false");const e=function(){};switch(c.constructor.name){case"Array":for(let t=0;t<c.length;t++)i.store.query(c[t],w(c[t]),e);break;case"undefined":throw new Error("addPredicateChoice: query is not defined");default:i.store.query(c,w(c),e)}}}},fillInRequest:function(e,n,a){const s=n.parentNode,u=s.AJAR_statement,d=s.AJAR_inverse,p="object"===e?u.object:u.predicate;let f,h=!1;if(i.store.any(p,r.ns.link("onfillin")),"predicate"===e){const e=t.outlinePredicateTD(a,s,!1,!1);if("undetermined"!==n.nextSibling.className){const t=new o.Statement(u.subject,a,u.object,u.why);try{i.store.updater.update([],[t],function(t,n,o){n?(f=i.store.anyStatementMatching(u.subject,a,u.object,u.why),s.AJAR_statement=f,e.className=e.className.replace(/ pendingedit/g,"")):r.log.warn("Failure occurs (#2) while inserting "+s.AJAR_statement+"\n\n"+o)})}catch(e){return r.log.error(e),void r.log.warn("Error when insert (#2) of statement "+t+":\n\t"+e)}e.className+=" pendingedit",this.lastModified=null}else this.formUndetStat(s,u.subject,a,u.object,u.why,!1),t.walk("right"),h=!0;t.replaceTD(e,n),l.remove(u)}else if("object"===e){const e=t.outlineObjectTD(a);if(t.replaceTD(e,n),n.previousSibling&&"undetermined"===n.previousSibling.className)t.walk("left"),h=!0;else{let t;t=d?new o.Statement(a,u.predicate,u.object,u.why):new o.Statement(u.subject,u.predicate,a,u.why);try{i.store.updater.update([],[t],function(n,o,c){let l;r.log.info("@@ usinput.js (object) callback ok="+o+" for statement:"+t+"\n "),o?(e.className=e.className.replace(/ pendingedit/g,""),l=d?i.store.statementsMatching(a,u.predicate,u.object,u.why):i.store.statementsMatching(u.subject,u.predicate,a,u.why),l.length||r.log.error("userinput.js 1711: Can't find statememt!"),s.AJAR_statement=l[0]):r.log.warn("userinput.js (object): Fail trying to insert statement "+t)})}catch(e){return r.log.error("userinput.js (object): exception trying to insert statement "+t+": "+r.utils.stackString(e)),void r.log.warn("Error trying to insert statement "+t+":\n"+e)}this.lastModified=null,e.className+=" pendingedit"}l.remove(u)}if(c.statements.push(f),!h)return!0;this.startFillInText(t.getSelection()[0])},formUndetStat:function(e,t,n,r,i,a){return e.AJAR_inverse=a,e.AJAR_statement=l.add(t,n,r,i),e.AJAR_statement}}};var r=s(n(500)),i=n(9332),a=s(n(4059)),o=s(n(8230));function s(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(s=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}let c,l},3660(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));t.default=e=>function(t){const n=r.utils.AJARImage(t.uri,r.utils.label(t),r.utils.label(t),e);return n.setAttribute("class","outlineImage"),n}},6357(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=e=>function(t){const n=e.createElement("a");let r="NamedNode"===t.termType?t.uri:t.value;const i=r.indexOf("mailto:");return r=i>=0?r.slice(i+7):r,n.setAttribute("href","mailto:"+r),n.appendChild(e.createTextNode(r)),n}},9370(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500),i=n(9332),a=n(8230);const o={icon:r.icons.iconBase+"noun_79217.svg",name:"pad",audience:[r.ns.solid("PowerUser")],label:function(e,t){return t.session.store.findTypeURIs(e)["http://www.w3.org/ns/pim/pad#Notepad"]?"pad":null},mintClass:r.ns.pad("Notepad"),mintNew:function(e,t){const n=e.session.store,i=n.updater;if(t.me&&!t.me.uri)throw new Error("notepad mintNew: Invalid userid");const a=t.newInstance=t.newInstance||n.sym(t.newBase+"index.ttl#this"),o=a.doc();n.add(a,r.ns.rdf("type"),r.ns.pad("Notepad"),o),n.add(a,r.ns.dc("title"),"Shared Notes",o),n.add(a,r.ns.dc("created"),new Date,o),t.me&&n.add(a,r.ns.dc("author"),t.me,o);const s=n.sym(a.uri+"_line0");return n.add(a,r.ns.pad("next"),s,o),n.add(s,r.ns.pad("next"),a,o),n.add(s,r.ns.dc("author"),t.me,o),n.add(s,r.ns.sioc("content"),"",o),new Promise(function(e,r){i?i.put(o,n.statementsMatching(void 0,void 0,void 0,o),"text/turtle",function(n,i,a){i?e(t):r(new Error("FAILED to save new tool at: "+n+" : "+a))}):r(new Error("Have no updater"))})},render:function(e,t,n){const o=t.dom,s=t.session.store,c=function(e,t){e||E.appendChild(r.widgets.errorMessageBlock(o,t,"pink"))},l=function(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e},u=function(e,t,n){const i=(0,a.graph)(),o=(0,a.Namespace)("http://www.w3.org/ns/auth/acl#");let s=i.sym(t+"#a1");const c=i.sym(t),l=i.sym(e);return i.add(s,r.ns.rdf("type"),o("Authorization"),c),i.add(s,o("accessTo"),l,c),i.add(s,o("agent"),y,c),i.add(s,o("mode"),o("Read"),c),i.add(s,o("mode"),o("Write"),c),i.add(s,o("mode"),o("Control"),c),s=i.sym(t+"#a2"),i.add(s,r.ns.rdf("type"),o("Authorization"),c),i.add(s,o("accessTo"),l,c),i.add(s,o("agentClass"),r.ns.foaf("Agent"),c),i.add(s,o("mode"),o("Read"),c),n&&i.add(s,o("mode"),o("Write"),c),(0,a.serialize)(c,i,t,"text/turtle")},d=function(e,t,n){const r=s.any((0,a.sym)(e),(0,a.sym)("http://www.iana.org/assignments/link-relations/acl"));if(!v)throw new Error("Have no fetcher");if(r){const i=u(e,r.uri,t);return v.webOperation("PUT",r.uri,{data:i,contentType:"text/turtle"}).then(()=>n(!0)).catch(e=>{n(!1,e.message)})}return v.load(e).catch(e=>{n(!1,"Getting headers for ACL: "+e)}).then(()=>{const n=s.any((0,a.sym)(e),(0,a.sym)("http://www.iana.org/assignments/link-relations/acl"));if(!n)throw new Error("No Link rel=ACL header for "+e);const r=u(e,n.uri,t);return v.webOperation("PUT",n.uri,{data:r,contentType:"text/turtle"})}).then(()=>n(!0)).catch(e=>{n(!1,e.message)})},p=function(e,t,n){const i=l(t);i.appendChild(r.login.newAppInstance(o,{noun:"notepad"},(e,t)=>f(new a.NamedNode(e||t)))),i.appendChild(o.createElement("hr"));i.appendChild(o.createElement("p")).textContent="Where would you like to store the data for the "+n+"? Give the URL of the directory where you would like the data stored.";const s=i.appendChild(o.createElement("input"));s.setAttribute("type","text"),s.size=80,s.label="base URL",s.autocomplete="on",i.appendChild(o.createElement("br"));const c=i.appendChild(o.createElement("button"));c.textContent="Start new "+n+" at this URI",c.addEventListener("click",function(t){let n=s.value;"/"!==n.slice(-1)&&(n+="/"),h(e,n)})},f=function(e){let t=s.any(e,r.ns.space("uriPrefix"));t=t?t.value:e.uri.split("#")[0],"/"!==t.slice(-1)&&(a.log.error(g+": No / at end of uriPrefix "+t),t+="/");const n=new Date;t+=g+"/id"+n.getTime()+"/",h(x,t)},h=function(e,t){const n=(0,a.sym)(e.uri.split("#")[0]),l=s.sym(t+"pad.ttl"),u=s.sym(t+"index.html"),p=[{local:"index.html",contentType:"text/html"}],f=s.sym(l.uri+"#thisPad"),h=[];let m;for(m=0;m<p.length;m++){const e=function(e){h.push(function(){const r=t+e.local;if(!s.fetcher)throw new Error("Store has no fetcher");s.fetcher.webCopy(n+e.local,t+e.local,e.contentType).then(()=>i.authn.checkUser()).then(e=>{y=e,d(r,!1,function(e,t){e?h.shift()():c(e,"FAILED to set ACL "+r+" : "+t)})}).catch(t=>{c(!1,"FAILED to copy "+n+e.local+" : "+t.message)})})};e(p[m])}h.push(function(){if(s.add(f,r.ns.rdf("type"),w("Notepad"),l),s.add(f,r.ns.dc("created"),new Date,l),y&&s.add(f,r.ns.dc("author"),y,l),s.add(f,w("next"),f,l),s.add(f,r.ns.space("inspiration"),e,A),s.add(f,r.ns.space("inspiration"),e,l),!b)throw new Error("Have no updater");b.put(l,s.statementsMatching(void 0,void 0,void 0,l),"text/turtle",function(e,t,n){t?h.shift()():c(t,"FAILED to save new notepad at: "+l.uri+" : "+n)})}),h.push(function(){d(l.uri,!0,function(e,t){c(e,"Failed to set Read-Write ACL on pad data file: "+t),e&&h.shift()()})}),h.push(function(){const e=E.appendChild(o.createElement("p"));e.setAttribute("style","font-size: 140%;"),e.innerHTML="Your <a href='"+u.uri+"'><b>new notepad</b></a> is ready. <br/><br/><a href='"+u.uri+"'>Go to new pad</a>"}),h.shift()()},m=function(t){y=i.authn.currentUser(),i.authn.checkUser().then(e=>{y=e});const a=s.any(e,r.ns.dc("title"))||s.any(e,r.ns.vcard("fn"));n.solo&&"undefined"!=typeof window&&a&&(window.document.title=a.value),L.exists=t,C=r.pad.notepad(o,A,e,y,L),S.appendChild(C);const c=s.any(e,r.ns.meeting("parentMeeting"))||e;if(r.pad.manageParticipation(o,F,A,c,y,L),!s.updater)throw new Error("Store has no updater");s.updater.setRefreshHandler(A,C.reloadAndSync)},g="app-pad.timbl.com",v=s.fetcher,b=s.updater;let y;const w=(0,a.Namespace)("http://www.w3.org/ns/pim/pad#"),x=e,A=e.doc();let C;const E=o.createElement("div"),k=E.appendChild(o.createElement("table"));k.setAttribute("style","background-color: white; min-width: 94%; margin-right:3% margin-left: 3%; min-height: 13em;");const _=k.appendChild(o.createElement("tr"));_.appendChild(o.createElement("td")),_.appendChild(o.createElement("td")),_.appendChild(o.createElement("td"));const S=k.appendChild(o.createElement("tr")).appendChild(o.createElement("td"));S.setAttribute("colspan","3");const T=k.appendChild(o.createElement("tr")),P=T.appendChild(o.createElement("td")),F=T.appendChild(o.createElement("td")),R=T.appendChild(o.createElement("td")),I=k.appendChild(o.createElement("tr")).appendChild(o.createElement("div")),B=k.appendChild(o.createElement("tr")).appendChild(o.createElement("div")),N=k.appendChild(o.createElement("tr"));N.setAttribute("class","naviMenu"),N.appendChild(o.createElement("td")),N.appendChild(o.createElement("td")),N.appendChild(o.createElement("td"));const L={statusArea:I,timingArea:P};return function(){if(!v)throw new Error("Have no fetcher");v.nowOrWhenFetched(A.uri,void 0,function(t,n,i){if(t)l(S),s.holds(e,r.ns.rdf("type"),r.ns.wf("TemplateInstance"))&&p(e,S,"pad"),m(!0),R.appendChild(function(){const t=E.appendChild(o.createElement("button"));return t.textContent="Start another pad",t.addEventListener("click",function(){return p(e,B,"pad")}),t}());else if(404===i.status){if(!b)throw new Error("Have no updater");b.put(A,[],"text/turtle",function(e,t,n){t?(l(S),m(!1)):c(t,"FAILED to create results file at: "+A.uri+" : "+n)})}else c(t,"FAILED to read results file: "+n)})}(),E}};t.default=o},8912(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_1619.svg",name:"playlistSlot",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store;return n.anyStatementMatching(e,r.ns.rdf("type"),n.sym("http://purl.org/ontology/pbo/core#PlaylistSlot"))?"playlist slot":null},render:function(e,t){const n=t.dom;const a=function(e,t){if(!t)return e;const i=n.createElement("a");return i.setAttribute("href",t),i.appendChild(e),i.addEventListener("click",r.widgets.openHrefInOutlineMode,!0),i},o=function(e){return n.createTextNode(e)},s=t.session.store,c=s.any(e,i.sym("http://purl.org/ontology/pbo/core#playlist_item"));let l=s.any(e,i.sym("http://purl.org/ontology/olo/core#index")),u=c.uri;const d=function(e){if(!e)return{html5:!0};const t=e.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-_%]+)/i),n=e.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i),r=e.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i),i=e.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);return t?{youtube:t}:n?{vimeo:n}:r?{dailymotion:r}:i?{vk:i}:void 0}(u),p=n.createElement("div");let f,h;if(d&&d.youtube?(u=u.replace("watch?v=","embed/"),p.setAttribute("class","imageView"),f=n.createElement("IFRAME"),f.setAttribute("src",u),f.setAttribute("width",560),f.setAttribute("height",315),f.setAttribute("frameborder",0),f.setAttribute("style","max-width: 850px; max-height: 100%;"),f.setAttribute("allowfullscreen","true")):(p.setAttribute("class","imageView"),f=n.createElement("IMG"),f.setAttribute("src",c.value),f.setAttribute("width",560),f.setAttribute("height",315),f.setAttribute("style","max-width: 560; max-height: 315;")),l){const t=s.statementsMatching(null,i.sym("http://purl.org/ontology/olo/core#index")),r=[];for(let e=0;e<t.length;e++)t[e]&&r.push(parseInt(t[e].object.value,10));l=parseInt(l.value,10),h=n.createElement("div");const c=r[(r.indexOf(l)-1+r.length)%r.length],u=r[(r.indexOf(l)+1+r.length)%r.length],d=a(o("<<"),e.uri.split("#")[0]+"#"+c);h.appendChild(d);const p=n.createElement("span");p.innerHTML=" Playlist slot : "+l+" ",h.appendChild(p);const f=a(o(">>"),e.uri.split("#")[0]+"#"+u);h.appendChild(f)}const m=n.createElement("TR");return m.appendChild(f),h&&m.appendChild(h),p.appendChild(m),p}}},2371(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerPanes=function(e){e(r.default);const t=r.default.editor;e(t),e(i.default),e(a.default),e(o.default),e(s.default),e(c.default),e(l.default),e(u.default),e(d.default),e(p.default),e(f.default),e(h.default),e(m.longChatPane),e(m.shortChatPane),e(g.schedulePane),e(v.default),e(b.imagePane),e(y.default),e(w.default),e(x.default),e(A.default),e(C.default),e(E.classInstancePane),e(k.slideshowPane),e(_.socialPane),e(S.default),e(T.dataContentPane),e(P.default),e(F.n3Pane),e(R.RDFXMLPane),e(I.formPane),e(B.tableViewPane),e(N.defaultPane),e(L.default),e(O.default),e(j.default),e(D.default)};var r=M(n(2643)),i=M(n(1917)),a=M(n(5682)),o=M(n(6106)),s=M(n(3931)),c=M(n(3955)),l=M(n(8938)),u=M(n(9370)),d=M(n(2368)),p=M(n(8131)),f=M(n(1927)),h=M(n(4036)),m=n(7052),g=n(9814),v=M(n(5130)),b=n(2168),y=M(n(8912)),w=M(n(6778)),x=M(n(6686)),A=M(n(2970)),C=M(n(1838)),E=n(5382),k=n(7978),_=n(7350),S=M(n(6380)),T=n(1424),P=M(n(3385)),F=n(7334),R=n(8236),I=n(5238),B=n(3472),N=n(4064),L=M(n(6682)),O=M(n(6298)),j=M(n(4930)),D=M(n(8426));function M(e){return e&&e.__esModule?e:{default:e}}},9814(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePane=void 0;var r=o(n(500)),i=n(9332),a=o(n(8230));function o(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const s=r.ns,c=[s.sched("No"),s.sched("Maybe"),s.sched("Yes")];t.schedulePane={icon:r.icons.iconBase+"noun_346777.svg",name:"schedule",audience:[s.solid("PowerUser")],label:function(e,t){return t.session.store.findTypeURIs(e)["http://www.w3.org/ns/pim/schedule#SchedulableEvent"]?"Scheduling poll":null},mintClass:s.sched("SchedulableEvent"),mintNew:function(e,t){return new Promise(function(n,o){const s=r.ns,c=e.session.store;let l=t.newBase;const u=t.useExisting||a.sym(t.newBase+"index.ttl#this"),d=function(e,t){e||o(new Error(t))},p=function(e,t,n){const i=a.graph(),o=a.Namespace("http://www.w3.org/ns/auth/acl#");let c=i.sym(t+"#a1");const l=i.sym(t),u=i.sym(e);return i.add(c,r.ns.rdf("type"),o("Authorization"),l),i.add(c,o("accessTo"),u,l),i.add(c,o("agent"),g,l),i.add(c,o("mode"),o("Read"),l),i.add(c,o("mode"),o("Write"),l),i.add(c,o("mode"),o("Control"),l),c=i.sym(t+"#a2"),i.add(c,r.ns.rdf("type"),o("Authorization"),l),i.add(c,o("accessTo"),u,l),i.add(c,o("agentClass"),s.foaf("Agent"),l),i.add(c,o("mode"),o("Read"),l),n&&i.add(c,o("mode"),o("Write"),l),a.serialize(l,i,t,"text/turtle")},f=function(e,t,n){const r=c.any(c.sym(e),c.sym("http://www.iana.org/assignments/link-relations/acl"));if(r){const i=p(e,r.uri,t);return h.webOperation("PUT",r.uri,{data:i,contentType:"text/turtle"}).then(e=>n(!0)).catch(e=>{n(!1,e.message)})}return h.load(e).catch(e=>{n(!1,"Getting headers for ACL: "+e)}).then(()=>{const n=c.any(c.sym(e),c.sym("http://www.iana.org/assignments/link-relations/acl"));if(!n)throw new Error("No Link rel=ACL header for "+e);const r=p(e,n.uri,t);return h.webOperation("PUT",n.uri,{data:r,contentType:"text/turtle"})}).then(e=>n(!0)).catch(e=>{n(!1,e.message)})},h=c.fetcher,m=c.updater;let g=t.me||i.authn.currentUser();if(!g)return void alert("NOT LOGGED IN");const v=u.dir().uri;let b,y;if(t.useExisting){if(y=t.useExisting,l=u.dir().uri,b=y.doc(),t.newBase)throw new Error("mint new scheduler: Illegal - have both new base and existing event")}else b=c.sym(l+"details.ttl"),y=c.sym(b.uri+"#event");const w=c.sym(l+"results.ttl"),x=t.noIndexHTML?{}:[{local:"index.html",contentType:"text/html"}],A=[];for(let e=0;e<x.length;e++){const t=function(e){A.push(function(){const t=l+e.local;c.fetcher.webCopy(v+e.local,l+e.local,e.contentType).then(()=>i.authn.checkUser()).then(e=>{g=e,f(t,!1,function(e,n){e?A.shift()():d(e,"FAILED to set ACL "+t+" : "+n)})}).catch(t=>{d(!1,"FAILED to copy "+v+e.local+" : "+t.message)})})};t(x[e])}A.push(function(){c.add(y,s.rdf("type"),s.sched("SchedulableEvent"),b),g&&(c.add(y,s.dc("author"),g,b),c.add(y,s.foaf("maker"),g,b)),c.add(y,s.dc("created"),new Date,b),c.add(y,s.sched("resultsDocument"),b),m.put(b,c.statementsMatching(void 0,void 0,void 0,b),"text/turtle",function(e,t,n){t?A.shift()():d(t,"FAILED to save new scheduler at: "+b+" : "+n)})}),A.push(function(){c.fetcher.webOperation("PUT",w.uri,{data:"",contentType:"text/turtle"}).then(()=>{A.shift()()}).catch(e=>{d(!1,"Failed to initialize empty results file: "+e.message)})}),A.push(function(){f(w.uri,!0,function(e,t){d(e,"Failed to set Read-Write ACL on results file: "+t),e&&A.shift()()})}),A.push(function(){f(b.uri,!1,function(e,t){d(e,"Failed to set read ACL on configuration file: "+t),e&&A.shift()()})}),A.push(function(){t.newInstance=y,n(t)}),A.shift()()})},render:function(e,t){const n=t.dom,o=t.session.store,s=r.ns,l=e,u="app-when-can-we.w3.org",d=o.fetcher,p=o.updater;let f=!1;const h=e,m=e.doc(),g=m.dir().uri,v=a.sym(g+"results.ttl"),b="https://solidos.github.io/solid-panes/schedule/formsForSchedule.ttl",y=o.sym(b+"#form1"),w=o.sym(b+"#form2"),x=o.sym(b+"#form3");a.parse('@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix cal: <http://www.w3.org/2002/12/cal/ical#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix sched: <http://www.w3.org/ns/pim/schedule#>.\n\n cal:Vevent ui:annotationForm <#form2>, <#form3>; ui:creationForm <#form1> .\n\n<#bigForm>\n dc:title\n "Schedule event (single form).";\n a ui:Group;\n ui:parts ( <#form1> <#form2> <#form3> ).\n\n<#form1>\n dc:title\n "Schedule an event (wizard)";\n a ui:Form;\n ui:parts (\n <#form1header>\n <#eventTitle>\n <#eventLocation>\n <#eventType>\n <#eventSwitch>\n <#eventComment>\n <#eventAuthor> ).\n\n<#form1header> a ui:Heading; ui:contents "Schedule an event" .\n\n<#eventTitle>\n a ui:SingleLineTextField;\n ui:maxLength\n "128";\n ui:property\n cal:summary;\n ui:size\n "40".\n\n<#eventLocation>\n a ui:SingleLineTextField;\n ui:maxLength\n "512";\n ui:property\n cal:location;\n ui:size\n "40".\n\n<#eventType> a ui:BooleanField;\n ui:property sched:allDay;\n ui:default true . # Used to be the only way\n\n<#eventSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm> ].\n\n <#AllDayForm> a ui:IntegerField ;\n ui:property sched:durationInDays;\n ui:label "How many days?";\n ui:min 1;\n ui:default 1 .\n\n <#NotAllDayForm> a ui:IntegerField ;\n ui:property sched:durationInMinutes;\n ui:label "Duration (mins)";\n ui:min 5;\n ui:default 55 .\n\n<#eventComment>\n a ui:MultiLineTextField;\n# ui:maxLength\n# "1048";\n# ui:size\n# "40".\n ui:property\n cal:comment.\n\n<#eventAuthor>\n a ui:Multiple; ui:min 1; ui:part <#eventAuthorGroup>; ui:property dc:author.\n\n <#eventAuthorGroup> a ui:Group; ui:parts ( <#authorName> <#authorEmail> ) .\n <#authorName> a ui:SingleLineTextField; ui:property foaf:name .\n <#authorEmail> a ui:EmailField; ui:label "email"; ui:property foaf:mbox .\n\n\n#####################\n\n<#form2> dc:title "Select possible days or times"; a ui:Form;\n ui:parts ( <#id1118132113134> <#possibleSwitch> ).\n\n <#id1118132113134> a ui:Heading; ui:contents "Time proposals" .\n\n <#possibleSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm2> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm2> ].\n\n <#AllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleDate>; ui:property sched:option.\n <#posssibleDate> a ui:DateField; ui:property cal:dtstart; ui:label "date".\n\n <#NotAllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleTime>; ui:property sched:option.\n <#posssibleTime> a ui:DateTimeField; ui:property cal:dtstart; ui:label "date and time".\n\n ##################################\n\n <#form3> dc:title "Select invited people"; a ui:Form; ui:parts ( <#id1118132113135> <#id1417314641301b> ) .\n<#id1417314641301b>\n a ui:Multiple; ui:min 1; ui:part <#id1417314674292b>; ui:property sched:invitee.\n <#id1417314674292b> a ui:EmailField; ui:label "email"; ui:property foaf:mbox .\n <#id1118132113135> a ui:Heading; ui:contents "Who to invite" .\n\n# ENDS\n',o,b,"text/turtle");const A="background-color: #eef; padding: 0.5em; border: .5em solid white; font-size: 100%",C="width: 1.8em; height: 1.8em;",E=function(e,t){e||D.appendChild(r.widgets.errorMessageBlock(n,t,"pink"))},k=function(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e},_=function(e,t){const n=o.any(t,r.ns.ui("backgroundColor"));n&&e.setAttribute("style","padding: 0.3em; text-align: center; background-color: "+n+";")};let S;i.authn.checkUser().then(e=>{S=e,z&&z.refresh(),e&&f&&(f=!1,R())});const T=function(e){let t=o.any(e,s.space("uriPrefix"));t=t?t.value:e.uri.split("#")[0],"/"!==t.slice(-1)&&(a.log.error(u+": No / at end of uriPrefix "+t),t+="/");const n=new Date;t+=u+"/id"+n.getTime()+"/",P(h,t)},P=function(e,r){const i={thisInstance:e,newBase:r};this.mintNew(t,i).then(function(e){const t=D.appendChild(n.createElement("p"));t.setAttribute("style","font-size: 140%;"),t.innerHTML="Your <a href='"+e.newInstance.uri+"'><b>new scheduler</b></a> is ready to be set up. <br/><br/><a href='"+e.newInstance.uri+"'>Say when you what days work for you.</a>"}).catch(function(e){E(!1,"Error createing new scheduler at "+i.newInstance+": "+e)})},F=function(){d.nowOrWhenFetched(m.uri,void 0,function(e,t){if(!e)return E(e,t);R()})},R=function(){i.authn.checkUser().then(t=>{if(!t)return I();if(!o.updater.editable(m.uri,o)||o.holds(e,s.rdf("type"),s.wf("TemplateInstance")))return void B(D);o.any(e,s.sched("ready"))?O():L()})},I=function(){k(H);const e={div:D,dom:n};r.login.ensureLoggedIn(e).then(e=>{S=e.me,f=!1,R()})},B=function(){const e=k(H);e.appendChild(r.login.newAppInstance(n,{noun:"poll"},T)),e.appendChild(n.createElement("hr"));e.appendChild(n.createElement("p")).textContent="Where would you like to store the data for the poll? Give the URL of the directory where you would like the data stored.";const t=e.appendChild(n.createElement("input"));t.setAttribute("type","text"),t.size=80,t.label="base URL",t.autocomplete="on",e.appendChild(n.createElement("br"));const i=e.appendChild(n.createElement("button"));i.setAttribute("style",A),i.textContent="Start new poll at this URI",i.addEventListener("click",function(e){let n=t.value;"/"!==n.slice(-1)&&(n+="/"),P(h,n)})},N=n.createElement("button"),L=function(){k(W);o.any(e,s.sched("allDay"))||o.add(e,s.sched("allDay"),a.literal("true",void 0,a.sym("http://www.w3.org/2001/XMLSchema#boolean")),m);let t=0,i=!1;const c=function(e){return!!e.querySelector("input, select, textarea, button")},l=function(t){const n=function(e,t){if(!e)return t;const n=(e.value||"").toLowerCase();return"true"===n||"1"===n||"false"!==n&&"0"!==n&&t}(o.any(e,s.sched("allDay")),!0),i=o.sym(b+(n?"#AllDayForm2":"#NotAllDayForm2"));r.widgets.appendForm(document,t,{},e,i,m,E)};{const a=[y,w,x],o=[];t=0;for(let t=0;t<a.length;t++){const i=n.createElement("div");r.widgets.appendForm(document,i,{},e,a[t],m,E),1!==t||c(i)||l(i),o.push(i)}const s=function(){k(H).appendChild(o[t]),0===t?u.setAttribute("disabled",""):u.removeAttribute("disabled"),t===o.length-1?(p.setAttribute("disabled",""),i||(W.appendChild(d),W.appendChild(N),i=!0)):p.removeAttribute("disabled")},u=k($).appendChild(n.createElement("button"));u.setAttribute("style",A),u.textContent="<- go back",u.addEventListener("click",function(e){t>0&&(t-=1,s())},!1);const p=k(V).appendChild(n.createElement("button"));p.setAttribute("style",A),p.textContent="continue ->",p.addEventListener("click",function(e){t<o.length-1&&(t+=1,s())},!1),s()}const u=[];u.push(a.st(e,s.sched("availabilityOptions"),s.sched("YesNoMaybe"),m)),u.push(a.st(e,s.sched("ready"),new Date,m)),u.push(a.st(e,s.sched("results"),v,m)),N.setAttribute("style",A),N.textContent="Go to poll",N.addEventListener("click",function(t){o.any(e,s.sched("ready"))?(O(),V.appendChild(d)):(V.appendChild(d),o.updater.update([],u,function(e,t,n){t?O():E(t,n)}))},!1);const d=n.createElement("button");d.setAttribute("style",A);const p=d.appendChild(n.createElement("img"));p.setAttribute("src",r.icons.iconBase+"noun_480183.svg"),p.setAttribute("style",C),d.addEventListener("click",function(t){const n=o.anyValue(e,s.cal("summary"))||o.anyValue(e,s.dc("title"))||"",r="mailto:"+o.each(e,s.sched("invitee")).map(function(e){const t=o.any(e,s.foaf("mbox"));return t?t.uri.replace("mailto:",""):""}).join(",")+"?subject="+encodeURIComponent(n+"-- When can we meet?")+"&body="+encodeURIComponent(n+"\n\nWhen can you?\n\nSee "+e+"\n");window.location.href=r},!1)};function O(){d.nowOrWhenFetched(v.uri,void 0,(e,t,n)=>{e?(k(H),j()):404===n.status?p.put(v,[],"text/turtle",function(e,t,n){t?(k(H),j()):E(t,"FAILED to create results file at: "+v.uri+" : "+n)}):E(e,"FAILED to read results file: "+t)})}function j(){const t=o.any(l,s.cal("summary")),i=o.any(l,s.cal("comment")),u=o.any(l,s.cal("location")),d=H;t&&(d.appendChild(n.createElement("h3")).textContent=t),u&&(d.appendChild(n.createElement("address")).textContent=u.value),i&&(d.appendChild(n.createElement("p")).textContent=i.value);const p=o.any(l,s.dc("author"));if(p){const e=o.any(p,s.foaf("name"));e&&(d.appendChild(n.createElement("p")).textContent=e)}const f=new a.Query("Responses"),h={};["time","author","value","resp","cell"].forEach(function(e){f.vars.push(h[e]=a.variable(e))}),f.pat.add(l,s.sched("response"),h.resp),f.pat.add(h.resp,s.dc("author"),h.author),f.pat.add(h.resp,s.sched("cell"),h.cell),f.pat.add(h.cell,s.sched("availabilty"),h.value),f.pat.add(h.cell,s.cal("dtstart"),h.time);const m={};m.set_x=o.each(e,s.sched("option")),m.set_x=m.set_x.map(function(e){return o.any(e,s.cal("dtstart"))}).filter(function(e){return!!e}),m.set_y=o.each(e,s.sched("response")),m.set_y=m.set_y.map(function(e){return o.any(e,s.dc("author"))}).filter(function(e){return!!e});const g=o.each(l,s.sched("option")).map(function(e){return o.any(e,s.cal("dtstart"))}).filter(function(e){return!!e}),b=function(){const e=d.appendChild(r.matrix.matrixForQuery(n,f,h.time,h.author,h.value,m,function(){}));e.setAttribute("class","matrix");const t=n.createElement("button");t.setAttribute("style",A);const i=n.createElement("img");i.setAttribute("src",r.icons.iconBase+"noun_479395.svg"),i.setAttribute("style",C),t.appendChild(i),t.addEventListener("click",function(n){t.disabled=!0,o.fetcher.refresh(v,function(n,r){n&&(e.refresh(),t.disabled=!1)})},!1),k(W),W.appendChild(t)},y=[],w={div:W,dom:n};r.login.ensureLoggedIn(w).then(e=>{const t=e.me,i=v;m.set_y=m.set_y.filter(function(e){return!e.sameTerm(t)}),m.set_y.push(t),m.cellFunction=function(e,i,a,l){if(null!==l&&o.fetcher.nowOrWhenFetched(l.uri.split("#")[0],void 0,function(t,n){t&&_(e,l)}),a.sameTerm(t)){const t=function(){_(e,l)},a={},u=s.sched("availabilty");if(!i)return;const d=y[i.toNT()],p=r.widgets.makeSelectForOptions(n,o,d,u,c,a,v,t);e.appendChild(p)}else null!==l&&(e.textContent=r.utils.label(l))};const u=o.each(l,s.sched("response"));let d=null;u.forEach(function(e){o.holds(e,s.dc("author"),t)&&(d=e)});const p=[],f=r.widgets.newThing(i).uri;if(null===d)d=a.sym(f+"_response"),p.push(a.st(l,s.sched("response"),d,i)),p.push(a.st(d,s.dc("author"),t,i));else{o.each(d,s.sched("cell")).forEach(function(e){const t=o.any(e,s.cal("dtstart"));t&&(y[t.toNT()]=e)})}for(let e=0;e<g.length;e++){const t=g[e];if(!t)continue;if(y[t.toNT()])continue;const n=a.sym(f+"_"+e);p.push(a.st(d,s.sched("cell"),n,i)),p.push(a.st(n,s.cal("dtstart"),t,i)),y[t.toNT()]=n}p.length?o.updater.update([],p,function(e,t,n){t?b():E(t,n)}):b()});const x=o.any(e,s.foaf("maker"));if(!x||x.sameTerm(S)){const e=n.createElement("button");e.setAttribute("style",A);const t=n.createElement("img");t.setAttribute("src",r.icons.iconBase+"noun_344563.svg"),t.setAttribute("style",C),e.appendChild(t),e.addEventListener("click",function(e){k(d),L()},!1),k($),$.appendChild(e)}k(V),V.appendChild(function(){const e=r.login.newAppInstance(n,{noun:"scheduler"},T);return e.firstChild.setAttribute("style",A),e}())}const D=n.createElement("div"),M=D.appendChild(n.createElement("table"));M.setAttribute("style","background-color: white; min-width: 40em; min-height: 13em;");const U=M.appendChild(n.createElement("tr"));U.appendChild(n.createElement("td")),U.appendChild(n.createElement("td")),U.appendChild(n.createElement("td"));const z=null,H=M.appendChild(n.createElement("tr")).appendChild(n.createElement("td"));H.setAttribute("colspan","3");const q=M.appendChild(n.createElement("tr"));q.setAttribute("class","naviMenu"),q.setAttribute("style"," text-align: middle; vertical-align: middle; padding-top: 4em; ");const $=q.appendChild(n.createElement("td")),W=q.appendChild(n.createElement("td")),V=q.appendChild(n.createElement("td"));return F(),D}}},6298(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500);const i={icon:r.icons.iconBase+"padlock-timbl.svg",name:"sharing",label:(e,t)=>{const n=t.session.store.findTypeURIs(e);return n[r.ns.ldp("Resource").uri]||n[r.ns.ldp("Container").uri]||n[r.ns.ldp("BasicContainer").uri]?"Sharing":null},render:(e,t)=>{const n=t.dom,i=t.session.store,a=function(){const t=i.findTypeURIs(e);if(t[r.ns.ldp("BasicContainer").uri]||t[r.ns.ldp("Container").uri])return"folder";return"file"}(),o=n.createElement("div");return o.classList.add("sharingPane"),r.aclControl.preventBrowserDropEvents(n),o.appendChild(r.aclControl.ACLControlBox5(e,t,a,i)),o}};t.default=i},7978(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.slideshowPane=void 0;var r,i=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500)),a=(r=n(6305))&&r.__esModule?r:{default:r};const o=i.ns;t.slideshowPane={icon:i.icons.iconBase+"noun_138712.svg",name:"slideshow",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store,r=i.ns,a=n.findTypeURIs(e);if(a[r.ldp("Container").uri]||a[r.ldp("BasicContainer").uri]){const t=n.each(e,r.ldp("contains"));let a=0;return t.forEach(function(e){i.widgets.isImage(e)&&a++}),a>0?"Slideshow":null}return null},render:function(e,t){const n=t.dom;i.widgets.addStyleSheet(n,"https://leemark.github.io/better-simple-slideshow/css/simple-slideshow-styles.css");const r=t.session.store,o=i.ns,s=n.createElement("div");s.setAttribute("class","bss-slides");const c=r.findTypeURIs(e);let l;(c[o.ldp("BasicContainer").uri]||c[o.ldp("Container").uri])&&(l=o.ldp("contains"));const u=r.each(e,l);u.sort();for(let e=0;e<u.length;e++){if(!i.widgets.isImage(u[e]))continue;const t=s.appendChild(n.createElement("figure")),a=t.appendChild(n.createElement("img"));r.fetcher._fetch(u[e].uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);a.setAttribute("src",t)}),a.setAttribute("width","100%"),t.appendChild(n.createElement("figcaption"))}const d={dom:n};return setTimeout(function(){(0,a.default)(".bss-slides",d)},1e3),s}}},7350(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.socialPane=void 0;var r=o(n(500)),i=n(9332),a=o(n(8230));function o(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}t.socialPane={icon:r.icons.originalIconBase+"foaf/foafTiny.gif",name:"social",label:function(e,t){const n=t.session.store.findTypeURIs(e);return n[r.ns.foaf("Person").uri]||n[r.ns.vcard("Individual").uri]?"Friends":null},render:function(e,t){const n=t.dom,o=function(e){const t=n.createElement("p");t.textContent=e,x.appendChild(t)},s=function(e,t){if(!t)return e;const r=n.createElement("a");return r.setAttribute("href",t),r.appendChild(e),r},c=function(e){return n.createTextNode(e)},l=t.getOutliner(n),u=t.session.store,d=n.createElement("div");d.setAttribute("class","socialPane");const p=r.ns.foaf,f=r.ns.vcard,h="background-color: #eee; width: 25%; border: 0; padding: 0.5em; margin: 0;",m=d.appendChild(n.createElement("table")).appendChild(n.createElement("tr")),g=m.appendChild(n.createElement("td")),v=m.appendChild(n.createElement("td")),b=m.appendChild(n.createElement("td")),y=g;y.style.cssText=h;const w=v.appendChild(n.createElement("table"));w.style.cssText="background-color: #fff; color: #000; width: 46%; margin: 0; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; padding: 0;";const x=b;x.style.cssText=h;const A=u.any(e,p("img"))||u.any(e,p("depiction"));if(A){const e=n.createElement("IMG");e.setAttribute("src",A.uri),e.style.cssText=" width: 100% ; border: none; margin: 0; padding: 0;",y.appendChild(e)}const C=u.anyValue(e,p("name"))||"???";let E=n.createElement("H3");E.appendChild(n.createTextNode(C));let k=i.authn.currentUser();const _=k?k.uri:null,S=r.login.loginStatusBox(n,e=>{k=u.sym(e),r.widgets.refreshTree(d)});x.appendChild(S);const T=k&&u.sameThings(k,e),P=p("knows"),F=u.anyValue(e,p("givenname"))||u.anyValue(e,p("firstName"))||u.anyValue(e,p("nick"))||u.anyValue(e,p("name"))||u.anyValue(e,f("fn")),R=u.each(e,P);let I,B,N=null,L=!1;if(k){const t=u.each(void 0,p("primaryTopic"),k);let i="";for(let e=0;e<t.length;e++)if(u.whether(t[e],r.ns.rdf("type"),p("PersonalProfileDocument"))){if(L=l.UserInput.sparqler.editable(t[e].uri,u),L){N=t[e];break}i+="Your profile <"+r.utils.escapeForXML(t[e].uri)+"> is not remotely editable."}if(N?(o("Editing your profile "+N+"."),L=l.UserInput.sparqler.editable(N.uri,u)):o(i+"\nI couldn't find your editable personal profile document."),T);else{E=n.createElement("h3"),E.appendChild(n.createTextNode("You and "+F)),y.appendChild(E);const t=u.canon(k);I=u.whether(e,P,t),B=!1;const i=u.statementsMatching(t,P,e);i.length&&(B=!0,N||(N=i[0].why));const o=n.createElement("tr");y.appendChild(o);const d=function(){o.appendChild(s(c("You"),_)),o.appendChild(c(" and ")),o.appendChild(s(c(F),e.uri))};if(I?B?(d(),o.appendChild(c(" say you know each other."))):(o.appendChild(s(c(F),e.uri)),o.appendChild(c(" knows ")),o.appendChild(s(c("you"),_)),o.appendChild(c(" (unconfirmed).")),o.appendChild(c(" confirm you know ")),o.appendChild(s(c(F),e.uri)),o.appendChild(c("."))):B?(o.appendChild(s(c("You"),_)),o.appendChild(c(" know ")),o.appendChild(s(c(F),e.uri)),o.appendChild(c(" (unconfirmed)"))):(d(),o.appendChild(c(" have not said you know each other."))),L){const t=function(e,t,i){const a=n.createElement("form"),o=n.createElement("input");a.appendChild(o);const s=n.createTextNode(e);return s.className="question",a.appendChild(s),o.setAttribute("type","checkbox"),o.checked=i,o.addEventListener("click",function(e){if(s.className="pendingedit",this.checked)try{l.UserInput.sparqler.insert_statement(t,function(e,n,i){if(s.className="question",!n)return r.log.alert(null,"Message","Error occurs while inserting "+t+"\n\n"+i),void(o.checked=!1);u.add(t.subject,t.predicate,t.object,t.why)})}catch(e){r.log.error("Data write fails:"+e),r.log.alert("Data write fails:"+e),o.checked=!1,s.className="question"}else try{l.UserInput.sparqler.delete_statement(t,function(e,n,i){s.className="question",n?u.removeMany(t.subject,t.predicate,t.object,t.why):(r.log.alert("Error occurs while deleting "+t+"\n\n"+i),this.checked=!0)})}catch(e){r.log.alert("Delete fails:"+e),this.checked=!0}},!1),a}("You know "+F,new a.Statement(k,P,e,N),B);y.appendChild(t)}if(R){const e=u.each(k,p("knows"));if(e.length){const t=function(e,t){const n=[];for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)if(t[i].sameTerm(e[r])){n.push(t[i]);break}return n}(R,e),i=n.createElement("tr");if(y.appendChild(i),i.appendChild(n.createTextNode("You"+(F?" and "+F:"")+" know"+function(e){let t=" ";return t+=e||"no",1===e?t+" person":t+" people"}(t.length)+" found in common")),t)for(let e=0;e<t.length;e++)i.appendChild(n.createTextNode(", "+r.utils.label(t[e])))}const t=n.createElement("tr");y.appendChild(t)}}}r.widgets.attachmentList(n,e,w,{doc:N,modify:!!L,predicate:p("knows"),noun:"friend"}),E=n.createElement("h3"),E.appendChild(n.createTextNode("Basic Information")),y.appendChild(E);const O=[r.ns.foaf("homepage"),r.ns.foaf("weblog"),r.ns.foaf("workplaceHomepage"),r.ns.foaf("schoolHomepage")];for(let t=0;t<O.length;t++){const i=O[t],a=u.statementsMatching(e,i);if(0===a.length);else{const e=[];for(let t=0;t<a.length;t++){const n=a[t];n.object.uri&&e.push(n.object.uri)}e.sort();let t,o="";for(let a=0;a<e.length;a++){const s=e[a];if(s===o)continue;o=s;let c="";if(t=r.utils.label(i),e.length>1){const e=s.indexOf("//");if(e>0){let t=s.indexOf("/",e+2);const n=s.lastIndexOf(".",t);n>0&&(t=n),c=s.slice(e+2,t)}}c&&(t=c+" "+t);const l=n.createTextNode(t),u=n.createElement("a");u.appendChild(l),u.setAttribute("href",s);const d=n.createElement("div");d.style.cssText="width: 80%; background-color: #fff; border: solid 0.05em #ccc; margin-top: 0.1em; margin-bottom: 0.1em; padding: 0.1em; text-align: center;",d.appendChild(u),y.appendChild(d)}}}const j=[r.ns.foaf("openid"),r.ns.foaf("nick")];for(let t=0;t<j.length;t++){const n=j[t],r=u.statementsMatching(e,n);0===r.length||l.appendPropertyTRs(y,r,!1,function(e){return!0})}return d}}},4036(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500);const i={icon:r.icons.iconBase+"noun_688606.svg",name:"tabbed",audience:[r.ns.solid("PowerUser")],label:(e,t)=>{const n=t.session.store.findTypeURIs(e);return r.ns.meeting("Cluster").uri in n?"Tabbed":null},render:(e,t)=>{const n=t.dom,i=t.session.store,a=n.createElement("div");return(async()=>{if(!i.fetcher)throw new Error("Store has no fetcher");await i.fetcher.load(e),a.appendChild(r.tabs.tabWidget({dom:n,subject:e,predicate:i.any(e,r.ns.meeting("predicate"))||r.ns.meeting("toolList"),ordered:!0,orientation:i.anyValue(e,r.ns.meeting("orientation"))||"0",renderMain:(e,n)=>{e.innerHTML="";const r=e.appendChild(t.dom.createElement("table"));t.getOutliner(t.dom).GotoSubject(n,!0,null,!1,void 0,r)},renderTab:(n,a)=>{const o=i.the(e,r.ns.meeting("predicate"));n.appendChild(r.widgets.personTR(t.dom,o,a,{}))},backgroundColor:i.anyValue(e,r.ns.ui("backgroundColor"))||"#ddddcc"}))})(),a}};t.default=i},3472(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableViewPane=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));t.tableViewPane={icon:r.icons.originalIconBase+"table.png",name:"tableOfClass",label:function(e,t){const n=t.session.store;if(!n.any(void 0,r.ns.rdf("type"),e))return null;const i=n.statementsMatching(void 0,r.ns.rdf("type"),e).length;return 0===i||i>15?null:r.utils.label(e)+" table"},render:function(e,t){const n=t.dom,i=n.createElement("div");return i.setAttribute("class","tablePane"),i.appendChild(r.table(n,{tableClass:e})),i}}},2368(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_106746.svg",name:"transaction",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store,i=n.findTypeURIs(e);return i["http://www.w3.org/2000/10/swap/pim/qif#Transaction"]?"$$":n.any(e,r.ns.qu("amount"))?"$$$":i["http://www.w3.org/ns/pim/trip#Trip"]?"Trip $":null},render:function(e,t){const n=t.dom,a=t.session.store,s=a.fetcher,c=i.Namespace("http://www.w3.org/2000/10/swap/pim/qif#"),l=i.Namespace("http://www.w3.org/ns/pim/trip#"),u=n.createElement("div");u.setAttribute("class","transactionPane");const d=function(e){return function(e,t){void 0===t&&(t="color: grey");const r=n.createElement("pre");r.setAttribute("style",t),u.appendChild(r),r.appendChild(n.createTextNode(e))}(e,"color: #100; background-color: #fee")},p=a.statementsMatching(e),f=a.statementsMatching(void 0,void 0,e),h=a.findTypeURIs(e),m={},g=function(e){m[e.uri]=!0},v=function(e){if(void 0===e)return"";const t=""+e;return t.indexOf(".")>=0?t.split(".")[0]+"."+(t.split(".")[1]+"00").slice(0,2):t+".00"},b=function(e,t){const r=n.createElement("td");return 0+e===0&&t||(r.textContent=v(e)),r.setAttribute("style","width: 6em; text-align: right; "),r},y=function(e){const t=n.createElement("th");return t.textContent=e,t.setAttribute("style","text-align: right; "),t},w=function(e,t){const n=a.any(e,o.qu("date")),r=a.any(t,o.qu("date"));if(void 0!==n&&void 0!==r){if(n.value<r.value)return-1;if(n.value>r.value)return 1}return e.uri<t.uri?-1:e.uri>t.uri?1:0},x=function(e,n,r,i,a){n.expanded?(n.parentNode.removeChild(n.expanded),n.expanded=!1):function(e,n,r,i,a){const o=n.parentNode.children;if(a)for(let e=o.length-1;e>=0;e--)o[e].expanded&&(o[e].parentNode.removeChild(o[e].expanded),o[e].expanded=!1);const s=e.createElement("tr"),c=s.appendChild(e.createElement("td"));c.setAttribute("style","width: 98%; padding: 1em; border: 0.1em solid grey;");const l=n.children.length;n.nextSibling?n.parentNode.insertBefore(s,n.nextSibling):n.parentNode.appendChild(s),n.expanded=s,c.setAttribute("colspan",""+l),c.appendChild(function(e,t,n){const r=e.session.paneRegistry.byName(n).render(t,e);return r.setAttribute("style","border: 0.1em solid green;"),r}(t,r,i))}(e,n,r,i,a)};if(h["http://www.w3.org/2000/10/swap/pim/qif#Transaction"]||a.any(e,o.qu("toAccount"))){g(o.rdf("type"));const h=a.any(e,r.ns.qu("toAccount"));!function(e){let t="padding: 0.5em 1.5em 1em 1.5em; ";if(e){const n=a.any(e,r.ns.ui("backgroundColor"));n&&(t+="background-color: "+n.value+"; ")}u.setAttribute("style",t)}(h),h||d("(Error: There is no bank account known for this transaction <"+e.uri+">,\n -- every transaction needs one.)");let v=null;const b=a.any(e,r.ns.qu("accordingTo"));void 0===b?d("(Error: There is no back link to the original data source foir this transaction <"+e.uri+">,\nso I can't tell how to annotate it.)"):(v=void 0!==b?a.any(b,r.ns.qu("annotationStore")):null,void 0===v&&d("(There is no annotation document for this statement\n<"+b.uri+">,\nso you cannot classify this transaction.)"));const y=n.createElement("div");y.setAttribute("style","float:right"),u.appendChild(y);const w=function(t,i){g(t);const o=a.any(e,t);if(!o)return;const s=n.createElement("a");s.setAttribute("href",o.uri),s.setAttribute("style","float:right"),y.appendChild(s).textContent=i||r.utils.label(o),y.appendChild(n.createElement("br"))};w(r.ns.qu("toAccount")),w(r.ns.qu("accordingTo"),"Statement"),w(l("trip"));const x=n.createElement("table");u.appendChild(x);const A=["date","payee","amount","in_USD","currency"].map(c).map(function(t){g(t);const n=a.any(e,t),i=n?r.utils.labelForXML(n):"";return'<tr><td style="text-align: right; padding-right: 0.6em">'+r.utils.labelForXML(t)+'</td><td style="font-weight: bold;">'+i+"</td></tr>"}).join("\n");x.innerHTML=A;const C=function(e,t){e||d("Sorry, failed to save your change:\n"+t)};v&&a.fetcher.nowOrWhenFetched(v.uri,e,function(c,h){c||d("Cannot load store "+v+" "+h);const b=a.any(v,o.qu("calendarYear")),y=function(){u.insertBefore(r.widgets.makeSelectForNestedCategory(n,a,e,r.ns.qu("Classified"),v,C),x.nextSibling)};a.any(void 0,o.rdfs("subClassOf"),o.qu.Classified)?y():b&&s.load(b).then(function(e){s.load(a.each(b,o.rdfs("seeAlso"))).then(function(){y()}).catch(function(e){})}).catch(function(e){}),u.appendChild(r.widgets.makeDescription(n,a,e,r.ns.rdfs("comment"),v,C));let w=a.statementsMatching(void 0,l("trip"),void 0,v).map(function(e){return e.object});const A=a.each(void 0,r.ns.rdf("type"),l("Trip"));w=w.concat(A).sort();w=function(e,t,n,r){const i=t.map(function(t){let r=e.any(t,n);return r=r?r.value:"9999-12-31",[r,t]});return i.sort(),r&&i.reverse(),i.map(function(e){return e[1]})}(a,w,r.ns.cal("dtstart"),!0),w.length>1&&u.appendChild(r.widgets.makeSelectForOptions(n,a,e,l("trip"),w,{multiple:!1,nullLabel:"-- what trip? --",mint:"New Trip *",mintClass:l("Trip"),mintStatementsFun:function(e){const t=[];return t.push(i.st(e,r.ns.rdf("type"),l("Trip"),e.doc())),t}},v,C)),u.appendChild(n.createElement("br"));const E=t.getOutliner(n);g(o.rdfs("comment")),r.widgets.attachmentList(n,e,u),g(o.wf("attachment")),u.appendChild(n.createElement("tr")).setAttribute("style","height: 1em"),E.appendPropertyTRs(u,p,!1,function(e,t){return!(e.uri in m)}),E.appendPropertyTRs(u,f,!0,function(e,t){return!(e.uri in m)})})}else if(h["http://www.w3.org/ns/pim/trip#Trip"]){const t=function(){const t={},i={},s={},c=a.each(void 0,l("trip"),e),p=c.map(function(e){return e.doc()});a.fetcher.load(p).then(function(){c.forEach(function(e){const n=a.the(e,o.qu("date")),c=n?(""+n.value).slice(0,4):"????";let l=a.the(e,o.rdf("type"));if(l||(l=r.ns.qu("ErrorNoType")),l&&l.uri){const n=l.uri;i[c]||(i[c]=0),s[c]||(s[c]={}),t[n]||(t[n]=0),s[c][n]||(s[c][n]=0);const o=a.any(e,r.ns.qu("in_USD"));if(o||d("@@ No amount in USD: "+o+" for "+e),o){const e=parseFloat(o.value);t[n]+=e,s[c][n]+=e,i[c]+=e}}});const l=[];let p=0;const f=[];let h;for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&f.push(e);f.sort();const m=f.length;let g;const A=u.appendChild(n.createElement("table"));if(A.setAttribute("style","font-size: 120%; margin-left:auto; margin-right:1em; margin-top: 1em; border: 0.05em solid gray; padding: 1em;"),m>1){const e=A.appendChild(n.createElement("tr"));for(e.appendChild(y("")),h=0;h<m;h++)e.appendChild(y(f[h]));e.appendChild(y("total"))}for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(l.push(e),p+=t[e]);let C,E,k;l.sort();for(let e=0;e<l.length;e++){const i=a.sym(l[e]);if(C=A.appendChild(n.createElement("tr")),E=C.appendChild(n.createElement("td")),E.textContent=r.utils.label(i),m>1)for(h=0;h<m;h++)k=s[f[h]][l[e]],g=C.appendChild(b(k,!0));C.appendChild(b(t[l[e]],!0))}if(l.length>1){if(C=A.appendChild(n.createElement("tr")),C.appendChild(y("total")),m>1)for(h=0;h<m;h++)k=i[f[h]],g=C.appendChild(b(k?v(k):""));g=C.appendChild(b(p)),g.setAttribute("style","font-weight: bold; text-align: right;")}const _=function(e,t,n){const i=e.createElement("table");i.setAttribute("style","padding-left: 0.5em; padding-right: 0.5em; font-size: 9pt; width: 85%;");const s=function(e,t){const n=e.createElement("tr"),i=a.any(t,o.qu("toAccount"));!function(e,t){let n="'padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.1em;";if(t){const e=a.any(t,r.ns.ui("backgroundColor"));e&&(n+="background-color: "+e.value+"; ")}e.setAttribute("style",n)}(n,i);const s=n.appendChild(e.createElement("td")),c=a.any(t,o.qu("date"));s.textContent=c?c.value.slice(0,10):"???",s.setAttribute("style","width: 7em;");const l=n.appendChild(e.createElement("td"));l.setAttribute("style","width: 36em;");const u=a.any(t,o.qu("payee"));l.textContent=u?u.value:"???";const d=l.appendChild(e.createElement("a"));d.textContent=" ➜",d.setAttribute("href",t.uri);const p=n.appendChild(e.createElement("td")),f=a.any(t,o.qu("in_USD"));return p.textContent=f?v(f.value):"???",p.setAttribute("style","width: 6em; text-align: right; "),n.addEventListener("click",function(r){x(e,n,t,"transaction",!r.shiftKey)},!1),n},c=n?t.filter(n):t.slice();c.sort(w);for(let t=0;t<c.length;t++)i.appendChild(s(e,c[t]));return i}(n,c);_.setAttribute("style","margin-left:auto; margin-right:1em; margin-top: 1em; border: padding: 1em;"),u.appendChild(_),r.widgets.attachmentList(n,e,u)}).catch(function(e){d("Error loading transactions: "+e)})};t()}return u}}},8131(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));const i=r.ns;t.default={icon:r.icons.iconBase+"noun_142708.svg",name:"period",audience:[i.solid("PowerUser")],label:function(e,t){return t.session.store.findTypeURIs(e)["http://www.w3.org/2000/10/swap/pim/qif#Period"]?"period":null},render:function(e,t){const n=t.dom,i=t.session.store,a=r.ns,o=n.createElement("div");o.setAttribute("class","periodPane");const s=function(e,t){t||(t="color: grey;");const r=n.createElement("pre");r.setAttribute("style",t),o.appendChild(r),r.appendChild(n.createTextNode(e))},c=function(e){return s("✓ "+e,"color: #010; background-color: #efe")},l=function(e){return s(e,"color: #100; background-color: #fee")},u=function(){const s=i.any(e,a.cal("dtstart"));void 0===s&&l("(Error: There is no start date known for this period <"+e.uri+">,\n -- every period needs one.)");const u=i.any(e,a.cal("dtend"));void 0===u&&l("(Error: There is no end date known for this period <"+e.uri+">,\n -- every period needs one.)");const d={};var p;p=a.rdf("type"),d[p.uri]=!0;const f=function(e){return!!((t=i.any(e,a.qu("date")))&&t>=s&&t<u);var t},h=function(e,t){const n=i.any(e,a.qu("date")),r=i.any(t,a.qu("date"));if(void 0!==n&&void 0!==r){if(n.value<r.value)return-1;if(n.value>r.value)return 1}return e.uri<t.uri?-1:e.uri>t.uri?1:0};o.appendChild(n.createElement("h2")).textContent="Period "+s.value.slice(0,10)+" - "+u.value.slice(0,10);const m=function(e,n,r,i,a){n.expanded?(n.parentNode.removeChild(n.expanded),n.expanded=!1):function(e,n,r,i,a){const o=n.parentNode.children;if(a)for(let e=o.length-1;e>=0;e--)o[e].expanded&&(o[e].parentNode.removeChild(o[e].expanded),o[e].expanded=!1);const s=e.createElement("tr"),c=s.appendChild(e.createElement("td"));c.setAttribute("style","width: 98%; padding: 1em; border: 0.1em solid grey;");const l=n.children.length;n.nextSibling?n.parentNode.insertBefore(s,n.nextSibling):n.parentNode.appendChild(s),n.expanded=s,c.setAttribute("colspan",""+l),c.appendChild(function(e,t,n){const r=e.session.paneRegistry.byName(n).render(t,e);return r.setAttribute("style","border: 0.1em solid green;"),r}(t,r,i))}(e,n,r,i,a)},g=function(e,t){const n=e.createElement("table");n.setAttribute("style","margin-left: 100; font-size: 9pt; width: 85%;");const o=function(e,t){const n=e.createElement("tr"),o=i.any(t,a.qu("toAccount"));!function(e,t){let n="margin-left: 8em; padding-left: 5em;";if(t){const e=i.any(t,r.ns.ui("backgroundColor"));e&&(n+="background-color: "+e.value+"; ")}e.setAttribute("style",n)}(n,o);const s=n.appendChild(e.createElement("td")),c=i.any(t,a.qu("date"));s.textContent=c?c.value.slice(0,10):"???",s.setAttribute("style","width: 7em;");const l=n.appendChild(e.createElement("td"));l.setAttribute("style","width: 36em;");const u=i.any(t,a.qu("payee"));l.textContent=u?u.value:"???";const d=l.appendChild(e.createElement("a"));d.textContent=" ➜",d.setAttribute("href",t.uri);const p=n.appendChild(e.createElement("td")),f=i.any(t,a.qu("in_USD"));return p.textContent=f?function(e){const t=""+e;return t.indexOf(".")>=0?t.split(".")[0]+"."+(t.split(".")[1]+"00").slice(0,2):t+".00"}(f.value):"???",p.setAttribute("style","width: 6em; text-align: right; "),n.addEventListener("click",function(r){m(e,n,t,"transaction",!r.shiftKey)},!1),n},s=t.filter(f);s.sort(h);for(let t=0;t<s.length;t++)n.appendChild(o(e,s[t]));return n},v={"http://www.w3.org/2000/10/swap/pim/qif#Transaction":!0,"http://www.w3.org/2000/10/swap/pim/qif#Unclassified":!0,"http://www.w3.org/2000/10/swap/pim/qif#UnclassifiedOutgoing":!0,"http://www.w3.org/2000/10/swap/pim/qif#UnclassifiedIncome":!0},b=i.findMemberURIs(a.qu("Transaction")),y=[],w=[];let x,A,C,E;for(const e in b)if(Object.prototype.hasOwnProperty.call(b,e)){A=i.sym(e);const t=i.each(A,a.rdf("type"));let n=!1;for(let e=0;e<t.length;e++){void 0===v[t[e].uri]&&(n=!0)}n||(x=i.any(A,a.qu("in_USD")),void 0===x&&(x=i.any(A,a.qu("amount"))),x&&(""+x.value).indexOf("-")>=0?w.push(i.sym(e)):y.push(i.sym(e)))}y.length?(C=g(n,y),E=C.children.length,o.appendChild(n.createElement("h3")).textContent="Unclassified Income"+(E<4?"":" ("+E+")"),o.appendChild(C)):c("No unclassified income"),w.length?(C=g(n,w),E=C.children.length,o.appendChild(n.createElement("h3")).textContent="Unclassified Outgoings"+(E<4?"":" ("+E+")"),o.appendChild(C)):c("No unclassified outgoings ");const k=function(e,t){const s=function(e){const t=i.findSubClassesNT(a.qu("Transaction"));for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&n.slice(1,-1).split("#")[1]===e)return i.sym(n.slice(1,-1));return null}(e);let c;const u=[];let d=0;if(!s)return l("Error: No category correspnding to "+e),null;const p=i.each(void 0,a.rdf("type"),s);for(let e=0;e<p.length;e++)i.any(p[e],t)||u.push(p[e]);return u.length&&(c=g(n,u),d=c.children.length,o.appendChild(n.createElement("h3")).textContent=r.utils.label(s)+" with no "+r.utils.label(t)+(d<4?"":" ("+d+")"),o.appendChild(c)),d};0===k("Reimbursables",a.trip("trip"))&&c("Reimbursables all have trips"),0===k("Other_Inc_Speaking",a.trip("trip"))&&c("Speaking income all has trips")};if(i.findTypeURIs(e)["http://www.w3.org/2000/10/swap/pim/qif#Period"]){const t=i.each(e,a.rdfs("seeAlso"));i.fetcher.load(t).then(function(){u()})}return o}}},5130(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_62007.svg",name:"travel expenses",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store,i=n.findTypeURIs(e);return r.ns.qu("Transaction")in n.findSuperClassesNT(e)?"by Trip":i["http://www.w3.org/ns/pim/trip#Trip"]?"Trip $":null},render:function(e,t){const n=t.dom,a=t.store,o=r.ns,s=i.Namespace("http://www.w3.org/2002/12/cal/ical#"),c=i.Namespace("http://www.w3.org/ns/pim/trip#"),l=n.createElement("div");l.setAttribute("class","transactionPane"),l.innerHTML="<h2>Trip transactions</h2>";const u=function(e,t){void 0===t&&(t="color: grey");const r=n.createElement("pre");r.setAttribute("style",t),l.appendChild(r),r.appendChild(n.createTextNode(e))},d=a.findTypeURIs(e),p=function(e,t){const s=new i.Query(r.utils.label(e)),l={};["date","transaction","comment","type","in_USD"].forEach(function(e){s.vars.push(l[e]=i.variable(e))}),s.pat.add(l.transaction,c("trip"),e);const d=a.formula();d.add(l.transaction,o.rdf("type"),l.type),s.pat.optional.push(d),s.pat.add(l.transaction,r.ns.qu("date"),l.date),d.add(l.transaction,o.rdfs("comment"),l.comment),s.pat.optional.push(d),s.pat.add(l.transaction,r.ns.qu("in_USD"),l.in_USD);const p=r.table(n,{query:s,onDone:function(){const t={},n=a.each(void 0,c("trip"),e);n.forEach(function(e){let n=a.the(e,o.rdf("type"));if(n||(n=r.ns.qu("ErrorNoType")),n&&n.uri){const i=n.uri;t[i]||(t[i]=0);const o=a.any(e,r.ns.qu("in_USD"));o||u(" @@ No amount in USD: "+o+" for "+e),o&&(t[i]=t[i]+parseFloat(o.value))}});let i="",s=0,l=0;for(const e in t)i+=r.utils.label(a.sym(e))+": "+t[e]+"; ",s++,l+=t[e];u("Totals of "+n.length+" transactions: "+i,""),s>1&&u("Overall net: "+l,"text-treatment: bold;")}});t.appendChild(p)};if(r.ns.qu("Transaction")in a.findSuperClassesNT(e)){const t=a.each(void 0,o.rdf("type"),e),n=[],i=[];for(let e=0;e<t.length;e++){const o=t[e],s=a.any(o,c("trip"));if(s){o in i||(i[s]={total:0,transactions:[]});const e=a.any(o,r.ns.qu("in_USD"));e&&(i[s].total+=e);const t=a.any(o,r.ns.qu("date"));i[s.toNT()].transactions.push([t,o])}else n.push(o)}const u=[];for(const e in i){const t=a.fromNT(e);u.push([a.any(t,s("dtstart")),t])}u.sort();for(let e=0;e<u.length;e++){p(u[e][1],l)}}else d["http://www.w3.org/ns/pim/trip#Trip"]&&p(e,l);return l}}},5438(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createApplicationTable=function e(t){const n=c("table",{class:"results"}),r=l("tr",[u("th","Application URL"),u("th","Access modes"),u("th","Actions")]);return n.appendChild(r),a.store.each(t,i.ns.acl("trustedApp"),void 0,void 0).flatMap(e=>a.store.each(e,i.ns.acl("origin"),void 0,void 0).map(t=>({appModes:a.store.each(e,i.ns.acl("mode"),void 0,void 0),origin:t}))).sort((e,t)=>e.origin.value<t.origin.value?-1:1).forEach(({appModes:e,origin:r})=>n.appendChild(s(t,r,e,o))),n.appendChild(s(t,null,[i.ns.acl("Read")],o)),n;function o(){n.parentElement.replaceChild(e(t),n)}},t.createContainer=l,t.createText=u;var r=n(8230),i=n(500),a=n(9332),o=n(8847);function s(e,t,n,s){const p={origin:t,appModes:n,formElements:{modes:[],origin:void 0}};return l("tr",[l("td",[l("form",[c("input",{class:"textinput",placeholder:"Write new URL here",value:t?t.value:""},{},e=>{p.formElements.origin=e})],{},{submit:f})]),l("td",[l("form",d(p),{},{submit:f})]),l("td",[l("form",t?[u("button","Update",{class:"controlButton",style:"background: LightGreen;"}),u("button","Delete",{class:"controlButton",style:"background: LightCoral;"},{click:function(t){let n;t.preventDefault();try{n=(0,r.sym)(p.formElements.origin.value)}catch(e){return alert("Please provide an application URL you want to remove trust from")}const s=(0,o.getStatementsToDelete)(n,e,a.store,i.ns);if(!a.store.updater)throw new Error("Store has no updater");a.store.updater.update(s,[],h)}})]:[u("button","Add",{class:"controlButton",style:"background: LightGreen;"})],{},{submit:f})])]);function f(t){let n;t.preventDefault();try{n=(0,r.sym)(p.formElements.origin.value)}catch(e){return alert("Please provide an application URL you want to trust")}const s=p.formElements.modes.filter(e=>e.checked).map(e=>e.value),c=(0,o.getStatementsToDelete)(p.origin||n,e,a.store,i.ns),l=(0,o.getStatementsToAdd)(n,(0,o.generateRandomString)(),s,e,i.ns);if(!a.store.updater)throw new Error("Store has no updater");a.store.updater.update(c,l,h)}function h(e,t,n){if(t)return s()}}function c(e,t={},n={},r=null){const i=document.createElement(e);return r&&r(i),Object.keys(t).forEach(e=>{i.setAttribute(e,t[e])}),Object.keys(n).forEach(e=>{i.addEventListener(e,n[e])}),i}function l(e,t,n={},r={},i=null){const a=c(e,n,r,i);return t.forEach(e=>a.appendChild(e)),a}function u(e,t,n={},r={},i=null){const a=c(e,n,r,i);return a.textContent=t,a}function d({appModes:e,formElements:t}){return["Read","Write","Append","Control"].map(n=>l("label",[c("input",{type:"checkbox",...e.some(e=>e.value===i.ns.acl(n).value)?{checked:""}:{},value:i.ns.acl(n).uri},{},e=>t.modes.push(e)),u("span",n)]))}},8847(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRandomString=function(){return Math.random().toString(36).substr(2,5)},t.getStatementsToAdd=function(e,t,n,i,a){const o=new r.BlankNode(`bn_${t}`);return[(0,r.st)(i,a.acl("trustedApp"),o,i.doc()),(0,r.st)(o,a.acl("origin"),e,i.doc()),...n.map(e=>(0,r.sym)(e)).map(e=>(0,r.st)(o,a.acl("mode"),e,i.doc()))]},t.getStatementsToDelete=function(e,t,n,r){const i=n.statementsMatching(null,r.acl("origin"),e);return i.reduce((e,i)=>e.concat(n.statementsMatching(t,r.acl("trustedApp"),i.subject)).concat(n.statementsMatching(i.subject)),[])};var r=n(8230)},1917(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500),i=n(9332),a=n(5438);const o={global:!0,icon:`${r.icons.iconBase}noun_15177.svg`,name:"trustedApplications",label:()=>null,render:(e,t)=>{const n=t.dom,o=n.createElement("div");o.classList.add("trusted-applications-pane"),o.setAttribute("style","border: 0.3em solid #418d99; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;");const s=o.appendChild(n.createElement("table")),c=s.appendChild(n.createElement("tr")),l=s.appendChild(n.createElement("tr")).appendChild(n.createElement("div"));return l.setAttribute("style","padding: 0.7em;"),async function(e,t,n){const o=await r.login.ensureLoadedProfile({dom:e,div:t,statusArea:n,me:null}),s=o.me,c=s.doc();if(!i.store.updater)throw new Error("Store has no updater");const l=i.store.updater.editable(c.uri,i.store);if(t.appendChild((0,a.createText)("h3","Manage your trusted applications")),!l)return void t.appendChild(r.widgets.errorMessageBlock(e,`Your profile ${s.doc().uri} is not editable, so we cannot do much here.`));t.appendChild((0,a.createText)("p","Here you can manage the applications you trust."));const u=(0,a.createApplicationTable)(s);t.appendChild(u),t.appendChild((0,a.createText)("h4","Notes")),t.appendChild((0,a.createContainer)("ol",[t.appendChild((0,a.createText)("li","Trusted applications will get access to all resources that you have access to.")),t.appendChild((0,a.createText)("li","You can limit which modes they have by default.")),t.appendChild((0,a.createText)("li","They will not gain more access than you have."))])),t.appendChild((0,a.createText)("p","Application URLs must be valid URL. Examples are http://localhost:3000, https://trusted.app, and https://sub.trusted.app."))}(n,c,l).catch(e=>l.appendChild(r.widgets.errorMessageBlock(n,e))),o}};t.default=o},6682(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_170702.svg",name:"ui",audience:[o.solid("PowerUser")],label:function(e,t){const n=r.ns,i=t.session.store.findTypeURIs(e);return i[n.rdfs("Class").uri]?"creation forms":i[n.ui("Form").uri]?"edit form":null},render:function(e,t){const n=t.dom,a=t.session.store,o=r.ns,s=n.createElement("div");s.setAttribute("class","formPane");const c=r.utils.label(e),l=function(e,t){const r=n.createElement("p");return r.setAttribute("style",t||"color: grey; background-color: white"),s.appendChild(r).textContent=e,r},u=function(e,t){l(e,"style")},d=function(e,t){e||u("Sorry, failed to save your change:\n"+t)},p=a.findTypeURIs(e);let f,h,m=null;e.uri&&(f=i.Util.uri.docpart(e.uri),e.uri!==f&&a.updater.editable(f)&&(m=a.sym(i.Util.uri.docpart(e.uri)))),m||(m=a.any(a.sym(f),o.link("annotationStore"))),m||(m=r.widgets.defaultAnnotationStore(e)),m||(m=a.sym("https://formsregistry.solid.community/public/formRegistry/")),p[o.rdfs("Class").uri];const g=l("(Loading data from: "+m+")");return a.fetcher.nowOrWhenFetched(m.uri,e,function(i,f){if(i)if(s.removeChild(g),p[o.rdfs("Class").uri]){const i=function(i,p){const f=a.statementsMatching(e,i),h=t.getOutliner(n);if(f.length){for(let t=0;t<f.length;t++){h.appendPropertyTRs(s,[f[t]]);const i=f[t].object,c=n.createElement("td");s.lastChild.appendChild(c),p&&c.appendChild(r.widgets.newButton(n,a,null,null,e,i,m,function(e,t){e||u("Sorry, failed to save your change:\n"+t)}));let l=a.statementsMatching(i,o.rdf("type"));l.length||(l=a.statementsMatching(i)),l.length?r.widgets.editFormButton(n,s,i,l[0].why,d):u("No data about form")}s.appendChild(n.createElement("hr"))}else l("There are currently no known forms to make a "+c+".")};h=o.ui("creationForm"),s.appendChild(n.createElement("h2")).textContent=r.utils.label(h),l("Creation forms allow you to add information about a new thing, in this case a new "+c+"."),i(h,!0),s.appendChild(n.createElement("hr")),l("You can make a new creation form:"),s.appendChild(r.widgets.newButton(n,a,e,h,o.ui("Form"),null,m,d)),s.appendChild(n.createElement("hr")),h=o.ui("annotationForm"),s.appendChild(n.createElement("h2")).textContent=r.utils.label(h),l("Annotaion forms allow you to add extra information about a ,"+c+" we already know about."),i(h,!1),s.appendChild(n.createElement("hr")),l("You can make a new annotation form:"),s.appendChild(r.widgets.newButton(n,a,e,h,o.ui("Form"),null,m,d)),l("(Storing new forms in: "+m+")")}else p[o.ui("Form").uri]?r.widgets.appendForm(n,s,a,e,o.ui("FormForm"),m,d):u("ui/pane internal error -- Eh?");else u("Cannot load store "+m+" :"+f)}),s}}},4959(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={buildTime:"2026-03-27T19:13:16Z",commit:"eddd352d564ee358a29057c93886d10769611803",npmInfo:{"solid-panes":"4.2.4",npm:"11.12.1",node:"22.22.1",acorn:"8.15.0",ada:"2.9.2",amaro:"1.1.5",ares:"1.34.6",brotli:"1.1.0",cjs_module_lexer:"2.2.0",cldr:"48.0",icu:"78.2",llhttp:"9.3.0",modules:"127",napi:"10",nbytes:"0.1.1",ncrypto:"0.0.1",nghttp2:"1.64.0",openssl:"3.5.5",simdjson:"4.2.4",simdutf:"6.4.2",sqlite:"3.51.2",tz:"2025c",undici:"6.23.0",unicode:"17.0",uv:"1.51.0",uvwasi:"0.0.23",v8:"12.4.254.21-node.35",zlib:"1.3.1-e00f703",zstd:"1.5.7"}}},6778(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}t.default={icon:r.icons.iconBase+"noun_1619.svg",name:"video",label:function(e,t){const n=t.session.store.findTypeURIs(e),r=i.Util.mediaTypeClass("video/*").uri.split("*")[0];for(const e in n)if(e.startsWith(r))return"Play video";return null},render:function(e,t){const n=t.session.store,r=t.dom,i=r.createElement("div"),a=i.appendChild(r.createElement("video"));return a.setAttribute("controls","yes"),n.fetcher._fetch(e.uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);a.setAttribute("src",t)}),a.setAttribute("width","100%"),i}}},500(e,t,n){var r;r=(e,t)=>(()=>{var n={423(e,t,n){"use strict";function r(){var e;(e=console).log.apply(e,arguments)}function i(){var e;(e=console).warn.apply(e,arguments)}function a(){var e;(e=console).error.apply(e,arguments)}function o(){var e;(e=console).trace.apply(e,arguments)}n.d(t,{R8:()=>i,Rm:()=>r,uP:()=>o,z3:()=>a})},378(e,t,n){"use strict";n.d(t,{LN:()=>o,Pt:()=>a,i1:()=>s});var r=n(423),i="https://solidos.github.io/solid-ui/src",a=(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:i+"/icons/",originalIconBase:i+"/originalIcons/"};(0,r.Rm)(" icons.iconBase is set to : "+a.iconBase);var o=a.iconBase,s=a.originalIconBase},580(e){"use strict";
369
+ */function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<a(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>a(c,n))l<i&&0>a(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else{if(!(l<i&&0>a(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}var l=[],u=[],d=1,p=null,f=3,h=!1,m=!1,g=!1,v=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(l,t)}t=r(u)}}function A(e){if(g=!1,x(e),!m)if(null!==r(l))m=!0,E||(E=!0,C());else{var t=r(u);null!==t&&I(A,t.startTime-e)}}var C,E=!1,k=-1,_=5,S=-1;function T(){return!!v||!(t.unstable_now()-S<_)}function P(){if(v=!1,E){var e=t.unstable_now();S=e;var n=!0;try{e:{m=!1,g&&(g=!1,y(k),k=-1),h=!0;var a=f;try{t:{for(x(e),p=r(l);null!==p&&!(p.expirationTime>e&&T());){var o=p.callback;if("function"==typeof o){p.callback=null,f=p.priorityLevel;var s=o(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof s){p.callback=s,x(e),n=!0;break t}p===r(l)&&i(l),x(e)}else i(l);p=r(l)}if(null!==p)n=!0;else{var c=r(u);null!==c&&I(A,c.startTime-e),n=!1}}break e}finally{p=null,f=a,h=!1}n=void 0}}finally{n?C():E=!1}}}if("function"==typeof w)C=function(){w(P)};else if("undefined"!=typeof MessageChannel){var F=new MessageChannel,R=F.port2;F.port1.onmessage=P,C=function(){R.postMessage(null)}}else C=function(){b(P,0)};function I(e,n){k=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e||(_=0<e?Math.floor(1e3/e):5)},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_requestPaint=function(){v=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?o+a:o:a=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(e.sortIndex=a,n(u,e),null===r(l)&&e===r(u)&&(g?(y(k),k=-1):g=!0,I(A,a-o))):(e.sortIndex=s,n(l,e),m||h||(m=!0,E||(E=!0,C()))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},9982(e,t,n){"use strict";e.exports=n(4477)},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 r in t){const i=t[r];n[r]=function(t=""){return e.namedNode(i+t)}}return n}},8236(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RDFXMLPane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.RDFXMLPane={icon:r.icons.originalIconBase+"22-text-xml4.png",name:"RDFXML",audience:[o.solid("Developer")],label:function(e,t){const n=t.session.store;if("http://www.w3.org/2007/ont/link#ProtocolEvent"in n.findTypeURIs(e))return null;const r=n.statementsMatching(void 0,void 0,void 0,e).length;return 0===r?null:"As RDF/XML ("+r+")"},render:function(e,t){const n=t.dom,r=t.session.store,a=n.createElement("div");a.setAttribute("class","RDFXMLPane");const o=r.statementsMatching(void 0,void 0,void 0,e),s=i.Serializer(r);s.suggestNamespaces(r.namespaces),s.setBase(e.uri);const c=s.statementsToXML(o),l=n.createElement("PRE");return l.appendChild(n.createTextNode(c)),a.appendChild(l),a}}},6686(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_534313.svg",name:"audio",label:function(e,t){const n=t.session.store.findTypeURIs(e),r=i.Util.mediaTypeClass("audio/*").uri.split("*")[0];for(const e in n)if(e.startsWith(r))return"Play audio";return null},render:function(e,t){const n=t.session.store,r=t.dom,i=!1,a=!0,s=!0,c=!1,l=function(e){const t=e.lastIndexOf(".");if(t<0)return e;return t<e.lastIndexOf("/")?e:e.slice(0,t)},u=function(e){const t=e.uri.split("/").slice(-3),n=function(e){try{return decodeURIComponent(e)}catch(t){return e}};v.textContent=n(t[0]),b.textContent=n(t[1]),y.textContent=n(l(t[2]))},d=function(e,t){return new Promise(function(r){if(t=t||0,!a)return r(null);const i=n.any(void 0,o.ldp("contains"),e)||e.dir();if(!i)return r(null);n.fetcher.load(i).then(function(a){const l=n.each(i,o.ldp("contains"));let u;l.sort();for(let a=0;a<l.length;a++)if(e.uri===l[a].uri){if(u=(a+1)%l.length,0!==u)return r(l[u]);if(!s)return r(c?l[u]:null);if(1===t||!s)return r(null);d(i,t+1).then(function(e){e&&n.fetcher.load(e).then(function(t){const i=n.each(e,o.ldp("contains"));return 0===i.length?r(null):(i.sort(),r(i[0]))})})}})})},p=function(e){const t=n.sym(e.target.getAttribute("src"));if(!a)return;const r=function(t){d(t).then(function(t){t&&(!function(e){const t=n.any(void 0,o.ldp("contains"),e);if(!t)return!1;const r=n.each(t,o.ldp("contains"));if(r.length<2)return!1;const i=e.uri;for(let e=0;e<r.length;e++){const t=r[e].uri;if(i.length>t.length&&i.startsWith(l(t)))return!0;if(i.endsWith(".m4a")&&t.endsWith(".mp3")&&l(i)===l(t))return!0}return!1}(t)?(u(t),w.appendChild(f(t,!0)),w.removeChild(e.target)):r(t))})};r(t)},f=function(e,t){const i=r.createElement("audio");return i.setAttribute("controls","yes"),n.fetcher._fetch(e.uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);i.setAttribute("src",t)}),t&&i.setAttribute("autoplay","autoplay"),i.addEventListener("ended",p,!1),i},h=r.createElement("div"),m=h.appendChild(r.createElement("table")),g="padding: 0.3em; color:white; background-color: black;",v=m.appendChild(r.createElement("tr"));v.style.cssText=g;const b=m.appendChild(r.createElement("tr"));b.style.cssText=g;const y=m.appendChild(r.createElement("tr"));y.style.cssText=g;const w=m.appendChild(r.createElement("tr"));return u(e),w.appendChild(f(e,i)),!n.holds(void 0,o.ldp("contains"),e)&&e.dir()&&n.fetcher.load(e.dir()),h}}},5382(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classInstancePane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.classInstancePane={icon:r.icons.originalIconBase+"tango/22-folder-open.png",name:"classInstance",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store.each(void 0,o.rdf("type"),e).length;return n>0?"List ("+n+")":null},render:function(e,t){const n=t.dom,a=t.getOutliner(n),s=t.session.store,c=function(e,t){const r=n.createElement("pre");r.setAttribute("style","background-color: "+t||0),l.appendChild(r),r.appendChild(n.createTextNode(e))},l=n.createElement("div");l.setAttribute("class","instancePane"),l.setAttribute("style"," border-top: solid 1px #777; border-bottom: solid 1px #777; margin-top: 0.5em; margin-bottom: 0.5em ");const u=s.statementsMatching(void 0,o.rdf("type"),e);if(u.length>0){const t={},d=[];u.forEach(e=>{t[e.subject.toNT()]=e});for(const n in s.findMembersNT(e))t[n]||d.push(i.st(s.fromNT(n),o.rdf("type"),e));if(d.length&&c("There are "+u.length+" explicit and "+d.length+" implicit members of "+r.utils.label(e)),e.sameTerm(o.rdf("Property")));else if(e.sameTerm(o.rdfs("Class"))){const e=s.statementsMatching(void 0,o.rdf("type"),void 0),t={};e.forEach(function(e){t[e.object]=e});const n=[];for(const e in t)n.push(i.st(i.sym(e),o.rdf("type"),o.rdfs("Class")));c("Total of "+e.length+" type statements and "+n.length+" unique types.")}if(u.length>10){const e=n.createElement("TR");e.appendChild(n.createTextNode(""+u.length)),l.appendChild(e)}a.appendPropertyTRs(l,u,!0,function(e){return!0}),d.length&&(c("Implicit:"),a.appendPropertyTRs(l,d,!0,function(e){return!0}))}return l}}},6106(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.basicPreferencesPane=void 0;var r=n(8230),i=n(500);const a=t.basicPreferencesPane={icon:i.icons.iconBase+"noun_Sliders_341315_000000.svg",name:"basicPreferences",label:e=>null,render:(e,t)=>{const n=t.dom,a=t.session.store;function s(e,t){e||c.appendChild(i.widgets.errorMessageBlock(n,t,"#fee"))}const c=n.createElement("div"),l=function(e,t){const n=o(e,t,"User types"),r=n.appendChild(t.createElement("p"));r.innerText="Here you can self-assign user types to help the data browser know which views you would like to access.";const i=n.appendChild(t.createElement("a"));i.href="https://github.com/solidos/userguide/#role",i.innerText="Read more";const a=n.appendChild(t.createElement("div"));return a}(c,n);function u(e,t){e=e.doc(),a.holds(void 0,void 0,void 0,e)||(0,r.parse)(t,a,e.uri,"text/turtle",null)}const d=a.sym("urn:uuid:93774ba1-d3b6-41f2-85b6-4ae27ffd2597#this");u(d,'@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix : <#>.\n\n:this <http://purl.org/dc/elements/1.1/title> "Basic preferences" ;\n a ui:Form ;\n ui:part :categorizeUser, :privateComment, :personalInformationHeading;\n ui:parts ( :personalInformationHeading :privateComment :categorizeUser ).\n\n:personalInformationHeading a ui:Heading;\n ui:contents "Personal information".\n\n:privateComment a ui:Comment;\n ui:contents "This information is private.".\n\n:categorizeUser a ui:Classifier;\n ui:label "Level of user"; ui:property rdf:type ; ui:category solid:User.\n');return u(a.sym("urn:uuid:93774ba1-d3b6-41f2-85b6-4ae27ffd2597-ONT"),'@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix schema: <http:/schema.org/>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.\n@prefix : <#>.\n\nsolid:User a rdfs:Class;\n rdfs:label "user"@en, "utilisateur"@fr;\n rdfs:comment """Any person who might use a Solid-based system""";\n rdfs:subClassOf foaf:Person, schema:Person, vcard:Individual.\n\n# Since these options are opt-in, it is a bit strange to have new users opt in\n# That they are new users - also we do not use this class for anything specific\n# yet\n# solid:NewUser a rdfs:Class;\n# rdfs:label "new user"@en;\n# rdfs:comment """A person who might use a Solid-based system who has a low\n# level of familiarity with technical details.""";\n# rdfs:subClassOf solid:User.\n\nsolid:PowerUser a rdfs:Class;\n rdfs:label "power user"@en;\n rdfs:comment """A person who might use a Solid-based system\n who is prepared to be given a more complex interface in order\n to be provided with more pwerful features.""";\n rdfs:subClassOf solid:User.\n\n solid:Developer a rdfs:Class;\n rdfs:label "Developer";\n rdfs:comment """Any person who might use a Solid-based system,\n who has software development skills.""";\n rdfs:subClassOf solid:User.\n'),async function(){const e=await i.login.ensureLoadedPreferences({dom:n,div:c});if(!e.preferencesFile)return;i.widgets.appendForm(n,l,{},e.me,d,e.preferencesFile,s).style.borderStyle="none";const r=t.session.paneRegistry.byName("trustedApplications");r&&c.appendChild(r.render(null,t)),function(e,t,n,r){const a=o(e,r,"Delete account"),s=t.each(n,i.ns.space("storage"),null,n.doc()),c=s.map(e=>e.value),l=a.appendChild(r.createElement("ul"));c.forEach(async e=>{const t=await async function(e,t){const n=t.createElement("a");n.textContent=`Delete your account at ${e}`;const r=await async function(e){const t=new URL(e),n=new URL(e);n.pathname=t.pathname="/account/delete";const r=n.hostname.split(".");n.hostname=r.slice(1).join(".");if((await fetch(n.href,{method:"HEAD"})).ok)return n.href;if((await fetch(t.href,{method:"HEAD"})).ok)return t.href;return null}(e);if("string"!=typeof r)return null;return n.href=r,n}(e,r);if(t){l.appendChild(r.createElement("li")).appendChild(t)}})}(c,a,e.me,n)}(),c}};t.default=a;function o(e,t,n){const r=e.appendChild(t.createElement("div"));r.style.border="0.3em solid #418d99",r.style.borderRadius="0.5em",r.style.padding="0.7em",r.style.marginTop="0.7em";return r.appendChild(t.createElement("h3")).innerText=n,r}},5682(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.dashboardPane=void 0;var r=n(500),i=n(9332),a=n(730);const o=t.dashboardPane={icon:r.icons.iconBase+"noun_547570.svg",name:"dashboard",label:e=>"NamedNode"===e.termType&&e.uri===e.site().uri?"Dashboard":null,render:(e,t)=>{const n=t.dom.createElement("div"),r=()=>{n.innerHTML="",function(e,t,n,r){const o=new URL(window.location.href).searchParams.get("uri");if(t&&(o||t.site().uri===r.site().uri))return function(e,t){const n=t.getOutliner(t.dom);n.getDashboard().then(t=>e.appendChild(t))}(e,n);(function(e,t){const n=document.createElement("div");e.appendChild(n);const r=n.attachShadow({mode:"open"}),o=document.createElement("link");o.rel="stylesheet",o.href="/common/css/bootstrap.min.css",r.appendChild(o),(0,a.generateHomepage)(t,i.store,i.store.fetcher).then(e=>r.appendChild(e))})(e,r)}(n,i.authn.currentUser()||null,t,e)};return i.authSession.events.on("login",()=>{r()}),i.authSession.events.on("sessionRestore",()=>{r()}),r(),n}};t.default=o},730(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateHomepage=async function(e,t,n){const a=await async function(e,t,n){const a=e.site().uri,o=(0,r.sym)(`${a}profile/card#me`);try{return await n.load(o),o}catch(e){}try{await n.load(e)}catch(t){return e}const s=t.any(e,i.ns.foaf("primaryTopic"),null,e.doc());if(s&&"NamedNode"===s.termType)try{return await n.load(s),s}catch(t){return e}return e}(e,t,n),o=function(e,t){return e.anyValue(t,i.ns.vcard("fn"),null,t.doc())||e.anyValue(t,i.ns.foaf("name"),null,t.doc())||new URL(t.uri).host.split(".")[0]}(t,a),s=document.createElement("div");return s.classList.add("container"),s.appendChild(function(e,t){const n=document.createElement("a");n.href=e,n.innerText=t;const r=document.createElement("span");r.innerText="'s Pod";const i=document.createElement("h1");return i.appendChild(n),i.appendChild(r),i}(a.uri,o)),s.appendChild(function(e){const t=document.createElement("section"),n=document.createElement("h2");n.innerText="Data",t.appendChild(n);const r=document.createElement("div");r.classList.add("list-group"),t.appendChild(r);const i=document.createElement("a");return i.classList.add("list-group-item"),i.href=window.document.location.href+"public/",i.innerText=`View ${e}'s files`,r.appendChild(i),t}(o)),s};var r=n(8230),i=n(500)},1424(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dataContentPane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.dataContentPane={icon:r.icons.originalIconBase+"rdf_flyer.24.gif",name:"dataContents",audience:[o.solid("Developer")],label:function(e,t){if("http://www.w3.org/2007/ont/link#ProtocolEvent"in t.session.store.findTypeURIs(e))return null;const n=t.session.store.statementsMatching(void 0,void 0,void 0,e).length;return 0===n?null:"Data ("+n+")"},statementsAsTables:function(e,t,n){const a=t.dom,o=a.createElement("table"),s=i.Serializer(t.session.store),c=s.rootSubjects(e);let l=c.roots;const u=c.subjects,d=c.loopBreakers;for(const e in d);const p={},f={};function h(e){const t=a.createElement("table");let n=null;const i=u[s.toStr(e)];if(!i)return t.appendChild(a.createTextNode("...")),t;i.sort();let o,c=0;for(let e=0;e<i.length;e++){const s=i[e],l=a.createElement("tr");if(s.predicate.uri!==n){n&&c>1&&o.setAttribute("rowspan",""+c),o=a.createElement("td"),o.setAttribute("class","pred");const e=a.createElement("a");e.setAttribute("href",s.predicate.uri),e.addEventListener("click",r.widgets.openHrefInOutlineMode,!0),e.appendChild(a.createTextNode(r.utils.predicateLabelForXML(s.predicate))),o.appendChild(e),l.appendChild(o),n=s.predicate.uri,c=0}c++;const u=a.createElement("td");u.appendChild(m(s.object)),l.appendChild(u),t.appendChild(l)}return n&&c>1&&o.setAttribute("rowspan",""+c),t}function m(e){let n,i;switch(e.termType){case"NamedNode":return i=a.createElement("a"),i.setAttribute("href",e.uri),i.addEventListener("click",r.widgets.openHrefInOutlineMode,!0),i.appendChild(a.createTextNode(r.utils.label(e))),i;case"Literal":return e.datatype&&e.datatype.uri?"http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral"===e.datatype.uri?(n=a.createElement("div"),n.setAttribute("class","embeddedXHTML"),n.innerHTML=e.value,n):a.createTextNode(e.value):(n=a.createElement("div"),n.setAttribute("style","white-space: pre-wrap;"),n.textContent=e.value,n);case"BlankNode":{if(e.toNT()in p){f[e.toNT()]=!0;const t=a.createElement("a");return t.setAttribute("href","#"+e.toNT().slice(2)),t.setAttribute("class","bnodeRef"),t.textContent="*"+e.toNT().slice(3),t}p[e.toNT()]=!0;const t=h(e);return p[e.toNT()]=t,r.utils.ancestor(t,"TABLE")&&"white"===r.utils.ancestor(t,"TABLE").style.backgroundColor?t.style.backgroundColor="#eee":t.style.backgroundColor="white",t}case"Collection":n=a.createElement("table"),n.setAttribute("class","collectionAsTables");for(let t=0;t<e.elements.length;t++){const r=a.createElement("tr");n.appendChild(r),r.appendChild(m(e.elements[t]))}return n;case"Graph":return n=t.session.paneRegistry.byName("dataContents").statementsAsTables(e.statements,t),n.setAttribute("class","nestedFormula"),n;case"Variable":return n=a.createTextNode("?"+e.uri),n}throw new Error("Unhandled node type: "+e.termType)}n&&(l=n.concat(l.filter(function(e){for(let t=0;t<n.length;t++)if(e.sameTerm(n[t]))return!1;return!0})));for(let e=0;e<l.length;e++){const t=a.createElement("tr");t.setAttribute("style",`background-color: ${e%2==0?"#f0f0f0":"white"};`),o.appendChild(t);const n=a.createElement("td");t.appendChild(n);const i=a.createElement("td");t.appendChild(i);const s=l[e];"BlankNode"===s.termType?n.appendChild(a.createTextNode(r.utils.label(s))):n.appendChild(m(s)),i.appendChild(h(s))}for(const e in f){const t=p[e],n=a.createElement("a");n.setAttribute("id",e.slice(2)),n.setAttribute("class","bnodeDef"),n.textContent=e.slice(3)+")",t.insertBefore(n,t.firstChild)}return o},render:function(e,t){const n=t.dom;t.getOutliner(n);const i=t.session.store,a=n.createElement("div");a.setAttribute("class","dataContentPane");const o=i.statementsMatching(void 0,void 0,void 0,e);return function(){const n=[];i.holds(e,void 0,void 0,e)&&n.push(e);const s=i.any(e,r.ns.foaf("primaryTopic"),void 0,e);s&&n.push(s),a.appendChild(t.session.paneRegistry.byName("dataContents").statementsAsTables(o,t,n))}(),a}}},4064(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultPane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.defaultPane={icon:r.icons.originalIconBase+"about.png",name:"default",audience:[o.solid("Developer")],label:function(e){return"about "},render:function(e,t){const n=t.dom,a=function(e,n){return void 0===t.session.paneRegistry.byName("internal").predicates[e.uri]&&(!n||"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"!==e.uri)},o=t.getOutliner(n),s=t.session.store;r.log.info("@defaultPane.render, dom is now "+n.location),e=s.canon(e);const c=n.createElement("div");c.setAttribute("class","defaultPane");let l=s.statementsMatching(e);if(o.appendPropertyTRs(c,l,!1,a),l=s.statementsMatching(void 0,void 0,e),o.appendPropertyTRs(c,l,!0,a),"Literal"===e.termType&&"http://"===e.value.slice(0,7)&&o.appendPropertyTRs(c,[i.st(s.sym(e.value),r.ns.link("uri"),e)],!0,a),"NamedNode"===e.termType&&s.updater.editable(i.Util.uri.docpart(e.uri),s)||"BlankNode"===e.termType&&s.anyStatementMatching(e)&&s.anyStatementMatching(e).why&&s.anyStatementMatching(e).why.uri&&s.updater.editable(s.anyStatementMatching(e).why.uri)){const e=n.createElement("tr"),t=n.createElement("td");t.setAttribute("colspan","2"),t.setAttribute("notSelectable","true");const i=n.createElement("img");i.src=r.icons.originalIconBase+"tango/22-list-add-new.png",i.addEventListener("click",function(e){o.UserInput.addNewPredicateObject(e),e.stopPropagation(),e.preventDefault()}),i.className="bottom-border-active",c.appendChild(e).appendChild(t).appendChild(i)}return c}}},2970(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=c(n(500)),a=c(n(8230)),o=c(n(6049)),s=(r=n(3505))&&r.__esModule?r:{default:r};function c(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(c=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}t.default={icon:i.icons.iconBase+"dokieli-logo.png",name:"Dokieli",mintClass:i.ns.solid("DokieliDocument"),label:function(e,t){return null},mintNew:function(e,t){const n=e.session.store;let r=t.newInstance;if(!r){let e=t.newBase;e.endsWith("/")&&(e=e.slice(0,-1),t.newBase=e),r=n.sym(e)}const i=o.lookup(r.uri);i&&i.includes("html")||(r=a.sym(r.uri+".html")),t.newInstance=r;let c=s.default,l=r.uri.split("/").slice(-1)[0];l=decodeURIComponent(l.split(".")[0]);const u=l.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");return c=c.replace("<title>","<title>"+u),c=c.replace("</article>","<h1>"+u+"</h1></article>"),new Promise(function(e){n.fetcher.webOperation("PUT",r.uri,{data:c,contentType:"text/html"}).then(function(){e(t)}).catch(function(e){})})}}},3505(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default='<!DOCTYPE html>\n<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">\n <head>\n <meta charset="utf-8" />\n <title></title>\n <meta content="width=device-width, initial-scale=1" name="viewport" />\n <link href="https://dokie.li/media/css/basic.css" media="all" rel="stylesheet" title="Basic" />\n <link href="https://dokie.li/media/css/dokieli.css" media="all" rel="stylesheet" />\n <script src="https://dokie.li/scripts/dokieli.js"><\/script>\n </head>\n\n <body about="" prefix="rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# rdfs: http://www.w3.org/2000/01/rdf-schema# owl: http://www.w3.org/2002/07/owl# xsd: http://www.w3.org/2001/XMLSchema# rdfa: http://www.w3.org/ns/rdfa# dcterms: http://purl.org/dc/terms/ dctypes: http://purl.org/dc/dcmitype/ foaf: http://xmlns.com/foaf/0.1/ pimspace: http://www.w3.org/ns/pim/space# skos: http://www.w3.org/2004/02/skos/core# prov: http://www.w3.org/ns/prov# mem: http://mementoweb.org/ns# qb: http://purl.org/linked-data/cube# schema: http://schema.org/ void: http://rdfs.org/ns/void# rsa: http://www.w3.org/ns/auth/rsa# cert: http://www.w3.org/ns/auth/cert# wgs: http://www.w3.org/2003/01/geo/wgs84_pos# bibo: http://purl.org/ontology/bibo/ sioc: http://rdfs.org/sioc/ns# doap: http://usefulinc.com/ns/doap# dbr: http://dbpedia.org/resource/ dbp: http://dbpedia.org/property/ sio: http://semanticscience.org/resource/ opmw: http://www.opmw.org/ontology/ deo: http://purl.org/spar/deo/ doco: http://purl.org/spar/doco/ cito: http://purl.org/spar/cito/ fabio: http://purl.org/spar/fabio/ oa: http://www.w3.org/ns/oa# as: https://www.w3.org/ns/activitystreams# ldp: http://www.w3.org/ns/ldp# solid: http://www.w3.org/ns/solid/terms# acl: http://www.w3.org/ns/auth/acl# earl: http://www.w3.org/ns/earl# spec: http://www.w3.org/ns/spec# odrl: http://www.w3.org/ns/odrl/2/ dio: https://w3id.org/dio# rel: https://www.w3.org/ns/iana/link-relations/relation#" typeof="schema:CreativeWork prov:Entity">\n <main>\n <article about="" typeof="schema:Article">\n\n </article>\n </main>\n </body>\n</html>\n'},5238(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formPane=void 0;var r=o(n(500)),i=n(9332),a=o(n(8230));function o(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const s=r.ns;t.formPane={icon:r.icons.iconBase+"noun_122196.svg",name:"form",audience:[s.solid("PowerUser")],label:function(e){const t=r.widgets.formsFor(e).length;return r.log.debug("Form pane: forms for "+e+": "+t),t?t+" forms":null},render:function(e,t){const n=t.session.store,o=t.dom,c=function(e,t){const n=o.createElement("p");return n.setAttribute("style",t||"color: grey; background-color: white"),p.appendChild(n).textContent=e,n},l=function(e,t){c(e,"style")},u=function(e,t){e||l("Sorry, failed to save your change:\n"+t)},d=i.authn.currentUser(),p=o.createElement("div");if(p.setAttribute("class","formPane"),d){0===n.each(d,s.ui("workspace")).length&&c("You don't seem to have any workspaces defined. A workspace is a place on the web (http://..) or in the file system (file:///) to store application data.\n")}else c("You are not logged in. If you log in and have workspaces then you would be able to select workspace in which to put this new information");const f=function(e,t){n.fetcher.nowOrWhenFetched(e.uri,t,function(n,i){if(!n)return l("Cannot load store "+e.uri+": "+i);const s=r.widgets.formsFor(t);for(let n=0;n<s.length;n++){const i=s[n],c=o.createElement("h4");if(p.appendChild(c),i.uri){const e=a.Util.uri.document(i.uri);if(e.uri!==i.uri){p.appendChild(r.widgets.editFormButton(o,p,i,e,u)).setAttribute("style","float: right;")}}const l=o.createElement("a");l.setAttribute("href",i.uri),c.appendChild(l),l.textContent=r.utils.label(i,!0),r.widgets.appendForm(o,p,{},t,i,e,u)}})};let h=null;const m=a.Util.uri.docpart(e.uri);if(e.uri!==m&&n.updater.editable(m,n)&&(h=e.doc()),h=h||n.any(n.sym(m),s.link("annotationStore")),!h){const t={},n=[];h.statementsMatching(e).forEach(function(e){t[e.why.uri]=1}),h.statementsMatching(void 0,void 0,e).forEach(function(e){t[e.why.uri]=2});for(const e in t)n.push(t[e],e);n.sort();for(let e=0;e<n.length;e++){const t=n[e][1];if(t&&h.updater.editable(t)){h=h.sym(t);break}}}const g="2014";if(h)f(h,e);else{l("No suitable store is known, to edit <"+e.uri+">.");const t=r.login.selectWorkspace(o,function(t){c("Workspace selected OK: "+t);const n=h.each(void 0,s.space("workspace"),t);for(let r=0;r<n.length;r++){const i=n[r],a=h.any(t,s.space("store")),o=h.any(t,s.cal("dtstart")).value(),c=h.any(t,s.cal("dtend")).value();if(a&&o&&c&&o<=g&&c>g){f(a,e);break}l("Note no suitable annotation store in activity: "+i)}});p.appendChild(t)}return p}}},8426(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(9332),i=n(500);const a={icon:i.icons.iconBase+"noun_547570.svg",global:!0,name:"home",label:function(){return"home"},render:function(e,t){const n=t.dom,a=n.createElement("div"),o=r.authn.currentUser();return async function(){const e={div:a,dom:n,statusArea:a,me:o};a.appendChild(n.createElement("h4")).textContent="Create new thing somewhere";const r={div:a.appendChild(n.createElement("div")),dom:n,statusArea:a,me:o},s=await i.login.filterAvailablePanes(t.session.paneRegistry.list);i.create.newThingUI(r,t,s),i.login.registrationList(e,{}).then(function(){})}(),a}};t.default=a},6380(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(500),a=n(8230),o=n(23),s=(r=n(5454))&&r.__esModule?r:{default:r};const c=e=>{if(!e)return!1;const t=e.split("?")[0].split("#")[0];return/\.(md|markdown|mdown|mkd|mkdn)$/i.test(t)},l=new Map,u={icon:function(e,t){if(e&&c(e.uri))return i.icons.iconBase+"markdown.svg";if(e){const n=t.session.store,r=l.get(e.uri);if("dokieli"===r)return i.icons.iconBase+"dokieli-logo.png";if("html"===r)return i.icons.originalIconBase+"tango/22-text-x-generic.png";const a=n.fetcher.getHeader(e.doc(),"content");if(a&&a.length>0){const t=a[0],n=t.includes('<script src="https://dokie.li/scripts/dokieli.js">')||t.includes("dokieli.css");return l.set(e.uri,n?"dokieli":"html"),n?i.icons.iconBase+"dokieli-logo.png":i.icons.originalIconBase+"tango/22-text-x-generic.png"}const o=n.fetcher.getHeader(e.doc(),"content-type");if("text/html"===(o?o[0].split(";",1)[0].trim():null))return n.fetcher._fetch(e.uri).then(e=>e.text()).then(t=>{const n=t.includes('<script src="https://dokie.li/scripts/dokieli.js">')||t.includes("dokieli.css");return l.set(e.uri,n?"dokieli":"html"),n?i.icons.iconBase+"dokieli-logo.png":i.icons.originalIconBase+"tango/22-text-x-generic.png"}).catch(()=>(l.set(e.uri,"html"),i.icons.originalIconBase+"tango/22-text-x-generic.png"))}return i.icons.originalIconBase+"tango/22-text-x-generic.png"},name:"humanReadable",label:function(e,t){const n=t.session.store,r=["text/plain","text/html","text/markdown","application/xhtml+xml","image/png","image/jpeg","application/pdf","video/mp4"];if(!e.uri)return null;if(n.findTypeURIs(e)[i.ns.link("WebPage").uri])return"view";if(c(e.uri))return"View";if(function(e,t,n){const r=e.fetcher.getHeader(t,"content-type");if(r)for(let e=0;e<r.length;e++)for(let t=0;t<n.length;t++)if(r[e].indexOf(n[t])>=0)return!0;return!1}(n,e,r)||function(e,t,n){const r=e.findTypeURIs(t);for(let e=0;e<n.length;e++)if(a.Util.mediaTypeClass(n[e]).uri in r)return!0;return!1}(n,e,r)){const t=n.fetcher.getHeader(e.doc(),"content-type");return"text/html"!==(t?t[0].split(";",1)[0].trim():null)||l.has(e.uri)||n.fetcher._fetch(e.uri).then(e=>e.text()).then(t=>{const n=t.includes('<script src="https://dokie.li/scripts/dokieli.js">')||t.includes("dokieli.css");l.set(e.uri,n?"dokieli":"html")}).catch(()=>{l.set(e.uri,"html")}),"View"}return null},render:function(e,t){const n=t.dom,r=n.createElement("div"),i=t.session.store,a=i.fetcher.getHeader(e.doc(),"content-type"),u=a?a[0].split(";",1)[0].trim():null,d="text/markdown"===u||c(e.uri);r.setAttribute("class","docView");const p=(t,n)=>{t.setAttribute("src",e.uri),t.setAttribute("class","doc"),t.setAttribute("style",`border: 1px solid; padding: 1em; height: ${n}em; width: 800px; resize: both; overflow: auto;`)};if(d){const t=n.createElement("DIV");!function(t){i.fetcher.webOperation("GET",e.uri).then(e=>{const n=e.responseText,r=Math.min(30,n.split(/\n/).length+5),i=o.marked.parse(n),a=s.default.sanitize(i);t.innerHTML=a,t.setAttribute("class","doc"),t.setAttribute("style",`border: 1px solid; padding: 1em; height: ${r}em; width: 800px; resize: both; overflow: auto;`)}).catch(e=>{t.innerHTML="<p>Error loading content</p>"})}(t);const a=n.createElement("TR");a.appendChild(t),r.appendChild(a)}else{const t=n.createElement("IFRAME");"text/html"!==u&&"application/xhtml+xml"!==u||t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),i.fetcher.webOperation("GET",e.uri).then(n=>{const r=n.responseText,i=r.includes('<script src="https://dokie.li/scripts/dokieli.js">')?-10:5,a=Math.min(30,r.split(/\n/).length+i),o=r.includes('<script src="https://dokie.li/scripts/dokieli.js">')||r.includes("dokieli.css");l.set(e.uri,o?"dokieli":"html"),p(t,a)}).catch(e=>{p(t,30)});const a=n.createElement("TR");a.appendChild(t),r.appendChild(a)}return r}};t.default=u},2168(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imagePane=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));t.imagePane={icon:r.icons.originalIconBase+"tango/22-image-x-generic.png",name:"image",label:function(e,t){const n=t.session.store;if(!n.anyStatementMatching(e,r.ns.rdf("type"),n.sym("http://purl.org/dc/terms/Image")))return null;return function(e,t,n){const r=e.fetcher.getHeader(t,"content-type");if(r)for(let e=0;e<r.length;e++)for(let t=0;t<n.length;t++)if(r[e].indexOf(n[t])>=0)return!0;return!1}(n,e,["application/pdf"])?null:"view"},render:function(e,t){const n=t.dom,r=t.session.store,i=n.createElement("div");i.setAttribute("class","imageView");const a=n.createElement("IMG");r.fetcher._fetch(e.uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);a.setAttribute("src",t)}),a.setAttribute("style","max-width: 100%; max-height: 100%;");const o=n.createElement("TR");return o.appendChild(a),i.appendChild(o),i}}},7523(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"OutlineManager",{enumerable:!0,get:function(){return o.default}}),t.UI=void 0,Object.defineProperty(t,"byName",{enumerable:!0,get:function(){return c.byName}}),t.getOutliner=p,Object.defineProperty(t,"initMainPage",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"list",{enumerable:!0,get:function(){return c.list}}),Object.defineProperty(t,"paneForIcon",{enumerable:!0,get:function(){return c.paneForIcon}}),Object.defineProperty(t,"paneForPredicate",{enumerable:!0,get:function(){return c.paneForPredicate}}),Object.defineProperty(t,"register",{enumerable:!0,get:function(){return c.register}}),Object.defineProperty(t,"versionInfo",{enumerable:!0,get:function(){return r.default}});var r=d(n(4959)),i=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));t.UI=i;var a=n(9332),o=d(n(7981)),s=n(2371),c=n(4059),l=n(6813),u=d(n(5218));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if(!e.outlineManager){const t=(0,l.createContext)(e,{list:c.list,paneForIcon:c.paneForIcon,paneForPredicate:c.paneForPredicate,register:c.register,byName:c.byName},a.store,a.solidLogicSingleton);e.outlineManager=new o.default(t)}return e.outlineManager}"undefined"!=typeof window&&p(window.document),(0,s.registerPanes)(e=>(0,c.register)(e.default||e)),"undefined"!=typeof window&&(window.panes={getOutliner:p})},4930(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500),i=n(8230);const a={icon:r.icons.originalIconBase+"tango/22-emblem-system.png",name:"internal",label:function(){return"under the hood"},render:function(e,t){const n=t.dom,a=t.session.store,o=a.canon(e),s=a.findTypeURIs(o);function c(e){if(s["http://www.w3.org/2007/ont/link#ProtocolEvent"])return!0;const n=t.session.paneRegistry.byName("internal");return n&&n.predicates&&!(void 0===n.predicates[e.uri])}const l=n.createElement("div");function u(e,t){const n=e.fetcher;if(n)return new Promise(function(i,a){n.load(t).then(function(){const o=e.each(t,r.ns.ldp("contains")).map(t=>e.holds(t,r.ns.rdf("type"),r.ns.ldp("BasicContainer"))?u(e,t):n.webOperation("DELETE",t.uri));Promise.all(o).then(()=>{n.webOperation("DELETE",t.uri).then(()=>{i(void 0)}).catch(e=>{a(new Error("Unable to delete "+t+": "+e))}),i(void 0)},e=>{alert(e),a(e)})})})}l.setAttribute("class","internalPane"),l.setAttribute("style","background-color: #ddddff; padding: 0.5em; border-radius: 1em;");if(e.uri&&!e.uri.includes("#")){const t=l.appendChild(n.createElement("table"));t.style.width="100%",t.style.margin="1em";const i=t.appendChild(n.createElement("tr")),o=i.appendChild(n.createElement("td")),s=e.uri&&e.uri.endsWith("/")||a.holds(e,r.ns.rdf("type"),r.ns.ldp("Container")),c=s?"folder":"file";if(!function(e){const t=e.site().uri;return e.uri===t||e.uri===t+"profile/"||e.uri===t+"profile/card"||e.uri===t+"settings/"||e.uri===t+"settings/prefs.ttl"||e.uri===t+"settings/privateTypeIndex.ttl"||e.uri===t+"settings/publicTypeIndex.ttl"||e.uri===t+"settings/serverSide.ttl"}(e)){const t=r.widgets.deleteButtonWithCheck(n,o,c,function(){if(!confirm(`Are you sure you want to delete ${e}? This cannot be undone.`))return;if(!a.fetcher)throw new Error("Store has no fetcher");(s?u(a,e)||Promise.resolve():a.fetcher.webOperation("DELETE",e.uri)||Promise.resolve()).then(()=>{}).catch(t=>{alert("Unable to delete "+e+": "+t)})});t.style="height: 2em;",t.class="",o.appendChild(t)}const d=i.appendChild(n.createElement("td")),p=r.widgets.button(n,r.icons.iconBase+"noun_479395.svg","refresh");d.appendChild(p),p.addEventListener("click",()=>{if(!a.fetcher)throw new Error("Store has no fetcher");a.fetcher.refresh(e,function(t,n){let r;r=t?"Refreshed OK: "+e:"Error refreshing: "+e+": "+n,alert(r)})})}let d=a.statementsMatching(e),p="";if(!a.fetcher)throw new Error("Store has no fetcher");if(e.uri&&(d.push((0,i.st)(e,(0,i.sym)("http://www.w3.org/2007/ont/link#uri"),e.uri,a.fetcher.appNode)),e.uri.indexOf("#")>=0?(p=e.uri.split("#")[0],d.push((0,i.st)(e,(0,i.sym)("http://www.w3.org/2007/ont/link#documentURI"),e.uri.split("#")[0],a.fetcher.appNode)),d.push((0,i.st)(e,(0,i.sym)("http://www.w3.org/2007/ont/link#document"),(0,i.sym)(e.uri.split("#")[0]),a.fetcher.appNode))):p=e.uri),p){if(!a.updater)throw new Error("Store has no updater");const t=a.updater.editable(p);t&&d.push((0,i.st)(e,(0,i.sym)("http://www.w3.org/ns/rww#editable"),(0,i.literal)(t.toString()),a.fetcher.appNode))}const f=t.getOutliner(n);return f.appendPropertyTRs(l,d,!1,c),d=a.statementsMatching(void 0,void 0,e),f.appendPropertyTRs(l,d,!0,c),l},predicates:{"http://www.w3.org/2007/ont/link#request":1,"http://www.w3.org/2007/ont/link#requestedBy":1,"http://www.w3.org/2007/ont/link#source":1,"http://www.w3.org/2007/ont/link#session":2,"http://www.w3.org/2007/ont/link#uri":1,"http://www.w3.org/2007/ont/link#documentURI":1,"http://www.w3.org/2007/ont/link#document":1,"http://www.w3.org/2007/ont/link#all":1,"http://www.w3.org/2007/ont/link#Document":1,"http://www.w3.org/ns/rww#editable":1,"http://www.w3.org/2000/01/rdf-schema#seeAlso":1,"http://www.w3.org/2002/07/owl#":1},classes:{"http://www.w3.org/2007/ont/link#ProtocolEvent":1}};t.default=a},8399(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFooter=function(e){(0,r.initFooter)(e,{solidProjectUrl:i,solidProjectName:a})};var r=n(500);const i="https://solidproject.org",a="solidproject.org"},3469(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHeader=async function(e,t){(0,i.initHeader)(e,await async function(e){const t={label:l,onclick:()=>{r.authSession.logout()}};let n=[];return n=n.concat(await async function(e){const t=await e.getDashboardItems();return t.map(t=>({label:t.label,onclick:()=>async function(e,t){e.showDashboard({pane:t})}(e,t.tabName||t.paneName)}))}(e)),n.push(t),n}(t),{logo:o,helpIcon:a,helpMenuList:[{label:s,url:u,target:"_blank"},{label:c,url:d,target:"_blank"}]})};var r=n(9332),i=n(500);const a=i.icons.iconBase+"noun_help.svg",o="https://solidproject.org/assets/img/solid-emblem.svg",s="User guide",c="Report a problem",l="Log out",u="https://solidos.github.io/userguide/",d="https://github.com/solidos/solidos/issues"},5218(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=async function(e,t){const n=(0,r.getOutliner)(document);let o=t=t||window.location.href;"string"==typeof t&&(o=e.sym(t));n.GotoSubject(o,!0,void 0,!0,void 0);const s=await(0,i.createHeader)(e,n),c=(0,a.createFooter)(e);return Promise.all([s,c])};var r=n(7523),i=n(3469),a=n(8399)},7334(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.n3Pane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.n3Pane={icon:r.icons.originalIconBase+"w3c/n3_smaller.png",name:"n3",audience:[o.solid("Developer")],label:function(e,t){const n=t.session.store;if("http://www.w3.org/2007/ont/link#ProtocolEvent"in n.findTypeURIs(e))return null;const r=n.statementsMatching(void 0,void 0,void 0,e).length;return 0===r?null:"Data ("+r+") as N3"},render:function(e,t){const n=t.dom,r=t.session.store,a=n.createElement("div");a.setAttribute("class","n3Pane");const o=r.statementsMatching(void 0,void 0,void 0,e),s=i.Serializer(r);s.suggestNamespaces(r.namespaces),s.setBase(e.uri);const c=s.statementsToN3(o),l=n.createElement("PRE");return l.appendChild(n.createTextNode(c)),a.appendChild(l),a}}},6813(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createContext=function(e,t,n,i){return{dom:e,getOutliner:r.getOutliner,session:{paneRegistry:t,store:n,logic:i}}};var r=n(7523)},7981(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.dom;this.document=e.dom,this.outlineIcons=c.outlineIcons,this.labeller=this.labeller||{},this.labeller.LanguagePreference="";const d=this,p=this;let f=[];this.selection=f,this.ancestor=a.utils.ancestor,this.sparql=i.UpdateManager,this.kb=o.store;const h=o.store,m=o.store.fetcher;t.outline=this,this.qs=new u.QuerySource,this.UserInput=new l.UserInput(this),this.clipboardAddress="tabulator:clipboard",this.UserInput.clipboardInit(this.clipboardAddress);const g=this.outlineElement;async function v(e={}){const n=t.createElement("div"),i=o.authn.currentUser();if(!i)throw alert("Must be logged in for this"),new Error("Not logged in");const s=await b();return n.appendChild(a.tabs.tabWidget({dom:t,subject:i,items:s,renderMain:function(e,n){const i=r.byName(n.paneName);e.innerHTML="";const a=e.appendChild(t.createElement("table")),s=o.authn.currentUser();p.GotoSubject(n.subject||s,!0,i,!1,void 0,a)},renderTab:function(e,t){e.dataset.globalPaneName=t.tabName||t.paneName,e.textContent=t.label},ordered:!0,orientation:0,backgroundColor:"#eeeeee",selectedTab:e.selectedTab,onClose:e.onClose})),n}async function b(){const e=o.authn.currentUser();if(!e)return[];t.createElement("div");const[n]=await Promise.all([async function(){async function t(e){return await x(e),!!h.holds(e,$.rdf("type"),$.space("Storage"),e.doc())&&(n.push(e),!0)}try{await h.fetcher.load(e.doc())}catch(e){return[]}let n=h.each(e,$.space("storage"),null,e.doc());n.map(async e=>{await x(e)});try{const e=new URL(window.location.href).searchParams.get("uri")||window.location.href;await async function(e){const n=new URL(e);let r=n.pathname;for(;r.length;)if(r=r.substring(0,r.lastIndexOf("/")),await t(h.sym(`${n.origin}${r}/`)))return}(e)}catch(e){}return n=function(e){const t=[];return e.forEach(e=>{t.find(t=>t.equals(e))||t.push(e)}),t}(n),n.length?n.map((t,n)=>{function r(e){return e.uri.split("//")[1].slice(0,-1)}return{paneName:"folder",tabName:`folder-${n}`,label:r(e).startsWith(r(t))?"Your storage":r(t),subject:t,icon:a.icons.iconBase+"noun_Cabinet_251723.svg"}}):[]}()]);return[{paneName:"home",label:"Your stuff",icon:a.icons.iconBase+"noun_547570.svg"},{paneName:"basicPreferences",label:"Preferences",icon:a.icons.iconBase+"noun_Sliders_341315_00000.svg"},{paneName:"profile",label:"Your Profile",icon:a.icons.iconBase+"noun_15059.svg"},{paneName:"editProfile",label:"Edit your Profile",icon:a.icons.iconBase+"noun_492246.svg"}].concat(n)}function y(){return w("outline")}function w(e){return document.getElementById(e)||(()=>{const t=document.createElement("div");t.id=e;return(document.querySelector('[role="main"]')||document.body).appendChild(t)})()}async function x(e){if(!h.any(e,$.ldp("contains"),void 0,e.doc())){const t=(await h.fetcher.webOperation("GET",e.uri,h.fetcher.initFetchOptions(e.uri,{headers:{accept:"text/turtle"}}))).responseText;i.parse(t,h,e.uri,"text/turtle")}}async function A(n,r,i){const o=t.createElement("tr");i.hover&&o.setAttribute("class","hoverControl");const s=o.appendChild(t.createElement("td"));s.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;display:flex; justify-content: space-between; flex-direction: row;"),s.setAttribute("notSelectable","true"),s.setAttribute("about",n.toNT()),s.setAttribute("colspan","2");const c=s.appendChild(t.createElement("div"));c.style="display:flex; justify-content: flex-start; align-items: center; flex-wrap: wrap;";const l=!!r;if(!i.solo&&!l){c.appendChild(a.utils.AJARImage(a.icons.originalIconBase+"tbl-collapse.png","collapse",void 0,t)).addEventListener("click",N);const e=c.appendChild(t.createElement("h1"));e.appendChild(t.createTextNode(a.utils.label(n))),e.style="font-size: 150%; margin: 0 0.6em 0 0; padding: 0.1em 0.4em;",a.widgets.makeDraggable(e,n)}return c.appendChild(await async function(i,s={}){const c="width: 24px; border-radius: 0.5em; border-top: solid #222 1px; border-left: solid #222 0.1em; border-bottom: solid #eee 0.1em; border-right: solid #eee 0.1em; margin-left: 1em; padding: 3px; background-color: #ffd;",l="width: 24px; border-radius: 0.5em; margin-left: 1em; padding: 3px",u=i.appendChild(t.createElement("nav"));u.style="display:flex; justify-content: flex-start; align-items: center;";const d=s.hideList?[]:await async function(e,t){e.uri.endsWith("/")&&await x(e);const n=t.session.paneRegistry,r=n.list.filter(n=>n.label(e,t)&&!n.global);if(0===r.length)return[n.byName("internal")];const i=await a.login.filterAvailablePanes(r);return 0===i.length?[r[0]]:n.list.indexOf(r[0])<n.list.indexOf(i[0])?[r[0]].concat(i):i}(n,e);o.firstPane=r||function(e,t){return e.find(e=>e.shouldGetFocus&&e.shouldGetFocus(t))||e[0]}(d,n);const p=d.indexOf(o.firstPane);return 1!==d.length&&d.forEach((r,d)=>{const f=r.label(n,e),h="function"==typeof r.icon?r.icon(n,e):r.icon,m=a.utils.AJARImage(h,f,f,t);h instanceof Promise&&h.then(e=>{m.setAttribute("src",e)}).catch(e=>{}),m.style=r===o.firstPane?c:l;!function(r,o){r.addEventListener("click",function(u){let d;for(d=i;d.parentNode&&"TABLE"!==d.nodeName;d=d.parentNode);if("TABLE"!==d.nodeName)throw new Error("outline: internal error.");const p=function(e){for(let n=d.firstChild;n;n=n.nextSibling)void 0!==n.pane&&(e&&n.pane!==e||(n.paneButton&&(n.paneButton.setAttribute("class","paneHidden"),n.paneButton.style=l),C(n),n.pane.requireQueryButton&&d.parentNode.className&&1===f&&t.getElementById("queryButton")&&t.getElementById("queryButton").setAttribute("style","display:none;")))};"paneHidden"===r.getAttribute("class")?(u.shiftKey||p(),function(i){let o;a.log.info("outline: Rendering pane (2): "+i.name);try{o=i.render(n,e,s)}catch(e){o=t.createElement("div"),o.setAttribute("class","exceptionPane");const n=t.createElement("pre");o.appendChild(n),n.appendChild(t.createTextNode(a.utils.stackString(e)))}i.requireQueryButton&&t.getElementById("queryButton")&&t.getElementById("queryButton").removeAttribute("style");const c=d.firstChild.nextSibling,l=t.createElement("tr");l.appendChild(t.createElement("td")).appendChild(o),c?d.insertBefore(l,c):d.appendChild(l),l.pane=i,l.paneButton=r}(o),r.setAttribute("class","paneShown"),r.style=c):(p(o),r.setAttribute("class","paneHidden"),r.style=l);let f=0;for(let e=d.firstChild;e;e=e.nextSibling)e.pane&&e.pane.requireQueryButton&&f++},!1)}(m,r),m.setAttribute("class",d!==p?"paneHidden":"paneShown"),d===p&&(o.paneButton=m),u.appendChild(m)}),u}(s,{hideList:l})),o.firstChild.tabulatorSelect=function(){R(this,!0)},o.firstChild.tabulatorDeselect=function(){R(this,!1)},o}function C(e){const n=e.parentNode,r=n.parentNode,i=t.createElement("table");i.classList.add("placeholderTable"),r.replaceChild(i,n),n.removeChild(e),r.replaceChild(n,i)}this.init=function(){y().outline=this},this.appendAccessIcons=function(e,t,n){if("NamedNode"!==n.termType)return;const r=e.uris(n);r.sort();let i=null;for(let e=0;e<r.length;e++)r[e]!==i&&(i=r[e],p.appendAccessIcon(t,i))},this.appendAccessIcon=function(e,n){if(!n)return"";const r=i.uri.docpart(n);if("http:"!==r.slice(0,5))return"";const o=m.getState(r);let s,l,u;switch(o){case"unrequested":s=c.outlineIcons.src.icon_unrequested,l="fetch",u=j;break;case"requested":s=c.outlineIcons.src.icon_requested,l="fetching",u=L;break;case"fetched":s=c.outlineIcons.src.icon_fetched,u=O,l="loaded";break;case"failed":s=c.outlineIcons.src.icon_failed,l="failed",u=L;break;case"unpermitted":s=c.outlineIcons.src.icon_failed,u=L,l="no perm";break;case"unfetchable":s=c.outlineIcons.src.icon_failed,u=L,l="cannot fetch";break;default:a.log.error("?? state = "+o)}const p=a.utils.AJARImage(s,l,c.outlineIcons.tooltips[s].replace(/[Tt]his resource/,r),t);return p.setAttribute("uri",n),p.addEventListener("click",u),function(e,t){a.log.debug("Button callbacks for "+t+" added");const n=function(n){return function(r){return r.indexOf("#"),!!e&&(!!d.ancestor(e,"DIV")&&(r===t&&(e.src=n,e.title=c.outlineIcons.tooltips[n]),!0))}};m.addCallback("request",n(c.outlineIcons.src.icon_requested)),m.addCallback("done",n(c.outlineIcons.src.icon_fetched)),m.addCallback("fail",n(c.outlineIcons.src.icon_failed))}(p,r),e.appendChild(p),p},this.outlineObjectTD=function(e,n,r,i){const o=t.createElement("td");o.classList.add("obj"),o.setAttribute("notSelectable","false"),o.style.margin="0.2em",o.style.border="none",o.style.padding="0",o.style.verticalAlign="top";return("NamedNode"===e.termType||"BlankNode"===e.termType||"Literal"===e.termType&&e.value.slice&&("ftp://"===e.value.slice(0,6)||"https://"===e.value.slice(0,8)||"http://"===e.value.slice(0,7)))&&(o.setAttribute("about",e.toNT()),o.appendChild(a.utils.AJARImage(a.icons.originalIconBase+"tbl-expand-trans.png","expand",void 0,t)).addEventListener("click",B)),o.setAttribute("class","obj"),h.whether(e,a.ns.rdf("type"),a.ns.link("Request"))&&(o.className="undetermined"),n||(n=V),o.appendChild(n(e)),r&&function(e,n,r){const i=a.utils.AJARImage(c.outlineIcons.src.icon_remove_node,"remove",void 0,t);i.addEventListener("click",D),i.node=r,i.setAttribute("about",n.toNT()),i.style.marginLeft="5px",i.style.marginRight="10px",e.appendChild(i)}(o,e,r),o.tabulatorSelect=function(){R(this,!0)},o.tabulatorDeselect=function(){R(this,!1)},o.addEventListener("click",M),o},this.outlinePredicateTD=function(e,n,r,i){const o=t.createElement("TD");let s;switch(o.setAttribute("about",e.toNT()),o.setAttribute("class",i?"pred internal":"pred"),e.termType){case"BlankNode":o.className="undetermined";break;case"NamedNode":s=a.utils.predicateLabelForXML(e,r);break;case"Collection":s=a.utils.predicateLabelForXML(e.elements[0],r)}s=s?s.slice(0,1).toUpperCase()+s.slice(1):"...";const l=t.createElement("TD");l.classList.add("labelTD"),l.setAttribute("notSelectable","true"),l.appendChild(t.createTextNode(s)),o.appendChild(l),l.style.width="100%",o.appendChild(_.construct(t));for(const e in c.outlineIcons.termWidgets){if(!n||!n.AJAR_statement)break;c.outlineIcons.termWidgets[e].filter&&c.outlineIcons.termWidgets[e].filter(n.AJAR_statement,"pred",r)&&_.addIcon(o,c.outlineIcons.termWidgets[e])}return o.tabulatorSelect=function(){R(this,!0)},o.tabulatorDeselect=function(){R(this,!1)},o.addEventListener("click",M),o},this.getDashboard=v,this.getDashboardItems=b,this.showDashboard=async function(e={}){const t=w("GlobalDashboard"),n=y();if(t.childNodes.length>0&&e.pane){n.style.display="none",t.style.display="inherit";const r=t.querySelector(`[data-global-pane-name="${e.pane}"]`);if(r)return void r.click()}const r=await v({selectedTab:e.pane,onClose:a});o.authSession.events.on("logout",a),n.style.display="none",t.appendChild(r);const i=t.querySelector(`[data-global-pane-name="${e.pane}"]`);function a(){t.style.display="none",n.style.display="inherit"}i&&i.click()};const E=this.propertyTable=function(n,r,i,o){return a.log.debug("Property table for: "+n),n=h.canon(n),r?(a.log.info("Re-expand: "+r),r):((r=t.createElement("table")).classList.add("tableFullWidth"),A(n,i,o).then(i=>{if(r.appendChild(i),i.firstPane){let s;try{a.log.info("outline: Rendering pane (1): "+i.firstPane.name),s=i.firstPane.render(n,e,o)}catch(e){s=t.createElement("div"),s.setAttribute("class","exceptionPane");const n=t.createElement("pre");s.appendChild(n),n.appendChild(t.createTextNode(a.utils.stackString(e)))}const c=t.createElement("tr");c.appendChild(t.createElement("td")).appendChild(s),i.firstPane.requireQueryButton&&t.getElementById("queryButton")&&t.getElementById("queryButton").removeAttribute("style"),r.appendChild(c),c.pane=i.firstPane,c.paneButton=i.paneButton}}),r)};function k(e,t,n){const r=e.createElement("TR");r.AJAR_statement=t,r.AJAR_inverse=n,r.setAttribute("predTR","true");const i=p.outlinePredicateTD(t.predicate,r,n);return r.appendChild(i),r}this.propertyTR=k,this.appendPropertyTRs=function(e,n,r,i){if(a.log.debug("Property list length = "+n.length),0===n.length)return"";let o,s,c;r?(o=function(e){return e.subject},n=n.sort(a.utils.RDFComparePredicateSubject)):(o=function(e){return e.object},n=n.sort(a.utils.RDFComparePredicateObject));const l=n.length;for(s=0;s<l;s++){let u=n[s];if(i&&!i(u.predicate,r))continue;const f=k(t,u,r);e.appendChild(f);const m=f.firstChild;let g=W.defaults[u.predicate.uri],v=0,b=0,y=0;for(c=0;c+s<l&&n[s+c].predicate.sameTerm(u.predicate);c++)c>0&&o(n[s+c]).sameTerm(o(n[s+c-1]))&&v++,o(n[s+c]).lang&&d.labeller.LanguagePreference&&(b+=1,o(n[s+c]).lang.indexOf(d.labeller.LanguagePreference)>=0&&y++);if(y>0&&b===v+1){for(let e=s;e<=s+v;e++)if(d.labeller.LanguagePreference&&o(n[e]).lang.indexOf(d.labeller.LanguagePreference)>=0){f.appendChild(p.outlineObjectTD(o(n[e]),g,void 0,u));break}s+=v}else f.appendChild(p.outlineObjectTD(o(u),g,void 0,u)),f.showNobj=function(i){const l=c-v,d=2*i<l?i:l,f=[];if(1!==l){let v;m.setAttribute("rowspan",d===l?l:i+1),d<l&&1===d&&m.setAttribute("rowspan",2);let b=0;for(v=1;v<c;v++)if(h.canon(o(n[s+v])).sameTerm(h.canon(o(n[s+v-1]))))a.log.info("there are duplicates here: %s",n[s+v-1]);else{b++,u=n[s+v],g=W.defaults[u.predicate.uri];const i=t.createElement("tr");i.style.colspan="1",i.appendChild(p.outlineObjectTD(o(n[s+v]),g,void 0,u)),i.AJAR_statement=u,i.AJAR_inverse=r,e.appendChild(i),b>=d&&(i.style.display="none",f.push(i))}d===l&&m.setAttribute("rowspan",b+1)}if(d<l){const n=t.createElement("tr"),r=n.appendChild(t.createElement("td"));if(r.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;"),r.setAttribute("notSelectable","false"),l>i){const e=t.createElement("a");r.appendChild(e);const n=function(n,r,i,o){return function(r){e.innerHTML="","none"===r?(e.appendChild(a.utils.AJARImage(a.icons.originalIconBase+"tbl-more-trans.png","more","See all",t)),e.appendChild(t.createTextNode(l-o+" more...")),n.setAttribute("rowspan",o+1)):(e.appendChild(a.utils.AJARImage(a.icons.originalIconBase+"tbl-shrink.png","(less)",void 0,t)),n.setAttribute("rowspan",l+1));for(let e=0;e<f.length;e++)f[e].style.display=r}}(m,0,0,i);let o="none";const s=function(e){return n(o),o="none"===o?"":"none",e&&e.stopPropagation(),!1};s(),e.addEventListener("click",s,!1)}e.appendChild(n)}},f.showAllobj=function(){f.showNobj(c-v)},f.showNobj(10),s+=c-1}};const _={};n.g.termWidget=_,_.construct=function(e){const t=(e=e||document).createElement("TD");return t.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;"),t.setAttribute("class","iconTD"),t.setAttribute("notSelectable","true"),t.style.width="0px",t},_.addIcon=function(e,n,r){const i=e.childNodes[1];if(!i)return;let o=i.style.width;const s=a.utils.AJARImage(n.src,n.alt,n.tooltip,t);o=parseInt(o),o+=n.width,i.style.width=o+"px",i.appendChild(s),r&&s.addEventListener("click",r)},_.removeIcon=function(e,n){const r=e.childNodes[1];let a;if(!r)return;let o=r.style.width;o=parseInt(o),o-=n.width,r.style.width=o+"px";for(let e=0;e<r.childNodes.length;e++){const o=r.childNodes[e],s=o.src;try{a=t.location.href.split("?")[0]}catch(e){a=""}s===i.uri.join(n.src,a)&&r.removeChild(o)}},_.replaceIcon=function(e,t,n,r){_.removeIcon(e,t),_.addIcon(e,n,r)};function S(e){const t=e.getAttribute("class");return!!(t&&t.indexOf("selected")>=0)}function T(e){const t=p.targetOf(e).parentNode;_.replaceIcon(t.parentNode,c.outlineIcons.termWidgets.optOn,c.outlineIcons.termWidgets.optOff,P),t.parentNode.parentNode.removeAttribute("optional")}function P(e){const t=p.targetOf(e).parentNode;_.replaceIcon(t.parentNode,c.outlineIcons.termWidgets.optOff,c.outlineIcons.termWidgets.optOn,T),t.parentNode.parentNode.setAttribute("optional","true")}function F(e,t){const n=c.outlineIcons.termWidgets.optOn,r=c.outlineIcons.termWidgets.optOff;for(let i=e;i.parentNode;i=i.parentNode)for(;;){if(i.getAttribute("predTR")){let e=i.getAttribute("parentOfSelected");e=e?parseInt(e):0,0===e&&t>0&&_.addIcon(i.childNodes[0],i.getAttribute("optional")?n:r,i.getAttribute("optional")?T:P),e+=t,i.setAttribute("parentOfSelected",e),0===e&&(i.removeAttribute("parentOfSelected"),_.removeIcon(i.childNodes[0],i.getAttribute("optional")?n:r));break}if(!i.previousSibling||"TR"!==i.previousSibling.nodeName)break;i=i.previousSibling}}function R(e,t){if("TD"!==e.nodeName)throw a.log.debug("down"+e.nodeName),new Error("Expected TD in setSelected: "+e.nodeName+" : "+e.textContent);a.log.debug("pass");let n=e.getAttribute("class");if(n||(n=""),t){n+=" selected",(n.indexOf("pred")>=0||n.indexOf("obj")>=0)&&F(e,1),f.push(e);const t=a.utils.getTerm(e);p.showURI(t);let r=e.AJAR_statement;if(void 0===r&&e.parentNode&&(r=e.parentNode.AJAR_statement),r){const t=r.why,i=o.store.updater.editable(t.uri,h);i&&n.indexOf("pred")>=0&&_.addIcon(e,c.outlineIcons.termWidgets.addTri)}}else a.log.debug("cla=$"+n+"$"),"selected"===n&&(n=""),n=n.replace(" selected",""),(n.indexOf("pred")>=0||n.indexOf("obj")>=0)&&F(e,-1),n.indexOf("pred")>=0&&_.removeIcon(e,c.outlineIcons.termWidgets.addTri),f=f.filter(function(t){return t===e}),a.log.info("Deselecting "+e.textContent);"undefined"!=typeof sourceWidget&&p.showSource(),e.setAttribute("class",n)}function I(){for(let e=f.length-1;e>=0;e--)R(f[e],!1);f=[]}function B(e){const t=p.targetOf(e),n=t.parentNode,i=a.utils.getAbout(h,t);e.altKey&&r.byName("internal");e.shiftKey?q(n,i):e.altKey?z(n,i,{pane:r.byName("internal"),immediate:!0}):z(n,i)}function N(e){const t=p.targetOf(e),n=a.utils.getAbout(h,t);e.altKey&&r.byName("internal");H(t.parentNode.parentNode,n)}function L(e){const t=p.targetOf(e).getAttribute("uri");e.altKey?m.fetch(i.uri.docpart(t),{force:!0}):m.refresh(h.sym(i.uri.docpart(t)))}function O(e){const t=p.targetOf(e).getAttribute("uri");e.altKey?m.fetch(i.uri.docpart(t),{force:!0}):m.refresh(h.sym(i.uri.docpart(t)))}function j(e){const t=p.targetOf(e).getAttribute("uri");m.fetch(i.uri.docpart(t))}function D(e){const t=p.targetOf(e);let n=t.node;n.childNodes.length>1&&(n=t.parentNode),C(n)}function M(e){if(p.UserInput._tabulatorMode)return p.UserInput.Click(e);const t=p.targetOf(e);let n;for(n=a.utils.ancestor(t,"TD");n&&"false"!==n.getAttribute("notSelectable");n=a.utils.ancestor(n.parentNode,"TD"));if(!n)return;const r=S(n);if(a.log.debug("Was node selected before: "+r),e.altKey)R(n,!S(n));else if(e.shiftKey)R(n,!0);else{if(I(),p.UserInput.clearInputAndSave(e),R(n,!0),2===e.detail)return void e.stopPropagation();let t;if(n.parentNode&&(t=n.parentNode.AJAR_statement),!t)return;const i=t.why,a=o.store.updater.editable(i.uri,h);r&&a&&p.UserInput.Click(e,f[0])}a.log.debug("Was node selected after: "+S(n)+", count="+f.length),e.stopPropagation()}function U(e){t.title=a.utils.label(e),t.location.href.startsWith(e.site().uri)}function z(e,n,r){const o=(r=r||{}).pane;let s=!!r.already;const c=r.immediate;a.log.info("@outlineExpand, dom is now "+t.location),m.removeCallback("done","expand"),m.removeCallback("fail","expand");let l=h.canon(n);function u(){if(l=h.canon(l),!e||!e.parentNode||!e.parentNode.parentNode)return!1;let t;if(a.log.info("@@ REPAINTING "),s){for(a.log.info(" ... p is "+e),t=e.firstChild;t.nextSibling&&(a.log.info(" ... checking node "+t),"table"!==t.nodeName);t=t.nextSibling);t=E(l,t,o,r)}else t=E(l,void 0,o,r);s=!0,a.utils.ancestor(e,"TABLE")&&"white"===a.utils.ancestor(e,"TABLE").style.backgroundColor?t.style.backgroundColor="#eee":t.style.backgroundColor="white",a.utils.emptyNode(e).appendChild(t),p.focusTd=e,a.log.debug("expand: Node for "+l+" expanded");const n=h.each(l,a.ns.rdfs("seeAlso"));for(let e=0;e<n.length;e++)25===e&&a.log.warn("expand: Warning: many ("+n.length+") seeAlso links for "+l),m.lookUpThing(n[e],l)}function d(e){if(arguments[3])return!0;const t=h.canon(l);a.log.info("@@ expand: relevant subject="+t+", uri="+e+", already="+s);const n=h.sym(i.uri.docpart(e));if(e.indexOf("#")>=0)throw new Error("Internal error: hash in "+e);return!function(){if(!t.uri)return!0;const r=h.uris(t);if(!r)return!1;for(let t=0;t<r.length;t++)for(let n=i.uri.docpart(r[t]);n;n=h.HTTPRedirects[n])if(e===n)return!0;return!!h.anyStatementMatching(t,void 0,void 0,n)}()||(a.log.success("@@ expand OK: relevant subject="+t+", uri="+e+", source="+s),u(),!1)}r.solo&&U(l),a.log.debug("outlineExpand: dereferencing "+l);const f=t.createElement("span");e.appendChild(f),m.addCallback("done",d),m.addCallback("fail",d);const v=[];if(l.uri&&"rdf"===l.uri.split(":")[0])u();else{for(let e=0;e<v.length;e++){let t;if(t===v[e](l))return u(),a.log.debug("outline 1815"),void(t[1]&&g.removeChild(g.lastChild))}if(!l.uri||c||a.widgets.isAudio(l)||a.widgets.isVideo(l))u();else{const n=l.doc()&&l.doc().uri?l.doc().uri:""+l.doc(),i=function(r,i){if(e.querySelector&&n){if(e.querySelector('[data-outline-error-for="'+n+'"]'))return}const o=a.widgets.errorMessageBlock(t,r,"#fee",i instanceof Error?i:void 0);n&&o.setAttribute("data-outline-error-for",n),e.appendChild(o)};let o=!1;const s=m.nowOrWhenFetched(l.doc(),void 0,function(e,t){e?(m.lookUpThing(l),u(),r.solo&&U(l)):(o=!0,i(t,void 0))});s&&"function"==typeof s.catch&&s.catch(function(e){o||(o=!0,i(e,e))})}}}function H(e,t){let n,r,i,o,s=a.utils.ancestor(e,"TR");for(s=a.utils.ancestor(s.parentNode,"TR"),s&&(n=s.AJAR_statement),r=e.parentNode;"TD"!==r.tagName;r=r.parentNode)if(void 0===r)return void alert("Not enclosed in TD!");a.log.debug("Collapsing subject "+t),n&&(a.log.debug("looking up pred "+n.predicate.uri+"in defaults"),i=W.defaults[n.predicate.uri]),a.log.debug("view= "+i),"outline"===r.parentNode.parentNode.id&&(o=r.parentNode),p.replaceTD(p.outlineObjectTD(t,i,o,n),r)}function q(e,t){let n=null;for(let t=e.parentNode;t;t=t.parentNode)a.log.debug("level "+t.tagName),"TD"===t.tagName&&(n=t);a.utils.emptyNode(n).appendChild(E(t)),U(t),n.setAttribute("about",t.toNT())}new function(){this.pat=h.formula(),this.vars=[]},this.statusBarClick=function(e){const t=a.utils.getTarget(e);t.label&&(window.content.location=t.label)},this.showURI=function(e){e&&t.getElementById("UserURI")&&(t.getElementById("UserURI").value="NamedNode"===e.termType?e.uri:"")},this.showSource=function(){if("undefined"!=typeof sourceWidget){for(const e in sourceWidget.sources)sourceWidget.sources[e].setAttribute("class","");for(let e=0;e<f.length;e++){if(!f[e].parentNode)continue;const t=f[e].parentNode.AJAR_statement;if(!t)continue;const n=t.why;n&&n.uri&&sourceWidget.highlight(n,!0)}}},this.getSelection=function(){return f},this.targetOf=function(e){let t;if(e||(e=window.event),e.target)t=e.target;else{if(!e.srcElement)return a.log.error("can't get target for event "+e),!1;t=e.srcElement}return 3===t.nodeType&&(t=t.parentNode),t},this.walk=function(e,n){const r=n||f[0];let i;switch(e){case"down":try{i=r.parentNode.nextSibling.lastChild}catch(e){return void this.walk("up")}I(),R(i,!0);break;case"up":try{i=r.parentNode.previousSibling.lastChild}catch(e){return}I(),R(i,!0);break;case"right":if(I(),r.nextSibling||"strong"===r.lastChild.tagName)R(r.nextSibling,!0);else{R(t.evaluate("table/div/tr/td[2]",r,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,!0)}break;case"left":if(I(),r.previousSibling&&"undetermined"===r.previousSibling.className)return R(r.previousSibling,!0),!0;R(a.utils.ancestor(r.parentNode,"TD"),!0);break;case"moveTo":I(),R(n,!0)}"down"!==e&&"up"!==e||i.tabulatorSelect||this.walk(e)},this.OutlinerKeypressPanel=function(e){function n(e){e&&t.getElementById("UserURI")&&(t.getElementById("UserURI").value="NamedNode"===e.termType?e.uri:"")}function i(e){return arguments[3]||(u("right",l),n(a.utils.getAbout(h,f[0]))),!0}let s,c;if(a.log.info("Key "+e.keyCode+" pressed"),"TEXTAREA"===a.utils.getTarget(e).tagName)return;if("UserURI"===a.utils.getTarget(e).id)return;if(f.length>1)return;if(0===f.length)return void(13!==e.keyCode&&38!==e.keyCode&&40!==e.keyCode&&37!==e.keyCode&&39!==e.keyCode||(this.walk("right",p.focusTd),n(a.utils.getAbout(h,f[0]))));const l=f[0];switch(m.removeCallback("done","setSelectedAfterward"),m.removeCallback("fail","setSelectedAfterward"),e.keyCode){case 13:if("HTML"===a.utils.getTarget(e).tagName){const e=a.utils.getAbout(h,l);s=l.parentNode.AJAR_statement.why,c=o.store.updater.editable(s.uri,h),e?d.GotoSubject(e,!0):c&&p.UserInput.Enter(l)}else this.UserInput.Keypress(e),this.walk("down"),e.stopPropagation();return;case 38:this.walk("up"),e.stopPropagation(),e.preventDefault();break;case 40:this.walk("down"),e.stopPropagation(),e.preventDefault()}if("INPUT"===a.utils.getTarget(e).tagName)return;let u;switch(e.keyCode){case 46:case 8:s=l.parentNode.AJAR_statement.why,c=o.store.updater.editable(s.uri,h),c&&(e.preventDefault(),this.UserInput.Delete(l));break;case 37:{if(this.walk("left"))return;const e=a.utils.ancestor(l.parentNode,"TD");H(l,a.utils.getAbout(h,e));break}case 39:{const e=a.utils.getAbout(h,l);if(e){if(u=this.walk,l.nextSibling)return void this.walk("right");"TABLE"!==l.firstChild.tagName&&(m.addCallback("done",i),m.addCallback("fail",i),z(l,e,{pane:r.byName("defaultPane")})),i()}}break;case 38:case 40:break;default:switch(e.charCode){case 99:if(e.ctrlKey){p.UserInput.copyToClipboard(p.clipboardAddress,l);break}break;case 118:case 112:if(e.ctrlKey){p.UserInput.pasteFromClipboard(p.clipboardAddress,l);break}break;default:a.utils.getTarget(e).tagName}}if(n(a.utils.getAbout(h,f[0])),f[0]){const e=a.utils.findPos(f[0])[1];e+f[0].clientHeight>window.scrollY+window.innerHeight&&a.utils.getEyeFocus(f[0],!0,!0,window),e<window.scrollY+54&&a.utils.getEyeFocus(f[0],!0,void 0,window)}},this.OutlinerMouseclickPanel=function(e){switch(p.UserInput._tabulatorMode){case 0:!function(e){a.log.info("@TabulatorMousedown, dom.location is now "+t.location);const n=p.targetOf(e);if(!n)return;const r=n.tagName;"INPUT"!==r&&"TEXTAREA"!==r&&(p.UserInput.clearMenu(),p.UserInput.lastModified&&p.UserInput.lastModified.parentNode.nextSibling&&p.UserInput.backOut(),(!n.src||n.src.slice(n.src.indexOf("/icons/")+1)!==c.outlineIcons.src.icon_show_choices&&n.src.slice(n.src.indexOf("/icons/")+1)!==c.outlineIcons.src.icon_add_triple)&&p.UserInput.clearInputAndSave(e),n.src&&n.src.slice(n.src.indexOf("/icons/")+1)===c.outlineIcons.src.icon_show_choices||p.UserInput.clearMenu(),e&&e.stopPropagation())}(e);break;case 1:p.UserInput.Click(e)}},this.replaceTD=function(e,t){let n;S(t)&&(n=!0);for(let e=f.length-1;e>-1;e--)for(let n=f[e];n.parentNode;n=n.parentNode)n===t&&R(f[e],!1);t.parentNode.replaceChild(e,t),n&&R(e,!0)},d.outlineRefocus=q,this.GotoFormURI_enterKey=function(e){13===e.keyCode&&d.GotoFormURI(e)},this.GotoFormURI=function(e){!function(e){const t=h.sym(e);this.GotoSubject(t,!0)}(t.getElementById("UserURI").value)},this.GotoURIinit=function(e){const t=h.sym(e);this.GotoSubject(t)},this.GotoSubject=function(e,n,r,i,o,s){s=s||t.getElementById("outline"),i&&(a.utils.emptyNode(s),s.style.width="100%");const c=function(){const n=t.createElement("TR");n.style.verticalAlign="top",s.appendChild(n);const r=p.outlineObjectTD(e,void 0,n);return n.appendChild(r),r}();if(i&&U(e),n){z(c,e,{pane:r,solo:i});const t=c.parentNode;a.utils.getEyeFocus(t,!1,void 0,window)}if(i&&t&&t.defaultView&&t.defaultView.history&&document.location.href!==e.uri){const n=r?{paneName:r.name}:{};try{t.defaultView.history.pushState(n,e.uri,e.uri)}catch(e){}}return e};const $=a.ns,W=(0,s.propertyViews)(t);function V(n){let i;if("Literal"===n.termType){const e={integer:"text-align: right;",decimal:"text-align: '.';",double:"text-align: '.';"};i=t.createElement("span"),i.textContent=n.value;let r="";if(n.datatype&&n.datatype.uri){const t=a.ns.xsd("").uri;n.datatype.uri.slice(0,t.length)===t&&(r=e[n.datatype.uri.slice(t.length)])}i.setAttribute("style",r||"white-space: pre-wrap;")}else if("NamedNode"===n.termType||"BlankNode"===n.termType)if(i=t.createElement("span"),i.setAttribute("about",n.toNT()),p.appendAccessIcons(h,i,n),"NamedNode"===n.termType)if("tel:"===n.uri.slice(0,4)){const e=n.uri.slice(4),r=t.createElement("a");i.appendChild(t.createTextNode(e)),r.setAttribute("href",n.uri),r.appendChild(a.utils.AJARImage(c.outlineIcons.src.icon_telephone,"phone","phone "+e,t)),i.appendChild(r),r.firstChild.setAttribute("class","phoneIcon")}else{i.appendChild(t.createTextNode(a.utils.label(n)));const e=a.widgets.linkIcon(t,n);i.appendChild(e),a.widgets.makeDraggable(i,n)}else i.appendChild(t.createTextNode(a.utils.label(n)));else if("Collection"===n.termType){i=t.createElement("table"),i.classList.add("tableFullWidth"),i.setAttribute("about",n.toNT());for(let e=0;e<n.elements.length;e++){const r=n.elements[e],a=i.appendChild(t.createElement("tr")),o=a.appendChild(t.createElement("td"));o.classList.add("obj"),o.setAttribute("notSelectable","false"),o.setAttribute("about",n.toNT()),o.innerHTML=e+1+")",a.appendChild(p.outlineObjectTD(r))}}else"Graph"===n.termType?(i=r.byName("dataContentPane").statementsAsTables(n.statements,e),i.setAttribute("class","nestedFormula")):(a.log.error("Object "+n+" has unknown term type: "+n.termType),i=t.createTextNode("[unknownTermType:"+n.termType+"]"));return a.log.debug("contents: "+i.innerHTML),i}return this.createTabURI=function(){t.getElementById("UserURI").value=t.URL+"?uri="+t.getElementById("UserURI").value},this.UserInput.setSelected=R,this.UserInput.deselectAll=I,this.UserInput.views=W,this.outlineExpand=z,this};var r=d(n(4059));n(3824);var i=d(n(8230)),a=d(n(500)),o=n(9332),s=n(8071),c=n(7132),l=n(7339),u=d(n(2697));function d(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(d=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}},7132(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.outlineIcons=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));const i=t.outlineIcons={};i.src=[],i.tooltips=[],i.src.icon_expand=r.icons.originalIconBase+"tbl-expand-trans.png",i.src.icon_more=r.icons.originalIconBase+"tbl-more-trans.png",i.src.icon_collapse=r.icons.originalIconBase+"tbl-collapse.png",i.src.icon_internals=r.icons.originalIconBase+"tango/22-emblem-system.png",i.src.icon_instances=r.icons.originalIconBase+"tango/22-folder-open.png",i.src.icon_foaf=r.icons.originalIconBase+"foaf/foafTiny.gif",i.src.icon_social=r.icons.originalIconBase+"social/social.gif",i.src.icon_mb=r.icons.originalIconBase+"microblog/microblog.png",i.src.icon_shrink=r.icons.originalIconBase+"tbl-shrink.png",i.src.icon_rows=r.icons.originalIconBase+"tbl-rows.png",i.src.icon_unrequested=r.icons.originalIconBase+"16dot-blue.gif",i.src.icon_fetched=r.icons.originalIconBase+"16dot-green.gif",i.src.icon_failed=r.icons.originalIconBase+"16dot-red.gif",i.src.icon_requested=r.icons.originalIconBase+"16dot-yellow.gif",i.src.icon_CVPane=r.icons.originalIconBase+"CV.png",i.src.icon_defaultPane=r.icons.originalIconBase+"about.png",i.src.icon_visit=r.icons.originalIconBase+"tango/22-text-x-generic.png",i.src.icon_dataContents=r.icons.originalIconBase+"rdf_flyer.24.gif",i.src.icon_n3Pane=r.icons.originalIconBase+"w3c/n3_smaller.png",i.src.icon_RDFXMLPane=r.icons.originalIconBase+"22-text-xml4.png",i.src.icon_imageContents=r.icons.originalIconBase+"tango/22-image-x-generic.png",i.src.icon_airPane=r.icons.originalIconBase+"1pt5a.gif",i.src.icon_LawPane=r.icons.originalIconBase+"law.jpg",i.src.icon_pushbackPane=r.icons.originalIconBase+"pb-logo.png",i.src.icon_photoPane=r.icons.originalIconBase+"photo_small.png",i.src.icon_tagPane=r.icons.originalIconBase+"tag_small.png",i.src.icon_TinyTag=r.icons.originalIconBase+"tag_tiny.png",i.src.icon_photoBegin=r.icons.originalIconBase+"photo_begin.png",i.src.icon_photoNext=r.icons.originalIconBase+"photo_next.png",i.src.icon_photoBack=r.icons.originalIconBase+"photo_back.png",i.src.icon_photoEnd=r.icons.originalIconBase+"photo_end.png",i.src.icon_photoImportPane=r.icons.originalIconBase+"flickr_small.png",i.src.icon_retract=r.icons.originalIconBase+"retract.gif",i.src.icon_refresh=r.icons.originalIconBase+"refresh.gif",i.src.icon_optoff=r.icons.originalIconBase+"optional_off.PNG",i.src.icon_opton=r.icons.originalIconBase+"optional_on.PNG",i.src.icon_map=r.icons.originalIconBase+"compassrose.png",i.src.icon_retracted=i.src.icon_unrequested,i.src.icon_retracted=i.src.icon_unrequested,i.src.icon_time=r.icons.originalIconBase+"icons/Wclocksmall.png",i.src.icon_telephone=r.icons.originalIconBase+"silk/telephone.png",i.src.icon_time=r.icons.originalIconBase+"Wclocksmall.png",i.src.icon_remove_node=r.icons.originalIconBase+"tbl-x-small.png",i.src.icon_add_triple=r.icons.originalIconBase+"tango/22-list-add.png",i.src.icon_add_new_triple=r.icons.originalIconBase+"tango/22-list-add-new.png",i.src.icon_show_choices=r.icons.originalIconBase+"userinput_show_choices_temp.png",i.src.icon_display_reasons=r.icons.originalIconBase+"tango/22-help-browser.png",i.tooltips[i.src.icon_display_reasons]="Display explanations",i.tooltips[i.src.icon_add_triple]="Add more",i.tooltips[i.src.icon_add_new_triple]="Add one",i.tooltips[i.src.icon_remove_node]="Remove",i.tooltips[i.src.icon_expand]="View details.",i.tooltips[i.src.icon_collapse]="Hide details.",i.tooltips[i.src.icon_shrink]="Shrink list.",i.tooltips[i.src.icon_internals]="Under the hood",i.tooltips[i.src.icon_instances]="List",i.tooltips[i.src.icon_foaf]="Friends",i.tooltips[i.src.icon_rows]="Make a table of data like this",i.tooltips[i.src.icon_unrequested]="Fetch this.",i.tooltips[i.src.icon_fetched]="Fetched successfully.",i.tooltips[i.src.icon_failed]="Failed to load. Click to retry.",i.tooltips[i.src.icon_requested]="This is being fetched. Please wait...",i.tooltips[i.src.icon_visit]="View document",i.tooltips[i.src.icon_retract]="Remove this source and all its data from tabulator.",i.tooltips[i.src.icon_refresh]="Refresh this source and reload its triples.",i.OutlinerIcon=function(e,t,n,r,i){return this.src=e,this.alt=n,this.width=t,this.tooltip=r,this.filter=i,this},i.termWidgets={},i.termWidgets.optOn=new i.OutlinerIcon(i.src.icon_opton,20,"opt on","Make this branch of your query mandatory."),i.termWidgets.optOff=new i.OutlinerIcon(i.src.icon_optoff,20,"opt off","Make this branch of your query optional."),i.termWidgets.addTri=new i.OutlinerIcon(i.src.icon_add_triple,18,"add tri","Add one")},8071(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.propertyViews=function(e){const t={properties:[],defaults:[],classes:[]},n=(0,i.default)(e),o=(0,a.default)(e);return s(t,r.ns.foaf("depiction").uri,n,!0),s(t,r.ns.foaf("img").uri,n,!0),s(t,r.ns.foaf("thumbnail").uri,n,!0),s(t,r.ns.foaf("logo").uri,n,!0),s(t,r.ns.schema("image").uri,n,!0),s(t,r.ns.foaf("mbox").uri,o,!0),t},t.viewsAddPropertyView=s;var r=n(500),i=o(n(3660)),a=o(n(6357));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n,r){e.properties[t]||(e.properties[t]=[]),e.properties[t].push(n),r&&(e.defaults[t]=n)}},2697(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuerySource=function(){this.queries=[],this.listeners=[],this.addQuery=function(e){let t;for(null!==e.name&&""!==e.name||(e.name="Query #"+(this.queries.length+1)),e.id=this.queries.length,this.queries.push(e),t=0;t<this.listeners.length;t++)null!==this.listeners[t]&&this.listeners[t].addQuery(e)},this.removeQuery=function(e){let t;for(t=0;t<this.listeners.length;t++)null!==this.listeners[t]&&this.listeners[t].removeQuery(e);null!==this.queries[e.id]&&delete this.queries[e.id]},this.addListener=function(e){let t;for(this.listeners.push(e),t=0;t<this.queries.length;t++)null!==this.queries[t]&&e.addQuery(this.queries[t])},this.removeListener=function(e){let t;for(t=0;t<this.queries.length;t++)null!==this.queries[t]&&e.removeQuery(this.queries[t]);for(t=0;t<this.listeners.length;t++)this.listeners[t]===e&&delete this.listeners[t]}},t.makeQueryRow=l,t.viewAndSaveQuery=function(e,t){const n=e.qs;i.log.info("outline.doucment is now "+e.document.location);const r=function(e,t){const n=new a.Query,r=e.length;let o,s,c,u;for(o=0;o<r;o++)s=e[o],u=s.parentNode,c=u.AJAR_statement,i.log.debug("Statement "+c),s.getAttribute("class").indexOf("pred")>=0&&(i.log.info(" We have a predicate"),l(n,u)),s.getAttribute("class").indexOf("obj")>=0&&(i.log.info(" We have an object"),l(n,u,!0));function d(e){const t=e.statements.length;let n,r;for(let i=0;i<t;i++)n=e.statements[i],r=n.tr,void 0!==r&&(r.AJAR_pattern=null,r.AJAR_variable=null);for(const t in e.optional)d(e.optional[t])}return t.addQuery(n),d(n.pat),n}(t,n);for(let e=0;e<n.listeners.length;e++)n.listeners[e].getActiveView().view.drawQuery(r),n.listeners[e].updateQueryControls(n.listeners[e].getActiveView())};var r=n(9332),i=o(n(500)),a=o(n(8230));function o(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const s=[];function c(e){let t=e;for(;;){if(t.getAttribute("predTR"))return t;if(!t.previousSibling||"TR"!==t.previousSibling.nodeName)return e;t=t.previousSibling}}function l(e,t,n){const o=t.AJAR_inverse;let u,d,p;let f=null;for(d=t.parentNode;d;d=d.parentNode)if(void 0!==d.AJAR_statement){d.setAttribute("bla",d.AJAR_statement),d.AJAR_variable||l(e,d),u=d.AJAR_variable;const t=c(d);t.getAttribute("optionalSubqueriesIndex")&&(f=t.getAttribute("optionalSubqueriesIndex"),p=s[f]);break}p||(p=e.pat);const h=c(t),m=h.getAttribute("optional");if(m||(f?h.setAttribute("optionalSubqueriesIndex",f):h.removeAttribute("optionalSubqueriesIndex")),m){const e=r.store.formula();s.push(e),h.setAttribute("optionalSubqueriesIndex",s.length-1),p.optional.push(e),p=e}const g=t.AJAR_statement,v=t.AJAR_inverse?g.subject:g.object;let b=!0;v.isBlank&&n&&window.alert("You cannot constrain a query with a blank node. No constraint will be added."),u||(b=!1,u=o?g.object:g.subject);const y=t.AJAR_variable?t.AJAR_variable:r.store.variable(i.utils.newVariableName());e.vars.push(y),y.label=b?u.label:i.utils.label(u),y.label+=" "+i.utils.predicateLabelForXML(g.predicate,o);const w=(x=y,A=u,o?new a.Statement(x,g.predicate,A):new a.Statement(A,g.predicate,x));var x,A;return y.label=y.label.slice(0,1).toUpperCase()+y.label.slice(1),n&&(p.constraints[y]=new function(e){return this.describe=function(t){return t+" = "+e.toNT()},this.test=function(t){return e.sameTerm(t)},this}(v)),i.log.info("Pattern: "+w),w.tr=t,t.AJAR_pattern=w,t.AJAR_variable=y,i.log.debug("Query pattern: "+w),p.statements.push(w),y}},7339(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserInput=function e(t){const n=t.document;this.menuId="predicateMenu1";const s=function(e){},u=r.ns.rdf,d=o.Namespace("http://purl.org/ontology/bibo/"),p=o.Namespace("http://purl.org/dc/elements/1.1/");let f=!1;c||(c=new o.Formula,c.superFormula=i.store);l||(l=new o.IndexedFormula);l.name="TempFormula",i.store.updater||(i.store.updater=new o.UpdateManager(i.store));return{sparqler:i.store.updater,lastModified:null,lastModifiedStat:null,statIsInverse:!1,addNewPredicateObject:function(e){if("bottom-border-active"!==r.utils.getTarget(e).className)return;const a=t.UserInput,s=r.utils.getTarget(e),c=n.createElement("tr");r.utils.ancestor(s,"DIV").insertBefore(c,r.utils.ancestor(s,"TR"));const l=n.createElement("tr"),u=a.generateRequest("(TBD)",l,!0);c.appendChild(l.firstChild);const d=a.generateRequest("(Enter text or drag an object onto this field)",l,!1);if(c.appendChild(l.firstChild),r.utils.ancestor(s,"TR").previousSibling&&r.utils.ancestor(s,"TR").previousSibling.AJAR_statement){const e=r.utils.ancestor(s,"TR").previousSibling.AJAR_statement;a.formUndetStat(c,e.subject,u,d,e.why,!1)}else{const e=r.utils.getAbout(i.store,r.utils.ancestor(s.parentNode.parentNode,"TD")),t=i.store.sym(o.Util.uri.docpart(e.uri));a.formUndetStat(c,e,u,d,t,!1)}t.walk("moveTo",c.firstChild),r.log.info("addNewPredicateObject: selection = "+t.getSelection().map(function(e){return e.textContent}).join(", ")),this.startFillInText(t.getSelection()[0])},addNewObject:function(e){const n=r.utils.getTarget(e).parentNode.parentNode,i=n.parentNode.AJAR_inverse;this.lastModifiedStat=n.parentNode.AJAR_statement;const a=this.appendToPredicate(n),o=this.generateRequest(" (Error) ",a,!1),s=a.previousSibling.AJAR_statement;i?this.formUndetStat(a,o,s.predicate,s.object,s.why,!0):this.formUndetStat(a,s.subject,s.predicate,o,s.why,!1),t.walk("moveTo",a.lastChild),this.startFillInText(a.lastChild)},Delete:function(e){this.deleteTriple(e,!1)},Enter:function(e){this.literalModification(e)},Click:function(e){const t=r.utils.getTarget(e);"Literal"===r.utils.getTerm(t).termType&&(this.literalModification(t),e.preventDefault(),e.stopPropagation())},pasteFromClipboard:function(e,n){function i(e){const n=t.clipboard[e].shift();if(null!==n){switch(e){case"predicates":case"objects":{const e=t.clipboard.all;for(let t=0;;t++)if(n.sameTerm(e[t])){e.splice(t,1);break}break}case"all":throw new Error("hostorical code not understood - what is theCollection?")}return n}r.log.warn("no more element in clipboard!")}let a;switch(n.className){case"undetermined selected":if(a=n.nextSibling?i("predicates"):i("objects"),!a)return;break;case"pred selected":if(a=i("objects"),!a)return;break;case"selected":{const e=i("all");if(!e)return;return a=e[0],void this.insertTermTo(n,a,e[1])}}this.insertTermTo(n,a)},startFillInText:function(e){switch(this.whatSortOfEditCell(e)){case"DatatypeProperty-like":r.utils.emptyNode(e),this.lastModified=this.createInputBoxIn(e," (Please Input) "),this.lastModified.isNew=!1,this.lastModified.select();break;case"predicate":this.performAutoCompleteEdit(e,"PredicateAutoComplete");break;case"ObjectProperty-like":case"no-idea":this.performAutoCompleteEdit(e,"GeneralAutoComplete")}},literalModification:function(e){if(r.log.debug("entering literal Modification with "+e+e.textContent),-1!==e.className.indexOf(" pendingedit"))return r.log.warn("The node you attempted to edit has a request still pending.\nPlease wait for the request to finish (the text will turn black)\nbefore editing this node again."),!0;const t=e;if(!this.getStatementAbout(t))return;let a,o,s;try{a=r.utils.getTerm(t),o=r.utils.ancestor(t,"TR")}catch(n){r.log.warn("userinput.js: "+n+r.utils.getAbout(i.store,e)),r.log.error(t+" getStatement Error:"+n)}try{s=o.lastChild}catch(e){r.log.error(e+"@"+t)}if("Literal"===a.termType){if(s.removeChild(s.firstChild),a.value.match("\n")){const e=n.createElement("textarea");e.appendChild(n.createTextNode(a.value)),e.setAttribute("rows",(a.value.match(/\n/g).length+1).toString()),e.setAttribute("cols","100"),e.setAttribute("class","textinput"),s.appendChild(e),this.lastModified=e}else this.lastModified=this.createInputBoxIn(s,a.value);this.lastModified.isNew=!1,this.lastModified.select()}return!0},performAutoCompleteEdit:function(e,t){r.utils.emptyNode(e),this.lastModified=this.createInputBoxIn(e,""),this.lastModified.select(),this.lastModified.addEventListener("keypress",this.getAutoCompleteHandler(t),!1),this.getAutoCompleteHandler(t)(1)},backOut:function(){this.deleteTriple(this.lastModified.parentNode,!0),this.lastModified=null},clearMenu:function(){const e=n.getElementById(this.menuID);e&&e.parentNode.removeChild(e)},clearInputAndSave:function(e){let n;if(!this.lastModified)return;if(!this.lastModified.isNew)try{n=this.getStatementAbout(this.lastModified).object}catch(e){return}let s,c,l,d,p=this.lastModifiedStat;if(this.lastModified.value!==this.lastModified.defaultValue){let c;if(""===this.lastModified.value)return this.lastModified.value=this.lastModified.defaultValue,void this.clearInputAndSave();if(this.lastModified.isNew){p=new o.Statement(p.subject,p.predicate,i.store.literal(this.lastModified.value),p.why),s=this.views.defaults[p.predicate.uri],c=r.utils.ancestor(this.lastModified,"TR");try{i.store.updater.update([],[p],function(e,n,i){n||(r.log.error("Error occurs while inserting "+p+"\n\n"+i+"\n"),t.UserInput.deleteTriple(c.lastChild,!0))})}catch(e){return void r.log.error("Error inserting fact "+p+":\n\t"+e+"\n")}p=i.store.add(p.subject,p.predicate,i.store.literal(this.lastModified.value),p.why)}else{if(this.statIsInverse)return r.log.error("Invalid Input: a literal can't be a subject in RDF/XML"),void this.backOut();let s,l,d;switch(n.termType){case"Literal":{const t=this.lastModified.value;c=r.utils.ancestor(this.lastModified,"TR");const a=this.lastModified.defaultValue;l=o.st(p.subject,p.predicate,i.store.literal(this.lastModified.value),p.why);try{i.store.updater.update([p],[l],function(e,i,o){i?n.value=t:(r.log.warn("Error occurs while editing "+p+"\n\n"+o),c.lastChild.textContent=a),c.lastChild.className=c.lastChild.className.replace(/ pendingedit/g,"")})}catch(e){return void r.log.warn("Error occurs while editing "+p+":\n\t"+e)}break}case"BlankNode":{const n=i.store.literal(this.lastModified.value,"");if("Collection"!==p.predicate.termType)return void this.fillInRequest("object",this.lastModified.parentNode,i.store.literal(this.lastModified.value));{const f=p.predicate.elements[0];if(i.store.any(void 0,f,n)){if(!e){const t=this.lastModified.parentNode;(e={}).pageX=r.utils.findPos(t)[0],e.pageY=r.utils.findPos(t)[1]+t.clientHeight}this.showMenu(e,"DidYouMeanDialog",void 0,{dialogTerm:i.store.any(void 0,f,n),bnodeTerm:p.subject})}else{s=r.utils.ancestor(r.utils.ancestor(this.lastModified,"TR").parentNode,"TR").AJAR_statement,l=o.st(p.subject,f,n,p.why);const a=i.store.the(p.subject,u("type"));d=i.store.anyStatementMatching(p.subject,u("type"),a,p.why),c=r.utils.ancestor(r.utils.ancestor(this.lastModified,"TR"),"TD").parentNode;try{i.store.updater.update([],[s,l,d],function(e,n,r){n||t.UserInput.deleteTriple(c.lastChild,!0)})}catch(e){return}i.store.remove(p),i.store.add(p.subject,f,n,p.why)}const h=r.utils.ancestor(this.lastModified.parentNode.parentNode,"TD"),m=a.byName("default");t.outlineExpand(h,p.subject,{pane:m,already:!0}),t.walk("right",t.focusTd)}break}}}}else{if(this.lastModified.isNew)return c=r.utils.ancestor(this.lastModified,"TR"),l=this.generateRequest("(To be determined. Re-type of drag an object onto this field)"),d=c.previousSibling.AJAR_statement,this.formUndetStat(c,d.subject,d.predicate,l,d.why,!1),void(this.lastModified=null);if("Collection"===p.predicate.termType){i.store.removeMany(p.subject);const e=r.utils.ancestor(r.utils.ancestor(this.lastModified,"TR").parentNode,"TR");return d=e.AJAR_statement,l=this.generateRequest("(To be determined. Re-type of drag an object onto this field)"),this.formUndetStat(e,d.subject,d.predicate,l,d.why,!1),t.replaceTD(t.outlineObjectTD(l,s),e.lastChild),void(this.lastModified=null)}if(this.statIsInverse){if("BlankNode"===p.subject.termType)return void this.backOut()}else if("BlankNode"===p.object.termType)return void this.backOut()}c=r.utils.ancestor(this.lastModified,"TR"),this.statIsInverse?t.replaceTD(t.outlineObjectTD(p.subject,s),c.lastChild):t.replaceTD(t.outlineObjectTD(i.store.literal(this.lastModified.value),s),c.lastChild),this.lastModified.value!==this.lastModified.defaultValue&&(c.lastChild.className+=" pendingedit"),this.lastModified=null},deleteTriple:function(e,n){if(r.log.debug("deleteTriple entered"),!n&&-1!==e.className.indexOf(" pendingedit"))return void t.walk("up");const a=this.getStatementAbout(e);if(!(n||i.store.whether(a.object,u("type"),r.ns.link("Request"))||i.store.whether(a.predicate,u("type"),r.ns.link("Request"))||i.store.whether(a.subject,u("type"),r.ns.link("Request")))){r.log.debug("about to send SPARQLUpdate");try{i.store.updater.update([a],[],function(t,n,r){n?s():e.className=e.className.replace(/ pendingedit/g,"")}),e.className+=" pendingedit"}catch(e){return r.log.error(e),void r.log.warn("Error deleting statement "+a+":\n\t"+e)}r.log.debug("SPARQLUpdate sent")}r.log.debug("about to remove "+a),r.log.debug("removed"),t.walk("up");const o=e.parentNode;function s(){let e,t;for(e=o;1===e.childNodes.length;e=e.previousSibling);if(e===o){const n=e.nextSibling;n.nextSibling&&1===n.childNodes.length&&(t=e.firstChild,t.setAttribute("rowspan",parseInt(t.getAttribute("rowspan"))-1),n.insertBefore(e.firstChild,n.firstChild)),o.parentNode.removeChild(o)}else t=e.firstChild,t.setAttribute("rowspan",parseInt(t.getAttribute("rowspan"))-1),o.parentNode.removeChild(o)}n&&s()},clipboardInit:function(){t.clipboard={},t.clipboard.objects=[],t.clipboard.predicates=[],t.clipboard.all=[]},copyToClipboard:function(e,n){const i=r.utils.getTerm(n);switch(n.className){case"selected":case"obj selected":t.clipboard.objects.unshift(i);break;case"pred selected":case"pred internal selected":t.clipboard.predicates.unshift(i)}t.clipboard.all.unshift(i)},insertTermTo:function(e,a,o){let s,l;switch(e.className){case"undetermined selected":s=this.views.defaults[e.parentNode.AJAR_statement.predicate.uri],this.fillInRequest(e.nextSibling?"predicate":"object",e,a);break;case"pred selected":{const n=this.appendToPredicate(e);l=e.parentNode.AJAR_statement,s=this.views.defaults[l.predicate.uri],n.appendChild(t.outlineObjectTD(a,s));const o=e.parentNode.AJAR_inverse;o?n.AJAR_statemnet=i.store.add(a,l.predicate,l.object,l.why):n.AJAR_statement=i.store.add(l.subject,l.predicate,a,l.why);try{i.store.updater.update([],[n.AJAR_statement],function(e,t,i){t||r.log.error("userinput.js (pred selected): Fail trying to insert statement "+n.AJAR_statement+": "+i)})}catch(e){return void r.log.error("Exception trying to insert statement "+n.AJAR_statement+": "+r.utils.stackString(e))}n.AJAR_inverse=o,c.statements.push(n.AJAR_statement);break}case"selected":{const i=r.utils.ancestor(e,"TABLE").lastChild,s=i.insertBefore(n.createElement("tr"),i.lastChild);if(l=s.previousSibling.AJAR_statement,void 0===o&&(o=!0),o)this.formUndetStat(s,l.subject,this.generateRequest("(TBD)",s,!0),a,l.why,!1),s.appendChild(t.outlineObjectTD(a)),t.walk("moveTo",s.firstChild),this.startFillInText(s.firstChild);else{const e=this.generateRequest("(To be determined. Re-type of drag an object onto this field)",s);this.formUndetStat(s,l.subject,a,e,l.why,!1),s.insertBefore(t.outlinePredicateTD(a,s,!1,!1),s.firstChild),t.walk("moveTo",s.lastChild),this.startFillInText(s.lastChild)}break}}},Refill:function(e,t){r.log.info("Refill"+t.textContent);const n=t.nextSibling;let a;if(n){let s,c,l;if("undetermined"===t.nextSibling.className){s=r.utils.getAbout(i.store,r.utils.ancestor(t,"TABLE").parentNode),c=i.store.any(s,u("type")),l=[];const e=".\n";l[0]="SELECT ?pred WHERE{\n?pred "+u("type")+u("Property")+".\n?pred "+r.ns.rdfs("domain")+c+".}",l[1]="SELECT ?pred ?class\nWHERE{\n?pred "+u("type")+u("Property")+".\n"+c+r.ns.rdfs("subClassOf")+" ?class.\n?pred "+r.ns.rdfs("domain")+" ?class.\n}",l[2]="SELECT ?pred WHERE{\n"+s+u("type")+i.store.variable("subjectClass")+e+i.store.variable("pred")+r.ns.rdfs("domain")+i.store.variable("subjectClass")+e+"}",a=l.map(o.SPARQLToQuery)}else{s=r.utils.getAbout(i.store,r.utils.ancestor(t,"TABLE").parentNode),c=i.store.any(s,u("type"));const e=t.parentNode.AJAR_statement.object;l="SELECT ?pred WHERE{"+s+u("type")+"?subjectClass.\n"+e+u("type")+"?objectClass.\n?pred "+r.ns.rdfs("domain")+"?subjectClass.\n?pred "+r.ns.rdfs("range")+"?objectClass.\n}",a=o.SPARQLToQuery(l)}this.showMenu(e,"GeneralPredicateChoice",a,{isPredicate:n,selectedTd:t})}else{const a=t.parentNode.AJAR_statement.predicate;if((i.store.whether(a,u("type"),r.ns.owl("DatatypeProperty"))||"Collection"===a.termType||i.store.whether(a,r.ns.rdfs("range"),r.ns.rdfs("Literal")))&&(t.className="",r.utils.emptyNode(t),this.lastModified=this.createInputBoxIn(t," (Please Input) "),this.lastModified.isNew=!1,this.lastModified.select()),t.parentNode.AJAR_statement.predicate.sameTerm(u("type"))){const i="SELECT ?class WHERE{?class "+u("type")+r.ns.rdfs("Class")+".}",a=o.SPARQLToQuery(i);this.showMenu(e,"TypeChoice",a,{isPredicate:n,selectedTd:t})}}},getAutoCompleteHandler:function(e){let a;return"PredicateAutoComplete"===e?e="predicate":"JournalTAC"!==e&&(e="all"),a="JournalTAC"===e?n.getElementById("inpid_journal_title"):this.lastModified||t.getSelection()[0].firstChild,a.value,function(o){const s={},c=a.parentNode;e||(e=c.nextSibling?"predicate":"all"),s.pageX=r.utils.findPos(c)[0],s.pageY=r.utils.findPos(c)[1]+c.clientHeight,s.pageX,s.pageY;let l=n.getElementById(t.UserInput.menuID);function u(e){e&&(l.lastHighlight&&(l.lastHighlight.className=""),l.lastHighlight=e,l.lastHighlight.className="activeItem",t.showURI(r.utils.getAbout(i.store,l.lastHighlight)))}if(o){let d=a.value;if("object"==typeof o)switch(o.keyCode,o.stopPropagation(),l&&!l.lastHighlight&&u(l.firstChild.firstChild),o.keyCode){case 13:case 9:if(!l)return void t.UserInput.clearInputAndSave();if(!l.lastHighlight)return"JournalTAC"===e?(t.UserInput.clearMenu(),"no lastH"):void 0;if("INPUT"===l.lastHighlight.tagName)switch(l.lastHighlight.value){case"New...":t.UserInput.createNew();break;case"GiveURI":t.UserInput.inputURI()}else{if("JournalTAC"===e){if(f&&l.lastHighlight){const e=l.lastHighlight.firstChild.firstChild.innerHTML;let t=l.lastHighlight.firstChild.nextSibling.innerHTML;return t=t.slice(4,-4),["gotdptitle",e,t]}return"asGivenTxt"}const n=r.utils.getAbout(i.store,l.lastHighlight),o="predicate"===e?"predicate":"object";t.UserInput.clearMenu(),t.UserInput.fillInRequest(o,a.parentNode,n)}return;case 38:return f=!0,""!==d||"TR"!==l.lastHighlight.tagName||l.lastHighlight.previousSibling?u(l.lastHighlight.previousSibling):u(l.firstChild.firstChild),"I'm a little Arrow Up";case 40:return f=!0,"INPUT"===l.lastHighlight.tagName?u(l.childNodes[1].firstChild):u(l.lastHighlight.nextSibling),"I'm a little Down Arrow";case 37:case 39:return void("INPUT"===l.lastHighlight.tagName&&(37===o.keyCode?u(l.lastHighlight.previousSibling):u(l.lastHighlight.nextSibling)));case 8:d=d.slice(0,-1);break;case 27:return l?void t.UserInput.clearMenu():void t.UserInput.backOut();default:f=!1,d+=String.fromCharCode(o.charCode),o.charCode,String.fromCharCode(o.charCode)}if("all"===e?(t.UserInput.clearMenu(),t.UserInput.showMenu(s,"GeneralAutoComplete",void 0,{inputText:d,selectedTd:c}),0===d.length&&t.UserInput.WildCardButtons()):"predicate"===e?(t.UserInput.clearMenu(),t.UserInput.showMenu(s,"PredicateAutoComplete",void 0,{inputText:d,isPredicate:!0,selectedTd:c})):"JournalTAC"===e&&(t.UserInput.clearMenu(),t.UserInput.showMenu(s,"JournalTitleAutoComplete",void 0,{inputText:d},"orderisuseless")),l=n.getElementById(t.UserInput.menuID),!l)return;return u(l.firstChild.firstChild),t.showURI(r.utils.getAbout(i.store,l.lastHighlight)),"nothing to return"}}},WildCardButtons:function(){const e=n.getElementById(t.UserInput.menuID),i=e.insertBefore(n.createElement("div"),e.firstChild),a=i.appendChild(n.createElement("input")),o=i.appendChild(n.createElement("input"));a.type="button",a.value="New...",o.type="button",o.value="Know its URI",i.addEventListener("mouseover",function(e){const i=n.getElementById(t.UserInput.menuID);i.lastHighlight&&(i.lastHighlight.className=""),i.lastHighlight=r.utils.ancestor(r.utils.getTarget(e),"INPUT"),i.lastHighlight&&(i.lastHighlight.className="activeItem")},!1),a.addEventListener("click",this.createNew,!1),o.addEventListener("click",this.inputURI,!1)},Keypress:function(e){if(13===e.keyCode)if("TEXTAREA"!==t.targetOf(e).tagName)this.clearInputAndSave();else{const t=parseInt(this.lastModified.getAttribute("rows"));this.lastModified.setAttribute("rows",(t+1).toString()),e.stopPropagation()}},Mousedown:function(t){window.addEventListener("keypress",function(t){!t.ctrlKey||115!==t.charCode&&113!==t.charCode||e.switchMode()},!1),window.addEventListener("mousedown",e.Mousedown,!1),document.getElementById("outline").oncontextmenu=function(){return!1},2===t.button&&(e.switchMode(),t&&(t.preventDefault(),t.stopPropagation()))},Mouseover:function(e){if(this.className="bottom-border-active",1===this._tabulatorMode)switch(r.utils.getTarget(e).tagName){case"TD":{const t=r.utils.getTarget(e);"pred"===t.className&&(t.style.cursor="copy");break}case"DIV":{const t=r.utils.getTarget(e);"bottom-border"===r.utils.getTarget(e).className&&(t.style.borderColor="rgb(100%,65%,0%)",t.style.cursor="copy");break}}},Mouseout:function(e){if(this.className="bottom-border",1===this._tabulatorMode){const t=r.utils.getTarget(e);"bottom-border"===r.utils.getTarget(e).className&&(t.style.borderColor="transparent",t.style.cursor="auto")}},whatSortOfEditCell:function(e){if(e.nextSibling)return"predicate";const t=this.getStatementAbout(e).predicate;return i.store.whether(t,r.ns.rdf("type"),r.ns.owl("DatatypeProperty"))||i.store.whether(t,r.ns.rdfs("range"),r.ns.rdfs("Literal"))||"Collection"===t.termType?"DatatypeProperty-like":i.store.whether(t,u("type"),r.ns.owl("ObjectProperty"))?"ObjectProperty-like":"no-idea"},getStatementAbout:function(e){const t=r.utils.ancestor(e,"TR");if(!t)throw new Error("No ancestor TR for the TD we clicked on:"+e);let n;try{n=t.AJAR_statement}catch(n){throw new Error("No AJAR_statement!"+e+e.textContent+" has ancestor "+t)}return this.lastModifiedStat=t.AJAR_statement,this.statIsInverse=t.AJAR_inverse,n},createInputBoxIn:function(e,i){r.log.info("myDocument in createInputBoxIn is now "+n.location),r.log.info("outline.document is now "+t.document.location);const a=n.createElement("input");return a.setAttribute("value",i),a.setAttribute("class","textinput"),"undetermined selected"!==e.className&&(a.setAttribute("size","100"),a.addEventListener("keypress",function(e){38!==e.keyCode&&40!==e.keyCode||(t.OutlinerKeypressPanel(e),t.UserInput.clearInputAndSave())},!1)),e.appendChild(a),a},createNew:function(e){t.UserInput.clearMenu();const n=t.getSelection()[0],r=n.parentNode.AJAR_statement.why,a=i.store.nextSymbol(r);t.UserInput.fillInRequest("object",n,a),t.outlineExpand(t.getSelection()[0],a)},inputURI:function(e){const n=t.UserInput;n.clearMenu();const a=t.getSelection()[0];r.utils.emptyNode(a);const o=" (Type a URI) ";n.lastModified=n.createInputBoxIn(a,o),n.lastModified.select(),n.lastModified.addEventListener("keypress",function(e){switch(e.stopPropagation(),e.keyCode){case 13:case 9:if(this.value!==o){const e=this.value;n.fillInRequest("object",a,i.store.sym(e))}}},!1)},appendToPredicate:function(e){let t,r=!1;try{for(t=e.parentNode.nextSibling;1===t.childNodes.length&&t.AJAR_statement;t=t.nextSibling);}catch(e){r=!0}const i=n.createElement("tr");if(i.style.colspan="1",i.style.display="block",i.style.display="",e.hasAttribute("rowspan")&&e.setAttribute("rowspan",parseInt(e.getAttribute("rowspan"))+1),e.hasAttribute("rowspan")||e.setAttribute("rowspan","2"),r){const t=e.parentNode.parentNode;"defaultPane"===t.className?t.insertBefore(i,t.lastChild):t.appendChild(i)}else t.parentNode.insertBefore(i,t);return i},bnode2symbol:function(e,t){i.store.copyTo(e,t,["two-direction","delete"])},generateRequest:function(e,n,i,a){let o;a||(o=n||r.utils.ancestor(this.lastModified,"TR"),r.utils.emptyNode(o));const s=l,c=s.bnode();if(s.add(c,r.ns.rdf("type"),r.ns.link("Request")),e.length,s.add(c,r.ns.link("message"),s.literal(e)),s.add(c,r.ns.link("to"),s.literal("The User")),s.add(c,r.ns.link("from"),s.literal("The User")),!a){let n;n=i?o.appendChild(t.outlinePredicateTD(c,o,!1,!1)):o.appendChild(t.outlineObjectTD(c)),n.className="undetermined",n.textContent=e}return c},showMenu:function(e,a,c,l,f){r.log.info("myDocument is now "+n.location),r.log.info("outline.doucment is now "+t.document.location);const h=this,m=n.createElement("div");if(l)for(const e in l);m.id=this.menuID,m.className="outlineMenu",m.style.top=e.pageY+"px",m.style.left=e.pageX+"px";if("JournalTitleAutoComplete"===a){const e=function(e){let t=0,n=0,r=0,i=0,a=0,o=0;for(;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)a=e.offsetLeft,o=e.offsetTop,a!==r&&(t+=e.offsetLeft-e.scrollLeft),o!==i&&(n+=e.offsetTop-e.scrollTop),r=a,i=o,e=e.parentNode;return{top:n+54,left:t-38}}(n.getElementById("inpid_journal_title"));e.left-=n.getElementById("inpid_journal_title").scrollTop,m.style.top=e.top+"px",m.style.left=e.left+"px"}n.body.appendChild(m);const g=m.appendChild(n.createElement("table"));let v;switch(m.lastHighlight=null,g.addEventListener("mouseover",function(e){m.lastHighlight&&(m.lastHighlight.className=""),m.lastHighlight=r.utils.ancestor(r.utils.getTarget(e),"TR"),m.lastHighlight&&(m.lastHighlight.className="activeItem")},!1),a){case"DidYouMeanDialog":v=function(e){const n=r.utils.ancestor(r.utils.getTarget(e),"TR");2===n.childNodes.length&&n.nextSibling?(i.store.add(A,void 0,void 0),t.UserInput.clearMenu()):2===n.childNodes.length&&t.UserInput.clearMenu()};break;case"LimitedPredicateChoice":{const e=l.clickedTd;v=function(n){const a=r.utils.getAbout(i.store,r.utils.getTarget(n)),o=e.parentNode.AJAR_statement.predicate.elements;for(let e=0;e<o.length;e++)o[e].sameTerm(a)&&o.unshift(o.splice(e,1)[0]);t.UserInput.clearMenu();const s=e.parentNode,c=t.outlinePredicateTD(s.AJAR_statement.predicate,s);s.insertBefore(c,e),s.removeChild(e),h.lastModified.select()};break}case"PredicateAutoComplete":case"GeneralAutoComplete":case"GeneralPredicateChoice":case"JournalTitleAutoComplete":case"TypeChoice":{const e=l.isPredicate,n=l.selectedTd;v=function(a){const o=r.utils.getAbout(i.store,r.utils.getTarget(a));r.utils.getTarget(a),e?t.UserInput.fillInRequest("predicate",n,o)&&t.UserInput.clearMenu():t.UserInput.fillInRequest("object",n,o)&&t.UserInput.clearMenu()};break}default:throw new Error("userinput: unexpected mode")}g.addEventListener("click",v,!1);const b={};function y(e){g.firstChild&&"no-suggest"===g.firstChild.className&&g.removeChild(g.firstChild);const t=r.utils.predicateLabelForXML(e,!1);if(!e.uri)return;let i="??";for(const t in b)if(r.log.debug(b[t]),o.Util.string_startswith(e.uri,b[t])){i=t;break}const a=g.appendChild(n.createElement("tr"));a.setAttribute("about",e);a.appendChild(n.createElement("th")).appendChild(n.createElement("div")).appendChild(n.createTextNode(t)),a.appendChild(n.createElement("td")).appendChild(n.createTextNode(i.toUpperCase()))}function w(e){return function(t){y(t[e.vars[0]])}}let x,A,C,E;switch(i.store.each(void 0,r.ns.rdf("type"),r.ns.owl("Ontology")).forEach(function(e){const t=r.utils.label(e);if(!t)return;const n=t.value.match(/\((.+?)\)/);n?b[n[1]]=e.uri:b[t.value]=e.uri}),a){case"DidYouMeanDialog":{const e=l.dialogTerm;A=l.bnodeTerm,m.style.width="auto";const t=g.appendChild(n.createElement("tr")).appendChild(n.createElement("th"));t.appendChild(n.createTextNode("Did you mean..."));const a=i.store.statementsMatching(e);let o;for(o=0;o<a.length&&!i.store.whether(a[o].predicate,u("type"),r.ns.owl("InverseFunctionalProperty"));o++);const s=a[o].predicate,c=i.store.any(e,a[o].predicate),d=r.utils.label(e)+" who has "+r.utils.label(s)+" "+c+"?",p=g.appendChild(n.createElement("tr")).appendChild(n.createElement("th"));p.appendChild(n.createTextNode(d)),t.setAttribute("colspan","2"),p.setAttribute("colspan","2");const f=g.appendChild(n.createElement("tr"));f.appendChild(n.createElement("th")).appendChild(n.createTextNode("Yes")),f.appendChild(n.createElement("td")).appendChild(n.createTextNode("BOOLEAN"));const h=g.appendChild(n.createElement("tr"));h.appendChild(n.createElement("th")).appendChild(n.createTextNode("No")),h.appendChild(n.createElement("td")).appendChild(n.createTextNode("BOOLEAN"));break}case"PredicateAutoComplete":{x=l.inputText;const n=t.labeller.searchAdv(x,void 0,"predicate"),r=[];for(let t=0;t<n.length;t++){const r={vars:[]};r.vars.push("Kenny");const a={};a.Kenny=i.store.fromNT(n[t].NT);try{w(r)(a)}catch(e){throw new Error("I'll deal with bnodes later...[Kenny]"+e)}}const a=r[0];if(0===a.length)return void this.clearMenu();for(let e=0;e<a.length&&e<10;e++)y(a[e][1]);break}case"GeneralAutoComplete":{let i;x=l.inputText;try{i=t.labeller.search(x)}catch(e){}const a=i[0],o=i[1];if(0===a.length)return void this.clearMenu();for(let e=0;e<a.length&&e<10;e++){const t=a[e][1].toNT();C=g.appendChild(n.createElement("tr")),C.setAttribute("about",t),E=C.appendChild(n.createElement("th")),E.appendChild(n.createElement("div")).appendChild(n.createTextNode(a[e][0]));const i=o[e],s=i?r.utils.label(i):"";C.appendChild(n.createElement("td")).appendChild(n.createTextNode(s))}break}case"JournalTitleAutoComplete":{x=l.inputText;const e=i.store.each(void 0,u("type"),d("Journal")),t=[];for(let r=0;r<e.length;r++){const a=e[r],o=i.store.each(a,p("title"),void 0),c=o+"",l=x.toLowerCase();if(-1!==c.toLowerCase().search(l)){s(),t.push(o);const e=g.appendChild(n.createElement("tr"));e.setAttribute("about","journalTitle");e.appendChild(n.createElement("th")).appendChild(n.createElement("div")).appendChild(n.createTextNode(o)),e.appendChild(n.createElement("td")).appendChild(n.createTextNode(a))}}break}case"LimitedPredicateChoice":{const e=r.utils.getAbout(i.store,l.clickedTd);e.termType="Collection";const t=i.store.each(e,r.ns.link("element"));for(let e=0;e<t.length;e++)y(t[e]);break}default:{C=g.appendChild(n.createElement("tr")),C.className="no-suggest",E=C.appendChild(n.createElement("th")),E.appendChild(n.createElement("div")).appendChild(n.createTextNode("No suggested choices. Try to type instead.")),C.appendChild(n.createElement("td")).appendChild(n.createTextNode("OK")),C.addEventListener("click",function(e){h.clearMenu(),e.stopPropagation()},"false");const e=function(){};switch(c.constructor.name){case"Array":for(let t=0;t<c.length;t++)i.store.query(c[t],w(c[t]),e);break;case"undefined":throw new Error("addPredicateChoice: query is not defined");default:i.store.query(c,w(c),e)}}}},fillInRequest:function(e,n,a){const s=n.parentNode,u=s.AJAR_statement,d=s.AJAR_inverse,p="object"===e?u.object:u.predicate;let f,h=!1;if(i.store.any(p,r.ns.link("onfillin")),"predicate"===e){const e=t.outlinePredicateTD(a,s,!1,!1);if("undetermined"!==n.nextSibling.className){const t=new o.Statement(u.subject,a,u.object,u.why);try{i.store.updater.update([],[t],function(t,n,o){n?(f=i.store.anyStatementMatching(u.subject,a,u.object,u.why),s.AJAR_statement=f,e.className=e.className.replace(/ pendingedit/g,"")):r.log.warn("Failure occurs (#2) while inserting "+s.AJAR_statement+"\n\n"+o)})}catch(e){return r.log.error(e),void r.log.warn("Error when insert (#2) of statement "+t+":\n\t"+e)}e.className+=" pendingedit",this.lastModified=null}else this.formUndetStat(s,u.subject,a,u.object,u.why,!1),t.walk("right"),h=!0;t.replaceTD(e,n),l.remove(u)}else if("object"===e){const e=t.outlineObjectTD(a);if(t.replaceTD(e,n),n.previousSibling&&"undetermined"===n.previousSibling.className)t.walk("left"),h=!0;else{let t;t=d?new o.Statement(a,u.predicate,u.object,u.why):new o.Statement(u.subject,u.predicate,a,u.why);try{i.store.updater.update([],[t],function(n,o,c){let l;r.log.info("@@ usinput.js (object) callback ok="+o+" for statement:"+t+"\n "),o?(e.className=e.className.replace(/ pendingedit/g,""),l=d?i.store.statementsMatching(a,u.predicate,u.object,u.why):i.store.statementsMatching(u.subject,u.predicate,a,u.why),l.length||r.log.error("userinput.js 1711: Can't find statememt!"),s.AJAR_statement=l[0]):r.log.warn("userinput.js (object): Fail trying to insert statement "+t)})}catch(e){return r.log.error("userinput.js (object): exception trying to insert statement "+t+": "+r.utils.stackString(e)),void r.log.warn("Error trying to insert statement "+t+":\n"+e)}this.lastModified=null,e.className+=" pendingedit"}l.remove(u)}if(c.statements.push(f),!h)return!0;this.startFillInText(t.getSelection()[0])},formUndetStat:function(e,t,n,r,i,a){return e.AJAR_inverse=a,e.AJAR_statement=l.add(t,n,r,i),e.AJAR_statement}}};var r=s(n(500)),i=n(9332),a=s(n(4059)),o=s(n(8230));function s(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(s=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}let c,l},3660(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));t.default=e=>function(t){const n=r.utils.AJARImage(t.uri,r.utils.label(t),r.utils.label(t),e);return n.setAttribute("class","outlineImage"),n}},6357(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=e=>function(t){const n=e.createElement("a");let r="NamedNode"===t.termType?t.uri:t.value;const i=r.indexOf("mailto:");return r=i>=0?r.slice(i+7):r,n.setAttribute("href","mailto:"+r),n.appendChild(e.createTextNode(r)),n}},9370(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500),i=n(9332),a=n(8230);const o={icon:r.icons.iconBase+"noun_79217.svg",name:"pad",audience:[r.ns.solid("PowerUser")],label:function(e,t){return t.session.store.findTypeURIs(e)["http://www.w3.org/ns/pim/pad#Notepad"]?"pad":null},mintClass:r.ns.pad("Notepad"),mintNew:function(e,t){const n=e.session.store,i=n.updater;if(t.me&&!t.me.uri)throw new Error("notepad mintNew: Invalid userid");const a=t.newInstance=t.newInstance||n.sym(t.newBase+"index.ttl#this"),o=a.doc();n.add(a,r.ns.rdf("type"),r.ns.pad("Notepad"),o),n.add(a,r.ns.dc("title"),"Shared Notes",o),n.add(a,r.ns.dc("created"),new Date,o),t.me&&n.add(a,r.ns.dc("author"),t.me,o);const s=n.sym(a.uri+"_line0");return n.add(a,r.ns.pad("next"),s,o),n.add(s,r.ns.pad("next"),a,o),n.add(s,r.ns.dc("author"),t.me,o),n.add(s,r.ns.sioc("content"),"",o),new Promise(function(e,r){i?i.put(o,n.statementsMatching(void 0,void 0,void 0,o),"text/turtle",function(n,i,a){i?e(t):r(new Error("FAILED to save new tool at: "+n+" : "+a))}):r(new Error("Have no updater"))})},render:function(e,t,n){const o=t.dom,s=t.session.store,c=function(e,t){e||E.appendChild(r.widgets.errorMessageBlock(o,t,"pink"))},l=function(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e},u=function(e,t,n){const i=(0,a.graph)(),o=(0,a.Namespace)("http://www.w3.org/ns/auth/acl#");let s=i.sym(t+"#a1");const c=i.sym(t),l=i.sym(e);return i.add(s,r.ns.rdf("type"),o("Authorization"),c),i.add(s,o("accessTo"),l,c),i.add(s,o("agent"),y,c),i.add(s,o("mode"),o("Read"),c),i.add(s,o("mode"),o("Write"),c),i.add(s,o("mode"),o("Control"),c),s=i.sym(t+"#a2"),i.add(s,r.ns.rdf("type"),o("Authorization"),c),i.add(s,o("accessTo"),l,c),i.add(s,o("agentClass"),r.ns.foaf("Agent"),c),i.add(s,o("mode"),o("Read"),c),n&&i.add(s,o("mode"),o("Write"),c),(0,a.serialize)(c,i,t,"text/turtle")},d=function(e,t,n){const r=s.any((0,a.sym)(e),(0,a.sym)("http://www.iana.org/assignments/link-relations/acl"));if(!v)throw new Error("Have no fetcher");if(r){const i=u(e,r.uri,t);return v.webOperation("PUT",r.uri,{data:i,contentType:"text/turtle"}).then(()=>n(!0)).catch(e=>{n(!1,e.message)})}return v.load(e).catch(e=>{n(!1,"Getting headers for ACL: "+e)}).then(()=>{const n=s.any((0,a.sym)(e),(0,a.sym)("http://www.iana.org/assignments/link-relations/acl"));if(!n)throw new Error("No Link rel=ACL header for "+e);const r=u(e,n.uri,t);return v.webOperation("PUT",n.uri,{data:r,contentType:"text/turtle"})}).then(()=>n(!0)).catch(e=>{n(!1,e.message)})},p=function(e,t,n){const i=l(t);i.appendChild(r.login.newAppInstance(o,{noun:"notepad"},(e,t)=>f(new a.NamedNode(e||t)))),i.appendChild(o.createElement("hr"));i.appendChild(o.createElement("p")).textContent="Where would you like to store the data for the "+n+"? Give the URL of the directory where you would like the data stored.";const s=i.appendChild(o.createElement("input"));s.setAttribute("type","text"),s.size=80,s.label="base URL",s.autocomplete="on",i.appendChild(o.createElement("br"));const c=i.appendChild(o.createElement("button"));c.textContent="Start new "+n+" at this URI",c.addEventListener("click",function(t){let n=s.value;"/"!==n.slice(-1)&&(n+="/"),h(e,n)})},f=function(e){let t=s.any(e,r.ns.space("uriPrefix"));t=t?t.value:e.uri.split("#")[0],"/"!==t.slice(-1)&&(a.log.error(g+": No / at end of uriPrefix "+t),t+="/");const n=new Date;t+=g+"/id"+n.getTime()+"/",h(x,t)},h=function(e,t){const n=(0,a.sym)(e.uri.split("#")[0]),l=s.sym(t+"pad.ttl"),u=s.sym(t+"index.html"),p=[{local:"index.html",contentType:"text/html"}],f=s.sym(l.uri+"#thisPad"),h=[];let m;for(m=0;m<p.length;m++){const e=function(e){h.push(function(){const r=t+e.local;if(!s.fetcher)throw new Error("Store has no fetcher");s.fetcher.webCopy(n+e.local,t+e.local,e.contentType).then(()=>i.authn.checkUser()).then(e=>{y=e,d(r,!1,function(e,t){e?h.shift()():c(e,"FAILED to set ACL "+r+" : "+t)})}).catch(t=>{c(!1,"FAILED to copy "+n+e.local+" : "+t.message)})})};e(p[m])}h.push(function(){if(s.add(f,r.ns.rdf("type"),w("Notepad"),l),s.add(f,r.ns.dc("created"),new Date,l),y&&s.add(f,r.ns.dc("author"),y,l),s.add(f,w("next"),f,l),s.add(f,r.ns.space("inspiration"),e,A),s.add(f,r.ns.space("inspiration"),e,l),!b)throw new Error("Have no updater");b.put(l,s.statementsMatching(void 0,void 0,void 0,l),"text/turtle",function(e,t,n){t?h.shift()():c(t,"FAILED to save new notepad at: "+l.uri+" : "+n)})}),h.push(function(){d(l.uri,!0,function(e,t){c(e,"Failed to set Read-Write ACL on pad data file: "+t),e&&h.shift()()})}),h.push(function(){const e=E.appendChild(o.createElement("p"));e.setAttribute("style","font-size: 140%;"),e.innerHTML="Your <a href='"+u.uri+"'><b>new notepad</b></a> is ready. <br/><br/><a href='"+u.uri+"'>Go to new pad</a>"}),h.shift()()},m=function(t){y=i.authn.currentUser(),i.authn.checkUser().then(e=>{y=e});const a=s.any(e,r.ns.dc("title"))||s.any(e,r.ns.vcard("fn"));n.solo&&"undefined"!=typeof window&&a&&(window.document.title=a.value),L.exists=t,C=r.pad.notepad(o,A,e,y,L),S.appendChild(C);const c=s.any(e,r.ns.meeting("parentMeeting"))||e;if(r.pad.manageParticipation(o,F,A,c,y,L),!s.updater)throw new Error("Store has no updater");s.updater.setRefreshHandler(A,C.reloadAndSync)},g="app-pad.timbl.com",v=s.fetcher,b=s.updater;let y;const w=(0,a.Namespace)("http://www.w3.org/ns/pim/pad#"),x=e,A=e.doc();let C;const E=o.createElement("div"),k=E.appendChild(o.createElement("table"));k.setAttribute("style","background-color: white; min-width: 94%; margin-right:3% margin-left: 3%; min-height: 13em;");const _=k.appendChild(o.createElement("tr"));_.appendChild(o.createElement("td")),_.appendChild(o.createElement("td")),_.appendChild(o.createElement("td"));const S=k.appendChild(o.createElement("tr")).appendChild(o.createElement("td"));S.setAttribute("colspan","3");const T=k.appendChild(o.createElement("tr")),P=T.appendChild(o.createElement("td")),F=T.appendChild(o.createElement("td")),R=T.appendChild(o.createElement("td")),I=k.appendChild(o.createElement("tr")).appendChild(o.createElement("div")),B=k.appendChild(o.createElement("tr")).appendChild(o.createElement("div")),N=k.appendChild(o.createElement("tr"));N.setAttribute("class","naviMenu"),N.appendChild(o.createElement("td")),N.appendChild(o.createElement("td")),N.appendChild(o.createElement("td"));const L={statusArea:I,timingArea:P};return function(){if(!v)throw new Error("Have no fetcher");v.nowOrWhenFetched(A.uri,void 0,function(t,n,i){if(t)l(S),s.holds(e,r.ns.rdf("type"),r.ns.wf("TemplateInstance"))&&p(e,S,"pad"),m(!0),R.appendChild(function(){const t=E.appendChild(o.createElement("button"));return t.textContent="Start another pad",t.addEventListener("click",function(){return p(e,B,"pad")}),t}());else if(404===i.status){if(!b)throw new Error("Have no updater");b.put(A,[],"text/turtle",function(e,t,n){t?(l(S),m(!1)):c(t,"FAILED to create results file at: "+A.uri+" : "+n)})}else c(t,"FAILED to read results file: "+n)})}(),E}};t.default=o},8912(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_1619.svg",name:"playlistSlot",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store;return n.anyStatementMatching(e,r.ns.rdf("type"),n.sym("http://purl.org/ontology/pbo/core#PlaylistSlot"))?"playlist slot":null},render:function(e,t){const n=t.dom;const a=function(e,t){if(!t)return e;const i=n.createElement("a");return i.setAttribute("href",t),i.appendChild(e),i.addEventListener("click",r.widgets.openHrefInOutlineMode,!0),i},o=function(e){return n.createTextNode(e)},s=t.session.store,c=s.any(e,i.sym("http://purl.org/ontology/pbo/core#playlist_item"));let l=s.any(e,i.sym("http://purl.org/ontology/olo/core#index")),u=c.uri;const d=function(e){if(!e)return{html5:!0};const t=e.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-_%]+)/i),n=e.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i),r=e.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i),i=e.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);return t?{youtube:t}:n?{vimeo:n}:r?{dailymotion:r}:i?{vk:i}:void 0}(u),p=n.createElement("div");let f,h;if(d&&d.youtube?(u=u.replace("watch?v=","embed/"),p.setAttribute("class","imageView"),f=n.createElement("IFRAME"),f.setAttribute("src",u),f.setAttribute("width",560),f.setAttribute("height",315),f.setAttribute("frameborder",0),f.setAttribute("style","max-width: 850px; max-height: 100%;"),f.setAttribute("allowfullscreen","true")):(p.setAttribute("class","imageView"),f=n.createElement("IMG"),f.setAttribute("src",c.value),f.setAttribute("width",560),f.setAttribute("height",315),f.setAttribute("style","max-width: 560; max-height: 315;")),l){const t=s.statementsMatching(null,i.sym("http://purl.org/ontology/olo/core#index")),r=[];for(let e=0;e<t.length;e++)t[e]&&r.push(parseInt(t[e].object.value,10));l=parseInt(l.value,10),h=n.createElement("div");const c=r[(r.indexOf(l)-1+r.length)%r.length],u=r[(r.indexOf(l)+1+r.length)%r.length],d=a(o("<<"),e.uri.split("#")[0]+"#"+c);h.appendChild(d);const p=n.createElement("span");p.innerHTML=" Playlist slot : "+l+" ",h.appendChild(p);const f=a(o(">>"),e.uri.split("#")[0]+"#"+u);h.appendChild(f)}const m=n.createElement("TR");return m.appendChild(f),h&&m.appendChild(h),p.appendChild(m),p}}},2371(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerPanes=function(e){e(r.default);const t=r.default.editor;e(t),e(i.default),e(a.default),e(o.default),e(s.default),e(c.default),e(l.default),e(u.default),e(d.default),e(p.default),e(f.default),e(h.default),e(m.longChatPane),e(m.shortChatPane),e(g.schedulePane),e(v.default),e(b.imagePane),e(y.default),e(w.default),e(x.default),e(A.default),e(C.default),e(E.classInstancePane),e(k.slideshowPane),e(_.socialPane),e(S.default),e(T.dataContentPane),e(P.default),e(F.n3Pane),e(R.RDFXMLPane),e(I.formPane),e(B.tableViewPane),e(N.defaultPane),e(L.default),e(O.default),e(j.default),e(D.default)};var r=M(n(2643)),i=M(n(1917)),a=M(n(5682)),o=M(n(6106)),s=M(n(3931)),c=M(n(3955)),l=M(n(8938)),u=M(n(9370)),d=M(n(2368)),p=M(n(8131)),f=M(n(1927)),h=M(n(4036)),m=n(7052),g=n(9814),v=M(n(5130)),b=n(2168),y=M(n(8912)),w=M(n(6778)),x=M(n(6686)),A=M(n(2970)),C=M(n(1838)),E=n(5382),k=n(7978),_=n(7350),S=M(n(6380)),T=n(1424),P=M(n(3385)),F=n(7334),R=n(8236),I=n(5238),B=n(3472),N=n(4064),L=M(n(6682)),O=M(n(6298)),j=M(n(4930)),D=M(n(8426));function M(e){return e&&e.__esModule?e:{default:e}}},9814(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePane=void 0;var r=o(n(500)),i=n(9332),a=o(n(8230));function o(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const s=r.ns,c=[s.sched("No"),s.sched("Maybe"),s.sched("Yes")];t.schedulePane={icon:r.icons.iconBase+"noun_346777.svg",name:"schedule",audience:[s.solid("PowerUser")],label:function(e,t){return t.session.store.findTypeURIs(e)["http://www.w3.org/ns/pim/schedule#SchedulableEvent"]?"Scheduling poll":null},mintClass:s.sched("SchedulableEvent"),mintNew:function(e,t){return new Promise(function(n,o){const s=r.ns,c=e.session.store;let l=t.newBase;const u=t.useExisting||a.sym(t.newBase+"index.ttl#this"),d=function(e,t){e||o(new Error(t))},p=function(e,t,n){const i=a.graph(),o=a.Namespace("http://www.w3.org/ns/auth/acl#");let c=i.sym(t+"#a1");const l=i.sym(t),u=i.sym(e);return i.add(c,r.ns.rdf("type"),o("Authorization"),l),i.add(c,o("accessTo"),u,l),i.add(c,o("agent"),g,l),i.add(c,o("mode"),o("Read"),l),i.add(c,o("mode"),o("Write"),l),i.add(c,o("mode"),o("Control"),l),c=i.sym(t+"#a2"),i.add(c,r.ns.rdf("type"),o("Authorization"),l),i.add(c,o("accessTo"),u,l),i.add(c,o("agentClass"),s.foaf("Agent"),l),i.add(c,o("mode"),o("Read"),l),n&&i.add(c,o("mode"),o("Write"),l),a.serialize(l,i,t,"text/turtle")},f=function(e,t,n){const r=c.any(c.sym(e),c.sym("http://www.iana.org/assignments/link-relations/acl"));if(r){const i=p(e,r.uri,t);return h.webOperation("PUT",r.uri,{data:i,contentType:"text/turtle"}).then(e=>n(!0)).catch(e=>{n(!1,e.message)})}return h.load(e).catch(e=>{n(!1,"Getting headers for ACL: "+e)}).then(()=>{const n=c.any(c.sym(e),c.sym("http://www.iana.org/assignments/link-relations/acl"));if(!n)throw new Error("No Link rel=ACL header for "+e);const r=p(e,n.uri,t);return h.webOperation("PUT",n.uri,{data:r,contentType:"text/turtle"})}).then(e=>n(!0)).catch(e=>{n(!1,e.message)})},h=c.fetcher,m=c.updater;let g=t.me||i.authn.currentUser();if(!g)return void alert("NOT LOGGED IN");const v=u.dir().uri;let b,y;if(t.useExisting){if(y=t.useExisting,l=u.dir().uri,b=y.doc(),t.newBase)throw new Error("mint new scheduler: Illegal - have both new base and existing event")}else b=c.sym(l+"details.ttl"),y=c.sym(b.uri+"#event");const w=c.sym(l+"results.ttl"),x=t.noIndexHTML?{}:[{local:"index.html",contentType:"text/html"}],A=[];for(let e=0;e<x.length;e++){const t=function(e){A.push(function(){const t=l+e.local;c.fetcher.webCopy(v+e.local,l+e.local,e.contentType).then(()=>i.authn.checkUser()).then(e=>{g=e,f(t,!1,function(e,n){e?A.shift()():d(e,"FAILED to set ACL "+t+" : "+n)})}).catch(t=>{d(!1,"FAILED to copy "+v+e.local+" : "+t.message)})})};t(x[e])}A.push(function(){c.add(y,s.rdf("type"),s.sched("SchedulableEvent"),b),g&&(c.add(y,s.dc("author"),g,b),c.add(y,s.foaf("maker"),g,b)),c.add(y,s.dc("created"),new Date,b),c.add(y,s.sched("resultsDocument"),b),m.put(b,c.statementsMatching(void 0,void 0,void 0,b),"text/turtle",function(e,t,n){t?A.shift()():d(t,"FAILED to save new scheduler at: "+b+" : "+n)})}),A.push(function(){c.fetcher.webOperation("PUT",w.uri,{data:"",contentType:"text/turtle"}).then(()=>{A.shift()()}).catch(e=>{d(!1,"Failed to initialize empty results file: "+e.message)})}),A.push(function(){f(w.uri,!0,function(e,t){d(e,"Failed to set Read-Write ACL on results file: "+t),e&&A.shift()()})}),A.push(function(){f(b.uri,!1,function(e,t){d(e,"Failed to set read ACL on configuration file: "+t),e&&A.shift()()})}),A.push(function(){t.newInstance=y,n(t)}),A.shift()()})},render:function(e,t){const n=t.dom,o=t.session.store,s=r.ns,l=e,u="app-when-can-we.w3.org",d=o.fetcher,p=o.updater;let f=!1;const h=e,m=e.doc(),g=m.dir().uri,v=a.sym(g+"results.ttl"),b="https://solidos.github.io/solid-panes/schedule/formsForSchedule.ttl",y=o.sym(b+"#form1"),w=o.sym(b+"#form2"),x=o.sym(b+"#form3");a.parse('@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix cal: <http://www.w3.org/2002/12/cal/ical#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix sched: <http://www.w3.org/ns/pim/schedule#>.\n\n cal:Vevent ui:annotationForm <#form2>, <#form3>; ui:creationForm <#form1> .\n\n<#bigForm>\n dc:title\n "Schedule event (single form).";\n a ui:Group;\n ui:parts ( <#form1> <#form2> <#form3> ).\n\n<#form1>\n dc:title\n "Schedule an event (wizard)";\n a ui:Form;\n ui:parts (\n <#form1header>\n <#eventTitle>\n <#eventLocation>\n <#eventType>\n <#eventSwitch>\n <#eventComment>\n <#eventAuthor> ).\n\n<#form1header> a ui:Heading; ui:contents "Schedule an event" .\n\n<#eventTitle>\n a ui:SingleLineTextField;\n ui:maxLength\n "128";\n ui:property\n cal:summary;\n ui:size\n "40".\n\n<#eventLocation>\n a ui:SingleLineTextField;\n ui:maxLength\n "512";\n ui:property\n cal:location;\n ui:size\n "40".\n\n<#eventType> a ui:BooleanField;\n ui:property sched:allDay;\n ui:default true . # Used to be the only way\n\n<#eventSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm> ].\n\n <#AllDayForm> a ui:IntegerField ;\n ui:property sched:durationInDays;\n ui:label "How many days?";\n ui:min 1;\n ui:default 1 .\n\n <#NotAllDayForm> a ui:IntegerField ;\n ui:property sched:durationInMinutes;\n ui:label "Duration (mins)";\n ui:min 5;\n ui:default 55 .\n\n<#eventComment>\n a ui:MultiLineTextField;\n# ui:maxLength\n# "1048";\n# ui:size\n# "40".\n ui:property\n cal:comment.\n\n<#eventAuthor>\n a ui:Multiple; ui:min 1; ui:part <#eventAuthorGroup>; ui:property dc:author.\n\n <#eventAuthorGroup> a ui:Group; ui:parts ( <#authorName> <#authorEmail> ) .\n <#authorName> a ui:SingleLineTextField; ui:property foaf:name .\n <#authorEmail> a ui:EmailField; ui:label "email"; ui:property foaf:mbox .\n\n\n#####################\n\n<#form2> dc:title "Select possible days or times"; a ui:Form;\n ui:parts ( <#id1118132113134> <#possibleSwitch> ).\n\n <#id1118132113134> a ui:Heading; ui:contents "Time proposals" .\n\n <#possibleSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm2> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm2> ].\n\n <#AllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleDate>; ui:property sched:option.\n <#posssibleDate> a ui:DateField; ui:property cal:dtstart; ui:label "date".\n\n <#NotAllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleTime>; ui:property sched:option.\n <#posssibleTime> a ui:DateTimeField; ui:property cal:dtstart; ui:label "date and time".\n\n ##################################\n\n <#form3> dc:title "Select invited people"; a ui:Form; ui:parts ( <#id1118132113135> <#id1417314641301b> ) .\n<#id1417314641301b>\n a ui:Multiple; ui:min 1; ui:part <#id1417314674292b>; ui:property sched:invitee.\n <#id1417314674292b> a ui:EmailField; ui:label "email"; ui:property foaf:mbox .\n <#id1118132113135> a ui:Heading; ui:contents "Who to invite" .\n\n# ENDS\n',o,b,"text/turtle");const A="background-color: #eef; padding: 0.5em; border: .5em solid white; font-size: 100%",C="width: 1.8em; height: 1.8em;",E=function(e,t){e||D.appendChild(r.widgets.errorMessageBlock(n,t,"pink"))},k=function(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e},_=function(e,t){const n=o.any(t,r.ns.ui("backgroundColor"));n&&e.setAttribute("style","padding: 0.3em; text-align: center; background-color: "+n+";")};let S;i.authn.checkUser().then(e=>{S=e,z&&z.refresh(),e&&f&&(f=!1,R())});const T=function(e){let t=o.any(e,s.space("uriPrefix"));t=t?t.value:e.uri.split("#")[0],"/"!==t.slice(-1)&&(a.log.error(u+": No / at end of uriPrefix "+t),t+="/");const n=new Date;t+=u+"/id"+n.getTime()+"/",P(h,t)},P=function(e,r){const i={thisInstance:e,newBase:r};this.mintNew(t,i).then(function(e){const t=D.appendChild(n.createElement("p"));t.setAttribute("style","font-size: 140%;"),t.innerHTML="Your <a href='"+e.newInstance.uri+"'><b>new scheduler</b></a> is ready to be set up. <br/><br/><a href='"+e.newInstance.uri+"'>Say when you what days work for you.</a>"}).catch(function(e){E(!1,"Error createing new scheduler at "+i.newInstance+": "+e)})},F=function(){d.nowOrWhenFetched(m.uri,void 0,function(e,t){if(!e)return E(e,t);R()})},R=function(){i.authn.checkUser().then(t=>{if(!t)return I();if(!o.updater.editable(m.uri,o)||o.holds(e,s.rdf("type"),s.wf("TemplateInstance")))return void B(D);o.any(e,s.sched("ready"))?O():L()})},I=function(){k(H);const e={div:D,dom:n};r.login.ensureLoggedIn(e).then(e=>{S=e.me,f=!1,R()})},B=function(){const e=k(H);e.appendChild(r.login.newAppInstance(n,{noun:"poll"},T)),e.appendChild(n.createElement("hr"));e.appendChild(n.createElement("p")).textContent="Where would you like to store the data for the poll? Give the URL of the directory where you would like the data stored.";const t=e.appendChild(n.createElement("input"));t.setAttribute("type","text"),t.size=80,t.label="base URL",t.autocomplete="on",e.appendChild(n.createElement("br"));const i=e.appendChild(n.createElement("button"));i.setAttribute("style",A),i.textContent="Start new poll at this URI",i.addEventListener("click",function(e){let n=t.value;"/"!==n.slice(-1)&&(n+="/"),P(h,n)})},N=n.createElement("button"),L=function(){k(W);o.any(e,s.sched("allDay"))||o.add(e,s.sched("allDay"),a.literal("true",void 0,a.sym("http://www.w3.org/2001/XMLSchema#boolean")),m);let t=0,i=!1;const c=function(e){return!!e.querySelector("input, select, textarea, button")},l=function(t){const n=function(e,t){if(!e)return t;const n=(e.value||"").toLowerCase();return"true"===n||"1"===n||"false"!==n&&"0"!==n&&t}(o.any(e,s.sched("allDay")),!0),i=o.sym(b+(n?"#AllDayForm2":"#NotAllDayForm2"));r.widgets.appendForm(document,t,{},e,i,m,E)};{const a=[y,w,x],o=[];t=0;for(let t=0;t<a.length;t++){const i=n.createElement("div");r.widgets.appendForm(document,i,{},e,a[t],m,E),1!==t||c(i)||l(i),o.push(i)}const s=function(){k(H).appendChild(o[t]),0===t?u.setAttribute("disabled",""):u.removeAttribute("disabled"),t===o.length-1?(p.setAttribute("disabled",""),i||(W.appendChild(d),W.appendChild(N),i=!0)):p.removeAttribute("disabled")},u=k($).appendChild(n.createElement("button"));u.setAttribute("style",A),u.textContent="<- go back",u.addEventListener("click",function(e){t>0&&(t-=1,s())},!1);const p=k(V).appendChild(n.createElement("button"));p.setAttribute("style",A),p.textContent="continue ->",p.addEventListener("click",function(e){t<o.length-1&&(t+=1,s())},!1),s()}const u=[];u.push(a.st(e,s.sched("availabilityOptions"),s.sched("YesNoMaybe"),m)),u.push(a.st(e,s.sched("ready"),new Date,m)),u.push(a.st(e,s.sched("results"),v,m)),N.setAttribute("style",A),N.textContent="Go to poll",N.addEventListener("click",function(t){o.any(e,s.sched("ready"))?(O(),V.appendChild(d)):(V.appendChild(d),o.updater.update([],u,function(e,t,n){t?O():E(t,n)}))},!1);const d=n.createElement("button");d.setAttribute("style",A);const p=d.appendChild(n.createElement("img"));p.setAttribute("src",r.icons.iconBase+"noun_480183.svg"),p.setAttribute("style",C),d.addEventListener("click",function(t){const n=o.anyValue(e,s.cal("summary"))||o.anyValue(e,s.dc("title"))||"",r="mailto:"+o.each(e,s.sched("invitee")).map(function(e){const t=o.any(e,s.foaf("mbox"));return t?t.uri.replace("mailto:",""):""}).join(",")+"?subject="+encodeURIComponent(n+"-- When can we meet?")+"&body="+encodeURIComponent(n+"\n\nWhen can you?\n\nSee "+e+"\n");window.location.href=r},!1)};function O(){d.nowOrWhenFetched(v.uri,void 0,(e,t,n)=>{e?(k(H),j()):404===n.status?p.put(v,[],"text/turtle",function(e,t,n){t?(k(H),j()):E(t,"FAILED to create results file at: "+v.uri+" : "+n)}):E(e,"FAILED to read results file: "+t)})}function j(){const t=o.any(l,s.cal("summary")),i=o.any(l,s.cal("comment")),u=o.any(l,s.cal("location")),d=H;t&&(d.appendChild(n.createElement("h3")).textContent=t),u&&(d.appendChild(n.createElement("address")).textContent=u.value),i&&(d.appendChild(n.createElement("p")).textContent=i.value);const p=o.any(l,s.dc("author"));if(p){const e=o.any(p,s.foaf("name"));e&&(d.appendChild(n.createElement("p")).textContent=e)}const f=new a.Query("Responses"),h={};["time","author","value","resp","cell"].forEach(function(e){f.vars.push(h[e]=a.variable(e))}),f.pat.add(l,s.sched("response"),h.resp),f.pat.add(h.resp,s.dc("author"),h.author),f.pat.add(h.resp,s.sched("cell"),h.cell),f.pat.add(h.cell,s.sched("availabilty"),h.value),f.pat.add(h.cell,s.cal("dtstart"),h.time);const m={};m.set_x=o.each(e,s.sched("option")),m.set_x=m.set_x.map(function(e){return o.any(e,s.cal("dtstart"))}).filter(function(e){return!!e}),m.set_y=o.each(e,s.sched("response")),m.set_y=m.set_y.map(function(e){return o.any(e,s.dc("author"))}).filter(function(e){return!!e});const g=o.each(l,s.sched("option")).map(function(e){return o.any(e,s.cal("dtstart"))}).filter(function(e){return!!e}),b=function(){const e=d.appendChild(r.matrix.matrixForQuery(n,f,h.time,h.author,h.value,m,function(){}));e.setAttribute("class","matrix");const t=n.createElement("button");t.setAttribute("style",A);const i=n.createElement("img");i.setAttribute("src",r.icons.iconBase+"noun_479395.svg"),i.setAttribute("style",C),t.appendChild(i),t.addEventListener("click",function(n){t.disabled=!0,o.fetcher.refresh(v,function(n,r){n&&(e.refresh(),t.disabled=!1)})},!1),k(W),W.appendChild(t)},y=[],w={div:W,dom:n};r.login.ensureLoggedIn(w).then(e=>{const t=e.me,i=v;m.set_y=m.set_y.filter(function(e){return!e.sameTerm(t)}),m.set_y.push(t),m.cellFunction=function(e,i,a,l){if(null!==l&&o.fetcher.nowOrWhenFetched(l.uri.split("#")[0],void 0,function(t,n){t&&_(e,l)}),a.sameTerm(t)){const t=function(){_(e,l)},a={},u=s.sched("availabilty");if(!i)return;const d=y[i.toNT()],p=r.widgets.makeSelectForOptions(n,o,d,u,c,a,v,t);e.appendChild(p)}else null!==l&&(e.textContent=r.utils.label(l))};const u=o.each(l,s.sched("response"));let d=null;u.forEach(function(e){o.holds(e,s.dc("author"),t)&&(d=e)});const p=[],f=r.widgets.newThing(i).uri;if(null===d)d=a.sym(f+"_response"),p.push(a.st(l,s.sched("response"),d,i)),p.push(a.st(d,s.dc("author"),t,i));else{o.each(d,s.sched("cell")).forEach(function(e){const t=o.any(e,s.cal("dtstart"));t&&(y[t.toNT()]=e)})}for(let e=0;e<g.length;e++){const t=g[e];if(!t)continue;if(y[t.toNT()])continue;const n=a.sym(f+"_"+e);p.push(a.st(d,s.sched("cell"),n,i)),p.push(a.st(n,s.cal("dtstart"),t,i)),y[t.toNT()]=n}p.length?o.updater.update([],p,function(e,t,n){t?b():E(t,n)}):b()});const x=o.any(e,s.foaf("maker"));if(!x||x.sameTerm(S)){const e=n.createElement("button");e.setAttribute("style",A);const t=n.createElement("img");t.setAttribute("src",r.icons.iconBase+"noun_344563.svg"),t.setAttribute("style",C),e.appendChild(t),e.addEventListener("click",function(e){k(d),L()},!1),k($),$.appendChild(e)}k(V),V.appendChild(function(){const e=r.login.newAppInstance(n,{noun:"scheduler"},T);return e.firstChild.setAttribute("style",A),e}())}const D=n.createElement("div"),M=D.appendChild(n.createElement("table"));M.setAttribute("style","background-color: white; min-width: 40em; min-height: 13em;");const U=M.appendChild(n.createElement("tr"));U.appendChild(n.createElement("td")),U.appendChild(n.createElement("td")),U.appendChild(n.createElement("td"));const z=null,H=M.appendChild(n.createElement("tr")).appendChild(n.createElement("td"));H.setAttribute("colspan","3");const q=M.appendChild(n.createElement("tr"));q.setAttribute("class","naviMenu"),q.setAttribute("style"," text-align: middle; vertical-align: middle; padding-top: 4em; ");const $=q.appendChild(n.createElement("td")),W=q.appendChild(n.createElement("td")),V=q.appendChild(n.createElement("td"));return F(),D}}},6298(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500);const i={icon:r.icons.iconBase+"padlock-timbl.svg",name:"sharing",label:(e,t)=>{const n=t.session.store.findTypeURIs(e);return n[r.ns.ldp("Resource").uri]||n[r.ns.ldp("Container").uri]||n[r.ns.ldp("BasicContainer").uri]?"Sharing":null},render:(e,t)=>{const n=t.dom,i=t.session.store,a=function(){const t=i.findTypeURIs(e);if(t[r.ns.ldp("BasicContainer").uri]||t[r.ns.ldp("Container").uri])return"folder";return"file"}(),o=n.createElement("div");return o.classList.add("sharingPane"),r.aclControl.preventBrowserDropEvents(n),o.appendChild(r.aclControl.ACLControlBox5(e,t,a,i)),o}};t.default=i},7978(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.slideshowPane=void 0;var r,i=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500)),a=(r=n(6305))&&r.__esModule?r:{default:r};const o=i.ns;t.slideshowPane={icon:i.icons.iconBase+"noun_138712.svg",name:"slideshow",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store,r=i.ns,a=n.findTypeURIs(e);if(a[r.ldp("Container").uri]||a[r.ldp("BasicContainer").uri]){const t=n.each(e,r.ldp("contains"));let a=0;return t.forEach(function(e){i.widgets.isImage(e)&&a++}),a>0?"Slideshow":null}return null},render:function(e,t){const n=t.dom;i.widgets.addStyleSheet(n,"https://leemark.github.io/better-simple-slideshow/css/simple-slideshow-styles.css");const r=t.session.store,o=i.ns,s=n.createElement("div");s.setAttribute("class","bss-slides");const c=r.findTypeURIs(e);let l;(c[o.ldp("BasicContainer").uri]||c[o.ldp("Container").uri])&&(l=o.ldp("contains"));const u=r.each(e,l);u.sort();for(let e=0;e<u.length;e++){if(!i.widgets.isImage(u[e]))continue;const t=s.appendChild(n.createElement("figure")),a=t.appendChild(n.createElement("img"));r.fetcher._fetch(u[e].uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);a.setAttribute("src",t)}),a.setAttribute("width","100%"),t.appendChild(n.createElement("figcaption"))}const d={dom:n};return setTimeout(function(){(0,a.default)(".bss-slides",d)},1e3),s}}},7350(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.socialPane=void 0;var r=o(n(500)),i=n(9332),a=o(n(8230));function o(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}t.socialPane={icon:r.icons.originalIconBase+"foaf/foafTiny.gif",name:"social",label:function(e,t){const n=t.session.store.findTypeURIs(e);return n[r.ns.foaf("Person").uri]||n[r.ns.vcard("Individual").uri]?"Friends":null},render:function(e,t){const n=t.dom,o=function(e){const t=n.createElement("p");t.textContent=e,x.appendChild(t)},s=function(e,t){if(!t)return e;const r=n.createElement("a");return r.setAttribute("href",t),r.appendChild(e),r},c=function(e){return n.createTextNode(e)},l=t.getOutliner(n),u=t.session.store,d=n.createElement("div");d.setAttribute("class","socialPane");const p=r.ns.foaf,f=r.ns.vcard,h="background-color: #eee; width: 25%; border: 0; padding: 0.5em; margin: 0;",m=d.appendChild(n.createElement("table")).appendChild(n.createElement("tr")),g=m.appendChild(n.createElement("td")),v=m.appendChild(n.createElement("td")),b=m.appendChild(n.createElement("td")),y=g;y.style.cssText=h;const w=v.appendChild(n.createElement("table"));w.style.cssText="background-color: #fff; color: #000; width: 46%; margin: 0; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; padding: 0;";const x=b;x.style.cssText=h;const A=u.any(e,p("img"))||u.any(e,p("depiction"));if(A){const e=n.createElement("IMG");e.setAttribute("src",A.uri),e.style.cssText=" width: 100% ; border: none; margin: 0; padding: 0;",y.appendChild(e)}const C=u.anyValue(e,p("name"))||"???";let E=n.createElement("H3");E.appendChild(n.createTextNode(C));let k=i.authn.currentUser();const _=k?k.uri:null,S=r.login.loginStatusBox(n,e=>{k=u.sym(e),r.widgets.refreshTree(d)});x.appendChild(S);const T=k&&u.sameThings(k,e),P=p("knows"),F=u.anyValue(e,p("givenname"))||u.anyValue(e,p("firstName"))||u.anyValue(e,p("nick"))||u.anyValue(e,p("name"))||u.anyValue(e,f("fn")),R=u.each(e,P);let I,B,N=null,L=!1;if(k){const t=u.each(void 0,p("primaryTopic"),k);let i="";for(let e=0;e<t.length;e++)if(u.whether(t[e],r.ns.rdf("type"),p("PersonalProfileDocument"))){if(L=l.UserInput.sparqler.editable(t[e].uri,u),L){N=t[e];break}i+="Your profile <"+r.utils.escapeForXML(t[e].uri)+"> is not remotely editable."}if(N?(o("Editing your profile "+N+"."),L=l.UserInput.sparqler.editable(N.uri,u)):o(i+"\nI couldn't find your editable personal profile document."),T);else{E=n.createElement("h3"),E.appendChild(n.createTextNode("You and "+F)),y.appendChild(E);const t=u.canon(k);I=u.whether(e,P,t),B=!1;const i=u.statementsMatching(t,P,e);i.length&&(B=!0,N||(N=i[0].why));const o=n.createElement("tr");y.appendChild(o);const d=function(){o.appendChild(s(c("You"),_)),o.appendChild(c(" and ")),o.appendChild(s(c(F),e.uri))};if(I?B?(d(),o.appendChild(c(" say you know each other."))):(o.appendChild(s(c(F),e.uri)),o.appendChild(c(" knows ")),o.appendChild(s(c("you"),_)),o.appendChild(c(" (unconfirmed).")),o.appendChild(c(" confirm you know ")),o.appendChild(s(c(F),e.uri)),o.appendChild(c("."))):B?(o.appendChild(s(c("You"),_)),o.appendChild(c(" know ")),o.appendChild(s(c(F),e.uri)),o.appendChild(c(" (unconfirmed)"))):(d(),o.appendChild(c(" have not said you know each other."))),L){const t=function(e,t,i){const a=n.createElement("form"),o=n.createElement("input");a.appendChild(o);const s=n.createTextNode(e);return s.className="question",a.appendChild(s),o.setAttribute("type","checkbox"),o.checked=i,o.addEventListener("click",function(e){if(s.className="pendingedit",this.checked)try{l.UserInput.sparqler.insert_statement(t,function(e,n,i){if(s.className="question",!n)return r.log.alert(null,"Message","Error occurs while inserting "+t+"\n\n"+i),void(o.checked=!1);u.add(t.subject,t.predicate,t.object,t.why)})}catch(e){r.log.error("Data write fails:"+e),r.log.alert("Data write fails:"+e),o.checked=!1,s.className="question"}else try{l.UserInput.sparqler.delete_statement(t,function(e,n,i){s.className="question",n?u.removeMany(t.subject,t.predicate,t.object,t.why):(r.log.alert("Error occurs while deleting "+t+"\n\n"+i),this.checked=!0)})}catch(e){r.log.alert("Delete fails:"+e),this.checked=!0}},!1),a}("You know "+F,new a.Statement(k,P,e,N),B);y.appendChild(t)}if(R){const e=u.each(k,p("knows"));if(e.length){const t=function(e,t){const n=[];for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)if(t[i].sameTerm(e[r])){n.push(t[i]);break}return n}(R,e),i=n.createElement("tr");if(y.appendChild(i),i.appendChild(n.createTextNode("You"+(F?" and "+F:"")+" know"+function(e){let t=" ";return t+=e||"no",1===e?t+" person":t+" people"}(t.length)+" found in common")),t)for(let e=0;e<t.length;e++)i.appendChild(n.createTextNode(", "+r.utils.label(t[e])))}const t=n.createElement("tr");y.appendChild(t)}}}r.widgets.attachmentList(n,e,w,{doc:N,modify:!!L,predicate:p("knows"),noun:"friend"}),E=n.createElement("h3"),E.appendChild(n.createTextNode("Basic Information")),y.appendChild(E);const O=[r.ns.foaf("homepage"),r.ns.foaf("weblog"),r.ns.foaf("workplaceHomepage"),r.ns.foaf("schoolHomepage")];for(let t=0;t<O.length;t++){const i=O[t],a=u.statementsMatching(e,i);if(0===a.length);else{const e=[];for(let t=0;t<a.length;t++){const n=a[t];n.object.uri&&e.push(n.object.uri)}e.sort();let t,o="";for(let a=0;a<e.length;a++){const s=e[a];if(s===o)continue;o=s;let c="";if(t=r.utils.label(i),e.length>1){const e=s.indexOf("//");if(e>0){let t=s.indexOf("/",e+2);const n=s.lastIndexOf(".",t);n>0&&(t=n),c=s.slice(e+2,t)}}c&&(t=c+" "+t);const l=n.createTextNode(t),u=n.createElement("a");u.appendChild(l),u.setAttribute("href",s);const d=n.createElement("div");d.style.cssText="width: 80%; background-color: #fff; border: solid 0.05em #ccc; margin-top: 0.1em; margin-bottom: 0.1em; padding: 0.1em; text-align: center;",d.appendChild(u),y.appendChild(d)}}}const j=[r.ns.foaf("openid"),r.ns.foaf("nick")];for(let t=0;t<j.length;t++){const n=j[t],r=u.statementsMatching(e,n);0===r.length||l.appendPropertyTRs(y,r,!1,function(e){return!0})}return d}}},4036(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500);const i={icon:r.icons.iconBase+"noun_688606.svg",name:"tabbed",audience:[r.ns.solid("PowerUser")],label:(e,t)=>{const n=t.session.store.findTypeURIs(e);return r.ns.meeting("Cluster").uri in n?"Tabbed":null},render:(e,t)=>{const n=t.dom,i=t.session.store,a=n.createElement("div");return(async()=>{if(!i.fetcher)throw new Error("Store has no fetcher");await i.fetcher.load(e),a.appendChild(r.tabs.tabWidget({dom:n,subject:e,predicate:i.any(e,r.ns.meeting("predicate"))||r.ns.meeting("toolList"),ordered:!0,orientation:i.anyValue(e,r.ns.meeting("orientation"))||"0",renderMain:(e,n)=>{e.innerHTML="";const r=e.appendChild(t.dom.createElement("table"));t.getOutliner(t.dom).GotoSubject(n,!0,null,!1,void 0,r)},renderTab:(n,a)=>{const o=i.the(e,r.ns.meeting("predicate"));n.appendChild(r.widgets.personTR(t.dom,o,a,{}))},backgroundColor:i.anyValue(e,r.ns.ui("backgroundColor"))||"#ddddcc"}))})(),a}};t.default=i},3472(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableViewPane=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));t.tableViewPane={icon:r.icons.originalIconBase+"table.png",name:"tableOfClass",label:function(e,t){const n=t.session.store;if(!n.any(void 0,r.ns.rdf("type"),e))return null;const i=n.statementsMatching(void 0,r.ns.rdf("type"),e).length;return 0===i||i>15?null:r.utils.label(e)+" table"},render:function(e,t){const n=t.dom,i=n.createElement("div");return i.setAttribute("class","tablePane"),i.appendChild(r.table(n,{tableClass:e})),i}}},2368(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_106746.svg",name:"transaction",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store,i=n.findTypeURIs(e);return i["http://www.w3.org/2000/10/swap/pim/qif#Transaction"]?"$$":n.any(e,r.ns.qu("amount"))?"$$$":i["http://www.w3.org/ns/pim/trip#Trip"]?"Trip $":null},render:function(e,t){const n=t.dom,a=t.session.store,s=a.fetcher,c=i.Namespace("http://www.w3.org/2000/10/swap/pim/qif#"),l=i.Namespace("http://www.w3.org/ns/pim/trip#"),u=n.createElement("div");u.setAttribute("class","transactionPane");const d=function(e){return function(e,t){void 0===t&&(t="color: grey");const r=n.createElement("pre");r.setAttribute("style",t),u.appendChild(r),r.appendChild(n.createTextNode(e))}(e,"color: #100; background-color: #fee")},p=a.statementsMatching(e),f=a.statementsMatching(void 0,void 0,e),h=a.findTypeURIs(e),m={},g=function(e){m[e.uri]=!0},v=function(e){if(void 0===e)return"";const t=""+e;return t.indexOf(".")>=0?t.split(".")[0]+"."+(t.split(".")[1]+"00").slice(0,2):t+".00"},b=function(e,t){const r=n.createElement("td");return 0+e===0&&t||(r.textContent=v(e)),r.setAttribute("style","width: 6em; text-align: right; "),r},y=function(e){const t=n.createElement("th");return t.textContent=e,t.setAttribute("style","text-align: right; "),t},w=function(e,t){const n=a.any(e,o.qu("date")),r=a.any(t,o.qu("date"));if(void 0!==n&&void 0!==r){if(n.value<r.value)return-1;if(n.value>r.value)return 1}return e.uri<t.uri?-1:e.uri>t.uri?1:0},x=function(e,n,r,i,a){n.expanded?(n.parentNode.removeChild(n.expanded),n.expanded=!1):function(e,n,r,i,a){const o=n.parentNode.children;if(a)for(let e=o.length-1;e>=0;e--)o[e].expanded&&(o[e].parentNode.removeChild(o[e].expanded),o[e].expanded=!1);const s=e.createElement("tr"),c=s.appendChild(e.createElement("td"));c.setAttribute("style","width: 98%; padding: 1em; border: 0.1em solid grey;");const l=n.children.length;n.nextSibling?n.parentNode.insertBefore(s,n.nextSibling):n.parentNode.appendChild(s),n.expanded=s,c.setAttribute("colspan",""+l),c.appendChild(function(e,t,n){const r=e.session.paneRegistry.byName(n).render(t,e);return r.setAttribute("style","border: 0.1em solid green;"),r}(t,r,i))}(e,n,r,i,a)};if(h["http://www.w3.org/2000/10/swap/pim/qif#Transaction"]||a.any(e,o.qu("toAccount"))){g(o.rdf("type"));const h=a.any(e,r.ns.qu("toAccount"));!function(e){let t="padding: 0.5em 1.5em 1em 1.5em; ";if(e){const n=a.any(e,r.ns.ui("backgroundColor"));n&&(t+="background-color: "+n.value+"; ")}u.setAttribute("style",t)}(h),h||d("(Error: There is no bank account known for this transaction <"+e.uri+">,\n -- every transaction needs one.)");let v=null;const b=a.any(e,r.ns.qu("accordingTo"));void 0===b?d("(Error: There is no back link to the original data source foir this transaction <"+e.uri+">,\nso I can't tell how to annotate it.)"):(v=void 0!==b?a.any(b,r.ns.qu("annotationStore")):null,void 0===v&&d("(There is no annotation document for this statement\n<"+b.uri+">,\nso you cannot classify this transaction.)"));const y=n.createElement("div");y.setAttribute("style","float:right"),u.appendChild(y);const w=function(t,i){g(t);const o=a.any(e,t);if(!o)return;const s=n.createElement("a");s.setAttribute("href",o.uri),s.setAttribute("style","float:right"),y.appendChild(s).textContent=i||r.utils.label(o),y.appendChild(n.createElement("br"))};w(r.ns.qu("toAccount")),w(r.ns.qu("accordingTo"),"Statement"),w(l("trip"));const x=n.createElement("table");u.appendChild(x);const A=["date","payee","amount","in_USD","currency"].map(c).map(function(t){g(t);const n=a.any(e,t),i=n?r.utils.labelForXML(n):"";return'<tr><td style="text-align: right; padding-right: 0.6em">'+r.utils.labelForXML(t)+'</td><td style="font-weight: bold;">'+i+"</td></tr>"}).join("\n");x.innerHTML=A;const C=function(e,t){e||d("Sorry, failed to save your change:\n"+t)};v&&a.fetcher.nowOrWhenFetched(v.uri,e,function(c,h){c||d("Cannot load store "+v+" "+h);const b=a.any(v,o.qu("calendarYear")),y=function(){u.insertBefore(r.widgets.makeSelectForNestedCategory(n,a,e,r.ns.qu("Classified"),v,C),x.nextSibling)};a.any(void 0,o.rdfs("subClassOf"),o.qu.Classified)?y():b&&s.load(b).then(function(e){s.load(a.each(b,o.rdfs("seeAlso"))).then(function(){y()}).catch(function(e){})}).catch(function(e){}),u.appendChild(r.widgets.makeDescription(n,a,e,r.ns.rdfs("comment"),v,C));let w=a.statementsMatching(void 0,l("trip"),void 0,v).map(function(e){return e.object});const A=a.each(void 0,r.ns.rdf("type"),l("Trip"));w=w.concat(A).sort();w=function(e,t,n,r){const i=t.map(function(t){let r=e.any(t,n);return r=r?r.value:"9999-12-31",[r,t]});return i.sort(),r&&i.reverse(),i.map(function(e){return e[1]})}(a,w,r.ns.cal("dtstart"),!0),w.length>1&&u.appendChild(r.widgets.makeSelectForOptions(n,a,e,l("trip"),w,{multiple:!1,nullLabel:"-- what trip? --",mint:"New Trip *",mintClass:l("Trip"),mintStatementsFun:function(e){const t=[];return t.push(i.st(e,r.ns.rdf("type"),l("Trip"),e.doc())),t}},v,C)),u.appendChild(n.createElement("br"));const E=t.getOutliner(n);g(o.rdfs("comment")),r.widgets.attachmentList(n,e,u),g(o.wf("attachment")),u.appendChild(n.createElement("tr")).setAttribute("style","height: 1em"),E.appendPropertyTRs(u,p,!1,function(e,t){return!(e.uri in m)}),E.appendPropertyTRs(u,f,!0,function(e,t){return!(e.uri in m)})})}else if(h["http://www.w3.org/ns/pim/trip#Trip"]){const t=function(){const t={},i={},s={},c=a.each(void 0,l("trip"),e),p=c.map(function(e){return e.doc()});a.fetcher.load(p).then(function(){c.forEach(function(e){const n=a.the(e,o.qu("date")),c=n?(""+n.value).slice(0,4):"????";let l=a.the(e,o.rdf("type"));if(l||(l=r.ns.qu("ErrorNoType")),l&&l.uri){const n=l.uri;i[c]||(i[c]=0),s[c]||(s[c]={}),t[n]||(t[n]=0),s[c][n]||(s[c][n]=0);const o=a.any(e,r.ns.qu("in_USD"));if(o||d("@@ No amount in USD: "+o+" for "+e),o){const e=parseFloat(o.value);t[n]+=e,s[c][n]+=e,i[c]+=e}}});const l=[];let p=0;const f=[];let h;for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&f.push(e);f.sort();const m=f.length;let g;const A=u.appendChild(n.createElement("table"));if(A.setAttribute("style","font-size: 120%; margin-left:auto; margin-right:1em; margin-top: 1em; border: 0.05em solid gray; padding: 1em;"),m>1){const e=A.appendChild(n.createElement("tr"));for(e.appendChild(y("")),h=0;h<m;h++)e.appendChild(y(f[h]));e.appendChild(y("total"))}for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(l.push(e),p+=t[e]);let C,E,k;l.sort();for(let e=0;e<l.length;e++){const i=a.sym(l[e]);if(C=A.appendChild(n.createElement("tr")),E=C.appendChild(n.createElement("td")),E.textContent=r.utils.label(i),m>1)for(h=0;h<m;h++)k=s[f[h]][l[e]],g=C.appendChild(b(k,!0));C.appendChild(b(t[l[e]],!0))}if(l.length>1){if(C=A.appendChild(n.createElement("tr")),C.appendChild(y("total")),m>1)for(h=0;h<m;h++)k=i[f[h]],g=C.appendChild(b(k?v(k):""));g=C.appendChild(b(p)),g.setAttribute("style","font-weight: bold; text-align: right;")}const _=function(e,t,n){const i=e.createElement("table");i.setAttribute("style","padding-left: 0.5em; padding-right: 0.5em; font-size: 9pt; width: 85%;");const s=function(e,t){const n=e.createElement("tr"),i=a.any(t,o.qu("toAccount"));!function(e,t){let n="'padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.1em;";if(t){const e=a.any(t,r.ns.ui("backgroundColor"));e&&(n+="background-color: "+e.value+"; ")}e.setAttribute("style",n)}(n,i);const s=n.appendChild(e.createElement("td")),c=a.any(t,o.qu("date"));s.textContent=c?c.value.slice(0,10):"???",s.setAttribute("style","width: 7em;");const l=n.appendChild(e.createElement("td"));l.setAttribute("style","width: 36em;");const u=a.any(t,o.qu("payee"));l.textContent=u?u.value:"???";const d=l.appendChild(e.createElement("a"));d.textContent=" ➜",d.setAttribute("href",t.uri);const p=n.appendChild(e.createElement("td")),f=a.any(t,o.qu("in_USD"));return p.textContent=f?v(f.value):"???",p.setAttribute("style","width: 6em; text-align: right; "),n.addEventListener("click",function(r){x(e,n,t,"transaction",!r.shiftKey)},!1),n},c=n?t.filter(n):t.slice();c.sort(w);for(let t=0;t<c.length;t++)i.appendChild(s(e,c[t]));return i}(n,c);_.setAttribute("style","margin-left:auto; margin-right:1em; margin-top: 1em; border: padding: 1em;"),u.appendChild(_),r.widgets.attachmentList(n,e,u)}).catch(function(e){d("Error loading transactions: "+e)})};t()}return u}}},8131(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));const i=r.ns;t.default={icon:r.icons.iconBase+"noun_142708.svg",name:"period",audience:[i.solid("PowerUser")],label:function(e,t){return t.session.store.findTypeURIs(e)["http://www.w3.org/2000/10/swap/pim/qif#Period"]?"period":null},render:function(e,t){const n=t.dom,i=t.session.store,a=r.ns,o=n.createElement("div");o.setAttribute("class","periodPane");const s=function(e,t){t||(t="color: grey;");const r=n.createElement("pre");r.setAttribute("style",t),o.appendChild(r),r.appendChild(n.createTextNode(e))},c=function(e){return s("✓ "+e,"color: #010; background-color: #efe")},l=function(e){return s(e,"color: #100; background-color: #fee")},u=function(){const s=i.any(e,a.cal("dtstart"));void 0===s&&l("(Error: There is no start date known for this period <"+e.uri+">,\n -- every period needs one.)");const u=i.any(e,a.cal("dtend"));void 0===u&&l("(Error: There is no end date known for this period <"+e.uri+">,\n -- every period needs one.)");const d={};var p;p=a.rdf("type"),d[p.uri]=!0;const f=function(e){return!!((t=i.any(e,a.qu("date")))&&t>=s&&t<u);var t},h=function(e,t){const n=i.any(e,a.qu("date")),r=i.any(t,a.qu("date"));if(void 0!==n&&void 0!==r){if(n.value<r.value)return-1;if(n.value>r.value)return 1}return e.uri<t.uri?-1:e.uri>t.uri?1:0};o.appendChild(n.createElement("h2")).textContent="Period "+s.value.slice(0,10)+" - "+u.value.slice(0,10);const m=function(e,n,r,i,a){n.expanded?(n.parentNode.removeChild(n.expanded),n.expanded=!1):function(e,n,r,i,a){const o=n.parentNode.children;if(a)for(let e=o.length-1;e>=0;e--)o[e].expanded&&(o[e].parentNode.removeChild(o[e].expanded),o[e].expanded=!1);const s=e.createElement("tr"),c=s.appendChild(e.createElement("td"));c.setAttribute("style","width: 98%; padding: 1em; border: 0.1em solid grey;");const l=n.children.length;n.nextSibling?n.parentNode.insertBefore(s,n.nextSibling):n.parentNode.appendChild(s),n.expanded=s,c.setAttribute("colspan",""+l),c.appendChild(function(e,t,n){const r=e.session.paneRegistry.byName(n).render(t,e);return r.setAttribute("style","border: 0.1em solid green;"),r}(t,r,i))}(e,n,r,i,a)},g=function(e,t){const n=e.createElement("table");n.setAttribute("style","margin-left: 100; font-size: 9pt; width: 85%;");const o=function(e,t){const n=e.createElement("tr"),o=i.any(t,a.qu("toAccount"));!function(e,t){let n="margin-left: 8em; padding-left: 5em;";if(t){const e=i.any(t,r.ns.ui("backgroundColor"));e&&(n+="background-color: "+e.value+"; ")}e.setAttribute("style",n)}(n,o);const s=n.appendChild(e.createElement("td")),c=i.any(t,a.qu("date"));s.textContent=c?c.value.slice(0,10):"???",s.setAttribute("style","width: 7em;");const l=n.appendChild(e.createElement("td"));l.setAttribute("style","width: 36em;");const u=i.any(t,a.qu("payee"));l.textContent=u?u.value:"???";const d=l.appendChild(e.createElement("a"));d.textContent=" ➜",d.setAttribute("href",t.uri);const p=n.appendChild(e.createElement("td")),f=i.any(t,a.qu("in_USD"));return p.textContent=f?function(e){const t=""+e;return t.indexOf(".")>=0?t.split(".")[0]+"."+(t.split(".")[1]+"00").slice(0,2):t+".00"}(f.value):"???",p.setAttribute("style","width: 6em; text-align: right; "),n.addEventListener("click",function(r){m(e,n,t,"transaction",!r.shiftKey)},!1),n},s=t.filter(f);s.sort(h);for(let t=0;t<s.length;t++)n.appendChild(o(e,s[t]));return n},v={"http://www.w3.org/2000/10/swap/pim/qif#Transaction":!0,"http://www.w3.org/2000/10/swap/pim/qif#Unclassified":!0,"http://www.w3.org/2000/10/swap/pim/qif#UnclassifiedOutgoing":!0,"http://www.w3.org/2000/10/swap/pim/qif#UnclassifiedIncome":!0},b=i.findMemberURIs(a.qu("Transaction")),y=[],w=[];let x,A,C,E;for(const e in b)if(Object.prototype.hasOwnProperty.call(b,e)){A=i.sym(e);const t=i.each(A,a.rdf("type"));let n=!1;for(let e=0;e<t.length;e++){void 0===v[t[e].uri]&&(n=!0)}n||(x=i.any(A,a.qu("in_USD")),void 0===x&&(x=i.any(A,a.qu("amount"))),x&&(""+x.value).indexOf("-")>=0?w.push(i.sym(e)):y.push(i.sym(e)))}y.length?(C=g(n,y),E=C.children.length,o.appendChild(n.createElement("h3")).textContent="Unclassified Income"+(E<4?"":" ("+E+")"),o.appendChild(C)):c("No unclassified income"),w.length?(C=g(n,w),E=C.children.length,o.appendChild(n.createElement("h3")).textContent="Unclassified Outgoings"+(E<4?"":" ("+E+")"),o.appendChild(C)):c("No unclassified outgoings ");const k=function(e,t){const s=function(e){const t=i.findSubClassesNT(a.qu("Transaction"));for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&n.slice(1,-1).split("#")[1]===e)return i.sym(n.slice(1,-1));return null}(e);let c;const u=[];let d=0;if(!s)return l("Error: No category correspnding to "+e),null;const p=i.each(void 0,a.rdf("type"),s);for(let e=0;e<p.length;e++)i.any(p[e],t)||u.push(p[e]);return u.length&&(c=g(n,u),d=c.children.length,o.appendChild(n.createElement("h3")).textContent=r.utils.label(s)+" with no "+r.utils.label(t)+(d<4?"":" ("+d+")"),o.appendChild(c)),d};0===k("Reimbursables",a.trip("trip"))&&c("Reimbursables all have trips"),0===k("Other_Inc_Speaking",a.trip("trip"))&&c("Speaking income all has trips")};if(i.findTypeURIs(e)["http://www.w3.org/2000/10/swap/pim/qif#Period"]){const t=i.each(e,a.rdfs("seeAlso"));i.fetcher.load(t).then(function(){u()})}return o}}},5130(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_62007.svg",name:"travel expenses",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store,i=n.findTypeURIs(e);return r.ns.qu("Transaction")in n.findSuperClassesNT(e)?"by Trip":i["http://www.w3.org/ns/pim/trip#Trip"]?"Trip $":null},render:function(e,t){const n=t.dom,a=t.store,o=r.ns,s=i.Namespace("http://www.w3.org/2002/12/cal/ical#"),c=i.Namespace("http://www.w3.org/ns/pim/trip#"),l=n.createElement("div");l.setAttribute("class","transactionPane"),l.innerHTML="<h2>Trip transactions</h2>";const u=function(e,t){void 0===t&&(t="color: grey");const r=n.createElement("pre");r.setAttribute("style",t),l.appendChild(r),r.appendChild(n.createTextNode(e))},d=a.findTypeURIs(e),p=function(e,t){const s=new i.Query(r.utils.label(e)),l={};["date","transaction","comment","type","in_USD"].forEach(function(e){s.vars.push(l[e]=i.variable(e))}),s.pat.add(l.transaction,c("trip"),e);const d=a.formula();d.add(l.transaction,o.rdf("type"),l.type),s.pat.optional.push(d),s.pat.add(l.transaction,r.ns.qu("date"),l.date),d.add(l.transaction,o.rdfs("comment"),l.comment),s.pat.optional.push(d),s.pat.add(l.transaction,r.ns.qu("in_USD"),l.in_USD);const p=r.table(n,{query:s,onDone:function(){const t={},n=a.each(void 0,c("trip"),e);n.forEach(function(e){let n=a.the(e,o.rdf("type"));if(n||(n=r.ns.qu("ErrorNoType")),n&&n.uri){const i=n.uri;t[i]||(t[i]=0);const o=a.any(e,r.ns.qu("in_USD"));o||u(" @@ No amount in USD: "+o+" for "+e),o&&(t[i]=t[i]+parseFloat(o.value))}});let i="",s=0,l=0;for(const e in t)i+=r.utils.label(a.sym(e))+": "+t[e]+"; ",s++,l+=t[e];u("Totals of "+n.length+" transactions: "+i,""),s>1&&u("Overall net: "+l,"text-treatment: bold;")}});t.appendChild(p)};if(r.ns.qu("Transaction")in a.findSuperClassesNT(e)){const t=a.each(void 0,o.rdf("type"),e),n=[],i=[];for(let e=0;e<t.length;e++){const o=t[e],s=a.any(o,c("trip"));if(s){o in i||(i[s]={total:0,transactions:[]});const e=a.any(o,r.ns.qu("in_USD"));e&&(i[s].total+=e);const t=a.any(o,r.ns.qu("date"));i[s.toNT()].transactions.push([t,o])}else n.push(o)}const u=[];for(const e in i){const t=a.fromNT(e);u.push([a.any(t,s("dtstart")),t])}u.sort();for(let e=0;e<u.length;e++){p(u[e][1],l)}}else d["http://www.w3.org/ns/pim/trip#Trip"]&&p(e,l);return l}}},5438(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createApplicationTable=function e(t){const n=c("table",{class:"results"}),r=l("tr",[u("th","Application URL"),u("th","Access modes"),u("th","Actions")]);return n.appendChild(r),a.store.each(t,i.ns.acl("trustedApp"),void 0,void 0).flatMap(e=>a.store.each(e,i.ns.acl("origin"),void 0,void 0).map(t=>({appModes:a.store.each(e,i.ns.acl("mode"),void 0,void 0),origin:t}))).sort((e,t)=>e.origin.value<t.origin.value?-1:1).forEach(({appModes:e,origin:r})=>n.appendChild(s(t,r,e,o))),n.appendChild(s(t,null,[i.ns.acl("Read")],o)),n;function o(){n.parentElement.replaceChild(e(t),n)}},t.createContainer=l,t.createText=u;var r=n(8230),i=n(500),a=n(9332),o=n(8847);function s(e,t,n,s){const p={origin:t,appModes:n,formElements:{modes:[],origin:void 0}};return l("tr",[l("td",[l("form",[c("input",{class:"textinput",placeholder:"Write new URL here",value:t?t.value:""},{},e=>{p.formElements.origin=e})],{},{submit:f})]),l("td",[l("form",d(p),{},{submit:f})]),l("td",[l("form",t?[u("button","Update",{class:"controlButton",style:"background: LightGreen;"}),u("button","Delete",{class:"controlButton",style:"background: LightCoral;"},{click:function(t){let n;t.preventDefault();try{n=(0,r.sym)(p.formElements.origin.value)}catch(e){return alert("Please provide an application URL you want to remove trust from")}const s=(0,o.getStatementsToDelete)(n,e,a.store,i.ns);if(!a.store.updater)throw new Error("Store has no updater");a.store.updater.update(s,[],h)}})]:[u("button","Add",{class:"controlButton",style:"background: LightGreen;"})],{},{submit:f})])]);function f(t){let n;t.preventDefault();try{n=(0,r.sym)(p.formElements.origin.value)}catch(e){return alert("Please provide an application URL you want to trust")}const s=p.formElements.modes.filter(e=>e.checked).map(e=>e.value),c=(0,o.getStatementsToDelete)(p.origin||n,e,a.store,i.ns),l=(0,o.getStatementsToAdd)(n,(0,o.generateRandomString)(),s,e,i.ns);if(!a.store.updater)throw new Error("Store has no updater");a.store.updater.update(c,l,h)}function h(e,t,n){if(t)return s()}}function c(e,t={},n={},r=null){const i=document.createElement(e);return r&&r(i),Object.keys(t).forEach(e=>{i.setAttribute(e,t[e])}),Object.keys(n).forEach(e=>{i.addEventListener(e,n[e])}),i}function l(e,t,n={},r={},i=null){const a=c(e,n,r,i);return t.forEach(e=>a.appendChild(e)),a}function u(e,t,n={},r={},i=null){const a=c(e,n,r,i);return a.textContent=t,a}function d({appModes:e,formElements:t}){return["Read","Write","Append","Control"].map(n=>l("label",[c("input",{type:"checkbox",...e.some(e=>e.value===i.ns.acl(n).value)?{checked:""}:{},value:i.ns.acl(n).uri},{},e=>t.modes.push(e)),u("span",n)]))}},8847(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRandomString=function(){return Math.random().toString(36).substr(2,5)},t.getStatementsToAdd=function(e,t,n,i,a){const o=new r.BlankNode(`bn_${t}`);return[(0,r.st)(i,a.acl("trustedApp"),o,i.doc()),(0,r.st)(o,a.acl("origin"),e,i.doc()),...n.map(e=>(0,r.sym)(e)).map(e=>(0,r.st)(o,a.acl("mode"),e,i.doc()))]},t.getStatementsToDelete=function(e,t,n,r){const i=n.statementsMatching(null,r.acl("origin"),e);return i.reduce((e,i)=>e.concat(n.statementsMatching(t,r.acl("trustedApp"),i.subject)).concat(n.statementsMatching(i.subject)),[])};var r=n(8230)},1917(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500),i=n(9332),a=n(5438);const o={global:!0,icon:`${r.icons.iconBase}noun_15177.svg`,name:"trustedApplications",label:()=>null,render:(e,t)=>{const n=t.dom,o=n.createElement("div");o.classList.add("trusted-applications-pane"),o.setAttribute("style","border: 0.3em solid #418d99; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;");const s=o.appendChild(n.createElement("table")),c=s.appendChild(n.createElement("tr")),l=s.appendChild(n.createElement("tr")).appendChild(n.createElement("div"));return l.setAttribute("style","padding: 0.7em;"),async function(e,t,n){const o=await r.login.ensureLoadedProfile({dom:e,div:t,statusArea:n,me:null}),s=o.me,c=s.doc();if(!i.store.updater)throw new Error("Store has no updater");const l=i.store.updater.editable(c.uri,i.store);if(t.appendChild((0,a.createText)("h3","Manage your trusted applications")),!l)return void t.appendChild(r.widgets.errorMessageBlock(e,`Your profile ${s.doc().uri} is not editable, so we cannot do much here.`));t.appendChild((0,a.createText)("p","Here you can manage the applications you trust."));const u=(0,a.createApplicationTable)(s);t.appendChild(u),t.appendChild((0,a.createText)("h4","Notes")),t.appendChild((0,a.createContainer)("ol",[t.appendChild((0,a.createText)("li","Trusted applications will get access to all resources that you have access to.")),t.appendChild((0,a.createText)("li","You can limit which modes they have by default.")),t.appendChild((0,a.createText)("li","They will not gain more access than you have."))])),t.appendChild((0,a.createText)("p","Application URLs must be valid URL. Examples are http://localhost:3000, https://trusted.app, and https://sub.trusted.app."))}(n,c,l).catch(e=>l.appendChild(r.widgets.errorMessageBlock(n,e))),o}};t.default=o},6682(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_170702.svg",name:"ui",audience:[o.solid("PowerUser")],label:function(e,t){const n=r.ns,i=t.session.store.findTypeURIs(e);return i[n.rdfs("Class").uri]?"creation forms":i[n.ui("Form").uri]?"edit form":null},render:function(e,t){const n=t.dom,a=t.session.store,o=r.ns,s=n.createElement("div");s.setAttribute("class","formPane");const c=r.utils.label(e),l=function(e,t){const r=n.createElement("p");return r.setAttribute("style",t||"color: grey; background-color: white"),s.appendChild(r).textContent=e,r},u=function(e,t){l(e,"style")},d=function(e,t){e||u("Sorry, failed to save your change:\n"+t)},p=a.findTypeURIs(e);let f,h,m=null;e.uri&&(f=i.Util.uri.docpart(e.uri),e.uri!==f&&a.updater.editable(f)&&(m=a.sym(i.Util.uri.docpart(e.uri)))),m||(m=a.any(a.sym(f),o.link("annotationStore"))),m||(m=r.widgets.defaultAnnotationStore(e)),m||(m=a.sym("https://formsregistry.solid.community/public/formRegistry/")),p[o.rdfs("Class").uri];const g=l("(Loading data from: "+m+")");return a.fetcher.nowOrWhenFetched(m.uri,e,function(i,f){if(i)if(s.removeChild(g),p[o.rdfs("Class").uri]){const i=function(i,p){const f=a.statementsMatching(e,i),h=t.getOutliner(n);if(f.length){for(let t=0;t<f.length;t++){h.appendPropertyTRs(s,[f[t]]);const i=f[t].object,c=n.createElement("td");s.lastChild.appendChild(c),p&&c.appendChild(r.widgets.newButton(n,a,null,null,e,i,m,function(e,t){e||u("Sorry, failed to save your change:\n"+t)}));let l=a.statementsMatching(i,o.rdf("type"));l.length||(l=a.statementsMatching(i)),l.length?r.widgets.editFormButton(n,s,i,l[0].why,d):u("No data about form")}s.appendChild(n.createElement("hr"))}else l("There are currently no known forms to make a "+c+".")};h=o.ui("creationForm"),s.appendChild(n.createElement("h2")).textContent=r.utils.label(h),l("Creation forms allow you to add information about a new thing, in this case a new "+c+"."),i(h,!0),s.appendChild(n.createElement("hr")),l("You can make a new creation form:"),s.appendChild(r.widgets.newButton(n,a,e,h,o.ui("Form"),null,m,d)),s.appendChild(n.createElement("hr")),h=o.ui("annotationForm"),s.appendChild(n.createElement("h2")).textContent=r.utils.label(h),l("Annotaion forms allow you to add extra information about a ,"+c+" we already know about."),i(h,!1),s.appendChild(n.createElement("hr")),l("You can make a new annotation form:"),s.appendChild(r.widgets.newButton(n,a,e,h,o.ui("Form"),null,m,d)),l("(Storing new forms in: "+m+")")}else p[o.ui("Form").uri]?r.widgets.appendForm(n,s,a,e,o.ui("FormForm"),m,d):u("ui/pane internal error -- Eh?");else u("Cannot load store "+m+" :"+f)}),s}}},4959(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={buildTime:"2026-03-28T18:26:05Z",commit:"16321184ab8911d704546f1c99321963081ec47b",npmInfo:{"solid-panes":"4.2.5",npm:"10.9.4",node:"22.22.1",acorn:"8.15.0",ada:"2.9.2",amaro:"1.1.5",ares:"1.34.6",brotli:"1.1.0",cjs_module_lexer:"2.2.0",cldr:"48.0",icu:"78.2",llhttp:"9.3.0",modules:"127",napi:"10",nbytes:"0.1.1",ncrypto:"0.0.1",nghttp2:"1.64.0",openssl:"3.5.5",simdjson:"4.2.4",simdutf:"6.4.2",sqlite:"3.51.2",tz:"2025c",undici:"6.23.0",unicode:"17.0",uv:"1.51.0",uvwasi:"0.0.23",v8:"12.4.254.21-node.35",zlib:"1.3.1-e00f703",zstd:"1.5.7"}}},6778(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}t.default={icon:r.icons.iconBase+"noun_1619.svg",name:"video",label:function(e,t){const n=t.session.store.findTypeURIs(e),r=i.Util.mediaTypeClass("video/*").uri.split("*")[0];for(const e in n)if(e.startsWith(r))return"Play video";return null},render:function(e,t){const n=t.session.store,r=t.dom,i=r.createElement("div"),a=i.appendChild(r.createElement("video"));return a.setAttribute("controls","yes"),n.fetcher._fetch(e.uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);a.setAttribute("src",t)}),a.setAttribute("width","100%"),i}}},500(e,t,n){var r;r=(e,t)=>(()=>{var n={423(e,t,n){"use strict";function r(){var e;(e=console).log.apply(e,arguments)}function i(){var e;(e=console).warn.apply(e,arguments)}function a(){var e;(e=console).error.apply(e,arguments)}function o(){var e;(e=console).trace.apply(e,arguments)}n.d(t,{R8:()=>i,Rm:()=>r,uP:()=>o,z3:()=>a})},378(e,t,n){"use strict";n.d(t,{LN:()=>o,Pt:()=>a,i1:()=>s});var r=n(423),i="https://solidos.github.io/solid-ui/src",a=(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:i+"/icons/",originalIconBase:i+"/originalIcons/"};(0,r.Rm)(" icons.iconBase is set to : "+a.iconBase);var o=a.iconBase,s=a.originalIconBase},580(e){"use strict";
370
370
  /*!
371
371
  * escape-html
372
372
  * Copyright(c) 2012-2013 TJ Holowaychuk
@@ -457,5 +457,5 @@ var se=function(){var e=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?
457
457
  */
458
458
  var r=n(30),i=n(31),a=n(32);function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=p(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),i=(e=s(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|f(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?s(e,0):p(e,t);if("Buffer"===t.type&&a(t.data))return p(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|f(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){var a,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===c)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){for(var d=!0,p=0;p<c;p++)if(l(e,a+p)!==l(t,p)){d=!1;break}if(d)return a}return-1}function y(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function w(e,t,n,r){return q(z(t,e.length-n),e,n,r)}function x(e,t,n,r){return q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function A(e,t,n,r){return x(e,t,n,r)}function C(e,t,n,r){return q(H(t),e,n,r)}function E(e,t,n,r){return q(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,c,l=e[i],u=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=n)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&l)<<6|63&a)>127&&(u=c);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(c=(15&l)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(e){var t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=S));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?_(this,0,e):m.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),d=0;d<s;++d)if(l[d]!==u[d]){a=l[d],o=u[d];break}return a<o?-1:o<a?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return A(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function F(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=U(e[a]);return i}function R(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,n,r,i,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function N(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function O(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,a){return a||O(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,a){return a||O(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||B(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||B(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=c.isBuffer(e)?e:z(new c(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(29))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),o=r[0],s=r[1],l=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),u=0,d=s>0?o-4:o;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=16383,s=0,c=n-i;s<c;s+=o)a.push(l(e,s,s+o>c?c:s+o));return 1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
459
459
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
460
- t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,a=f&(1<<-u)-1,f>>=-u,u+=s;u>0;a=256*a+e[t+d],d+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=p,u-=8);if(0===a)a=1-l;else{if(a===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),a-=l}return(f?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,c,l=8*a-i-1,u=(1<<l)-1,d=u>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:a-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+f]=255&s,f+=h,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+f]=255&o,f+=h,o/=256,l-=8);e[n+f-h]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.jws,n=e.KeyUtil,i=e.X509,a=e.crypto,o=e.hextob64u,s=e.b64tohex,c=e.AllowedSigningAlgs;return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.parseJwt=function e(n){r.Log.debug("JoseUtil.parseJwt");try{var i=t.JWS.parse(n);return{header:i.headerObj,payload:i.payloadObj}}catch(e){r.Log.error(e)}},e.validateJwt=function(t,a,o,c,l,u,d){r.Log.debug("JoseUtil.validateJwt");try{if("RSA"===a.kty)if(a.e&&a.n)a=n.getKey(a);else{if(!a.x5c||!a.x5c.length)return r.Log.error("JoseUtil.validateJwt: RSA key missing key material",a),Promise.reject(new Error("RSA key missing key material"));var p=s(a.x5c[0]);a=i.getPublicKeyFromCertHex(p)}else{if("EC"!==a.kty)return r.Log.error("JoseUtil.validateJwt: Unsupported key type",a&&a.kty),Promise.reject(new Error(a.kty));if(!(a.crv&&a.x&&a.y))return r.Log.error("JoseUtil.validateJwt: EC key missing key material",a),Promise.reject(new Error("EC key missing key material"));a=n.getKey(a)}return e._validateJwt(t,a,o,c,l,u,d)}catch(e){return r.Log.error(e&&e.message||e),Promise.reject("JWT validation failed")}},e.validateJwtAttributes=function(t,n,i,a,o,s){a||(a=0),o||(o=parseInt(Date.now()/1e3));var c=e.parseJwt(t).payload;if(!c.iss)return r.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(c.iss!==n)return r.Log.error("JoseUtil._validateJwt: Invalid issuer in token",c.iss),Promise.reject(new Error("Invalid issuer in token: "+c.iss));if(!c.aud)return r.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(c.aud===i||Array.isArray(c.aud)&&c.aud.indexOf(i)>=0))return r.Log.error("JoseUtil._validateJwt: Invalid audience in token",c.aud),Promise.reject(new Error("Invalid audience in token: "+c.aud));if(c.azp&&c.azp!==i)return r.Log.error("JoseUtil._validateJwt: Invalid azp in token",c.azp),Promise.reject(new Error("Invalid azp in token: "+c.azp));if(!s){var l=o+a,u=o-a;if(!c.iat)return r.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(l<c.iat)return r.Log.error("JoseUtil._validateJwt: iat is in the future",c.iat),Promise.reject(new Error("iat is in the future: "+c.iat));if(c.nbf&&l<c.nbf)return r.Log.error("JoseUtil._validateJwt: nbf is in the future",c.nbf),Promise.reject(new Error("nbf is in the future: "+c.nbf));if(!c.exp)return r.Log.error("JoseUtil._validateJwt: exp was not provided"),Promise.reject(new Error("exp was not provided"));if(c.exp<u)return r.Log.error("JoseUtil._validateJwt: exp is in the past",c.exp),Promise.reject(new Error("exp is in the past:"+c.exp))}return Promise.resolve(c)},e._validateJwt=function(n,i,a,o,s,l,u){return e.validateJwtAttributes(n,a,o,s,l,u).then(function(e){try{return t.JWS.verify(n,i,c)?e:(r.Log.error("JoseUtil._validateJwt: signature validation failed"),Promise.reject(new Error("signature validation failed")))}catch(e){return r.Log.error(e&&e.message||e),Promise.reject(new Error("signature validation failed"))}})},e.hashString=function e(t,n){try{return a.Util.hashString(t,n)}catch(e){r.Log.error(e)}},e.hexToBase64Url=function e(t){try{return o(t)}catch(e){r.Log.error(e)}},e}()};var r=n(0);e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SigninResponse=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(3);t.SigninResponse=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=i.UrlUtility.parseUrlFragment(t,n);this.error=r.error,this.error_description=r.error_description,this.error_uri=r.error_uri,this.code=r.code,this.state=r.state,this.id_token=r.id_token,this.session_state=r.session_state,this.access_token=r.access_token,this.token_type=r.token_type,this.scope=r.scope,this.profile=void 0,this.expires_in=r.expires_in}return r(e,[{key:"expires_in",get:function(){if(this.expires_at){var e=parseInt(Date.now()/1e3);return this.expires_at-e}},set:function(e){var t=parseInt(e);if("number"==typeof t&&t>0){var n=parseInt(Date.now()/1e3);this.expires_at=n+t}}},{key:"expired",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SignoutRequest=void 0;var r=n(0),i=n(3),a=n(9);t.SignoutRequest=function e(t){var n=t.url,o=t.id_token_hint,s=t.post_logout_redirect_uri,c=t.data,l=t.extraQueryParams,u=t.request_type;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!n)throw r.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var d in o&&(n=i.UrlUtility.addQueryParam(n,"id_token_hint",o)),s&&(n=i.UrlUtility.addQueryParam(n,"post_logout_redirect_uri",s),c&&(this.state=new a.State({data:c,request_type:u}),n=i.UrlUtility.addQueryParam(n,"state",this.state.id))),l)n=i.UrlUtility.addQueryParam(n,d,l[d]);this.url=n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SignoutResponse=void 0;var r=n(3);t.SignoutResponse=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=r.UrlUtility.parseUrlFragment(t,"?");this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.state=n.state}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.InMemoryWebStorage=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);t.InMemoryWebStorage=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._data={}}return e.prototype.getItem=function(e){return i.Log.debug("InMemoryWebStorage.getItem",e),this._data[e]},e.prototype.setItem=function(e,t){i.Log.debug("InMemoryWebStorage.setItem",e),this._data[e]=t},e.prototype.removeItem=function(e){i.Log.debug("InMemoryWebStorage.removeItem",e),delete this._data[e]},e.prototype.key=function(e){return Object.getOwnPropertyNames(this._data)[e]},r(e,[{key:"length",get:function(){return Object.getOwnPropertyNames(this._data).length}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UserManager=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(10),o=n(39),s=n(15),c=n(45),l=n(47),u=n(18),d=n(8),p=n(20),f=n(11),h=n(4);t.UserManager=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.SilentRenewService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.SessionMonitor,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:p.TokenRevocationClient,d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:f.TokenClient,m=arguments.length>5&&void 0!==arguments[5]?arguments[5]:h.JoseUtil;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),n instanceof o.UserManagerSettings||(n=new o.UserManagerSettings(n));var g=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return g._events=new c.UserManagerEvents(n),g._silentRenewService=new r(g),g.settings.automaticSilentRenew&&(i.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),g.startSilentRenew()),g.settings.monitorSession&&(i.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),g._sessionMonitor=new a(g)),g._tokenRevocationClient=new s(g._settings),g._tokenClient=new d(g._settings),g._joseUtil=m,g}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getUser=function(){var e=this;return this._loadUser().then(function(t){return t?(i.Log.info("UserManager.getUser: user loaded"),e._events.load(t,!1),t):(i.Log.info("UserManager.getUser: user not found in storage"),null)})},t.prototype.removeUser=function(){var e=this;return this.storeUser(null).then(function(){i.Log.info("UserManager.removeUser: user removed from storage"),e._events.unload()})},t.prototype.signinRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:r";var t={useReplaceToNavigate:e.useReplaceToNavigate};return this._signinStart(e,this._redirectNavigator,t).then(function(){i.Log.info("UserManager.signinRedirect: successful")})},t.prototype.signinRedirectCallback=function(e){return this._signinEnd(e||this._redirectNavigator.url).then(function(e){return e.profile&&e.profile.sub?i.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinRedirectCallback: no sub"),e})},t.prototype.signinPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:p";var t=e.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.display="popup",this._signin(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then(function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinPopup: no sub")),e})):(i.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},t.prototype.signinPopupCallback=function(e){return this._signinCallback(e,this._popupNavigator).then(function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinPopupCallback: no sub")),e}).catch(function(e){i.Log.error(e.message)})},t.prototype.signinSilent=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=Object.assign({},t),this._loadUser().then(function(n){return n&&n.refresh_token?(t.refresh_token=n.refresh_token,e._useRefreshToken(t)):(t.request_type="si:s",t.id_token_hint=t.id_token_hint||e.settings.includeIdTokenInSilentRenew&&n&&n.id_token,n&&e._settings.validateSubOnSilentRenew&&(i.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",n.profile.sub),t.current_sub=n.profile.sub),e._signinSilentIframe(t))})},t.prototype._useRefreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(t).then(function(t){return t?t.access_token?e._loadUser().then(function(n){if(n){var r=Promise.resolve();return t.id_token&&(r=e._validateIdTokenFromTokenRefreshToken(n.profile,t.id_token)),r.then(function(){return i.Log.debug("UserManager._useRefreshToken: refresh token response success"),n.id_token=t.id_token||n.id_token,n.access_token=t.access_token,n.refresh_token=t.refresh_token||n.refresh_token,n.expires_in=t.expires_in,e.storeUser(n).then(function(){return e._events.load(n),n})})}return null}):(i.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(i.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))})},t.prototype._validateIdTokenFromTokenRefreshToken=function(e,t){var n=this;return this._metadataService.getIssuer().then(function(r){return n.settings.getEpochTime().then(function(a){return n._joseUtil.validateJwtAttributes(t,r,n._settings.client_id,n._settings.clockSkew,a).then(function(t){return t?t.sub!==e.sub?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):t.auth_time&&t.auth_time!==e.auth_time?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):t.azp&&t.azp!==e.azp?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!t.azp&&e.azp?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))})})})},t.prototype._signinSilentIframe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.prompt=e.prompt||"none",this._signin(e,this._iframeNavigator,{startUrl:t,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinSilent: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinSilent: no sub")),e})):(i.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},t.prototype.signinSilentCallback=function(e){return this._signinCallback(e,this._iframeNavigator).then(function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinSilentCallback: no sub")),e})},t.prototype.signinCallback=function(e){var t=this;return this.readSigninResponseState(e).then(function(n){var r=n.state;return n.response,"si:r"===r.request_type?t.signinRedirectCallback(e):"si:p"===r.request_type?t.signinPopupCallback(e):"si:s"===r.request_type?t.signinSilentCallback(e):Promise.reject(new Error("invalid response_type in state"))})},t.prototype.signoutCallback=function(e,t){var n=this;return this.readSignoutResponseState(e).then(function(r){var i=r.state,a=r.response;return i?"so:r"===i.request_type?n.signoutRedirectCallback(e):"so:p"===i.request_type?n.signoutPopupCallback(e,t):Promise.reject(new Error("invalid response_type in state")):a})},t.prototype.querySessionStatus=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:s";var n=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return n?(t.redirect_uri=n,t.prompt="none",t.response_type=t.response_type||this.settings.query_status_response_type,t.scope=t.scope||"openid",t.skipUserInfo=!0,this._signinStart(t,this._iframeNavigator,{startUrl:n,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(t){return e.processSigninResponse(t.url).then(function(e){if(i.Log.debug("UserManager.querySessionStatus: got signin response"),e.session_state&&e.profile.sub)return i.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",e.profile.sub),{session_state:e.session_state,sub:e.profile.sub,sid:e.profile.sid};i.Log.info("querySessionStatus successful, user not authenticated")}).catch(function(t){if(t.session_state&&e.settings.monitorAnonymousSession&&("login_required"==t.message||"consent_required"==t.message||"interaction_required"==t.message||"account_selection_required"==t.message))return i.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:t.session_state};throw t})})):(i.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},t.prototype._signin=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(e,t,r).then(function(t){return n._signinEnd(t.url,e)})},t.prototype._signinStart=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.prepare(r).then(function(t){return i.Log.debug("UserManager._signinStart: got navigator window handle"),n.createSigninRequest(e).then(function(e){return i.Log.debug("UserManager._signinStart: got signin request"),r.url=e.url,r.id=e.state.id,t.navigate(r)}).catch(function(e){throw t.close&&(i.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),t.close()),e})})},t.prototype._signinEnd=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(e).then(function(e){i.Log.debug("UserManager._signinEnd: got signin response");var r=new s.User(e);if(n.current_sub){if(n.current_sub!==r.profile.sub)return i.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",r.profile.sub),Promise.reject(new Error("login_required"));i.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return t.storeUser(r).then(function(){return i.Log.debug("UserManager._signinEnd: user stored"),t._events.load(r),r})})},t.prototype._signinCallback=function(e,t){i.Log.debug("UserManager._signinCallback");var n="query"===this._settings.response_mode||!this._settings.response_mode&&d.SigninRequest.isCode(this._settings.response_type)?"?":"#";return t.callback(e,void 0,n)},t.prototype.signoutRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="so:r";var t=e.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;t&&(e.post_logout_redirect_uri=t);var n={useReplaceToNavigate:e.useReplaceToNavigate};return this._signoutStart(e,this._redirectNavigator,n).then(function(){i.Log.info("UserManager.signoutRedirect: successful")})},t.prototype.signoutRedirectCallback=function(e){return this._signoutEnd(e||this._redirectNavigator.url).then(function(e){return i.Log.info("UserManager.signoutRedirectCallback: successful"),e})},t.prototype.signoutPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="so:p";var t=e.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return e.post_logout_redirect_uri=t,e.display="popup",e.post_logout_redirect_uri&&(e.state=e.state||{}),this._signout(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then(function(){i.Log.info("UserManager.signoutPopup: successful")})},t.prototype.signoutPopupCallback=function(e,t){return void 0===t&&"boolean"==typeof e&&(t=e,e=null),this._popupNavigator.callback(e,t,"?").then(function(){i.Log.info("UserManager.signoutPopupCallback: successful")})},t.prototype._signout=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(e,t,r).then(function(e){return n._signoutEnd(e.url)})},t.prototype._signoutStart=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return arguments[1].prepare(n).then(function(r){return i.Log.debug("UserManager._signoutStart: got navigator window handle"),t._loadUser().then(function(a){return i.Log.debug("UserManager._signoutStart: loaded current user from storage"),(t._settings.revokeAccessTokenOnSignout?t._revokeInternal(a):Promise.resolve()).then(function(){var o=e.id_token_hint||a&&a.id_token;return o&&(i.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),e.id_token_hint=o),t.removeUser().then(function(){return i.Log.debug("UserManager._signoutStart: user removed, creating signout request"),t.createSignoutRequest(e).then(function(e){return i.Log.debug("UserManager._signoutStart: got signout request"),n.url=e.url,e.state&&(n.id=e.state.id),r.navigate(n)})})})}).catch(function(e){throw r.close&&(i.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),r.close()),e})})},t.prototype._signoutEnd=function(e){return this.processSignoutResponse(e).then(function(e){return i.Log.debug("UserManager._signoutEnd: got signout response"),e})},t.prototype.revokeAccessToken=function(){var e=this;return this._loadUser().then(function(t){return e._revokeInternal(t,!0).then(function(n){if(n)return i.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),t.access_token=null,t.refresh_token=null,t.expires_at=null,t.token_type=null,e.storeUser(t).then(function(){i.Log.debug("UserManager.revokeAccessToken: user stored"),e._events.load(t)})})}).then(function(){i.Log.info("UserManager.revokeAccessToken: access token revoked successfully")})},t.prototype._revokeInternal=function(e,t){var n=this;if(e){var r=e.access_token,a=e.refresh_token;return this._revokeAccessTokenInternal(r,t).then(function(e){return n._revokeRefreshTokenInternal(a,t).then(function(t){return e||t||i.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),e||t})})}return Promise.resolve(!1)},t.prototype._revokeAccessTokenInternal=function(e,t){return!e||e.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(e,t).then(function(){return!0})},t.prototype._revokeRefreshTokenInternal=function(e,t){return e?this._tokenRevocationClient.revoke(e,t,"refresh_token").then(function(){return!0}):Promise.resolve(!1)},t.prototype.startSilentRenew=function(){this._silentRenewService.start()},t.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},t.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then(function(e){return e?(i.Log.debug("UserManager._loadUser: user storageString loaded"),s.User.fromStorageString(e)):(i.Log.debug("UserManager._loadUser: no user storageString"),null)})},t.prototype.storeUser=function(e){if(e){i.Log.debug("UserManager.storeUser: storing user");var t=e.toStorageString();return this._userStore.set(this._userStoreKey,t)}return i.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},r(t,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),t}(a.OidcClient)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UserManagerSettings=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=(n(0),n(5)),a=n(40),o=n(41),s=n(43),c=n(6),l=n(1),u=n(8);t.UserManagerSettings=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.popup_redirect_uri,i=n.popup_post_logout_redirect_uri,d=n.popupWindowFeatures,p=n.popupWindowTarget,f=n.silent_redirect_uri,h=n.silentRequestTimeout,m=n.automaticSilentRenew,g=void 0!==m&&m,v=n.validateSubOnSilentRenew,b=void 0!==v&&v,y=n.includeIdTokenInSilentRenew,w=void 0===y||y,x=n.monitorSession,A=void 0===x||x,C=n.monitorAnonymousSession,E=void 0!==C&&C,k=n.checkSessionInterval,_=void 0===k?2e3:k,S=n.stopCheckSessionOnError,T=void 0===S||S,P=n.query_status_response_type,F=n.revokeAccessTokenOnSignout,R=void 0!==F&&F,I=n.accessTokenExpiringNotificationTime,B=void 0===I?60:I,N=n.redirectNavigator,L=void 0===N?new a.RedirectNavigator:N,O=n.popupNavigator,j=void 0===O?new o.PopupNavigator:O,D=n.iframeNavigator,M=void 0===D?new s.IFrameNavigator:D,U=n.userStore,z=void 0===U?new c.WebStorageStateStore({store:l.Global.sessionStorage}):U;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var H=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,arguments[0]));return H._popup_redirect_uri=r,H._popup_post_logout_redirect_uri=i,H._popupWindowFeatures=d,H._popupWindowTarget=p,H._silent_redirect_uri=f,H._silentRequestTimeout=h,H._automaticSilentRenew=g,H._validateSubOnSilentRenew=b,H._includeIdTokenInSilentRenew=w,H._accessTokenExpiringNotificationTime=B,H._monitorSession=A,H._monitorAnonymousSession=E,H._checkSessionInterval=_,H._stopCheckSessionOnError=T,P?H._query_status_response_type=P:arguments[0]&&arguments[0].response_type?H._query_status_response_type=u.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":H._query_status_response_type="id_token",H._revokeAccessTokenOnSignout=R,H._redirectNavigator=L,H._popupNavigator=j,H._iframeNavigator=M,H._userStore=z,H}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),t}(i.OidcClientSettings)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RedirectNavigator=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);t.RedirectNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(){return Promise.resolve(this)},e.prototype.navigate=function(e){return e&&e.url?(e.useReplaceToNavigate?window.location.replace(e.url):window.location=e.url,Promise.resolve()):(i.Log.error("RedirectNavigator.navigate: No url provided"),Promise.reject(new Error("No url provided")))},r(e,[{key:"url",get:function(){return window.location.href}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PopupNavigator=void 0;var r=n(0),i=n(42);t.PopupNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){var t=new i.PopupWindow(e);return Promise.resolve(t)},e.prototype.callback=function e(t,n,a){r.Log.debug("PopupNavigator.callback");try{return i.PopupWindow.notifyOpener(t,n,a),Promise.resolve()}catch(e){return Promise.reject(e)}},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PopupWindow=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(3);t.PopupWindow=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._promise=new Promise(function(e,t){n._resolve=e,n._reject=t});var r=t.popupWindowTarget||"_blank",a=t.popupWindowFeatures||"location=no,toolbar=no,width=500,height=500,left=100,top=100;";this._popup=window.open("",r,a),this._popup&&(i.Log.debug("PopupWindow.ctor: popup successfully created"),this._checkForPopupClosedTimer=window.setInterval(this._checkForPopupClosed.bind(this),500))}return e.prototype.navigate=function(e){return this._popup?e&&e.url?(i.Log.debug("PopupWindow.navigate: Setting URL in popup"),this._id=e.id,this._id&&(window["popupCallback_"+e.id]=this._callback.bind(this)),this._popup.focus(),this._popup.window.location=e.url):(this._error("PopupWindow.navigate: no url provided"),this._error("No url provided")):this._error("PopupWindow.navigate: Error opening popup window"),this.promise},e.prototype._success=function(e){i.Log.debug("PopupWindow.callback: Successful response from popup window"),this._cleanup(),this._resolve(e)},e.prototype._error=function(e){i.Log.error("PopupWindow.error: ",e),this._cleanup(),this._reject(new Error(e))},e.prototype.close=function(){this._cleanup(!1)},e.prototype._cleanup=function(e){i.Log.debug("PopupWindow.cleanup"),window.clearInterval(this._checkForPopupClosedTimer),this._checkForPopupClosedTimer=null,delete window["popupCallback_"+this._id],this._popup&&!e&&this._popup.close(),this._popup=null},e.prototype._checkForPopupClosed=function(){this._popup&&!this._popup.closed||this._error("Popup window closed")},e.prototype._callback=function(e,t){this._cleanup(t),e?(i.Log.debug("PopupWindow.callback success"),this._success({url:e})):(i.Log.debug("PopupWindow.callback: Invalid response from popup"),this._error("Invalid response from popup"))},e.notifyOpener=function(e,t,n){if(window.opener){if(e=e||window.location.href){var r=a.UrlUtility.parseUrlFragment(e,n);if(r.state){var o="popupCallback_"+r.state,s=window.opener[o];s?(i.Log.debug("PopupWindow.notifyOpener: passing url message to opener"),s(e,t)):i.Log.warn("PopupWindow.notifyOpener: no matching callback found on opener")}else i.Log.warn("PopupWindow.notifyOpener: no state found in response url")}}else i.Log.warn("PopupWindow.notifyOpener: no window.opener. Can't complete notification.")},r(e,[{key:"promise",get:function(){return this._promise}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IFrameNavigator=void 0;var r=n(0),i=n(44);t.IFrameNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){var t=new i.IFrameWindow(e);return Promise.resolve(t)},e.prototype.callback=function e(t){r.Log.debug("IFrameNavigator.callback");try{return i.IFrameWindow.notifyParent(t),Promise.resolve()}catch(e){return Promise.reject(e)}},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IFrameWindow=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);t.IFrameWindow=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._promise=new Promise(function(e,t){n._resolve=e,n._reject=t}),this._boundMessageEvent=this._message.bind(this),window.addEventListener("message",this._boundMessageEvent,!1),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.width=0,this._frame.height=0,window.document.body.appendChild(this._frame)}return e.prototype.navigate=function(e){if(e&&e.url){var t=e.silentRequestTimeout||1e4;i.Log.debug("IFrameWindow.navigate: Using timeout of:",t),this._timer=window.setTimeout(this._timeout.bind(this),t),this._frame.src=e.url}else this._error("No url provided");return this.promise},e.prototype._success=function(e){this._cleanup(),i.Log.debug("IFrameWindow: Successful response from frame window"),this._resolve(e)},e.prototype._error=function(e){this._cleanup(),i.Log.error(e),this._reject(new Error(e))},e.prototype.close=function(){this._cleanup()},e.prototype._cleanup=function(){this._frame&&(i.Log.debug("IFrameWindow: cleanup"),window.removeEventListener("message",this._boundMessageEvent,!1),window.clearTimeout(this._timer),window.document.body.removeChild(this._frame),this._timer=null,this._frame=null,this._boundMessageEvent=null)},e.prototype._timeout=function(){i.Log.debug("IFrameWindow.timeout"),this._error("Frame window timed out")},e.prototype._message=function(e){if(i.Log.debug("IFrameWindow.message"),this._timer&&e.origin===this._origin&&e.source===this._frame.contentWindow&&"string"==typeof e.data&&(e.data.startsWith("http://")||e.data.startsWith("https://"))){var t=e.data;t?this._success({url:t}):this._error("Invalid response from frame")}},e.notifyParent=function(e){i.Log.debug("IFrameWindow.notifyParent"),(e=e||window.location.href)&&(i.Log.debug("IFrameWindow.notifyParent: posting url message to parent"),window.parent.postMessage(e,location.protocol+"//"+location.host))},r(e,[{key:"promise",get:function(){return this._promise}},{key:"_origin",get:function(){return location.protocol+"//"+location.host}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UserManagerEvents=void 0;var r=n(0),i=n(16),a=n(17);t.UserManagerEvents=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._userLoaded=new a.Event("User loaded"),r._userUnloaded=new a.Event("User unloaded"),r._silentRenewError=new a.Event("Silent renew error"),r._userSignedIn=new a.Event("User signed in"),r._userSignedOut=new a.Event("User signed out"),r._userSessionChanged=new a.Event("User session changed"),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.load=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];r.Log.debug("UserManagerEvents.load"),e.prototype.load.call(this,t),n&&this._userLoaded.raise(t)},t.prototype.unload=function(){r.Log.debug("UserManagerEvents.unload"),e.prototype.unload.call(this),this._userUnloaded.raise()},t.prototype.addUserLoaded=function(e){this._userLoaded.addHandler(e)},t.prototype.removeUserLoaded=function(e){this._userLoaded.removeHandler(e)},t.prototype.addUserUnloaded=function(e){this._userUnloaded.addHandler(e)},t.prototype.removeUserUnloaded=function(e){this._userUnloaded.removeHandler(e)},t.prototype.addSilentRenewError=function(e){this._silentRenewError.addHandler(e)},t.prototype.removeSilentRenewError=function(e){this._silentRenewError.removeHandler(e)},t.prototype._raiseSilentRenewError=function(e){r.Log.debug("UserManagerEvents._raiseSilentRenewError",e.message),this._silentRenewError.raise(e)},t.prototype.addUserSignedIn=function(e){this._userSignedIn.addHandler(e)},t.prototype.removeUserSignedIn=function(e){this._userSignedIn.removeHandler(e)},t.prototype._raiseUserSignedIn=function(){r.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},t.prototype.addUserSignedOut=function(e){this._userSignedOut.addHandler(e)},t.prototype.removeUserSignedOut=function(e){this._userSignedOut.removeHandler(e)},t.prototype._raiseUserSignedOut=function(){r.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},t.prototype.addUserSessionChanged=function(e){this._userSessionChanged.addHandler(e)},t.prototype.removeUserSessionChanged=function(e){this._userSessionChanged.removeHandler(e)},t.prototype._raiseUserSessionChanged=function(){r.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},t}(i.AccessTokenEvents)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(1),o=n(17);t.Timer=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Global.timer,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return o._timer=r,o._nowFunc=i||function(){return Date.now()/1e3},o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.init=function(e){e<=0&&(e=1),e=parseInt(e);var t=this.now+e;if(this.expiration===t&&this._timerHandle)i.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),i.Log.debug("Timer.init timer "+this._name+" for duration:",e),this._expiration=t;var n=5;e<n&&(n=e),this._timerHandle=this._timer.setInterval(this._callback.bind(this),1e3*n)}},t.prototype.cancel=function(){this._timerHandle&&(i.Log.debug("Timer.cancel: ",this._name),this._timer.clearInterval(this._timerHandle),this._timerHandle=null)},t.prototype._callback=function(){var t=this._expiration-this.now;i.Log.debug("Timer.callback; "+this._name+" timer expires in:",t),this._expiration<=this.now&&(this.cancel(),e.prototype.raise.call(this))},r(t,[{key:"now",get:function(){return parseInt(this._nowFunc())}},{key:"expiration",get:function(){return this._expiration}}]),t}(o.Event)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SilentRenewService=void 0;var r=n(0);t.SilentRenewService=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._userManager=t}return e.prototype.start=function(){this._callback||(this._callback=this._tokenExpiring.bind(this),this._userManager.events.addAccessTokenExpiring(this._callback),this._userManager.getUser().then(function(e){}).catch(function(e){r.Log.error("SilentRenewService.start: Error from getUser:",e.message)}))},e.prototype.stop=function(){this._callback&&(this._userManager.events.removeAccessTokenExpiring(this._callback),delete this._callback)},e.prototype._tokenExpiring=function(){var e=this;this._userManager.signinSilent().then(function(e){r.Log.debug("SilentRenewService._tokenExpiring: Silent token renewal successful")},function(t){r.Log.error("SilentRenewService._tokenExpiring: Error from signinSilent:",t.message),e._userManager.events._raiseSilentRenewError(t)})},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CordovaPopupNavigator=void 0;var r=n(21);t.CordovaPopupNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){var t=new r.CordovaPopupWindow(e);return Promise.resolve(t)},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CordovaIFrameNavigator=void 0;var r=n(21);t.CordovaIFrameNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){e.popupWindowFeatures="hidden=yes";var t=new r.CordovaPopupWindow(e);return Promise.resolve(t)},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Version="1.11.6"}])},e.exports=t()},7(e){var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,n)}(e,i,{once:!0})})},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var o=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,a,o;if(s(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"==typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=c(e))>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,console&&console.warn}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(a){r.once&&e.removeEventListener(t,i),n(a)})}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,a=this._events;if(void 0!==a)i=i&&void 0===a.error;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var c=a[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var l=c.length,u=h(c,l);for(n=0;n<l;++n)r(u[n],this,t)}return!0},a.prototype.addListener=function(e,t){return l(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return l(this,e,t,!0)},a.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,i,a,o;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return p(this,e,!0)},a.prototype.rawListeners=function(e){return p(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},a.prototype.listenerCount=f,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},386(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 r in t){const i=t[r];n[r]=function(t=""){return e.namedNode(i+t)}}return n}}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e].call(n.exports,n,n.exports,o),n.exports}function s(...e){}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const c=new TextEncoder,l=new TextDecoder;function u(...e){const t=e.reduce((e,{length:t})=>e+t,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}const d=e=>(e=>{let t=e;"string"==typeof t&&(t=c.encode(t));const n=[];for(let e=0;e<t.length;e+=32768)n.push(String.fromCharCode.apply(null,t.subarray(e,e+32768)));return btoa(n.join(""))})(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),p=e=>{let t=e;t instanceof Uint8Array&&(t=l.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return(e=>{const t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n})(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class f extends Error{constructor(e,t){super(e,t),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}f.code="ERR_JOSE_GENERIC";class h extends f{constructor(e,t,n="unspecified",r="unspecified"){super(e,{cause:{claim:n,reason:r,payload:t}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=n,this.reason=r,this.payload=t}}h.code="ERR_JWT_CLAIM_VALIDATION_FAILED";class m extends f{constructor(e,t,n="unspecified",r="unspecified"){super(e,{cause:{claim:n,reason:r,payload:t}}),this.code="ERR_JWT_EXPIRED",this.claim=n,this.reason=r,this.payload=t}}m.code="ERR_JWT_EXPIRED";class g extends f{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}g.code="ERR_JOSE_ALG_NOT_ALLOWED";class v extends f{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}v.code="ERR_JOSE_NOT_SUPPORTED";(class extends f{constructor(e="decryption operation failed",t){super(e,t),this.code="ERR_JWE_DECRYPTION_FAILED"}}).code="ERR_JWE_DECRYPTION_FAILED";(class extends f{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}).code="ERR_JWE_INVALID";class b extends f{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}b.code="ERR_JWS_INVALID";class y extends f{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}y.code="ERR_JWT_INVALID";(class extends f{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}).code="ERR_JWK_INVALID";class w extends f{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}w.code="ERR_JWKS_INVALID";class x extends f{constructor(e="no applicable key found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_NO_MATCHING_KEY"}}x.code="ERR_JWKS_NO_MATCHING_KEY";class A extends f{constructor(e="multiple matching keys found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}Symbol.asyncIterator,A.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";class C extends f{constructor(e="request timed out",t){super(e,t),this.code="ERR_JWKS_TIMEOUT"}}C.code="ERR_JWKS_TIMEOUT";class E extends f{constructor(e="signature verification failed",t){super(e,t),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}function k(e,t){const n=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:n,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:n,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:n,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:n,name:"ECDSA",namedCurve:t.namedCurve};case"Ed25519":return{name:"Ed25519"};case"EdDSA":return{name:t.name};default:throw new v(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}E.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";const _=crypto,S=e=>e instanceof CryptoKey,T=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){const{modulusLength:n}=t.algorithm;if("number"!=typeof n||n<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};function P(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function F(e,t){return e.name===t}function R(e){return parseInt(e.name.slice(4),10)}function I(e,t){if(t.length&&!t.some(t=>e.usages.includes(t))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){const n=t.pop();e+=`one of ${t.join(", ")}, or ${n}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw new TypeError(e)}}function B(e,t,...n){switch(t){case"HS256":case"HS384":case"HS512":{if(!F(e.algorithm,"HMAC"))throw P("HMAC");const n=parseInt(t.slice(2),10);if(R(e.algorithm.hash)!==n)throw P(`SHA-${n}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!F(e.algorithm,"RSASSA-PKCS1-v1_5"))throw P("RSASSA-PKCS1-v1_5");const n=parseInt(t.slice(2),10);if(R(e.algorithm.hash)!==n)throw P(`SHA-${n}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!F(e.algorithm,"RSA-PSS"))throw P("RSA-PSS");const n=parseInt(t.slice(2),10);if(R(e.algorithm.hash)!==n)throw P(`SHA-${n}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw P("Ed25519 or Ed448");break;case"Ed25519":if(!F(e.algorithm,"Ed25519"))throw P("Ed25519");break;case"ES256":case"ES384":case"ES512":{if(!F(e.algorithm,"ECDSA"))throw P("ECDSA");const n=function(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}(t);if(e.algorithm.namedCurve!==n)throw P(n,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}I(e,n)}function N(e,t,...n){if((n=n.filter(Boolean)).length>2){const t=n.pop();e+=`one of type ${n.join(", ")}, or ${t}.`}else 2===n.length?e+=`one of type ${n[0]} or ${n[1]}.`:e+=`of type ${n[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor?.name&&(e+=` Received an instance of ${t.constructor.name}`),e}const L=(e,...t)=>N("Key must be ",e,...t);function O(e,t,...n){return N(`Key for the ${e} algorithm must be `,t,...n)}const j=e=>!!S(e)||"KeyObject"===e?.[Symbol.toStringTag],D=["CryptoKey"];function M(e){if("object"!=typeof(t=e)||null===t||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t;if(null===Object.getPrototypeOf(e))return!0;let n=e;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function U(e){return M(e)&&"string"==typeof e.kty}const z=async e=>{if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:t,keyUsages:n}=function(e){let t,n;switch(e.kty){case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},n=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},n=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},n=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new v('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},n=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},n=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},n=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},n=e.d?["deriveBits"]:[];break;default:throw new v('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"Ed25519":t={name:"Ed25519"},n=e.d?["sign"]:["verify"];break;case"EdDSA":t={name:e.crv},n=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},n=e.d?["deriveBits"]:[];break;default:throw new v('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new v('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:n}}(e),r=[t,e.ext??!1,e.key_ops??n],i={...e};return delete i.alg,delete i.use,_.subtle.importKey("jwk",i,...r)},H=e=>p(e);let q,$;const W=e=>"KeyObject"===e?.[Symbol.toStringTag],V=async(e,t,n,r,i=!1)=>{let a=e.get(t);if(a?.[r])return a[r];const o=await z({...n,alg:r});return i&&Object.freeze(t),a?a[r]=o:e.set(t,{[r]:o}),o},G=(e,t)=>{if(W(e)){let n=e.export({format:"jwk"});return delete n.d,delete n.dp,delete n.dq,delete n.p,delete n.q,delete n.qi,n.k?H(n.k):($||($=new WeakMap),V($,e,n,t))}if(U(e)){if(e.k)return p(e.k);$||($=new WeakMap);return V($,e,e,t,!0)}return e},K=(e,t)=>{if(W(e)){let n=e.export({format:"jwk"});return n.k?H(n.k):(q||(q=new WeakMap),V(q,e,n,t))}if(U(e)){if(e.k)return p(e.k);q||(q=new WeakMap);return V(q,e,e,t,!0)}return e};async function J(e,t,n){if("sign"===n&&(t=await K(t,e)),"verify"===n&&(t=await G(t,e)),S(t))return B(t,e,n),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(L(t,...D));return _.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[n])}throw new TypeError(L(t,...D,"Uint8Array","JSON Web Key"))}const Y=async(e,t,n,r)=>{const i=await J(e,t,"verify");T(e,i);const a=k(e,i.algorithm);try{return await _.subtle.verify(a,i,n,r)}catch{return!1}},Q=(...e)=>{const t=e.filter(Boolean);if(0===t.length||1===t.length)return!0;let n;for(const e of t){const t=Object.keys(e);if(n&&0!==n.size)for(const e of t){if(n.has(e))return!1;n.add(e)}else n=new Set(t)}return!0},X=e=>e?.[Symbol.toStringTag],Z=(e,t,n)=>{if(void 0!==t.use&&"sig"!==t.use)throw new TypeError("Invalid key for this operation, when present its use must be sig");if(void 0!==t.key_ops&&!0!==t.key_ops.includes?.(n))throw new TypeError(`Invalid key for this operation, when present its key_ops must include ${n}`);if(void 0!==t.alg&&t.alg!==e)throw new TypeError(`Invalid key for this operation, when present its alg must be ${e}`);return!0},ee=(e,t,n,r)=>{if(!(t instanceof Uint8Array)){if(r&&U(t)){if(function(e){return U(e)&&"oct"===e.kty&&"string"==typeof e.k}(t)&&Z(e,t,n))return;throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!j(t))throw new TypeError(O(e,t,...D,"Uint8Array",r?"JSON Web Key":null));if("secret"!==t.type)throw new TypeError(`${X(t)} instances for symmetric algorithms must be of type "secret"`)}};function te(e,t,n,r){t.startsWith("HS")||"dir"===t||t.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(t)?ee(t,n,r,e):((e,t,n,r)=>{if(r&&U(t))switch(n){case"sign":if(function(e){return"oct"!==e.kty&&"string"==typeof e.d}(t)&&Z(e,t,n))return;throw new TypeError("JSON Web Key for this operation be a private JWK");case"verify":if(function(e){return"oct"!==e.kty&&void 0===e.d}(t)&&Z(e,t,n))return;throw new TypeError("JSON Web Key for this operation be a public JWK")}if(!j(t))throw new TypeError(O(e,t,...D,r?"JSON Web Key":null));if("secret"===t.type)throw new TypeError(`${X(t)} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===n&&"public"===t.type)throw new TypeError(`${X(t)} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===n&&"public"===t.type)throw new TypeError(`${X(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===n&&"private"===t.type)throw new TypeError(`${X(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===n&&"private"===t.type)throw new TypeError(`${X(t)} instances for asymmetric algorithm encryption must be of type "public"`)})(t,n,r,e)}te.bind(void 0,!1);const ne=te.bind(void 0,!0);const re=function(e,t,n,r,i){if(void 0!==i.crit&&void 0===r?.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!r||void 0===r.crit)return new Set;if(!Array.isArray(r.crit)||0===r.crit.length||r.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let a;a=void 0!==n?new Map([...Object.entries(n),...t.entries()]):t;for(const t of r.crit){if(!a.has(t))throw new v(`Extension Header Parameter "${t}" is not recognized`);if(void 0===i[t])throw new e(`Extension Header Parameter "${t}" is missing`);if(a.get(t)&&void 0===r[t])throw new e(`Extension Header Parameter "${t}" MUST be integrity protected`)}return new Set(r.crit)},ie=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw new TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};async function ae(e,t){if(!M(e))throw new TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw new TypeError('missing "k" (Key Value) Parameter value');return p(e.k);case"RSA":if("oth"in e&&void 0!==e.oth)throw new v('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return z({...e,alg:t});default:throw new v('Unsupported "kty" (Key Type) Parameter value')}}async function oe(e,t,n){if(e instanceof Uint8Array&&(e=l.decode(e)),"string"!=typeof e)throw new b("Compact JWS must be a string or Uint8Array");const{0:r,1:i,2:a,length:o}=e.split(".");if(3!==o)throw new b("Invalid Compact JWS");const s=await async function(e,t,n){if(!M(e))throw new b("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new b('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new b("JWS Protected Header incorrect type");if(void 0===e.payload)throw new b("JWS Payload missing");if("string"!=typeof e.signature)throw new b("JWS Signature missing or incorrect type");if(void 0!==e.header&&!M(e.header))throw new b("JWS Unprotected Header incorrect type");let r={};if(e.protected)try{const t=p(e.protected);r=JSON.parse(l.decode(t))}catch{throw new b("JWS Protected Header is invalid")}if(!Q(r,e.header))throw new b("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const i={...r,...e.header};let a=!0;if(re(b,new Map([["b64",!0]]),n?.crit,r,i).has("b64")&&(a=r.b64,"boolean"!=typeof a))throw new b('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:o}=i;if("string"!=typeof o||!o)throw new b('JWS "alg" (Algorithm) Header Parameter missing or invalid');const s=n&&ie("algorithms",n.algorithms);if(s&&!s.has(o))throw new g('"alg" (Algorithm) Header Parameter value not allowed');if(a){if("string"!=typeof e.payload)throw new b("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new b("JWS Payload must be a string or an Uint8Array instance");let d=!1;"function"==typeof t?(t=await t(r,e),d=!0,ne(o,t,"verify"),U(t)&&(t=await ae(t,o))):ne(o,t,"verify");const f=u(c.encode(e.protected??""),c.encode("."),"string"==typeof e.payload?c.encode(e.payload):e.payload);let h,m;try{h=p(e.signature)}catch{throw new b("Failed to base64url decode the signature")}if(!await Y(o,t,h,f))throw new E;if(a)try{m=p(e.payload)}catch{throw new b("Failed to base64url decode the payload")}else m="string"==typeof e.payload?c.encode(e.payload):e.payload;const v={payload:m};return void 0!==e.protected&&(v.protectedHeader=r),void 0!==e.header&&(v.unprotectedHeader=e.header),d?{...v,key:t}:v}({payload:i,protected:r,signature:a},t,n),d={payload:s.payload,protectedHeader:s.protectedHeader};return"function"==typeof t?{...d,key:s.key}:d}const se=e=>Math.floor(e.getTime()/1e3),ce=86400,le=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,ue=e=>{const t=le.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");const n=parseFloat(t[2]);let r;switch(t[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":r=Math.round(n);break;case"minute":case"minutes":case"min":case"mins":case"m":r=Math.round(60*n);break;case"hour":case"hours":case"hr":case"hrs":case"h":r=Math.round(3600*n);break;case"day":case"days":case"d":r=Math.round(n*ce);break;case"week":case"weeks":case"w":r=Math.round(604800*n);break;default:r=Math.round(31557600*n)}return"-"===t[1]||"ago"===t[4]?-r:r},de=e=>e.toLowerCase().replace(/^application\//,""),pe=(e,t,n={})=>{let r;try{r=JSON.parse(l.decode(t))}catch{}if(!M(r))throw new y("JWT Claims Set must be a top-level JSON object");const{typ:i}=n;if(i&&("string"!=typeof e.typ||de(e.typ)!==de(i)))throw new h('unexpected "typ" JWT header value',r,"typ","check_failed");const{requiredClaims:a=[],issuer:o,subject:s,audience:c,maxTokenAge:u}=n,d=[...a];void 0!==u&&d.push("iat"),void 0!==c&&d.push("aud"),void 0!==s&&d.push("sub"),void 0!==o&&d.push("iss");for(const e of new Set(d.reverse()))if(!(e in r))throw new h(`missing required "${e}" claim`,r,e,"missing");if(o&&!(Array.isArray(o)?o:[o]).includes(r.iss))throw new h('unexpected "iss" claim value',r,"iss","check_failed");if(s&&r.sub!==s)throw new h('unexpected "sub" claim value',r,"sub","check_failed");if(c&&(p=r.aud,f="string"==typeof c?[c]:c,!("string"==typeof p?f.includes(p):Array.isArray(p)&&f.some(Set.prototype.has.bind(new Set(p))))))throw new h('unexpected "aud" claim value',r,"aud","check_failed");var p,f;let g;switch(typeof n.clockTolerance){case"string":g=ue(n.clockTolerance);break;case"number":g=n.clockTolerance;break;case"undefined":g=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:v}=n,b=se(v||new Date);if((void 0!==r.iat||u)&&"number"!=typeof r.iat)throw new h('"iat" claim must be a number',r,"iat","invalid");if(void 0!==r.nbf){if("number"!=typeof r.nbf)throw new h('"nbf" claim must be a number',r,"nbf","invalid");if(r.nbf>b+g)throw new h('"nbf" claim timestamp check failed',r,"nbf","check_failed")}if(void 0!==r.exp){if("number"!=typeof r.exp)throw new h('"exp" claim must be a number',r,"exp","invalid");if(r.exp<=b-g)throw new m('"exp" claim timestamp check failed',r,"exp","check_failed")}if(u){const e=b-r.iat;if(e-g>("number"==typeof u?u:ue(u)))throw new m('"iat" claim timestamp check failed (too far in the past)',r,"iat","check_failed");if(e<0-g)throw new h('"iat" claim timestamp check failed (it should be in the past)',r,"iat","check_failed")}return r};const fe=async(e,t,n)=>{let r,i,a=!1;"function"==typeof AbortController&&(r=new AbortController,i=setTimeout(()=>{a=!0,r.abort()},t));const o=await fetch(e.href,{signal:r?r.signal:void 0,redirect:"manual",headers:n.headers}).catch(e=>{if(a)throw new C;throw e});if(void 0!==i&&clearTimeout(i),200!==o.status)throw new f("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await o.json()}catch{throw new f("Failed to parse the JSON Web Key Set HTTP response as JSON")}};function he(e){return M(e)}function me(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}class ge{constructor(e){if(this._cached=new WeakMap,!function(e){return e&&"object"==typeof e&&Array.isArray(e.keys)&&e.keys.every(he)}(e))throw new w("JSON Web Key Set malformed");this._jwks=me(e)}async getKey(e,t){const{alg:n,kid:r}={...e,...t?.header},i=function(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new v('Unsupported "alg" value for a JSON Web Key Set')}}(n),a=this._jwks.keys.filter(e=>{let t=i===e.kty;if(t&&"string"==typeof r&&(t=r===e.kid),t&&"string"==typeof e.alg&&(t=n===e.alg),t&&"string"==typeof e.use&&(t="sig"===e.use),t&&Array.isArray(e.key_ops)&&(t=e.key_ops.includes("verify")),t)switch(n){case"ES256":t="P-256"===e.crv;break;case"ES256K":t="secp256k1"===e.crv;break;case"ES384":t="P-384"===e.crv;break;case"ES512":t="P-521"===e.crv;break;case"Ed25519":t="Ed25519"===e.crv;break;case"EdDSA":t="Ed25519"===e.crv||"Ed448"===e.crv}return t}),{0:o,length:s}=a;if(0===s)throw new x;if(1!==s){const e=new A,{_cached:t}=this;throw e[Symbol.asyncIterator]=async function*(){for(const e of a)try{yield await ve(t,e,n)}catch{}},e}return ve(this._cached,o,n)}}async function ve(e,t,n){const r=e.get(t)||e.set(t,{}).get(t);if(void 0===r[n]){const e=await ae({...t,ext:!0},n);if(e instanceof Uint8Array||"public"!==e.type)throw new w("JSON Web Key Set members must be public keys");r[n]=e}return r[n]}function be(e){const t=new ge(e),n=async(e,n)=>t.getKey(e,n);return Object.defineProperties(n,{jwks:{value:()=>me(t._jwks),enumerable:!0,configurable:!1,writable:!1}}),n}let ye;if("undefined"==typeof navigator||!navigator.userAgent?.startsWith?.("Mozilla/5.0 ")){ye=`${"jose"}/${"v5.10.0"}`}const we=Symbol();class xe{constructor(e,t){if(!(e instanceof URL))throw new TypeError("url must be an instance of URL");var n,r;this._url=new URL(e.href),this._options={agent:t?.agent,headers:t?.headers},this._timeoutDuration="number"==typeof t?.timeoutDuration?t?.timeoutDuration:5e3,this._cooldownDuration="number"==typeof t?.cooldownDuration?t?.cooldownDuration:3e4,this._cacheMaxAge="number"==typeof t?.cacheMaxAge?t?.cacheMaxAge:6e5,void 0!==t?.[we]&&(this._cache=t?.[we],n=t?.[we],r=this._cacheMaxAge,"object"==typeof n&&null!==n&&"uat"in n&&"number"==typeof n.uat&&!(Date.now()-n.uat>=r)&&"jwks"in n&&M(n.jwks)&&Array.isArray(n.jwks.keys)&&Array.prototype.every.call(n.jwks.keys,M)&&(this._jwksTimestamp=this._cache.uat,this._local=be(this._cache.jwks)))}coolingDown(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cooldownDuration}fresh(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cacheMaxAge}async getKey(e,t){this._local&&this.fresh()||await this.reload();try{return await this._local(e,t)}catch(n){if(n instanceof x&&!1===this.coolingDown())return await this.reload(),this._local(e,t);throw n}}async reload(){this._pendingFetch&&("undefined"!=typeof WebSocketPair||"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||"undefined"!=typeof EdgeRuntime&&"vercel"===EdgeRuntime)&&(this._pendingFetch=void 0);const e=new Headers(this._options.headers);ye&&!e.has("User-Agent")&&(e.set("User-Agent",ye),this._options.headers=Object.fromEntries(e.entries())),this._pendingFetch||(this._pendingFetch=fe(this._url,this._timeoutDuration,this._options).then(e=>{this._local=be(e),this._cache&&(this._cache.uat=Date.now(),this._cache.jwks=e),this._jwksTimestamp=Date.now(),this._pendingFetch=void 0}).catch(e=>{throw this._pendingFetch=void 0,e})),await this._pendingFetch}}const Ae=async e=>{if(e instanceof Uint8Array)return{kty:"oct",k:d(e)};if(!S(e))throw new TypeError(L(e,...D,"Uint8Array"));if(!e.extractable)throw new TypeError("non-extractable CryptoKey cannot be exported as a JWK");const{ext:t,key_ops:n,alg:r,use:i,...a}=await _.subtle.exportKey("jwk",e);return a};async function Ce(e){return Ae(e)}const Ee=async(e,t,n)=>{const r=await J(e,t,"sign");T(e,r);const i=await _.subtle.sign(k(e,r.algorithm),r,n);return new Uint8Array(i)};class ke{constructor(e){if(!(e instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw new TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){if(!this._protectedHeader&&!this._unprotectedHeader)throw new b("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!Q(this._protectedHeader,this._unprotectedHeader))throw new b("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const n={...this._protectedHeader,...this._unprotectedHeader};let r=!0;if(re(b,new Map([["b64",!0]]),t?.crit,this._protectedHeader,n).has("b64")&&(r=this._protectedHeader.b64,"boolean"!=typeof r))throw new b('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:i}=n;if("string"!=typeof i||!i)throw new b('JWS "alg" (Algorithm) Header Parameter missing or invalid');ne(i,e,"sign");let a,o=this._payload;r&&(o=c.encode(d(o))),a=this._protectedHeader?c.encode(d(JSON.stringify(this._protectedHeader))):c.encode("");const s=u(a,c.encode("."),o),p=await Ee(i,e,s),f={signature:d(p),payload:""};return r&&(f.payload=l.decode(o)),this._unprotectedHeader&&(f.header=this._unprotectedHeader),this._protectedHeader&&(f.protected=l.decode(a)),f}}class _e{constructor(e){this._flattened=new ke(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){const n=await this._flattened.sign(e,t);if(void 0===n.payload)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${n.protected}.${n.payload}.${n.signature}`}}function Se(e,t){if(!Number.isFinite(t))throw new TypeError(`Invalid ${e} input`);return t}class Te{constructor(e={}){if(!M(e))throw new TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return"number"==typeof e?this._payload={...this._payload,nbf:Se("setNotBefore",e)}:e instanceof Date?this._payload={...this._payload,nbf:Se("setNotBefore",se(e))}:this._payload={...this._payload,nbf:se(new Date)+ue(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:Se("setExpirationTime",e)}:e instanceof Date?this._payload={...this._payload,exp:Se("setExpirationTime",se(e))}:this._payload={...this._payload,exp:se(new Date)+ue(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:se(new Date)}:e instanceof Date?this._payload={...this._payload,iat:Se("setIssuedAt",se(e))}:this._payload="string"==typeof e?{...this._payload,iat:Se("setIssuedAt",se(new Date)+ue(e))}:{...this._payload,iat:Se("setIssuedAt",e)},this}}class Pe extends Te{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){const n=new _e(c.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray(this._protectedHeader?.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new y("JWTs MUST NOT use unencoded payload");return n.sign(e,t)}}function Fe(e){const t=e?.modulusLength??2048;if("number"!=typeof t||t<2048)throw new v("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");return t}async function Re(e,t){return async function(e,t){let n,r;switch(e){case"PS256":case"PS384":case"PS512":n={name:"RSA-PSS",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:Fe(t)},r=["sign","verify"];break;case"RS256":case"RS384":case"RS512":n={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:Fe(t)},r=["sign","verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":n={name:"RSA-OAEP",hash:`SHA-${parseInt(e.slice(-3),10)||1}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:Fe(t)},r=["decrypt","unwrapKey","encrypt","wrapKey"];break;case"ES256":n={name:"ECDSA",namedCurve:"P-256"},r=["sign","verify"];break;case"ES384":n={name:"ECDSA",namedCurve:"P-384"},r=["sign","verify"];break;case"ES512":n={name:"ECDSA",namedCurve:"P-521"},r=["sign","verify"];break;case"Ed25519":n={name:"Ed25519"},r=["sign","verify"];break;case"EdDSA":{r=["sign","verify"];const e=t?.crv??"Ed25519";switch(e){case"Ed25519":case"Ed448":n={name:e};break;default:throw new v("Invalid or unsupported crv option provided")}break}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{r=["deriveKey","deriveBits"];const e=t?.crv??"P-256";switch(e){case"P-256":case"P-384":case"P-521":n={name:"ECDH",namedCurve:e};break;case"X25519":case"X448":n={name:e};break;default:throw new v("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}break}default:throw new v('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return _.subtle.generateKey(n,t?.extractable??!1,r)}(e,t)}const Ie={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Be;const Ne=new Uint8Array(16);const Le=[];for(let e=0;e<256;++e)Le.push((e+256).toString(16).slice(1));function Oe(e,t=0){return(Le[e[t+0]]+Le[e[t+1]]+Le[e[t+2]]+Le[e[t+3]]+"-"+Le[e[t+4]]+Le[e[t+5]]+"-"+Le[e[t+6]]+Le[e[t+7]]+"-"+Le[e[t+8]]+Le[e[t+9]]+"-"+Le[e[t+10]]+Le[e[t+11]]+Le[e[t+12]]+Le[e[t+13]]+Le[e[t+14]]+Le[e[t+15]]).toLowerCase()}const je=function(e,t,n){if(Ie.randomUUID&&!t&&!e)return Ie.randomUUID();const r=(e=e||{}).random??e.rng?.()??function(){if(!Be){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Be=crypto.getRandomValues.bind(crypto)}return Be(Ne)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[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]=r[e];return t}return Oe(r)},De="solidClientAuthn:",Me=["ES256","RS256"],Ue="error",ze="login",He="logout",qe="newRefreshToken",$e="sessionExpired",We="sessionExtended",Ve="sessionRestore",Ge="timeoutSet",Ke=["openid","offline_access","webid"];class Je{handleables;constructor(e){this.handleables=e,this.handleables=e}async getProperHandler(e){const t=await Promise.all(this.handleables.map(t=>t.canHandle(...e)));for(let e=0;e<t.length;e+=1)if(t[e])return this.handleables[e];return null}async canHandle(...e){return null!==await this.getProperHandler(e)}async handle(...e){const t=await this.getProperHandler(e);if(t)return t.handle(...e);throw new Error(`[${this.constructor.name}] cannot find a suitable handler for: ${e.map(e=>{try{return JSON.stringify(e)}catch(t){return e.toString()}}).join(", ")}`)}}async function Ye(e,t,n,r){let i,a;try{const{payload:a}=await async function(e,t,n){const r=await oe(e,t,n);if(r.protectedHeader.crit?.includes("b64")&&!1===r.protectedHeader.b64)throw new y("JWTs MUST NOT use unencoded payload");const i={payload:pe(r.protectedHeader,r.payload,n),protectedHeader:r.protectedHeader};return"function"==typeof t?{...i,key:r.key}:i}(e,function(e,t){const n=new xe(e,t),r=async(e,t)=>n.getKey(e,t);return Object.defineProperties(r,{coolingDown:{get:()=>n.coolingDown(),enumerable:!0,configurable:!1},fresh:{get:()=>n.fresh(),enumerable:!0,configurable:!1},reload:{value:()=>n.reload(),enumerable:!0,configurable:!1,writable:!1},reloading:{get:()=>!!n._pendingFetch,enumerable:!0,configurable:!1},jwks:{value:()=>n._local?.jwks(),enumerable:!0,configurable:!1,writable:!1}}),r}(new URL(t)),{issuer:n,audience:r});i=a}catch(e){throw new Error(`Token verification failed: ${e.stack}`)}if("string"==typeof i.azp&&(a=i.azp),"string"==typeof i.webid)return{webId:i.webid,clientId:a};if("string"!=typeof i.sub)throw new Error(`The token ${JSON.stringify(i)} is invalid: it has no 'webid' claim and no 'sub' claim.`);try{return new URL(i.sub),{webId:i.sub,clientId:a}}catch(e){throw new Error(`The token has no 'webid' claim, and its 'sub' claim of [${i.sub}] is invalid as a URL - error [${e}].`)}}function Qe(e){try{const t=new URL(e),n=!t.searchParams.has("code")&&!t.searchParams.has("state"),r=""===t.hash;return n&&r}catch(e){return!1}}function Xe(e){const t=new URL(e);return t.searchParams.delete("state"),t.searchParams.delete("code"),t.searchParams.delete("error"),t.searchParams.delete("error_description"),t.searchParams.delete("iss"),t}class Ze{storageUtility;redirector;constructor(e,t){this.storageUtility=e,this.redirector=t,this.storageUtility=e,this.redirector=t}parametersGuard=e=>void 0!==e.issuerConfiguration.grantTypesSupported&&e.issuerConfiguration.grantTypesSupported.indexOf("authorization_code")>-1&&void 0!==e.redirectUrl;async canHandle(e){return this.parametersGuard(e)}async setupRedirectHandler({oidcLoginOptions:e,state:t,codeVerifier:n,targetUrl:r}){if(!this.parametersGuard(e))throw new Error("The authorization code grant requires a redirectUrl.");var i,a;await Promise.all([this.storageUtility.setForUser(t,{sessionId:e.sessionId}),this.storageUtility.setForUser(e.sessionId,{codeVerifier:n,issuer:e.issuer.toString(),redirectUrl:e.redirectUrl,dpop:Boolean(e.dpop).toString(),keepAlive:(i=e.keepAlive,a=!0,"boolean"==typeof i?Boolean(i):Boolean(a)).toString()})]),this.redirector.redirect(r,{handleRedirect:e.handleRedirect})}}class et{sessionInfoManager;constructor(e){this.sessionInfoManager=e,this.sessionInfoManager=e}async canHandle(){return!0}async handle(e){await this.sessionInfoManager.clear(e)}}class tt{redirector;constructor(e){this.redirector=e,this.redirector=e}async canHandle(e,t){return"idp"===t?.logoutType}async handle(e,t){if("idp"!==t?.logoutType)throw new Error("Attempting to call idp logout handler to perform app logout");if(void 0===t.toLogoutUrl)throw new Error("Cannot perform IDP logout. Did you log in using the OIDC authentication flow?");this.redirector.redirect(t.toLogoutUrl(t),{handleRedirect:t.handleRedirect})}}class nt{handlers;constructor(e,t){this.handlers=[new et(e),new tt(t)]}async canHandle(){return!0}async handle(e,t){for(const n of this.handlers)await n.canHandle(e,t)&&await n.handle(e,t)}}function rt(){return{isLoggedIn:!1,sessionId:je(),fetch:(...e)=>fetch(...e)}}async function it(e,t){await Promise.all([t.deleteAllUserData(e,{secure:!1}),t.deleteAllUserData(e,{secure:!0})])}class at{storageUtility;constructor(e){this.storageUtility=e,this.storageUtility=e}update(e,t){throw new Error("Not Implemented")}set(e,t){throw new Error("Not Implemented")}get(e){throw new Error("Not implemented")}async getAll(){throw new Error("Not implemented")}async clear(e){return it(e,this.storageUtility)}async register(e){throw new Error("Not implemented")}async getRegisteredSessionIdAll(){throw new Error("Not implemented")}async clearAll(){throw new Error("Not implemented")}async setOidcContext(e,t){throw new Error("Not implemented")}}function ot({endSessionEndpoint:e,idTokenHint:t}){if(void 0!==e)return function({state:n,postLogoutUrl:r}){return function({endSessionEndpoint:e,idTokenHint:t,postLogoutRedirectUri:n,state:r}){const i=new URL(e);return void 0!==t&&i.searchParams.append("id_token_hint",t),void 0!==n&&(i.searchParams.append("post_logout_redirect_uri",n),void 0!==r&&i.searchParams.append("state",r)),i.toString()}({endSessionEndpoint:e,idTokenHint:t,state:n,postLogoutRedirectUri:r})}}function st(e){try{return new URL(e),!0}catch{return!1}}async function ct(e,t,n,r){let i;if(function(e,t){return t.scopesSupported.includes("webid")&&void 0!==e.clientId&&st(e.clientId)}(e,t))i={clientId:e.clientId,clientName:e.clientName,clientType:"solid-oidc"};else{if(!function(e){return void 0!==e.clientId&&!st(e.clientId)}(e))return r.getClient({sessionId:e.sessionId,clientName:e.clientName,redirectUrl:e.redirectUrl},t);i={clientId:e.clientId,clientSecret:e.clientSecret,clientName:e.clientName,clientType:"static"}}const a={clientId:i.clientId,clientType:i.clientType};return"static"===i.clientType&&(a.clientSecret=i.clientSecret),i.clientName&&(a.clientName=i.clientName),await n.setForUser(e.sessionId,a),i}const lt=(e,t)=>fetch(e,t);class ut{loginHandler;redirectHandler;logoutHandler;sessionInfoManager;issuerConfigFetcher;boundLogout;constructor(e,t,n,r,i){this.loginHandler=e,this.redirectHandler=t,this.logoutHandler=n,this.sessionInfoManager=r,this.issuerConfigFetcher=i,this.loginHandler=e,this.redirectHandler=t,this.logoutHandler=n,this.sessionInfoManager=r,this.issuerConfigFetcher=i}fetch=lt;logout=async(e,t)=>{await this.logoutHandler.handle(e,"idp"===t?.logoutType?{...t,toLogoutUrl:this.boundLogout}:t),this.fetch=lt,delete this.boundLogout};getSessionInfo=async e=>this.sessionInfoManager.get(e);getAllSessionInfo=async()=>this.sessionInfoManager.getAll()}async function dt(e,t,n){try{const[r,i,a,o,s]=await Promise.all([t.getForUser(e,"issuer",{errorIfNull:!0}),t.getForUser(e,"codeVerifier"),t.getForUser(e,"redirectUrl"),t.getForUser(e,"dpop",{errorIfNull:!0}),t.getForUser(e,"keepAlive")]);await t.deleteForUser(e,"codeVerifier");return{codeVerifier:i,redirectUrl:a,issuerConfig:await n.fetchConfig(r),dpop:"true"===o,keepAlive:"string"!=typeof s||"true"===s}}catch(t){throw new Error(`Failed to retrieve OIDC context from storage associated with session [${e}]: ${t}`)}}class pt{secureStorage;insecureStorage;constructor(e,t){this.secureStorage=e,this.insecureStorage=t,this.secureStorage=e,this.insecureStorage=t}getKey(e){return`solidClientAuthenticationUser:${e}`}async getUserData(e,t){const n=await(t?this.secureStorage:this.insecureStorage).get(this.getKey(e));if(void 0===n)return{};try{return JSON.parse(n)}catch(r){throw new Error(`Data for user [${e}] in [${t?"secure":"unsecure"}] storage is corrupted - expected valid JSON, but got: ${n}`)}}async setUserData(e,t,n){await(n?this.secureStorage:this.insecureStorage).set(this.getKey(e),JSON.stringify(t))}async get(e,t){const n=await(t?.secure?this.secureStorage:this.insecureStorage).get(e);if(void 0===n&&t?.errorIfNull)throw new Error(`[${e}] is not stored`);return n}async set(e,t,n){return(n?.secure?this.secureStorage:this.insecureStorage).set(e,t)}async delete(e,t){return(t?.secure?this.secureStorage:this.insecureStorage).delete(e)}async getForUser(e,t,n){const r=await this.getUserData(e,n?.secure);let i;if(r&&r[t]||(i=void 0),i=r[t],void 0===i&&n?.errorIfNull)throw new Error(`Field [${t}] for user [${e}] is not stored`);return i||void 0}async setForUser(e,t,n){let r;try{r=await this.getUserData(e,n?.secure)}catch{r={}}await this.setUserData(e,{...r,...t},n?.secure)}async deleteForUser(e,t,n){const r=await this.getUserData(e,n?.secure);delete r[t],await this.setUserData(e,r,n?.secure)}async deleteAllUserData(e,t){await(t?.secure?this.secureStorage:this.insecureStorage).delete(this.getKey(e))}}class ft{map={};async get(e){return this.map[e]||void 0}async set(e,t){this.map[e]=t}async delete(e){delete this.map[e]}}class ht extends Error{constructor(e){super(e)}}Error;class mt extends Error{missingFields;constructor(e){super(`Invalid response from OIDC provider: missing fields ${e}`),this.missingFields=e}}class gt extends Error{error;errorDescription;constructor(e,t,n){super(e),this.error=t,this.errorDescription=n}}function vt(e){const t=new URL(e);return new URL(t.pathname,t.origin).toString()}async function bt(e,t,n){return new Pe({htu:vt(e),htm:t.toUpperCase(),jti:je()}).setProtectedHeader({alg:Me[0],jwk:n.publicKey,typ:"dpop+jwt"}).setIssuedAt().sign(n.privateKey,{})}async function yt(e,t,n,r){if(void 0!==n)return async function(e,t,n,r){const i=new Headers(r?.headers);return i.set("Authorization",`DPoP ${t}`),i.set("DPoP",await bt(e,r?.method??"get",n)),{...r,headers:i}}(e,t,n,r);const i=new Headers(r?.headers);return i.set("Authorization",`Bearer ${t}`),{...r,headers:i}}async function wt(e,t,n,r,i=fetch){return i(t,await yt(t.toString(),e,r,n))}const xt=e=>void 0!==e?e-5>0?e-5:e:600;function At(e,t){let n,r=e;const i=t?.refreshOptions;if(void 0!==i){const e=async()=>{try{const{accessToken:a,refreshToken:o,expiresIn:s}=await async function(e,t,n){const r=await e.tokenRefresher.refresh(e.sessionId,e.refreshToken,t);return n?.emit(We,r.expiresIn??600),{accessToken:r.accessToken,refreshToken:r.refreshToken,expiresIn:r.expiresIn}}(i,t.dpopKey,t.eventEmitter);r=a,void 0!==o&&(i.refreshToken=o),clearTimeout(n),n=setTimeout(e,1e3*xt(s)),t.eventEmitter?.emit(Ge,n)}catch(e){e instanceof gt&&(t?.eventEmitter?.emit(Ue,e.error,e.errorDescription),t?.eventEmitter?.emit($e)),e instanceof mt&&e.missingFields.includes("access_token")&&t?.eventEmitter?.emit($e)}};n=setTimeout(e,1e3*xt(t.expiresIn)),t.eventEmitter?.emit(Ge,n)}else if(void 0!==t&&void 0!==t.eventEmitter){const e=setTimeout(()=>{t.eventEmitter.emit($e)},1e3*xt(t.expiresIn));t.eventEmitter.emit(Ge,e)}return async(e,n)=>{let i=await wt(r,e,n,t?.dpopKey,t?.fetch);const a=!i.ok&&(o=i.status,![401,403].includes(o));var o;if(i.ok||a)return i;return i.url!==e&&void 0!==t?.dpopKey&&(i=await wt(r,i.url,n,t.dpopKey,t.fetch)),i}}var Ct=o(7),Et=o(516);function kt(e,t){if("string"!=typeof e.client_id)throw new Error(`Dynamic client registration failed: no client_id has been found on ${JSON.stringify(e)}`);if(t.redirectUrl&&function(e){return Array.isArray(e.redirect_uris)&&e.redirect_uris.every(e=>"string"==typeof e)}(e)&&e.redirect_uris[0]!==t.redirectUrl.toString())throw new Error(`Dynamic client registration failed: the returned redirect URIs ${JSON.stringify(e.redirect_uris)} don't match the provided ${JSON.stringify([t.redirectUrl.toString()])}`);return!0}async function _t(e,t){if(!t.registrationEndpoint)throw new Error("Dynamic Registration could not be completed because the issuer has no registration endpoint.");if(!Array.isArray(t.idTokenSigningAlgValuesSupported))throw new Error("The OIDC issuer discovery profile is missing the 'id_token_signing_alg_values_supported' value, which is mandatory.");const n=(r=t.idTokenSigningAlgValuesSupported,Me.find(e=>r.includes(e))??null);var r;const i={client_name:e.clientName,application_type:"web",redirect_uris:[e.redirectUrl?.toString()],subject_type:"public",token_endpoint_auth_method:"client_secret_basic",id_token_signed_response_alg:n,grant_types:["authorization_code","refresh_token"]},a=await fetch(t.registrationEndpoint.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(a.ok){const t=await a.json();return kt(t,e),{clientId:t.client_id,clientSecret:t.client_secret,expiresAt:t.client_secret_expires_at,idTokenSignedResponseAlg:t.id_token_signed_response_alg,clientType:"dynamic"}}throw 400===a.status&&function(e,t){if("invalid_redirect_uri"===e.error)throw new Error(`Dynamic client registration failed: the provided redirect uri [${t.redirectUrl?.toString()}] is invalid - ${e.error_description??""}`);if("invalid_client_metadata"===e.error)throw new Error(`Dynamic client registration failed: the provided client metadata ${JSON.stringify(t)} is invalid - ${e.error_description??""}`);throw new Error(`Dynamic client registration failed: ${e.error} - ${e.error_description??""}`)}(await a.json(),e),new Error(`Dynamic client registration failed: the server returned ${a.status} ${a.statusText} - ${await a.text()}`)}function St(e){return void 0!==e.error_description&&"string"==typeof e.error_description}function Tt(e,t){if(void 0!==(n=e).error&&"string"==typeof n.error)throw new gt(`Token endpoint returned error [${e.error}]${St(e)?`: ${e.error_description}`:""}${function(e){return void 0!==e.error_uri&&"string"==typeof e.error_uri}(e)?` (see ${e.error_uri})`:""}`,e.error,St(e)?e.error_description:void 0);var n;if(!function(e){return void 0!==e.access_token&&"string"==typeof e.access_token}(e))throw new mt(["access_token"]);if(!function(e){return void 0!==e.id_token&&"string"==typeof e.id_token}(e))throw new mt(["id_token"]);if(!function(e){return void 0!==e.token_type&&"string"==typeof e.token_type}(e))throw new mt(["token_type"]);if(!function(e){return void 0===e.expires_in||"number"==typeof e.expires_in}(e))throw new mt(["expires_in"]);if(!t&&"bearer"!==e.token_type.toLowerCase())throw new Error(`Invalid token endpoint response: requested a [Bearer] token, but got a 'token_type' value of [${e.token_type}].`);return e}async function Pt(e,t,n,r){!function(e,t){if(t.grantType&&(!e.grantTypesSupported||!e.grantTypesSupported.includes(t.grantType)))throw new Error(`The issuer [${e.issuer}] does not support the [${t.grantType}] grant`);if(!e.tokenEndpoint)throw new Error(`This issuer [${e.issuer}] does not have a token endpoint`)}(e,n);const i={"content-type":"application/x-www-form-urlencoded"};let a;r&&(a=await async function(){const{privateKey:e,publicKey:t}=await Re(Me[0]),n={privateKey:e,publicKey:await Ce(t)};return[n.publicKey.alg]=Me,n}(),i.DPoP=await bt(e.tokenEndpoint,"POST",a)),t.clientSecret&&(i.Authorization=`Basic ${btoa(`${t.clientId}:${t.clientSecret}`)}`);const o={grant_type:n.grantType,redirect_uri:n.redirectUrl,code:n.code,code_verifier:n.codeVerifier,client_id:t.clientId},s={method:"POST",headers:i,body:new URLSearchParams(o).toString()},c=await fetch(e.tokenEndpoint,s),l=Tt(await c.json(),r),{webId:u,clientId:d}=await Ye(l.id_token,e.jwksUri,e.issuer,t.clientId);return{accessToken:l.access_token,idToken:l.id_token,refreshToken:(p=l,void 0!==p.refresh_token&&"string"==typeof p.refresh_token?l.refresh_token:void 0),webId:u,clientId:d,dpopKey:a,expiresIn:l.expires_in};var p}async function Ft(e,t,n,r){if(void 0===n.clientId)throw new Error("No client ID available when trying to refresh the access token.");const i={grant_type:"refresh_token",refresh_token:e};let a={};void 0!==r&&(a={DPoP:await bt(t.tokenEndpoint,"POST",r)});let o={};void 0!==n.clientSecret?o={Authorization:`Basic ${btoa(`${n.clientId}:${n.clientSecret}`)}`}:(e=>{try{return new URL(e),!0}catch{return!1}})(n.clientId)&&(i.client_id=n.clientId);const s=await fetch(t.tokenEndpoint,{method:"POST",body:new URLSearchParams(i).toString(),headers:{...a,...o,"Content-Type":"application/x-www-form-urlencoded"}});let c;try{c=await s.json()}catch(e){throw new Error(`The token endpoint of issuer ${t.issuer} returned a malformed response.`)}const l=Tt(c,void 0!==r),{webId:u}=await Ye(l.id_token,t.jwksUri,t.issuer,n.clientId);return{accessToken:l.access_token,idToken:l.id_token,refreshToken:"string"==typeof l.refresh_token?l.refresh_token:void 0,webId:u,dpopKey:r,expiresIn:l.expires_in}}class Rt extends pt{constructor(e,t){super(e,t)}}class It extends ut{login=async(e,t)=>{"none"!==e.prompt&&await this.sessionInfoManager.clear(e.sessionId);const n=e.redirectUrl??function(e){const t=Xe(e);return t.hash="",e.includes(`${t.origin}/`)?t.href:`${t.origin}${t.href.substring(t.origin.length+1)}`}(window.location.href);if(!Qe(n))throw new Error(`${n} is not a valid redirect URL, it is either a malformed IRI, includes a hash fragment, or reserved query parameters ('code' or 'state').`);await this.loginHandler.handle({...e,redirectUrl:n,clientName:e.clientName??e.clientId,eventEmitter:t})};validateCurrentSession=async e=>{const t=await this.sessionInfoManager.get(e);return void 0===t||void 0===t.clientAppId||void 0===t.issuer?null:t};handleIncomingRedirect=async(e,t)=>{try{const n=await this.redirectHandler.handle(e,t,void 0);return this.fetch=n.fetch.bind(window),this.boundLogout=n.getLogoutUrl,await this.cleanUrlAfterRedirect(e),{isLoggedIn:n.isLoggedIn,webId:n.webId,sessionId:n.sessionId,expirationDate:n.expirationDate,clientAppId:n.clientAppId}}catch(n){return await this.cleanUrlAfterRedirect(e),void t.emit(Ue,"redirect",n)}};async cleanUrlAfterRedirect(e){const t=Xe(e).href;for(window.history.replaceState(null,"",t);window.location.href!==t;)await new Promise(e=>{setTimeout(()=>e(),1)})}}function Bt(e){return"string"==typeof e.oidcIssuer}function Nt(e){return"string"==typeof e.redirectUrl}class Lt{storageUtility;oidcHandler;issuerConfigFetcher;clientRegistrar;constructor(e,t,n,r){this.storageUtility=e,this.oidcHandler=t,this.issuerConfigFetcher=n,this.clientRegistrar=r,this.storageUtility=e,this.oidcHandler=t,this.issuerConfigFetcher=n,this.clientRegistrar=r}async canHandle(e){return Bt(e)&&Nt(e)}async handle(e){if(!Bt(e))throw new ht(`OidcLoginHandler requires an OIDC issuer: missing property 'oidcIssuer' in ${JSON.stringify(e)}`);if(!Nt(e))throw new ht(`OidcLoginHandler requires a redirect URL: missing property 'redirectUrl' in ${JSON.stringify(e)}`);const t=await this.issuerConfigFetcher.fetchConfig(e.oidcIssuer),n=await ct(e,t,this.storageUtility,this.clientRegistrar),r={issuer:t.issuer,dpop:"dpop"===e.tokenType.toLowerCase(),...e,issuerConfiguration:t,client:n,scopes:(i=e.customScopes,Array.isArray(i)?Array.from(new Set([...Ke,...i.filter(e=>"string"==typeof e&&!e.includes(" "))])):Ke)};var i;return this.oidcHandler.handle(r)}}class Ot extends Ze{async handle(e){const t={authority:e.issuer.toString(),client_id:e.client.clientId,client_secret:e.client.clientSecret,redirect_uri:e.redirectUrl,response_type:"code",scope:e.scopes.join(" "),filterProtocolClaims:!0,loadUserInfo:!1,code_verifier:!0,prompt:e.prompt??"consent"},n=new Et.OidcClient(t);try{const t=await n.createSigninRequest();return await this.setupRedirectHandler({oidcLoginOptions:e,state:t.state._id,codeVerifier:t.state._code_verifier,targetUrl:t.url.toString()})}catch(e){}}}const jt={issuer:{toKey:"issuer",convertToUrl:!0},authorization_endpoint:{toKey:"authorizationEndpoint",convertToUrl:!0},token_endpoint:{toKey:"tokenEndpoint",convertToUrl:!0},userinfo_endpoint:{toKey:"userinfoEndpoint",convertToUrl:!0},jwks_uri:{toKey:"jwksUri",convertToUrl:!0},registration_endpoint:{toKey:"registrationEndpoint",convertToUrl:!0},end_session_endpoint:{toKey:"endSessionEndpoint",convertToUrl:!0},scopes_supported:{toKey:"scopesSupported"},response_types_supported:{toKey:"responseTypesSupported"},response_modes_supported:{toKey:"responseModesSupported"},grant_types_supported:{toKey:"grantTypesSupported"},acr_values_supported:{toKey:"acrValuesSupported"},subject_types_supported:{toKey:"subjectTypesSupported"},id_token_signing_alg_values_supported:{toKey:"idTokenSigningAlgValuesSupported"},id_token_encryption_alg_values_supported:{toKey:"idTokenEncryptionAlgValuesSupported"},id_token_encryption_enc_values_supported:{toKey:"idTokenEncryptionEncValuesSupported"},userinfo_signing_alg_values_supported:{toKey:"userinfoSigningAlgValuesSupported"},userinfo_encryption_alg_values_supported:{toKey:"userinfoEncryptionAlgValuesSupported"},userinfo_encryption_enc_values_supported:{toKey:"userinfoEncryptionEncValuesSupported"},request_object_signing_alg_values_supported:{toKey:"requestObjectSigningAlgValuesSupported"},request_object_encryption_alg_values_supported:{toKey:"requestObjectEncryptionAlgValuesSupported"},request_object_encryption_enc_values_supported:{toKey:"requestObjectEncryptionEncValuesSupported"},token_endpoint_auth_methods_supported:{toKey:"tokenEndpointAuthMethodsSupported"},token_endpoint_auth_signing_alg_values_supported:{toKey:"tokenEndpointAuthSigningAlgValuesSupported"},display_values_supported:{toKey:"displayValuesSupported"},claim_types_supported:{toKey:"claimTypesSupported"},claims_supported:{toKey:"claimsSupported"},service_documentation:{toKey:"serviceDocumentation"},claims_locales_supported:{toKey:"claimsLocalesSupported"},ui_locales_supported:{toKey:"uiLocalesSupported"},claims_parameter_supported:{toKey:"claimsParameterSupported"},request_parameter_supported:{toKey:"requestParameterSupported"},request_uri_parameter_supported:{toKey:"requestUriParameterSupported"},require_request_uri_registration:{toKey:"requireRequestUriRegistration"},op_policy_uri:{toKey:"opPolicyUri",convertToUrl:!0},op_tos_uri:{toKey:"opTosUri",convertToUrl:!0}};class Dt{storageUtility;constructor(e){this.storageUtility=e,this.storageUtility=e}static getLocalStorageKey(e){return`issuerConfig:${e}`}async fetchConfig(e){let t;const n=new URL(".well-known/openid-configuration",e.endsWith("/")?e:`${e}/`).href,r=await fetch(n);try{t=function(e){const t={};return Object.keys(e).forEach(n=>{jt[n]&&(t[jt[n].toKey]=e[n])}),Array.isArray(t.scopesSupported)||(t.scopesSupported=["openid"]),t}(await r.json())}catch(t){throw new ht(`[${e.toString()}] has an invalid configuration: ${t.message}`)}return await this.storageUtility.set(Dt.getLocalStorageKey(e),JSON.stringify(t)),t}}async function Mt(e,t){await it(e,t),await async function(){const e=new Et.OidcClient({response_mode:"query"});await e.clearStaleState(new Et.WebStorageStateStore({}));const t=window.localStorage,n=[];for(let e=0;e<=t.length;e+=1){const r=t.key(e);r&&(r.match(/^oidc\..+$/)||r.match(/^solidClientAuthenticationUser:.+$/))&&n.push(r)}n.forEach(e=>t.removeItem(e))}()}class Ut extends at{async get(e){const[t,n,r,i,a,o,s,c]=await Promise.all([this.storageUtility.getForUser(e,"isLoggedIn",{secure:!0}),this.storageUtility.getForUser(e,"webId",{secure:!0}),this.storageUtility.getForUser(e,"clientId",{secure:!1}),this.storageUtility.getForUser(e,"clientSecret",{secure:!1}),this.storageUtility.getForUser(e,"redirectUrl",{secure:!1}),this.storageUtility.getForUser(e,"refreshToken",{secure:!0}),this.storageUtility.getForUser(e,"issuer",{secure:!1}),this.storageUtility.getForUser(e,"tokenType",{secure:!1})]);if("string"!=typeof a||Qe(a)){if(void 0!==c&&("string"!=typeof(l=c)||!["DPoP","Bearer"].includes(l)))throw new Error(`Tokens of type [${c}] are not supported.`);var l;if(void 0!==r||void 0!==t||void 0!==n||void 0!==o)return{sessionId:e,webId:n,isLoggedIn:"true"===t,redirectUrl:a,refreshToken:o,issuer:s,clientAppId:r,clientAppSecret:i,tokenType:c??"DPoP"}}else await Promise.all([this.storageUtility.deleteAllUserData(e,{secure:!1}),this.storageUtility.deleteAllUserData(e,{secure:!0})])}async clear(e){return Mt(e,this.storageUtility)}}class zt{async canHandle(e){try{return new URL(e),!0}catch(t){throw new Error(`[${e}] is not a valid URL, and cannot be used as a redirect URL: ${t}`)}}async handle(e){return rt()}}class Ht{storageUtility;sessionInfoManager;issuerConfigFetcher;clientRegistrar;tokerRefresher;constructor(e,t,n,r,i){this.storageUtility=e,this.sessionInfoManager=t,this.issuerConfigFetcher=n,this.clientRegistrar=r,this.tokerRefresher=i,this.storageUtility=e,this.sessionInfoManager=t,this.issuerConfigFetcher=n,this.clientRegistrar=r,this.tokerRefresher=i}async canHandle(e){try{const t=new URL(e);return null!==t.searchParams.get("code")&&null!==t.searchParams.get("state")}catch(t){throw new Error(`[${e}] is not a valid URL, and cannot be used as a redirect URL: ${t}`)}}async handle(e,t){if(!await this.canHandle(e))throw new Error(`AuthCodeRedirectHandler cannot handle [${e}]: it is missing one of [code, state].`);const n=new URL(e),r=n.searchParams.get("state"),i=await this.storageUtility.getForUser(r,"sessionId",{errorIfNull:!0}),{issuerConfig:a,codeVerifier:o,redirectUrl:s,dpop:c}=await dt(i,this.storageUtility,this.issuerConfigFetcher),l=n.searchParams.get("iss");if("string"==typeof l&&l!==a.issuer)throw new Error(`The value of the iss parameter (${l}) does not match the issuer identifier of the authorization server (${a.issuer}). See [rfc9207](https://www.rfc-editor.org/rfc/rfc9207.html#section-2.3-3.1.1)`);if(void 0===o)throw new Error(`The code verifier for session ${i} is missing from storage.`);if(void 0===s)throw new Error(`The redirect URL for session ${i} is missing from storage.`);const u=await this.clientRegistrar.getClient({sessionId:i},a),d=Date.now(),p=await Pt(a,u,{grantType:"authorization_code",code:n.searchParams.get("code"),codeVerifier:o,redirectUrl:s},c);let f;window.localStorage.removeItem(`oidc.${r}`),void 0!==p.refreshToken&&(f={sessionId:i,refreshToken:p.refreshToken,tokenRefresher:this.tokerRefresher});const h=At(p.accessToken,{dpopKey:p.dpopKey,refreshOptions:f,eventEmitter:t,expiresIn:p.expiresIn});await async function(e,t,n,r,i,a,o,s){void 0!==a&&await e.setForUser(t,{refreshToken:a},{secure:o}),void 0!==n&&await e.setForUser(t,{webId:n},{secure:o}),void 0!==r&&await e.setForUser(t,{clientId:r},{secure:o}),void 0!==i&&await e.setForUser(t,{isLoggedIn:i},{secure:o}),void 0!==s&&await e.setForUser(t,{publicKey:JSON.stringify(s.publicKey),privateKey:JSON.stringify(await Ce(s.privateKey))},{secure:o})}(this.storageUtility,i,p.webId,p.clientId,"true",void 0,!0);const m=await this.sessionInfoManager.get(i);if(!m)throw new Error(`Could not retrieve session: [${i}].`);return Object.assign(m,{fetch:h,getLogoutUrl:ot({idTokenHint:p.idToken,endSessionEndpoint:a.endSessionEndpoint}),expirationDate:"number"==typeof p.expiresIn?d+1e3*p.expiresIn:void 0})}}class qt extends Je{constructor(e){super(e)}}class $t{get storage(){return window.localStorage}async get(e){return this.storage.getItem(e)||void 0}async set(e,t){this.storage.setItem(e,t)}async delete(e){this.storage.removeItem(e)}}class Wt{redirect(e,t){t&&t.handleRedirect?t.handleRedirect(e):t&&t.redirectByReplacingState?window.history.replaceState({},"",e):window.location.href=e}}class Vt{storageUtility;constructor(e){this.storageUtility=e,this.storageUtility=e}async getClient(e,t){const[n,r,i,a,o]=await Promise.all([this.storageUtility.getForUser(e.sessionId,"clientId",{secure:!1}),this.storageUtility.getForUser(e.sessionId,"clientSecret",{secure:!1}),this.storageUtility.getForUser(e.sessionId,"expiresAt",{secure:!1}),this.storageUtility.getForUser(e.sessionId,"clientName",{secure:!1}),this.storageUtility.getForUser(e.sessionId,"clientType",{secure:!1})]),s=void 0!==i?Number.parseInt(i,10):-1,c=void 0!==r&&0!==s&&Math.floor(Date.now()/1e3)>s;if(n&&("string"==typeof(l=o)&&["dynamic","static","solid-oidc"].includes(l))&&!c)return void 0!==r?{clientId:n,clientSecret:r,clientName:a,clientType:"dynamic",expiresAt:s}:{clientId:n,clientName:a,clientType:o};var l;try{const n=await _t(e,t),r={clientId:n.clientId,clientType:"dynamic"};return void 0!==n.clientSecret&&(r.clientSecret=n.clientSecret,r.expiresAt=String(n.expiresAt)),n.idTokenSignedResponseAlg&&(r.idTokenSignedResponseAlg=n.idTokenSignedResponseAlg),await this.storageUtility.setForUser(e.sessionId,r,{secure:!1}),n}catch(e){throw new Error("Client registration failed.",{cause:e})}}}class Gt{async canHandle(e){try{return new URL(e).searchParams.has("error")}catch(t){throw new Error(`[${e}] is not a valid URL, and cannot be used as a redirect URL: ${t}`)}}async handle(e,t){if(void 0!==t){const n=new URL(e),r=n.searchParams.get("error"),i=n.searchParams.get("error_description");t.emit(Ue,r,i)}return rt()}}class Kt{storageUtility;issuerConfigFetcher;clientRegistrar;constructor(e,t,n){this.storageUtility=e,this.issuerConfigFetcher=t,this.clientRegistrar=n,this.storageUtility=e,this.issuerConfigFetcher=t,this.clientRegistrar=n}async refresh(e,t,n,r){const i=await dt(e,this.storageUtility,this.issuerConfigFetcher),a=await this.clientRegistrar.getClient({sessionId:e},i.issuerConfig);if(void 0===t)throw new Error(`Session [${e}] has no refresh token to allow it to refresh its access token.`);if(i.dpop&&void 0===n)throw new Error(`For session [${e}], the key bound to the DPoP access token must be provided to refresh said access token.`);const o=await Ft(t,i.issuerConfig,a,n);return void 0!==o.refreshToken&&r?.emit(qe,o.refreshToken),o}}function Jt(e){const t=new ft,n=e.secureStorage||t,r=e.insecureStorage||new $t,i=new Rt(n,r),a=new Dt(i),o=new Vt(i),s=new Ut(i),c=new Kt(i,a,o),l=new Wt,u=new Lt(i,new Ot(i,l),a,o),d=new qt([new Gt,new Ht(i,s,a,o,c),new zt]);return new It(u,d,new nt(s,l),s,a)}const Yt=`${De}currentSession`,Qt=`${De}currentUrl`;class Xt{info;events;clientAuthentication;tokenRequestInProgress=!1;constructor(e={},t=void 0){this.events=new Ct,e.clientAuthentication?this.clientAuthentication=e.clientAuthentication:e.secureStorage&&e.insecureStorage?this.clientAuthentication=Jt({secureStorage:e.secureStorage,insecureStorage:e.insecureStorage}):this.clientAuthentication=Jt({}),e.sessionInfo?this.info={sessionId:e.sessionInfo.sessionId,isLoggedIn:!1,webId:e.sessionInfo.webId,clientAppId:e.sessionInfo.clientAppId}:this.info={sessionId:t??je(),isLoggedIn:!1},this.events.on(ze,()=>window.localStorage.setItem(Yt,this.info.sessionId)),this.events.on($e,()=>this.internalLogout(!1)),this.events.on(Ue,()=>this.internalLogout(!1))}login=async e=>(await this.clientAuthentication.login({sessionId:this.info.sessionId,...e,tokenType:e.tokenType??"DPoP"},this.events),new Promise(()=>{}));fetch=(e,t)=>this.clientAuthentication.fetch(e,t);internalLogout=async(e,t)=>{window.localStorage.removeItem(Yt),await this.clientAuthentication.logout(this.info.sessionId,t),this.info.isLoggedIn=!1,e&&this.events.emit(He)};logout=async e=>this.internalLogout(!0,e);handleIncomingRedirect=async(e={})=>{if(this.info.isLoggedIn)return this.info;if(this.tokenRequestInProgress)return;const t="string"==typeof e?{url:e}:e,n=t.url??window.location.href;this.tokenRequestInProgress=!0;const r=await this.clientAuthentication.handleIncomingRedirect(n,this.events);if(function(e){return!!e?.isLoggedIn}(r)){this.setSessionInfo(r);const e=window.localStorage.getItem(Qt);null===e?this.events.emit(ze):(window.localStorage.removeItem(Qt),this.events.emit(Ve,e))}else if(!0===t.restorePreviousSession){const e=window.localStorage.getItem(Yt);if(null!==e){if(await async function(e,t,n){const r=await t.validateCurrentSession(e);return null!==r&&(window.localStorage.setItem(Qt,window.location.href),await t.login({sessionId:e,prompt:"none",oidcIssuer:r.issuer,redirectUrl:r.redirectUrl,clientId:r.clientAppId,clientSecret:r.clientAppSecret,tokenType:r.tokenType??"DPoP"},n.events),!0)}(e,this.clientAuthentication,this))return new Promise(()=>{})}}return this.tokenRequestInProgress=!1,r};setSessionInfo(e){this.info.isLoggedIn=e.isLoggedIn,this.info.webId=e.webId,this.info.sessionId=e.sessionId,this.info.clientAppId=e.clientAppId,this.info.expirationDate=e.expirationDate,this.events.on(We,e=>{this.info.expirationDate=Date.now()+1e3*e})}}const Zt=new Xt,en=r;var tn=o(386);const nn=o.n(tn)()(en),rn=(0,en.sym)("http://www.iana.org/assignments/link-relations/acl");function an(e){const t=nn;function n(e,n,r,i={}){const a=i.public||[],o=(0,en.graph)(),s=(0,en.Namespace)("http://www.w3.org/ns/auth/acl#");let c=o.sym(`${r}#a1`);const l=o.sym(r),u=o.sym(e);if(o.add(c,t.rdf("type"),s("Authorization"),l),o.add(c,s("accessTo"),u,l),i.defaultForNew&&o.add(c,s("default"),u,l),o.add(c,s("agent"),n,l),o.add(c,s("mode"),s("Read"),l),o.add(c,s("mode"),s("Write"),l),o.add(c,s("mode"),s("Control"),l),a.length){c=o.sym(`${r}#a2`),o.add(c,t.rdf("type"),s("Authorization"),l),o.add(c,s("accessTo"),u,l),o.add(c,s("agentClass"),t.foaf("Agent"),l);for(let e=0;e<a.length;e++)o.add(c,s("mode"),s(a[e]),l)}return(0,en.serialize)(l,o,r)}return{findAclDocUrl:async function(t){await e.fetcher.load(t);const n=e.any(t,rn);if(!n)throw new Error(`No ACL link discovered for ${t}`);return n.value},setACLUserPublic:function(t,r,i){const a=e.any(e.sym(t),rn);return Promise.resolve().then(()=>a||function(t){const n=e.fetcher;if(!n)throw new Error("Cannot fetch ACL rel, store has no fetcher");return n.load(t).then(n=>{if(!n.ok)throw new Error("fetchACLRel: While loading:"+n.error);const r=e.any(e.sym(t),rn);if(!r)throw new Error("fetchACLRel: No Link rel=ACL header for "+t);return r})}(t).catch(e=>{throw new Error(`Error fetching rel=ACL header for ${t}: ${e}`)})).then(a=>{const o=n(t,r,a.uri,i);if(!e.fetcher)throw new Error("Cannot PUT this, store has no fetcher");return e.fetcher.webOperation("PUT",a.uri,{data:o,contentType:"text/turtle"}).then(e=>{if(!e.ok)throw new Error("Error writing ACL text: "+e.error);return a})})},genACLText:n}}const on=()=>{let{SolidAppContext:e}=window;if(e||(e={}),e.viewingNoAuthPage=!1,e.noAuth&&window.document){if(window.document.location.href.startsWith(e.noAuth)){e.viewingNoAuthPage=!0;const t=new URLSearchParams(window.document.location.search);if(t){let n=e.viewedPage=t.get("uri")||null;if(n&&(n=decodeURI(n),!n.startsWith(e.noAuth))){const t=n.split(/\//);e.idp=t[0]+"//"+t[2],e.viewingNoAuthPage=!1}}}}return e};function sn(){const{$SolidTestEnvironment:e}=window;if(void 0!==e&&e.username)return e.username,(0,en.sym)(e.username);if("undefined"!=typeof document&&document.location&&"http://localhost"===(""+document.location).slice(0,16)){const e=document.getElementById("appTarget");if(!e)return null;const t=e.getAttribute("testID");return t?(0,en.sym)(t):null}return null}class cn{constructor(e){this.session=e}get authSession(){return this.session}currentUser(){const e=on();return e.viewingNoAuthPage?(0,en.sym)(e.webId):this&&this.session&&this.session.info&&this.session.info.webId&&this.session.info.isLoggedIn?(0,en.sym)(this.session.info.webId):sn()}async checkUser(e){const t=new URL(window.location.href).hash;t&&window.localStorage.setItem("preLoginRedirectHash",t),this.session.events.on(Ve,e=>{document.location.toString()!==e&&history.replaceState(null,"",e)});const n=new URL(window.location.href);n.hash="",await this.session.handleIncomingRedirect({restorePreviousSession:!0,url:n.href});const r=window.localStorage.getItem("preLoginRedirectHash");if(r){const e=new URL(window.location.href);e.hash!==r&&(history.pushState?history.pushState(null,document.title,r):location.hash=r,e.hash=r),window.localStorage.setItem("preLoginRedirectHash","")}let i=sn();if(i)return Promise.resolve(e?e(i):i);const a=this.webIdFromSession(this.session.info);return a&&(i=this.saveUser(a)),Promise.resolve(e?e(i):i)}saveUser(e,t){let n;if(e){n="string"==typeof e?e:e.uri;const r=(0,en.namedNode)(n);return t&&(t.me=r),r}return null}webIdFromSession(e){return(null==e?void 0:e.webId)&&e.isLoggedIn?e.webId:null}}function ln(e){return(0,en.sym)(e.uri+"#id"+Date.now())}function un(e){return!e||`${window.location.origin}/`!==new URL(e.value).origin}const dn="index.ttl#this";function pn(e,t){const n=nn;async function r(t,n,r){await e.fetcher.load(t);const i=e.any(t,new en.NamedNode("http://www.iana.org/assignments/link-relations/acl"));if(!i)throw new Error("Chat ACL doc not found!");const a=`\n @prefix acl: <http://www.w3.org/ns/auth/acl#>.\n <#owner>\n a acl:Authorization;\n acl:agent <${n.value}>;\n acl:accessTo <.>;\n acl:default <.>;\n acl:mode\n acl:Read, acl:Write, acl:Control.\n <#invitee>\n a acl:Authorization;\n acl:agent <${r.value}>;\n acl:accessTo <.>;\n acl:default <.>;\n acl:mode\n acl:Read, acl:Append.\n `;await e.fetcher.webOperation("PUT",i.value,{data:a,contentType:"text/turtle"})}async function i(t,r){const i=e.any(r,n.solid("privateTypeIndex"));if(!i)throw new Error("Private type index not found!");await e.fetcher.load(i);const a=ln(i),o=[(0,en.st)(a,n.rdf("type"),n.solid("TypeRegistration"),i.doc()),(0,en.st)(a,n.solid("forClass"),n.meeting("LongChat"),i.doc()),(0,en.st)(a,n.solid("instance"),t,i.doc())];await new Promise((t,n)=>{e.updater.update([],o,function(e,r,i){r?t(null):n(new Error(i))})})}async function a(n){const r=await t.loadMe(),i=function(e,t){const n=new URL(`IndividualChats/${new URL(e.value).host}/`,t.value).toString();return new en.NamedNode(n)}(n,await t.getPodRoot(r));let a=!0;try{await e.fetcher.load(new en.NamedNode(i.value+"index.ttl#this"))}catch(e){a=!1}return{me:r,chatContainer:i,exists:a}}async function o(e,t){return(await s({me:t,newBase:e.value})).newInstance}function s(t){const r=e,i=r.updater;if(t.me&&!t.me.uri)throw new Error("chat mintNew: Invalid userid "+t.me);const a=t.newInstance=t.newInstance||r.sym(t.newBase+dn),o=a.doc();return r.add(a,n.rdf("type"),n.meeting("LongChat"),o),r.add(a,n.dc("title"),"Chat channel",o),r.add(a,n.dc("created"),(0,en.term)(new Date(Date.now())),o),t.me&&r.add(a,n.dc("author"),t.me,o),new Promise(function(e,n){null==i||i.put(o,r.statementsMatching(void 0,void 0,void 0,o),"text/turtle",function(r,i,o){i?e({...t,newInstance:a}):n(new Error("FAILED to save new chat channel at: "+r+" : "+o))})})}async function c(t,r){var i;await e.fetcher.load(t.doc());const a=e.any(t,n.ldp("inbox"),void 0,t.doc());if(!a)throw new Error(`Invitee inbox not found! ${t.value}`);const o=`\n <> a <http://www.w3.org/ns/pim/meeting#LongChatInvite> ;\n ${n.rdf("seeAlso")} <${r.value}> .\n `,s=await(null===(i=e.fetcher)||void 0===i?void 0:i.webOperation("POST",a.value,{data:o,contentType:"text/turtle"}));if(!(null==s?void 0:s.headers.get("location")))throw new Error(`Invite sending returned a ${null==s?void 0:s.status}`)}return{setAcl:r,addToPrivateTypeIndex:i,findChat:a,createChatThing:o,getChat:async function(e,t=!0){const{me:n,chatContainer:s,exists:l}=await a(e);if(l)return new en.NamedNode(s.value+dn);if(t){const t=await o(s,n);return await c(e,t),await r(s,n,e),await i(t,n),t}return null},sendInvite:c,mintNew:s}}function fn(e,t,n,r,i){return{createInboxFor:async function(e,i){const a=await t.loadMe(),o=`${(await t.getPodRoot(a)).value}p2p-inboxes/${encodeURIComponent(i)}/`;return await r.createContainer(o),await n.setSinglePeerAccess({ownerWebId:a.value,peerWebId:e,accessToModes:"acl:Append",target:o}),o},getNewMessages:async function(e){e||(e=await t.loadMe());const n=await t.getMainInbox(e);return(await r.getContainerMembers(n)).filter(e=>!r.isContainer(e))},markAsRead:async function(t,n){const r=await e.fetcher._fetch(t);if(200!==r.status)throw new Error(`Not OK! ${t}`);const i=function(e,t){const n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),i=("0"+t.getUTCDate()).slice(-2),a=e.split("/"),o=a[a.length-1];return new URL(`./archive/${n}/${r}/${i}/${o}`,e).toString()}(t,n),a={method:"PUT",body:await r.text(),headers:[["Content-Type",r.headers.get("Content-Type")||"application/octet-stream"]]};"2"===(await e.fetcher._fetch(i,a)).status.toString()[0]&&await e.fetcher._fetch(t,{method:"DELETE"})}}}class hn extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype),this.name=new.target.name}}class mn extends hn{}class gn extends hn{}class vn extends hn{}class bn extends hn{}class yn extends hn{}class wn extends hn{}class xn extends hn{constructor(e,t){super(t),this.status=e}}function An(e,t,n){const r=nn;async function i(t){await a(t);const i=function(e){const t=e.uri.replace("/profile/","/").replace("/public/","/").split("/").slice(0,-1).join("/")+"/Settings/Preferences.ttl";return(0,en.sym)(t)}(t);let o;try{o=await n.followOrCreateLink(t,r.space("preferencesFile"),i,t.doc())}catch(e){if(e instanceof yn)throw e;if(e instanceof wn)throw e;if(e instanceof mn)throw e;if(e instanceof gn)throw e;if(e instanceof vn)throw e;if(e instanceof xn)throw e;throw e}try{await e.fetcher.load(o)}catch(e){const n=`Unable to load preference of user ${t}: ${e}`;if(401===e.response.status)throw new mn;if(403===e.response.status){if(un(o))throw new gn;throw new vn}throw new Error(n)}return o}async function a(t){if(!t)throw new Error("loadProfile: no user given.");try{await e.fetcher.load(t.doc())}catch(e){throw new Error(`Unable to load profile of user ${t}: ${e}`)}return t.doc()}function o(t){return e.any(t,r.space("storage"),void 0,t.doc())}return{loadMe:async function(){const n=t.currentUser();if(null===n)throw new Error("Current user not found! Not logged in?");return await e.fetcher.load(n.doc()),n},getPodRoot:function(e){const t=o(e);if(!t)throw new Error("User pod root not found!");return t},getMainInbox:async function(t){await e.fetcher.load(t);const n=e.any(t,r.ldp("inbox"),void 0,t.doc());if(!n)throw new Error("User main inbox not found!");return n},findStorage:o,loadPreferences:i,loadProfile:a,silencedLoadPreferences:async function(e){try{return await i(e)}catch(e){return}}}}function Cn(e,t,n,r){const i=nn;function a(e){return!!e&&(e.startsWith("https://")||e.startsWith("http://"))}async function o(t){if(!t)throw new Error("loadTypeIndexesFor: No user given");const a=await n.loadProfile(t);let o,s=null;try{s=p(t)}catch(e){}try{o=e.any(t,i.solid("publicTypeIndex"),void 0,a)||(s?await r.followOrCreateLink(t,i.solid("publicTypeIndex"),s,a):null)}catch(e){}const c=o?[{label:"public",index:o,agent:t}]:[];let l,u;try{l=await n.silencedLoadPreferences(t)}catch(e){l=null}if(l){let n,o=null;try{o=f(l)}catch(e){}try{n=e.any(t,i.solid("privateTypeIndex"),void 0,a)||(o?await r.followOrCreateLink(t,i.solid("privateTypeIndex"),o,l):null)}catch(e){}u=n?[{label:"private",index:n,agent:t}]:[]}else u=[];const d=c.concat(u);if(0===d.length)return d;const h=d.map(e=>e.index);try{await e.fetcher.load(h)}catch(e){}return d}async function c(t){let r;try{r=await n.silencedLoadPreferences(t)}catch(e){}if(r){const n=e.each(t,i.solid("community"),void 0,r).concat(e.each(t,i.solid("community"),void 0,t.doc()));let c=[];for(const e of n)if("NamedNode"===e.termType&&a(e.uri))try{c=c.concat(await o(e))}catch(t){s(e.uri)}else s();return c}return[]}async function l(e){return(await o(e)).concat(await c(e))}async function u(e,t){const n=await l(t);let r=[];for(const t of n){const n=await h(t,e);r=r.concat(n)}return r}function d(e){const t=e.doc(),n=t.dir();if((null==n?void 0:n.uri)&&a(n.uri))return n.uri;const r=t.uri;if(!r||!a(r))return null==e||e.uri,null;const i=r.split("#")[0],o=i.lastIndexOf("/");return-1===o?null:i.slice(0,o+1)}function p(e){const t=d(e);if(!t)throw new Error(`suggestPublicTypeIndex: Cannot derive directory for ${e.uri}`);return(0,en.sym)(t+"publicTypeIndex.ttl")}function f(e){const t=d(e);if(!t)throw new Error(`suggestPrivateTypeIndex: Cannot derive directory for ${e.uri}`);return(0,en.sym)(t+"privateTypeIndex.ttl")}async function h(t,n){const r=t.index,a=[],o=e.statementsMatching(null,i.solid("instance"),null,r).concat(e.statementsMatching(null,i.solid("instanceContainer"),null,r)).map(e=>e.subject);for(const s of o){const o=e.any(s,i.solid("forClass"),null,r);if(!n||o.sameTerm(n)){const n=e.each(s,i.solid("instance"),null,r);for(const e of n)a.push({instance:e,type:o,scope:t});const c=e.each(s,i.solid("instanceContainer"),null,r);for(const n of c)await e.fetcher.load(n),a.push({instance:(0,en.sym)(n.value),type:o,scope:t})}}return a}return{registerInTypeIndex:async function(t,n,r){const a=ln(n),o=[(0,en.st)(a,i.rdf("type"),i.solid("TypeRegistration"),n),(0,en.st)(a,i.solid("forClass"),r,n),(0,en.st)(a,i.solid("instance"),t,n)];try{await e.updater.update([],o)}catch(e){return null}return a},getRegistrations:function(t,n){return e.each(void 0,i.solid("instance"),t).filter(t=>e.holds(t,i.solid("forClass"),n))},loadTypeIndexesFor:o,loadCommunityTypeIndexes:c,loadAllTypeIndexes:l,getScopedAppInstances:u,getAppInstances:async function(e){const n=t.currentUser();if(!n)throw new Error("getAppInstances: Must be logged in to find apps.");return(await u(e,n)).map(e=>e.instance)},suggestPublicTypeIndex:p,suggestPrivateTypeIndex:f,deleteTypeIndexRegistration:async function(t){const n=e.the(null,i.solid("instance"),t.instance,t.scope.index);if(!n)throw new Error(`deleteTypeIndexRegistration: No registration found for ${t.instance}`);const r=e.statementsMatching(n,null,null,t.scope.index);await e.updater.update(r,[])},getScopedAppsFromIndex:h}}function En(e,t){const n=en.graph();en.fetcher(n,{fetch:e.fetch}),n.updater=new en.UpdateManager(n),n.features=[];const r=new cn(t),i=an(n),a=function(e){function t(t){return e.statementsMatching(t,(0,en.sym)("http://www.w3.org/ns/ldp#contains"),void 0).map(e=>e.object)}function n(e){const t=e.value;return"/"===t.charAt(t.length-1)}return{isContainer:n,createContainer:async function(t){if(!n((0,en.sym)(t)))throw new Error(`Not a container URL ${t}`);const r=await e.fetcher._fetch(t,{method:"PUT",headers:{"Content-Type":"text/turtle","If-None-Match":"*",Link:'<http://www.w3.org/ns/ldp#BasicContainer>; rel="type"'},body:" "});if("2"!==r.status.toString()[0])throw new Error(`Not OK: got ${r.status} response while creating container at ${t}`)},getContainerElements:t,getContainerMembers:async function(n){return await e.fetcher.load(n),t(n)}}}(n),o=function(e,t,n){async function r(t){let n;try{n=await e.fetcher.load(t)}catch(n){if(404!==n.response.status){if(401===n.response.status)throw new mn;if(403===n.response.status){if(un(t))throw new gn;throw new vn}const e="createIfNotExists doc load error NOT 404: "+t+": "+n;throw new xn(n.status,n.message+e)}try{await e.fetcher.webOperation("PUT",t,{data:"",contentType:"text/turtle"})}catch(e){throw new wn("createIfNotExists: PUT FAILED: "+t+": "+e)}await e.fetcher.load(t)}return n}return{recursiveDelete:async function r(i){try{if(n.isContainer(i)){const a=await t.findAclDocUrl(i);await e.fetcher._fetch(a,{method:"DELETE"});const o=await n.getContainerMembers(i);await Promise.all(o.map(e=>r(e)))}const a=i.value;return e.fetcher._fetch(a,{method:"DELETE"})}catch(e){i.value}},setSinglePeerAccess:async function(n){let r=["@prefix acl: <http://www.w3.org/ns/auth/acl#>.","",`<#alice> a acl:Authorization;\n acl:agent <${n.ownerWebId}>;`,` acl:accessTo <${n.target}>;`,` acl:default <${n.target}>;`," acl:mode acl:Read, acl:Write, acl:Control.",""].join("\n");n.accessToModes&&(r+=["<#bobAccessTo> a acl:Authorization;",` acl:agent <${n.peerWebId}>;`,` acl:accessTo <${n.target}>;`,` acl:mode ${n.accessToModes}.`,""].join("\n")),n.defaultModes&&(r+=["<#bobDefault> a acl:Authorization;",` acl:agent <${n.peerWebId}>;`,` acl:default <${n.target}>;`,` acl:mode ${n.defaultModes}.`,""].join("\n"));const i=await t.findAclDocUrl((0,en.sym)(n.target));return e.fetcher._fetch(i,{method:"PUT",body:r,headers:[["Content-Type","text/turtle"]]})},createEmptyRdfDoc:async function(t,n){await e.fetcher.webOperation("PUT",t.uri,{data:`# ${new Date} ${n}\n `,contentType:"text/turtle"})},followOrCreateLink:async function(t,n,i,a){await e.fetcher.load(a);const o=e.any(t,n,null,a);if(o)return o;if(!e.updater.editable(a)){const e=`followOrCreateLink: cannot edit ${a.value}`;throw new yn(e)}try{await e.updater.update([],[(0,en.st)(t,n,i,a)])}catch(e){throw new wn(e)}try{await r(i)}catch(e){throw e}return i},loadOrCreateIfNotExists:r}}(n,i,a),s=An(n,r,o),c=pn(n,s),l=fn(n,s,o,a),u=Cn(n,r,s,o);return{store:n,authn:r,acl:i,inbox:l,chat:c,profile:s,typeIndex:u,load:function(e){return n.fetcher.load(e)},updatePromise:function(e,t=[]){return new Promise((r,i)=>{n.updater.update(e,t,function(e,t,n){t?r():i(new Error(n))})})},clearStore:function(){n.statements.slice().forEach(n.remove.bind(n))}}}const kn=async(e,t)=>{const n=t&&t.credentials&&"omit"==t.credentials;return Zt.info.webId&&!n?Zt.fetch(e,t):window.fetch(e,t)},_n=Symbol.for("solid-logic-singleton"),Sn="undefined"!=typeof window?window:o.g;const Tn=(Sn[_n]||(Sn[_n]=En({fetch:kn},Zt)),Sn[_n]),Pn=[{name:"Solid Community",uri:"https://solidcommunity.net"},{name:"Solid Web",uri:"https://solidweb.org"},{name:"Solid Web ME",uri:"https://solidweb.me"},{name:"Inrupt.com",uri:"https://login.inrupt.com"}];function Fn(){const e=[...Pn],{host:t,origin:n}=new URL(location.href),r=e.map(({uri:e})=>new URL(e).host);return r.includes(t)||r.some(e=>function(e,t){const n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(t,e))||e.unshift({name:t,uri:n}),e}const Rn=Tn.authn,In=Tn.authn.authSession,Bn=Tn.store},1813(e){"use strict";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}}')}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=a,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var i=Object.create(null);s.r(i);var a={};t=t||[null,n({}),n([]),n(n)];for(var o=2&r&&e;("object"==typeof o||"function"==typeof o)&&!~t.indexOf(o);o=n(o))Object.getOwnPropertyNames(o).forEach(t=>a[t]=()=>e[t]);return a.default=()=>e,s.d(i,a),i},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,n)=>(s.f[n](e,t),t),[])),s.u=e=>e+".mashlib.min.js",s.miniCssF=e=>{},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.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),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},i="Mashlib:",s.l=(e,t,n,a)=>{if(r[e])r[e].push(t);else{var o,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){o=d;break}}o||(c=!0,(o=document.createElement("script")).charset="utf-8",s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-webpack",i+n),o.src=e),r[e]=[t];var p=(t,n)=>{o.onerror=o.onload=null,clearTimeout(f);var i=r[e];if(delete r[e],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach(e=>e(n)),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.bind(null,o.onload),c&&document.head.appendChild(o)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.p="/",(()=>{var e={792:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((n,i)=>r=e[t]=[n,i]);n.push(r[2]=i);var a=s.p+s.u(t),o=new Error;s.l(a,n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",o.name="ChunkLoadError",o.type=i,o.request=a,r[1](o)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[a,o,c]=n,l=0;if(a.some(t=>0!==e[t])){for(r in o)s.o(o,r)&&(s.m[r]=o[r]);if(c)c(s)}for(t&&t(n);l<a.length;l++)i=a[l],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkMashlib=self.webpackChunkMashlib||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var c={};return(()=>{"use strict";s.r(c),s.d(c,{versionInfo:()=>r});var e=s(8230),t=s(7523),n=s(9332);const r={buildTime:"2026-03-27T19:14:31Z",commit:"58f481972f7df15d05fb3971e29e58ea75514c28",npmInfo:{mashlib:"2.1.4",npm:"11.12.1",node:"22.22.1",acorn:"8.15.0",ada:"2.9.2",amaro:"1.1.5",ares:"1.34.6",brotli:"1.1.0",cjs_module_lexer:"2.2.0",cldr:"48.0",icu:"78.2",llhttp:"9.3.0",modules:"127",napi:"10",nbytes:"0.1.1",ncrypto:"0.0.1",nghttp2:"1.64.0",openssl:"3.5.5",simdjson:"4.2.4",simdutf:"6.4.2",sqlite:"3.51.2",tz:"2025c",undici:"6.23.0",unicode:"17.0",uv:"1.51.0",uvwasi:"0.0.23",v8:"12.4.254.21-node.35",zlib:"1.3.1-e00f703",zstd:"1.5.7"}},i=window,a=()=>{const e=localStorage.getItem("mashlib-theme"),t=window.matchMedia("(prefers-color-scheme: dark)").matches;"dark"===(e||(t?"dark":"light"))?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.removeAttribute("data-theme")};a(),i.$rdf=e,i.panes=t,i.SolidLogic={authn:n.authn,authSession:n.authSession,store:n.store,solidLogicSingleton:n.solidLogicSingleton},i.mashlib={versionInfo:r,theme:{set:e=>{"dark"===e?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.removeAttribute("data-theme"),localStorage.setItem("mashlib-theme",e)},get:()=>"dark"===document.documentElement.getAttribute("data-theme")?"dark":"light",init:a}},i.panes.runDataBrowser=function(r){e.Fetcher.crossSiteProxyTemplate=window.origin+"/xss/?uri={uri}";try{const e=document.createElement("meta");e.setAttribute("name","monetization"),e.setAttribute("content",`$${window.location.host}`),document.head.appendChild(e)}catch(e){}n.authn.checkUser().then(function(e){return t.initMainPage(n.solidLogicSingleton.store,r)})},window.onpopstate=function(t){i.document.outline.GotoSubject(e.sym(window.document.location.href),!0,void 0,!0,void 0)}})(),c})());
460
+ t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,a=f&(1<<-u)-1,f>>=-u,u+=s;u>0;a=256*a+e[t+d],d+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=p,u-=8);if(0===a)a=1-l;else{if(a===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),a-=l}return(f?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,c,l=8*a-i-1,u=(1<<l)-1,d=u>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:a-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+f]=255&s,f+=h,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+f]=255&o,f+=h,o/=256,l-=8);e[n+f-h]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.jws,n=e.KeyUtil,i=e.X509,a=e.crypto,o=e.hextob64u,s=e.b64tohex,c=e.AllowedSigningAlgs;return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.parseJwt=function e(n){r.Log.debug("JoseUtil.parseJwt");try{var i=t.JWS.parse(n);return{header:i.headerObj,payload:i.payloadObj}}catch(e){r.Log.error(e)}},e.validateJwt=function(t,a,o,c,l,u,d){r.Log.debug("JoseUtil.validateJwt");try{if("RSA"===a.kty)if(a.e&&a.n)a=n.getKey(a);else{if(!a.x5c||!a.x5c.length)return r.Log.error("JoseUtil.validateJwt: RSA key missing key material",a),Promise.reject(new Error("RSA key missing key material"));var p=s(a.x5c[0]);a=i.getPublicKeyFromCertHex(p)}else{if("EC"!==a.kty)return r.Log.error("JoseUtil.validateJwt: Unsupported key type",a&&a.kty),Promise.reject(new Error(a.kty));if(!(a.crv&&a.x&&a.y))return r.Log.error("JoseUtil.validateJwt: EC key missing key material",a),Promise.reject(new Error("EC key missing key material"));a=n.getKey(a)}return e._validateJwt(t,a,o,c,l,u,d)}catch(e){return r.Log.error(e&&e.message||e),Promise.reject("JWT validation failed")}},e.validateJwtAttributes=function(t,n,i,a,o,s){a||(a=0),o||(o=parseInt(Date.now()/1e3));var c=e.parseJwt(t).payload;if(!c.iss)return r.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(c.iss!==n)return r.Log.error("JoseUtil._validateJwt: Invalid issuer in token",c.iss),Promise.reject(new Error("Invalid issuer in token: "+c.iss));if(!c.aud)return r.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(c.aud===i||Array.isArray(c.aud)&&c.aud.indexOf(i)>=0))return r.Log.error("JoseUtil._validateJwt: Invalid audience in token",c.aud),Promise.reject(new Error("Invalid audience in token: "+c.aud));if(c.azp&&c.azp!==i)return r.Log.error("JoseUtil._validateJwt: Invalid azp in token",c.azp),Promise.reject(new Error("Invalid azp in token: "+c.azp));if(!s){var l=o+a,u=o-a;if(!c.iat)return r.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(l<c.iat)return r.Log.error("JoseUtil._validateJwt: iat is in the future",c.iat),Promise.reject(new Error("iat is in the future: "+c.iat));if(c.nbf&&l<c.nbf)return r.Log.error("JoseUtil._validateJwt: nbf is in the future",c.nbf),Promise.reject(new Error("nbf is in the future: "+c.nbf));if(!c.exp)return r.Log.error("JoseUtil._validateJwt: exp was not provided"),Promise.reject(new Error("exp was not provided"));if(c.exp<u)return r.Log.error("JoseUtil._validateJwt: exp is in the past",c.exp),Promise.reject(new Error("exp is in the past:"+c.exp))}return Promise.resolve(c)},e._validateJwt=function(n,i,a,o,s,l,u){return e.validateJwtAttributes(n,a,o,s,l,u).then(function(e){try{return t.JWS.verify(n,i,c)?e:(r.Log.error("JoseUtil._validateJwt: signature validation failed"),Promise.reject(new Error("signature validation failed")))}catch(e){return r.Log.error(e&&e.message||e),Promise.reject(new Error("signature validation failed"))}})},e.hashString=function e(t,n){try{return a.Util.hashString(t,n)}catch(e){r.Log.error(e)}},e.hexToBase64Url=function e(t){try{return o(t)}catch(e){r.Log.error(e)}},e}()};var r=n(0);e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SigninResponse=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(3);t.SigninResponse=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=i.UrlUtility.parseUrlFragment(t,n);this.error=r.error,this.error_description=r.error_description,this.error_uri=r.error_uri,this.code=r.code,this.state=r.state,this.id_token=r.id_token,this.session_state=r.session_state,this.access_token=r.access_token,this.token_type=r.token_type,this.scope=r.scope,this.profile=void 0,this.expires_in=r.expires_in}return r(e,[{key:"expires_in",get:function(){if(this.expires_at){var e=parseInt(Date.now()/1e3);return this.expires_at-e}},set:function(e){var t=parseInt(e);if("number"==typeof t&&t>0){var n=parseInt(Date.now()/1e3);this.expires_at=n+t}}},{key:"expired",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SignoutRequest=void 0;var r=n(0),i=n(3),a=n(9);t.SignoutRequest=function e(t){var n=t.url,o=t.id_token_hint,s=t.post_logout_redirect_uri,c=t.data,l=t.extraQueryParams,u=t.request_type;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!n)throw r.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var d in o&&(n=i.UrlUtility.addQueryParam(n,"id_token_hint",o)),s&&(n=i.UrlUtility.addQueryParam(n,"post_logout_redirect_uri",s),c&&(this.state=new a.State({data:c,request_type:u}),n=i.UrlUtility.addQueryParam(n,"state",this.state.id))),l)n=i.UrlUtility.addQueryParam(n,d,l[d]);this.url=n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SignoutResponse=void 0;var r=n(3);t.SignoutResponse=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=r.UrlUtility.parseUrlFragment(t,"?");this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.state=n.state}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.InMemoryWebStorage=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);t.InMemoryWebStorage=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._data={}}return e.prototype.getItem=function(e){return i.Log.debug("InMemoryWebStorage.getItem",e),this._data[e]},e.prototype.setItem=function(e,t){i.Log.debug("InMemoryWebStorage.setItem",e),this._data[e]=t},e.prototype.removeItem=function(e){i.Log.debug("InMemoryWebStorage.removeItem",e),delete this._data[e]},e.prototype.key=function(e){return Object.getOwnPropertyNames(this._data)[e]},r(e,[{key:"length",get:function(){return Object.getOwnPropertyNames(this._data).length}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UserManager=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(10),o=n(39),s=n(15),c=n(45),l=n(47),u=n(18),d=n(8),p=n(20),f=n(11),h=n(4);t.UserManager=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.SilentRenewService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.SessionMonitor,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:p.TokenRevocationClient,d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:f.TokenClient,m=arguments.length>5&&void 0!==arguments[5]?arguments[5]:h.JoseUtil;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),n instanceof o.UserManagerSettings||(n=new o.UserManagerSettings(n));var g=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return g._events=new c.UserManagerEvents(n),g._silentRenewService=new r(g),g.settings.automaticSilentRenew&&(i.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),g.startSilentRenew()),g.settings.monitorSession&&(i.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),g._sessionMonitor=new a(g)),g._tokenRevocationClient=new s(g._settings),g._tokenClient=new d(g._settings),g._joseUtil=m,g}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getUser=function(){var e=this;return this._loadUser().then(function(t){return t?(i.Log.info("UserManager.getUser: user loaded"),e._events.load(t,!1),t):(i.Log.info("UserManager.getUser: user not found in storage"),null)})},t.prototype.removeUser=function(){var e=this;return this.storeUser(null).then(function(){i.Log.info("UserManager.removeUser: user removed from storage"),e._events.unload()})},t.prototype.signinRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:r";var t={useReplaceToNavigate:e.useReplaceToNavigate};return this._signinStart(e,this._redirectNavigator,t).then(function(){i.Log.info("UserManager.signinRedirect: successful")})},t.prototype.signinRedirectCallback=function(e){return this._signinEnd(e||this._redirectNavigator.url).then(function(e){return e.profile&&e.profile.sub?i.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinRedirectCallback: no sub"),e})},t.prototype.signinPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:p";var t=e.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.display="popup",this._signin(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then(function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinPopup: no sub")),e})):(i.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},t.prototype.signinPopupCallback=function(e){return this._signinCallback(e,this._popupNavigator).then(function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinPopupCallback: no sub")),e}).catch(function(e){i.Log.error(e.message)})},t.prototype.signinSilent=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=Object.assign({},t),this._loadUser().then(function(n){return n&&n.refresh_token?(t.refresh_token=n.refresh_token,e._useRefreshToken(t)):(t.request_type="si:s",t.id_token_hint=t.id_token_hint||e.settings.includeIdTokenInSilentRenew&&n&&n.id_token,n&&e._settings.validateSubOnSilentRenew&&(i.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",n.profile.sub),t.current_sub=n.profile.sub),e._signinSilentIframe(t))})},t.prototype._useRefreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(t).then(function(t){return t?t.access_token?e._loadUser().then(function(n){if(n){var r=Promise.resolve();return t.id_token&&(r=e._validateIdTokenFromTokenRefreshToken(n.profile,t.id_token)),r.then(function(){return i.Log.debug("UserManager._useRefreshToken: refresh token response success"),n.id_token=t.id_token||n.id_token,n.access_token=t.access_token,n.refresh_token=t.refresh_token||n.refresh_token,n.expires_in=t.expires_in,e.storeUser(n).then(function(){return e._events.load(n),n})})}return null}):(i.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(i.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))})},t.prototype._validateIdTokenFromTokenRefreshToken=function(e,t){var n=this;return this._metadataService.getIssuer().then(function(r){return n.settings.getEpochTime().then(function(a){return n._joseUtil.validateJwtAttributes(t,r,n._settings.client_id,n._settings.clockSkew,a).then(function(t){return t?t.sub!==e.sub?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):t.auth_time&&t.auth_time!==e.auth_time?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):t.azp&&t.azp!==e.azp?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!t.azp&&e.azp?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))})})})},t.prototype._signinSilentIframe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.prompt=e.prompt||"none",this._signin(e,this._iframeNavigator,{startUrl:t,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinSilent: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinSilent: no sub")),e})):(i.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},t.prototype.signinSilentCallback=function(e){return this._signinCallback(e,this._iframeNavigator).then(function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinSilentCallback: no sub")),e})},t.prototype.signinCallback=function(e){var t=this;return this.readSigninResponseState(e).then(function(n){var r=n.state;return n.response,"si:r"===r.request_type?t.signinRedirectCallback(e):"si:p"===r.request_type?t.signinPopupCallback(e):"si:s"===r.request_type?t.signinSilentCallback(e):Promise.reject(new Error("invalid response_type in state"))})},t.prototype.signoutCallback=function(e,t){var n=this;return this.readSignoutResponseState(e).then(function(r){var i=r.state,a=r.response;return i?"so:r"===i.request_type?n.signoutRedirectCallback(e):"so:p"===i.request_type?n.signoutPopupCallback(e,t):Promise.reject(new Error("invalid response_type in state")):a})},t.prototype.querySessionStatus=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:s";var n=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return n?(t.redirect_uri=n,t.prompt="none",t.response_type=t.response_type||this.settings.query_status_response_type,t.scope=t.scope||"openid",t.skipUserInfo=!0,this._signinStart(t,this._iframeNavigator,{startUrl:n,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(t){return e.processSigninResponse(t.url).then(function(e){if(i.Log.debug("UserManager.querySessionStatus: got signin response"),e.session_state&&e.profile.sub)return i.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",e.profile.sub),{session_state:e.session_state,sub:e.profile.sub,sid:e.profile.sid};i.Log.info("querySessionStatus successful, user not authenticated")}).catch(function(t){if(t.session_state&&e.settings.monitorAnonymousSession&&("login_required"==t.message||"consent_required"==t.message||"interaction_required"==t.message||"account_selection_required"==t.message))return i.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:t.session_state};throw t})})):(i.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},t.prototype._signin=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(e,t,r).then(function(t){return n._signinEnd(t.url,e)})},t.prototype._signinStart=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.prepare(r).then(function(t){return i.Log.debug("UserManager._signinStart: got navigator window handle"),n.createSigninRequest(e).then(function(e){return i.Log.debug("UserManager._signinStart: got signin request"),r.url=e.url,r.id=e.state.id,t.navigate(r)}).catch(function(e){throw t.close&&(i.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),t.close()),e})})},t.prototype._signinEnd=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(e).then(function(e){i.Log.debug("UserManager._signinEnd: got signin response");var r=new s.User(e);if(n.current_sub){if(n.current_sub!==r.profile.sub)return i.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",r.profile.sub),Promise.reject(new Error("login_required"));i.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return t.storeUser(r).then(function(){return i.Log.debug("UserManager._signinEnd: user stored"),t._events.load(r),r})})},t.prototype._signinCallback=function(e,t){i.Log.debug("UserManager._signinCallback");var n="query"===this._settings.response_mode||!this._settings.response_mode&&d.SigninRequest.isCode(this._settings.response_type)?"?":"#";return t.callback(e,void 0,n)},t.prototype.signoutRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="so:r";var t=e.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;t&&(e.post_logout_redirect_uri=t);var n={useReplaceToNavigate:e.useReplaceToNavigate};return this._signoutStart(e,this._redirectNavigator,n).then(function(){i.Log.info("UserManager.signoutRedirect: successful")})},t.prototype.signoutRedirectCallback=function(e){return this._signoutEnd(e||this._redirectNavigator.url).then(function(e){return i.Log.info("UserManager.signoutRedirectCallback: successful"),e})},t.prototype.signoutPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="so:p";var t=e.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return e.post_logout_redirect_uri=t,e.display="popup",e.post_logout_redirect_uri&&(e.state=e.state||{}),this._signout(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then(function(){i.Log.info("UserManager.signoutPopup: successful")})},t.prototype.signoutPopupCallback=function(e,t){return void 0===t&&"boolean"==typeof e&&(t=e,e=null),this._popupNavigator.callback(e,t,"?").then(function(){i.Log.info("UserManager.signoutPopupCallback: successful")})},t.prototype._signout=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(e,t,r).then(function(e){return n._signoutEnd(e.url)})},t.prototype._signoutStart=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return arguments[1].prepare(n).then(function(r){return i.Log.debug("UserManager._signoutStart: got navigator window handle"),t._loadUser().then(function(a){return i.Log.debug("UserManager._signoutStart: loaded current user from storage"),(t._settings.revokeAccessTokenOnSignout?t._revokeInternal(a):Promise.resolve()).then(function(){var o=e.id_token_hint||a&&a.id_token;return o&&(i.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),e.id_token_hint=o),t.removeUser().then(function(){return i.Log.debug("UserManager._signoutStart: user removed, creating signout request"),t.createSignoutRequest(e).then(function(e){return i.Log.debug("UserManager._signoutStart: got signout request"),n.url=e.url,e.state&&(n.id=e.state.id),r.navigate(n)})})})}).catch(function(e){throw r.close&&(i.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),r.close()),e})})},t.prototype._signoutEnd=function(e){return this.processSignoutResponse(e).then(function(e){return i.Log.debug("UserManager._signoutEnd: got signout response"),e})},t.prototype.revokeAccessToken=function(){var e=this;return this._loadUser().then(function(t){return e._revokeInternal(t,!0).then(function(n){if(n)return i.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),t.access_token=null,t.refresh_token=null,t.expires_at=null,t.token_type=null,e.storeUser(t).then(function(){i.Log.debug("UserManager.revokeAccessToken: user stored"),e._events.load(t)})})}).then(function(){i.Log.info("UserManager.revokeAccessToken: access token revoked successfully")})},t.prototype._revokeInternal=function(e,t){var n=this;if(e){var r=e.access_token,a=e.refresh_token;return this._revokeAccessTokenInternal(r,t).then(function(e){return n._revokeRefreshTokenInternal(a,t).then(function(t){return e||t||i.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),e||t})})}return Promise.resolve(!1)},t.prototype._revokeAccessTokenInternal=function(e,t){return!e||e.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(e,t).then(function(){return!0})},t.prototype._revokeRefreshTokenInternal=function(e,t){return e?this._tokenRevocationClient.revoke(e,t,"refresh_token").then(function(){return!0}):Promise.resolve(!1)},t.prototype.startSilentRenew=function(){this._silentRenewService.start()},t.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},t.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then(function(e){return e?(i.Log.debug("UserManager._loadUser: user storageString loaded"),s.User.fromStorageString(e)):(i.Log.debug("UserManager._loadUser: no user storageString"),null)})},t.prototype.storeUser=function(e){if(e){i.Log.debug("UserManager.storeUser: storing user");var t=e.toStorageString();return this._userStore.set(this._userStoreKey,t)}return i.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},r(t,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),t}(a.OidcClient)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UserManagerSettings=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=(n(0),n(5)),a=n(40),o=n(41),s=n(43),c=n(6),l=n(1),u=n(8);t.UserManagerSettings=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.popup_redirect_uri,i=n.popup_post_logout_redirect_uri,d=n.popupWindowFeatures,p=n.popupWindowTarget,f=n.silent_redirect_uri,h=n.silentRequestTimeout,m=n.automaticSilentRenew,g=void 0!==m&&m,v=n.validateSubOnSilentRenew,b=void 0!==v&&v,y=n.includeIdTokenInSilentRenew,w=void 0===y||y,x=n.monitorSession,A=void 0===x||x,C=n.monitorAnonymousSession,E=void 0!==C&&C,k=n.checkSessionInterval,_=void 0===k?2e3:k,S=n.stopCheckSessionOnError,T=void 0===S||S,P=n.query_status_response_type,F=n.revokeAccessTokenOnSignout,R=void 0!==F&&F,I=n.accessTokenExpiringNotificationTime,B=void 0===I?60:I,N=n.redirectNavigator,L=void 0===N?new a.RedirectNavigator:N,O=n.popupNavigator,j=void 0===O?new o.PopupNavigator:O,D=n.iframeNavigator,M=void 0===D?new s.IFrameNavigator:D,U=n.userStore,z=void 0===U?new c.WebStorageStateStore({store:l.Global.sessionStorage}):U;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var H=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,arguments[0]));return H._popup_redirect_uri=r,H._popup_post_logout_redirect_uri=i,H._popupWindowFeatures=d,H._popupWindowTarget=p,H._silent_redirect_uri=f,H._silentRequestTimeout=h,H._automaticSilentRenew=g,H._validateSubOnSilentRenew=b,H._includeIdTokenInSilentRenew=w,H._accessTokenExpiringNotificationTime=B,H._monitorSession=A,H._monitorAnonymousSession=E,H._checkSessionInterval=_,H._stopCheckSessionOnError=T,P?H._query_status_response_type=P:arguments[0]&&arguments[0].response_type?H._query_status_response_type=u.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":H._query_status_response_type="id_token",H._revokeAccessTokenOnSignout=R,H._redirectNavigator=L,H._popupNavigator=j,H._iframeNavigator=M,H._userStore=z,H}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),t}(i.OidcClientSettings)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RedirectNavigator=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);t.RedirectNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(){return Promise.resolve(this)},e.prototype.navigate=function(e){return e&&e.url?(e.useReplaceToNavigate?window.location.replace(e.url):window.location=e.url,Promise.resolve()):(i.Log.error("RedirectNavigator.navigate: No url provided"),Promise.reject(new Error("No url provided")))},r(e,[{key:"url",get:function(){return window.location.href}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PopupNavigator=void 0;var r=n(0),i=n(42);t.PopupNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){var t=new i.PopupWindow(e);return Promise.resolve(t)},e.prototype.callback=function e(t,n,a){r.Log.debug("PopupNavigator.callback");try{return i.PopupWindow.notifyOpener(t,n,a),Promise.resolve()}catch(e){return Promise.reject(e)}},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PopupWindow=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(3);t.PopupWindow=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._promise=new Promise(function(e,t){n._resolve=e,n._reject=t});var r=t.popupWindowTarget||"_blank",a=t.popupWindowFeatures||"location=no,toolbar=no,width=500,height=500,left=100,top=100;";this._popup=window.open("",r,a),this._popup&&(i.Log.debug("PopupWindow.ctor: popup successfully created"),this._checkForPopupClosedTimer=window.setInterval(this._checkForPopupClosed.bind(this),500))}return e.prototype.navigate=function(e){return this._popup?e&&e.url?(i.Log.debug("PopupWindow.navigate: Setting URL in popup"),this._id=e.id,this._id&&(window["popupCallback_"+e.id]=this._callback.bind(this)),this._popup.focus(),this._popup.window.location=e.url):(this._error("PopupWindow.navigate: no url provided"),this._error("No url provided")):this._error("PopupWindow.navigate: Error opening popup window"),this.promise},e.prototype._success=function(e){i.Log.debug("PopupWindow.callback: Successful response from popup window"),this._cleanup(),this._resolve(e)},e.prototype._error=function(e){i.Log.error("PopupWindow.error: ",e),this._cleanup(),this._reject(new Error(e))},e.prototype.close=function(){this._cleanup(!1)},e.prototype._cleanup=function(e){i.Log.debug("PopupWindow.cleanup"),window.clearInterval(this._checkForPopupClosedTimer),this._checkForPopupClosedTimer=null,delete window["popupCallback_"+this._id],this._popup&&!e&&this._popup.close(),this._popup=null},e.prototype._checkForPopupClosed=function(){this._popup&&!this._popup.closed||this._error("Popup window closed")},e.prototype._callback=function(e,t){this._cleanup(t),e?(i.Log.debug("PopupWindow.callback success"),this._success({url:e})):(i.Log.debug("PopupWindow.callback: Invalid response from popup"),this._error("Invalid response from popup"))},e.notifyOpener=function(e,t,n){if(window.opener){if(e=e||window.location.href){var r=a.UrlUtility.parseUrlFragment(e,n);if(r.state){var o="popupCallback_"+r.state,s=window.opener[o];s?(i.Log.debug("PopupWindow.notifyOpener: passing url message to opener"),s(e,t)):i.Log.warn("PopupWindow.notifyOpener: no matching callback found on opener")}else i.Log.warn("PopupWindow.notifyOpener: no state found in response url")}}else i.Log.warn("PopupWindow.notifyOpener: no window.opener. Can't complete notification.")},r(e,[{key:"promise",get:function(){return this._promise}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IFrameNavigator=void 0;var r=n(0),i=n(44);t.IFrameNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){var t=new i.IFrameWindow(e);return Promise.resolve(t)},e.prototype.callback=function e(t){r.Log.debug("IFrameNavigator.callback");try{return i.IFrameWindow.notifyParent(t),Promise.resolve()}catch(e){return Promise.reject(e)}},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IFrameWindow=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);t.IFrameWindow=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._promise=new Promise(function(e,t){n._resolve=e,n._reject=t}),this._boundMessageEvent=this._message.bind(this),window.addEventListener("message",this._boundMessageEvent,!1),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.width=0,this._frame.height=0,window.document.body.appendChild(this._frame)}return e.prototype.navigate=function(e){if(e&&e.url){var t=e.silentRequestTimeout||1e4;i.Log.debug("IFrameWindow.navigate: Using timeout of:",t),this._timer=window.setTimeout(this._timeout.bind(this),t),this._frame.src=e.url}else this._error("No url provided");return this.promise},e.prototype._success=function(e){this._cleanup(),i.Log.debug("IFrameWindow: Successful response from frame window"),this._resolve(e)},e.prototype._error=function(e){this._cleanup(),i.Log.error(e),this._reject(new Error(e))},e.prototype.close=function(){this._cleanup()},e.prototype._cleanup=function(){this._frame&&(i.Log.debug("IFrameWindow: cleanup"),window.removeEventListener("message",this._boundMessageEvent,!1),window.clearTimeout(this._timer),window.document.body.removeChild(this._frame),this._timer=null,this._frame=null,this._boundMessageEvent=null)},e.prototype._timeout=function(){i.Log.debug("IFrameWindow.timeout"),this._error("Frame window timed out")},e.prototype._message=function(e){if(i.Log.debug("IFrameWindow.message"),this._timer&&e.origin===this._origin&&e.source===this._frame.contentWindow&&"string"==typeof e.data&&(e.data.startsWith("http://")||e.data.startsWith("https://"))){var t=e.data;t?this._success({url:t}):this._error("Invalid response from frame")}},e.notifyParent=function(e){i.Log.debug("IFrameWindow.notifyParent"),(e=e||window.location.href)&&(i.Log.debug("IFrameWindow.notifyParent: posting url message to parent"),window.parent.postMessage(e,location.protocol+"//"+location.host))},r(e,[{key:"promise",get:function(){return this._promise}},{key:"_origin",get:function(){return location.protocol+"//"+location.host}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UserManagerEvents=void 0;var r=n(0),i=n(16),a=n(17);t.UserManagerEvents=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._userLoaded=new a.Event("User loaded"),r._userUnloaded=new a.Event("User unloaded"),r._silentRenewError=new a.Event("Silent renew error"),r._userSignedIn=new a.Event("User signed in"),r._userSignedOut=new a.Event("User signed out"),r._userSessionChanged=new a.Event("User session changed"),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.load=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];r.Log.debug("UserManagerEvents.load"),e.prototype.load.call(this,t),n&&this._userLoaded.raise(t)},t.prototype.unload=function(){r.Log.debug("UserManagerEvents.unload"),e.prototype.unload.call(this),this._userUnloaded.raise()},t.prototype.addUserLoaded=function(e){this._userLoaded.addHandler(e)},t.prototype.removeUserLoaded=function(e){this._userLoaded.removeHandler(e)},t.prototype.addUserUnloaded=function(e){this._userUnloaded.addHandler(e)},t.prototype.removeUserUnloaded=function(e){this._userUnloaded.removeHandler(e)},t.prototype.addSilentRenewError=function(e){this._silentRenewError.addHandler(e)},t.prototype.removeSilentRenewError=function(e){this._silentRenewError.removeHandler(e)},t.prototype._raiseSilentRenewError=function(e){r.Log.debug("UserManagerEvents._raiseSilentRenewError",e.message),this._silentRenewError.raise(e)},t.prototype.addUserSignedIn=function(e){this._userSignedIn.addHandler(e)},t.prototype.removeUserSignedIn=function(e){this._userSignedIn.removeHandler(e)},t.prototype._raiseUserSignedIn=function(){r.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},t.prototype.addUserSignedOut=function(e){this._userSignedOut.addHandler(e)},t.prototype.removeUserSignedOut=function(e){this._userSignedOut.removeHandler(e)},t.prototype._raiseUserSignedOut=function(){r.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},t.prototype.addUserSessionChanged=function(e){this._userSessionChanged.addHandler(e)},t.prototype.removeUserSessionChanged=function(e){this._userSessionChanged.removeHandler(e)},t.prototype._raiseUserSessionChanged=function(){r.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},t}(i.AccessTokenEvents)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(1),o=n(17);t.Timer=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Global.timer,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return o._timer=r,o._nowFunc=i||function(){return Date.now()/1e3},o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.init=function(e){e<=0&&(e=1),e=parseInt(e);var t=this.now+e;if(this.expiration===t&&this._timerHandle)i.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),i.Log.debug("Timer.init timer "+this._name+" for duration:",e),this._expiration=t;var n=5;e<n&&(n=e),this._timerHandle=this._timer.setInterval(this._callback.bind(this),1e3*n)}},t.prototype.cancel=function(){this._timerHandle&&(i.Log.debug("Timer.cancel: ",this._name),this._timer.clearInterval(this._timerHandle),this._timerHandle=null)},t.prototype._callback=function(){var t=this._expiration-this.now;i.Log.debug("Timer.callback; "+this._name+" timer expires in:",t),this._expiration<=this.now&&(this.cancel(),e.prototype.raise.call(this))},r(t,[{key:"now",get:function(){return parseInt(this._nowFunc())}},{key:"expiration",get:function(){return this._expiration}}]),t}(o.Event)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SilentRenewService=void 0;var r=n(0);t.SilentRenewService=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._userManager=t}return e.prototype.start=function(){this._callback||(this._callback=this._tokenExpiring.bind(this),this._userManager.events.addAccessTokenExpiring(this._callback),this._userManager.getUser().then(function(e){}).catch(function(e){r.Log.error("SilentRenewService.start: Error from getUser:",e.message)}))},e.prototype.stop=function(){this._callback&&(this._userManager.events.removeAccessTokenExpiring(this._callback),delete this._callback)},e.prototype._tokenExpiring=function(){var e=this;this._userManager.signinSilent().then(function(e){r.Log.debug("SilentRenewService._tokenExpiring: Silent token renewal successful")},function(t){r.Log.error("SilentRenewService._tokenExpiring: Error from signinSilent:",t.message),e._userManager.events._raiseSilentRenewError(t)})},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CordovaPopupNavigator=void 0;var r=n(21);t.CordovaPopupNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){var t=new r.CordovaPopupWindow(e);return Promise.resolve(t)},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CordovaIFrameNavigator=void 0;var r=n(21);t.CordovaIFrameNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){e.popupWindowFeatures="hidden=yes";var t=new r.CordovaPopupWindow(e);return Promise.resolve(t)},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Version="1.11.6"}])},e.exports=t()},7(e){var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,n)}(e,i,{once:!0})})},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var o=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,a,o;if(s(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"==typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=c(e))>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,console&&console.warn}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(a){r.once&&e.removeEventListener(t,i),n(a)})}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,a=this._events;if(void 0!==a)i=i&&void 0===a.error;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var c=a[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var l=c.length,u=h(c,l);for(n=0;n<l;++n)r(u[n],this,t)}return!0},a.prototype.addListener=function(e,t){return l(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return l(this,e,t,!0)},a.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,i,a,o;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return p(this,e,!0)},a.prototype.rawListeners=function(e){return p(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},a.prototype.listenerCount=f,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},386(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 r in t){const i=t[r];n[r]=function(t=""){return e.namedNode(i+t)}}return n}}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e].call(n.exports,n,n.exports,o),n.exports}function s(...e){}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const c=new TextEncoder,l=new TextDecoder;function u(...e){const t=e.reduce((e,{length:t})=>e+t,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}const d=e=>(e=>{let t=e;"string"==typeof t&&(t=c.encode(t));const n=[];for(let e=0;e<t.length;e+=32768)n.push(String.fromCharCode.apply(null,t.subarray(e,e+32768)));return btoa(n.join(""))})(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),p=e=>{let t=e;t instanceof Uint8Array&&(t=l.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return(e=>{const t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n})(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class f extends Error{constructor(e,t){super(e,t),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}f.code="ERR_JOSE_GENERIC";class h extends f{constructor(e,t,n="unspecified",r="unspecified"){super(e,{cause:{claim:n,reason:r,payload:t}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=n,this.reason=r,this.payload=t}}h.code="ERR_JWT_CLAIM_VALIDATION_FAILED";class m extends f{constructor(e,t,n="unspecified",r="unspecified"){super(e,{cause:{claim:n,reason:r,payload:t}}),this.code="ERR_JWT_EXPIRED",this.claim=n,this.reason=r,this.payload=t}}m.code="ERR_JWT_EXPIRED";class g extends f{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}g.code="ERR_JOSE_ALG_NOT_ALLOWED";class v extends f{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}v.code="ERR_JOSE_NOT_SUPPORTED";(class extends f{constructor(e="decryption operation failed",t){super(e,t),this.code="ERR_JWE_DECRYPTION_FAILED"}}).code="ERR_JWE_DECRYPTION_FAILED";(class extends f{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}).code="ERR_JWE_INVALID";class b extends f{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}b.code="ERR_JWS_INVALID";class y extends f{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}y.code="ERR_JWT_INVALID";(class extends f{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}).code="ERR_JWK_INVALID";class w extends f{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}w.code="ERR_JWKS_INVALID";class x extends f{constructor(e="no applicable key found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_NO_MATCHING_KEY"}}x.code="ERR_JWKS_NO_MATCHING_KEY";class A extends f{constructor(e="multiple matching keys found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}Symbol.asyncIterator,A.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";class C extends f{constructor(e="request timed out",t){super(e,t),this.code="ERR_JWKS_TIMEOUT"}}C.code="ERR_JWKS_TIMEOUT";class E extends f{constructor(e="signature verification failed",t){super(e,t),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}function k(e,t){const n=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:n,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:n,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:n,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:n,name:"ECDSA",namedCurve:t.namedCurve};case"Ed25519":return{name:"Ed25519"};case"EdDSA":return{name:t.name};default:throw new v(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}E.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";const _=crypto,S=e=>e instanceof CryptoKey,T=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){const{modulusLength:n}=t.algorithm;if("number"!=typeof n||n<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};function P(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function F(e,t){return e.name===t}function R(e){return parseInt(e.name.slice(4),10)}function I(e,t){if(t.length&&!t.some(t=>e.usages.includes(t))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){const n=t.pop();e+=`one of ${t.join(", ")}, or ${n}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw new TypeError(e)}}function B(e,t,...n){switch(t){case"HS256":case"HS384":case"HS512":{if(!F(e.algorithm,"HMAC"))throw P("HMAC");const n=parseInt(t.slice(2),10);if(R(e.algorithm.hash)!==n)throw P(`SHA-${n}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!F(e.algorithm,"RSASSA-PKCS1-v1_5"))throw P("RSASSA-PKCS1-v1_5");const n=parseInt(t.slice(2),10);if(R(e.algorithm.hash)!==n)throw P(`SHA-${n}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!F(e.algorithm,"RSA-PSS"))throw P("RSA-PSS");const n=parseInt(t.slice(2),10);if(R(e.algorithm.hash)!==n)throw P(`SHA-${n}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw P("Ed25519 or Ed448");break;case"Ed25519":if(!F(e.algorithm,"Ed25519"))throw P("Ed25519");break;case"ES256":case"ES384":case"ES512":{if(!F(e.algorithm,"ECDSA"))throw P("ECDSA");const n=function(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}(t);if(e.algorithm.namedCurve!==n)throw P(n,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}I(e,n)}function N(e,t,...n){if((n=n.filter(Boolean)).length>2){const t=n.pop();e+=`one of type ${n.join(", ")}, or ${t}.`}else 2===n.length?e+=`one of type ${n[0]} or ${n[1]}.`:e+=`of type ${n[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor?.name&&(e+=` Received an instance of ${t.constructor.name}`),e}const L=(e,...t)=>N("Key must be ",e,...t);function O(e,t,...n){return N(`Key for the ${e} algorithm must be `,t,...n)}const j=e=>!!S(e)||"KeyObject"===e?.[Symbol.toStringTag],D=["CryptoKey"];function M(e){if("object"!=typeof(t=e)||null===t||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t;if(null===Object.getPrototypeOf(e))return!0;let n=e;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function U(e){return M(e)&&"string"==typeof e.kty}const z=async e=>{if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:t,keyUsages:n}=function(e){let t,n;switch(e.kty){case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},n=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},n=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},n=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new v('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},n=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},n=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},n=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},n=e.d?["deriveBits"]:[];break;default:throw new v('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"Ed25519":t={name:"Ed25519"},n=e.d?["sign"]:["verify"];break;case"EdDSA":t={name:e.crv},n=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},n=e.d?["deriveBits"]:[];break;default:throw new v('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new v('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:n}}(e),r=[t,e.ext??!1,e.key_ops??n],i={...e};return delete i.alg,delete i.use,_.subtle.importKey("jwk",i,...r)},H=e=>p(e);let q,$;const W=e=>"KeyObject"===e?.[Symbol.toStringTag],V=async(e,t,n,r,i=!1)=>{let a=e.get(t);if(a?.[r])return a[r];const o=await z({...n,alg:r});return i&&Object.freeze(t),a?a[r]=o:e.set(t,{[r]:o}),o},G=(e,t)=>{if(W(e)){let n=e.export({format:"jwk"});return delete n.d,delete n.dp,delete n.dq,delete n.p,delete n.q,delete n.qi,n.k?H(n.k):($||($=new WeakMap),V($,e,n,t))}if(U(e)){if(e.k)return p(e.k);$||($=new WeakMap);return V($,e,e,t,!0)}return e},K=(e,t)=>{if(W(e)){let n=e.export({format:"jwk"});return n.k?H(n.k):(q||(q=new WeakMap),V(q,e,n,t))}if(U(e)){if(e.k)return p(e.k);q||(q=new WeakMap);return V(q,e,e,t,!0)}return e};async function J(e,t,n){if("sign"===n&&(t=await K(t,e)),"verify"===n&&(t=await G(t,e)),S(t))return B(t,e,n),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(L(t,...D));return _.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[n])}throw new TypeError(L(t,...D,"Uint8Array","JSON Web Key"))}const Y=async(e,t,n,r)=>{const i=await J(e,t,"verify");T(e,i);const a=k(e,i.algorithm);try{return await _.subtle.verify(a,i,n,r)}catch{return!1}},Q=(...e)=>{const t=e.filter(Boolean);if(0===t.length||1===t.length)return!0;let n;for(const e of t){const t=Object.keys(e);if(n&&0!==n.size)for(const e of t){if(n.has(e))return!1;n.add(e)}else n=new Set(t)}return!0},X=e=>e?.[Symbol.toStringTag],Z=(e,t,n)=>{if(void 0!==t.use&&"sig"!==t.use)throw new TypeError("Invalid key for this operation, when present its use must be sig");if(void 0!==t.key_ops&&!0!==t.key_ops.includes?.(n))throw new TypeError(`Invalid key for this operation, when present its key_ops must include ${n}`);if(void 0!==t.alg&&t.alg!==e)throw new TypeError(`Invalid key for this operation, when present its alg must be ${e}`);return!0},ee=(e,t,n,r)=>{if(!(t instanceof Uint8Array)){if(r&&U(t)){if(function(e){return U(e)&&"oct"===e.kty&&"string"==typeof e.k}(t)&&Z(e,t,n))return;throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!j(t))throw new TypeError(O(e,t,...D,"Uint8Array",r?"JSON Web Key":null));if("secret"!==t.type)throw new TypeError(`${X(t)} instances for symmetric algorithms must be of type "secret"`)}};function te(e,t,n,r){t.startsWith("HS")||"dir"===t||t.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(t)?ee(t,n,r,e):((e,t,n,r)=>{if(r&&U(t))switch(n){case"sign":if(function(e){return"oct"!==e.kty&&"string"==typeof e.d}(t)&&Z(e,t,n))return;throw new TypeError("JSON Web Key for this operation be a private JWK");case"verify":if(function(e){return"oct"!==e.kty&&void 0===e.d}(t)&&Z(e,t,n))return;throw new TypeError("JSON Web Key for this operation be a public JWK")}if(!j(t))throw new TypeError(O(e,t,...D,r?"JSON Web Key":null));if("secret"===t.type)throw new TypeError(`${X(t)} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===n&&"public"===t.type)throw new TypeError(`${X(t)} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===n&&"public"===t.type)throw new TypeError(`${X(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===n&&"private"===t.type)throw new TypeError(`${X(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===n&&"private"===t.type)throw new TypeError(`${X(t)} instances for asymmetric algorithm encryption must be of type "public"`)})(t,n,r,e)}te.bind(void 0,!1);const ne=te.bind(void 0,!0);const re=function(e,t,n,r,i){if(void 0!==i.crit&&void 0===r?.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!r||void 0===r.crit)return new Set;if(!Array.isArray(r.crit)||0===r.crit.length||r.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let a;a=void 0!==n?new Map([...Object.entries(n),...t.entries()]):t;for(const t of r.crit){if(!a.has(t))throw new v(`Extension Header Parameter "${t}" is not recognized`);if(void 0===i[t])throw new e(`Extension Header Parameter "${t}" is missing`);if(a.get(t)&&void 0===r[t])throw new e(`Extension Header Parameter "${t}" MUST be integrity protected`)}return new Set(r.crit)},ie=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw new TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};async function ae(e,t){if(!M(e))throw new TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw new TypeError('missing "k" (Key Value) Parameter value');return p(e.k);case"RSA":if("oth"in e&&void 0!==e.oth)throw new v('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return z({...e,alg:t});default:throw new v('Unsupported "kty" (Key Type) Parameter value')}}async function oe(e,t,n){if(e instanceof Uint8Array&&(e=l.decode(e)),"string"!=typeof e)throw new b("Compact JWS must be a string or Uint8Array");const{0:r,1:i,2:a,length:o}=e.split(".");if(3!==o)throw new b("Invalid Compact JWS");const s=await async function(e,t,n){if(!M(e))throw new b("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new b('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new b("JWS Protected Header incorrect type");if(void 0===e.payload)throw new b("JWS Payload missing");if("string"!=typeof e.signature)throw new b("JWS Signature missing or incorrect type");if(void 0!==e.header&&!M(e.header))throw new b("JWS Unprotected Header incorrect type");let r={};if(e.protected)try{const t=p(e.protected);r=JSON.parse(l.decode(t))}catch{throw new b("JWS Protected Header is invalid")}if(!Q(r,e.header))throw new b("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const i={...r,...e.header};let a=!0;if(re(b,new Map([["b64",!0]]),n?.crit,r,i).has("b64")&&(a=r.b64,"boolean"!=typeof a))throw new b('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:o}=i;if("string"!=typeof o||!o)throw new b('JWS "alg" (Algorithm) Header Parameter missing or invalid');const s=n&&ie("algorithms",n.algorithms);if(s&&!s.has(o))throw new g('"alg" (Algorithm) Header Parameter value not allowed');if(a){if("string"!=typeof e.payload)throw new b("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new b("JWS Payload must be a string or an Uint8Array instance");let d=!1;"function"==typeof t?(t=await t(r,e),d=!0,ne(o,t,"verify"),U(t)&&(t=await ae(t,o))):ne(o,t,"verify");const f=u(c.encode(e.protected??""),c.encode("."),"string"==typeof e.payload?c.encode(e.payload):e.payload);let h,m;try{h=p(e.signature)}catch{throw new b("Failed to base64url decode the signature")}if(!await Y(o,t,h,f))throw new E;if(a)try{m=p(e.payload)}catch{throw new b("Failed to base64url decode the payload")}else m="string"==typeof e.payload?c.encode(e.payload):e.payload;const v={payload:m};return void 0!==e.protected&&(v.protectedHeader=r),void 0!==e.header&&(v.unprotectedHeader=e.header),d?{...v,key:t}:v}({payload:i,protected:r,signature:a},t,n),d={payload:s.payload,protectedHeader:s.protectedHeader};return"function"==typeof t?{...d,key:s.key}:d}const se=e=>Math.floor(e.getTime()/1e3),ce=86400,le=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,ue=e=>{const t=le.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");const n=parseFloat(t[2]);let r;switch(t[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":r=Math.round(n);break;case"minute":case"minutes":case"min":case"mins":case"m":r=Math.round(60*n);break;case"hour":case"hours":case"hr":case"hrs":case"h":r=Math.round(3600*n);break;case"day":case"days":case"d":r=Math.round(n*ce);break;case"week":case"weeks":case"w":r=Math.round(604800*n);break;default:r=Math.round(31557600*n)}return"-"===t[1]||"ago"===t[4]?-r:r},de=e=>e.toLowerCase().replace(/^application\//,""),pe=(e,t,n={})=>{let r;try{r=JSON.parse(l.decode(t))}catch{}if(!M(r))throw new y("JWT Claims Set must be a top-level JSON object");const{typ:i}=n;if(i&&("string"!=typeof e.typ||de(e.typ)!==de(i)))throw new h('unexpected "typ" JWT header value',r,"typ","check_failed");const{requiredClaims:a=[],issuer:o,subject:s,audience:c,maxTokenAge:u}=n,d=[...a];void 0!==u&&d.push("iat"),void 0!==c&&d.push("aud"),void 0!==s&&d.push("sub"),void 0!==o&&d.push("iss");for(const e of new Set(d.reverse()))if(!(e in r))throw new h(`missing required "${e}" claim`,r,e,"missing");if(o&&!(Array.isArray(o)?o:[o]).includes(r.iss))throw new h('unexpected "iss" claim value',r,"iss","check_failed");if(s&&r.sub!==s)throw new h('unexpected "sub" claim value',r,"sub","check_failed");if(c&&(p=r.aud,f="string"==typeof c?[c]:c,!("string"==typeof p?f.includes(p):Array.isArray(p)&&f.some(Set.prototype.has.bind(new Set(p))))))throw new h('unexpected "aud" claim value',r,"aud","check_failed");var p,f;let g;switch(typeof n.clockTolerance){case"string":g=ue(n.clockTolerance);break;case"number":g=n.clockTolerance;break;case"undefined":g=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:v}=n,b=se(v||new Date);if((void 0!==r.iat||u)&&"number"!=typeof r.iat)throw new h('"iat" claim must be a number',r,"iat","invalid");if(void 0!==r.nbf){if("number"!=typeof r.nbf)throw new h('"nbf" claim must be a number',r,"nbf","invalid");if(r.nbf>b+g)throw new h('"nbf" claim timestamp check failed',r,"nbf","check_failed")}if(void 0!==r.exp){if("number"!=typeof r.exp)throw new h('"exp" claim must be a number',r,"exp","invalid");if(r.exp<=b-g)throw new m('"exp" claim timestamp check failed',r,"exp","check_failed")}if(u){const e=b-r.iat;if(e-g>("number"==typeof u?u:ue(u)))throw new m('"iat" claim timestamp check failed (too far in the past)',r,"iat","check_failed");if(e<0-g)throw new h('"iat" claim timestamp check failed (it should be in the past)',r,"iat","check_failed")}return r};const fe=async(e,t,n)=>{let r,i,a=!1;"function"==typeof AbortController&&(r=new AbortController,i=setTimeout(()=>{a=!0,r.abort()},t));const o=await fetch(e.href,{signal:r?r.signal:void 0,redirect:"manual",headers:n.headers}).catch(e=>{if(a)throw new C;throw e});if(void 0!==i&&clearTimeout(i),200!==o.status)throw new f("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await o.json()}catch{throw new f("Failed to parse the JSON Web Key Set HTTP response as JSON")}};function he(e){return M(e)}function me(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}class ge{constructor(e){if(this._cached=new WeakMap,!function(e){return e&&"object"==typeof e&&Array.isArray(e.keys)&&e.keys.every(he)}(e))throw new w("JSON Web Key Set malformed");this._jwks=me(e)}async getKey(e,t){const{alg:n,kid:r}={...e,...t?.header},i=function(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new v('Unsupported "alg" value for a JSON Web Key Set')}}(n),a=this._jwks.keys.filter(e=>{let t=i===e.kty;if(t&&"string"==typeof r&&(t=r===e.kid),t&&"string"==typeof e.alg&&(t=n===e.alg),t&&"string"==typeof e.use&&(t="sig"===e.use),t&&Array.isArray(e.key_ops)&&(t=e.key_ops.includes("verify")),t)switch(n){case"ES256":t="P-256"===e.crv;break;case"ES256K":t="secp256k1"===e.crv;break;case"ES384":t="P-384"===e.crv;break;case"ES512":t="P-521"===e.crv;break;case"Ed25519":t="Ed25519"===e.crv;break;case"EdDSA":t="Ed25519"===e.crv||"Ed448"===e.crv}return t}),{0:o,length:s}=a;if(0===s)throw new x;if(1!==s){const e=new A,{_cached:t}=this;throw e[Symbol.asyncIterator]=async function*(){for(const e of a)try{yield await ve(t,e,n)}catch{}},e}return ve(this._cached,o,n)}}async function ve(e,t,n){const r=e.get(t)||e.set(t,{}).get(t);if(void 0===r[n]){const e=await ae({...t,ext:!0},n);if(e instanceof Uint8Array||"public"!==e.type)throw new w("JSON Web Key Set members must be public keys");r[n]=e}return r[n]}function be(e){const t=new ge(e),n=async(e,n)=>t.getKey(e,n);return Object.defineProperties(n,{jwks:{value:()=>me(t._jwks),enumerable:!0,configurable:!1,writable:!1}}),n}let ye;if("undefined"==typeof navigator||!navigator.userAgent?.startsWith?.("Mozilla/5.0 ")){ye=`${"jose"}/${"v5.10.0"}`}const we=Symbol();class xe{constructor(e,t){if(!(e instanceof URL))throw new TypeError("url must be an instance of URL");var n,r;this._url=new URL(e.href),this._options={agent:t?.agent,headers:t?.headers},this._timeoutDuration="number"==typeof t?.timeoutDuration?t?.timeoutDuration:5e3,this._cooldownDuration="number"==typeof t?.cooldownDuration?t?.cooldownDuration:3e4,this._cacheMaxAge="number"==typeof t?.cacheMaxAge?t?.cacheMaxAge:6e5,void 0!==t?.[we]&&(this._cache=t?.[we],n=t?.[we],r=this._cacheMaxAge,"object"==typeof n&&null!==n&&"uat"in n&&"number"==typeof n.uat&&!(Date.now()-n.uat>=r)&&"jwks"in n&&M(n.jwks)&&Array.isArray(n.jwks.keys)&&Array.prototype.every.call(n.jwks.keys,M)&&(this._jwksTimestamp=this._cache.uat,this._local=be(this._cache.jwks)))}coolingDown(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cooldownDuration}fresh(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cacheMaxAge}async getKey(e,t){this._local&&this.fresh()||await this.reload();try{return await this._local(e,t)}catch(n){if(n instanceof x&&!1===this.coolingDown())return await this.reload(),this._local(e,t);throw n}}async reload(){this._pendingFetch&&("undefined"!=typeof WebSocketPair||"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||"undefined"!=typeof EdgeRuntime&&"vercel"===EdgeRuntime)&&(this._pendingFetch=void 0);const e=new Headers(this._options.headers);ye&&!e.has("User-Agent")&&(e.set("User-Agent",ye),this._options.headers=Object.fromEntries(e.entries())),this._pendingFetch||(this._pendingFetch=fe(this._url,this._timeoutDuration,this._options).then(e=>{this._local=be(e),this._cache&&(this._cache.uat=Date.now(),this._cache.jwks=e),this._jwksTimestamp=Date.now(),this._pendingFetch=void 0}).catch(e=>{throw this._pendingFetch=void 0,e})),await this._pendingFetch}}const Ae=async e=>{if(e instanceof Uint8Array)return{kty:"oct",k:d(e)};if(!S(e))throw new TypeError(L(e,...D,"Uint8Array"));if(!e.extractable)throw new TypeError("non-extractable CryptoKey cannot be exported as a JWK");const{ext:t,key_ops:n,alg:r,use:i,...a}=await _.subtle.exportKey("jwk",e);return a};async function Ce(e){return Ae(e)}const Ee=async(e,t,n)=>{const r=await J(e,t,"sign");T(e,r);const i=await _.subtle.sign(k(e,r.algorithm),r,n);return new Uint8Array(i)};class ke{constructor(e){if(!(e instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw new TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){if(!this._protectedHeader&&!this._unprotectedHeader)throw new b("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!Q(this._protectedHeader,this._unprotectedHeader))throw new b("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const n={...this._protectedHeader,...this._unprotectedHeader};let r=!0;if(re(b,new Map([["b64",!0]]),t?.crit,this._protectedHeader,n).has("b64")&&(r=this._protectedHeader.b64,"boolean"!=typeof r))throw new b('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:i}=n;if("string"!=typeof i||!i)throw new b('JWS "alg" (Algorithm) Header Parameter missing or invalid');ne(i,e,"sign");let a,o=this._payload;r&&(o=c.encode(d(o))),a=this._protectedHeader?c.encode(d(JSON.stringify(this._protectedHeader))):c.encode("");const s=u(a,c.encode("."),o),p=await Ee(i,e,s),f={signature:d(p),payload:""};return r&&(f.payload=l.decode(o)),this._unprotectedHeader&&(f.header=this._unprotectedHeader),this._protectedHeader&&(f.protected=l.decode(a)),f}}class _e{constructor(e){this._flattened=new ke(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){const n=await this._flattened.sign(e,t);if(void 0===n.payload)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${n.protected}.${n.payload}.${n.signature}`}}function Se(e,t){if(!Number.isFinite(t))throw new TypeError(`Invalid ${e} input`);return t}class Te{constructor(e={}){if(!M(e))throw new TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return"number"==typeof e?this._payload={...this._payload,nbf:Se("setNotBefore",e)}:e instanceof Date?this._payload={...this._payload,nbf:Se("setNotBefore",se(e))}:this._payload={...this._payload,nbf:se(new Date)+ue(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:Se("setExpirationTime",e)}:e instanceof Date?this._payload={...this._payload,exp:Se("setExpirationTime",se(e))}:this._payload={...this._payload,exp:se(new Date)+ue(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:se(new Date)}:e instanceof Date?this._payload={...this._payload,iat:Se("setIssuedAt",se(e))}:this._payload="string"==typeof e?{...this._payload,iat:Se("setIssuedAt",se(new Date)+ue(e))}:{...this._payload,iat:Se("setIssuedAt",e)},this}}class Pe extends Te{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){const n=new _e(c.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray(this._protectedHeader?.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new y("JWTs MUST NOT use unencoded payload");return n.sign(e,t)}}function Fe(e){const t=e?.modulusLength??2048;if("number"!=typeof t||t<2048)throw new v("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");return t}async function Re(e,t){return async function(e,t){let n,r;switch(e){case"PS256":case"PS384":case"PS512":n={name:"RSA-PSS",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:Fe(t)},r=["sign","verify"];break;case"RS256":case"RS384":case"RS512":n={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:Fe(t)},r=["sign","verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":n={name:"RSA-OAEP",hash:`SHA-${parseInt(e.slice(-3),10)||1}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:Fe(t)},r=["decrypt","unwrapKey","encrypt","wrapKey"];break;case"ES256":n={name:"ECDSA",namedCurve:"P-256"},r=["sign","verify"];break;case"ES384":n={name:"ECDSA",namedCurve:"P-384"},r=["sign","verify"];break;case"ES512":n={name:"ECDSA",namedCurve:"P-521"},r=["sign","verify"];break;case"Ed25519":n={name:"Ed25519"},r=["sign","verify"];break;case"EdDSA":{r=["sign","verify"];const e=t?.crv??"Ed25519";switch(e){case"Ed25519":case"Ed448":n={name:e};break;default:throw new v("Invalid or unsupported crv option provided")}break}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{r=["deriveKey","deriveBits"];const e=t?.crv??"P-256";switch(e){case"P-256":case"P-384":case"P-521":n={name:"ECDH",namedCurve:e};break;case"X25519":case"X448":n={name:e};break;default:throw new v("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}break}default:throw new v('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return _.subtle.generateKey(n,t?.extractable??!1,r)}(e,t)}const Ie={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Be;const Ne=new Uint8Array(16);const Le=[];for(let e=0;e<256;++e)Le.push((e+256).toString(16).slice(1));function Oe(e,t=0){return(Le[e[t+0]]+Le[e[t+1]]+Le[e[t+2]]+Le[e[t+3]]+"-"+Le[e[t+4]]+Le[e[t+5]]+"-"+Le[e[t+6]]+Le[e[t+7]]+"-"+Le[e[t+8]]+Le[e[t+9]]+"-"+Le[e[t+10]]+Le[e[t+11]]+Le[e[t+12]]+Le[e[t+13]]+Le[e[t+14]]+Le[e[t+15]]).toLowerCase()}const je=function(e,t,n){if(Ie.randomUUID&&!t&&!e)return Ie.randomUUID();const r=(e=e||{}).random??e.rng?.()??function(){if(!Be){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Be=crypto.getRandomValues.bind(crypto)}return Be(Ne)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[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]=r[e];return t}return Oe(r)},De="solidClientAuthn:",Me=["ES256","RS256"],Ue="error",ze="login",He="logout",qe="newRefreshToken",$e="sessionExpired",We="sessionExtended",Ve="sessionRestore",Ge="timeoutSet",Ke=["openid","offline_access","webid"];class Je{handleables;constructor(e){this.handleables=e,this.handleables=e}async getProperHandler(e){const t=await Promise.all(this.handleables.map(t=>t.canHandle(...e)));for(let e=0;e<t.length;e+=1)if(t[e])return this.handleables[e];return null}async canHandle(...e){return null!==await this.getProperHandler(e)}async handle(...e){const t=await this.getProperHandler(e);if(t)return t.handle(...e);throw new Error(`[${this.constructor.name}] cannot find a suitable handler for: ${e.map(e=>{try{return JSON.stringify(e)}catch(t){return e.toString()}}).join(", ")}`)}}async function Ye(e,t,n,r){let i,a;try{const{payload:a}=await async function(e,t,n){const r=await oe(e,t,n);if(r.protectedHeader.crit?.includes("b64")&&!1===r.protectedHeader.b64)throw new y("JWTs MUST NOT use unencoded payload");const i={payload:pe(r.protectedHeader,r.payload,n),protectedHeader:r.protectedHeader};return"function"==typeof t?{...i,key:r.key}:i}(e,function(e,t){const n=new xe(e,t),r=async(e,t)=>n.getKey(e,t);return Object.defineProperties(r,{coolingDown:{get:()=>n.coolingDown(),enumerable:!0,configurable:!1},fresh:{get:()=>n.fresh(),enumerable:!0,configurable:!1},reload:{value:()=>n.reload(),enumerable:!0,configurable:!1,writable:!1},reloading:{get:()=>!!n._pendingFetch,enumerable:!0,configurable:!1},jwks:{value:()=>n._local?.jwks(),enumerable:!0,configurable:!1,writable:!1}}),r}(new URL(t)),{issuer:n,audience:r});i=a}catch(e){throw new Error(`Token verification failed: ${e.stack}`)}if("string"==typeof i.azp&&(a=i.azp),"string"==typeof i.webid)return{webId:i.webid,clientId:a};if("string"!=typeof i.sub)throw new Error(`The token ${JSON.stringify(i)} is invalid: it has no 'webid' claim and no 'sub' claim.`);try{return new URL(i.sub),{webId:i.sub,clientId:a}}catch(e){throw new Error(`The token has no 'webid' claim, and its 'sub' claim of [${i.sub}] is invalid as a URL - error [${e}].`)}}function Qe(e){try{const t=new URL(e),n=!t.searchParams.has("code")&&!t.searchParams.has("state"),r=""===t.hash;return n&&r}catch(e){return!1}}function Xe(e){const t=new URL(e);return t.searchParams.delete("state"),t.searchParams.delete("code"),t.searchParams.delete("error"),t.searchParams.delete("error_description"),t.searchParams.delete("iss"),t}class Ze{storageUtility;redirector;constructor(e,t){this.storageUtility=e,this.redirector=t,this.storageUtility=e,this.redirector=t}parametersGuard=e=>void 0!==e.issuerConfiguration.grantTypesSupported&&e.issuerConfiguration.grantTypesSupported.indexOf("authorization_code")>-1&&void 0!==e.redirectUrl;async canHandle(e){return this.parametersGuard(e)}async setupRedirectHandler({oidcLoginOptions:e,state:t,codeVerifier:n,targetUrl:r}){if(!this.parametersGuard(e))throw new Error("The authorization code grant requires a redirectUrl.");var i,a;await Promise.all([this.storageUtility.setForUser(t,{sessionId:e.sessionId}),this.storageUtility.setForUser(e.sessionId,{codeVerifier:n,issuer:e.issuer.toString(),redirectUrl:e.redirectUrl,dpop:Boolean(e.dpop).toString(),keepAlive:(i=e.keepAlive,a=!0,"boolean"==typeof i?Boolean(i):Boolean(a)).toString()})]),this.redirector.redirect(r,{handleRedirect:e.handleRedirect})}}class et{sessionInfoManager;constructor(e){this.sessionInfoManager=e,this.sessionInfoManager=e}async canHandle(){return!0}async handle(e){await this.sessionInfoManager.clear(e)}}class tt{redirector;constructor(e){this.redirector=e,this.redirector=e}async canHandle(e,t){return"idp"===t?.logoutType}async handle(e,t){if("idp"!==t?.logoutType)throw new Error("Attempting to call idp logout handler to perform app logout");if(void 0===t.toLogoutUrl)throw new Error("Cannot perform IDP logout. Did you log in using the OIDC authentication flow?");this.redirector.redirect(t.toLogoutUrl(t),{handleRedirect:t.handleRedirect})}}class nt{handlers;constructor(e,t){this.handlers=[new et(e),new tt(t)]}async canHandle(){return!0}async handle(e,t){for(const n of this.handlers)await n.canHandle(e,t)&&await n.handle(e,t)}}function rt(){return{isLoggedIn:!1,sessionId:je(),fetch:(...e)=>fetch(...e)}}async function it(e,t){await Promise.all([t.deleteAllUserData(e,{secure:!1}),t.deleteAllUserData(e,{secure:!0})])}class at{storageUtility;constructor(e){this.storageUtility=e,this.storageUtility=e}update(e,t){throw new Error("Not Implemented")}set(e,t){throw new Error("Not Implemented")}get(e){throw new Error("Not implemented")}async getAll(){throw new Error("Not implemented")}async clear(e){return it(e,this.storageUtility)}async register(e){throw new Error("Not implemented")}async getRegisteredSessionIdAll(){throw new Error("Not implemented")}async clearAll(){throw new Error("Not implemented")}async setOidcContext(e,t){throw new Error("Not implemented")}}function ot({endSessionEndpoint:e,idTokenHint:t}){if(void 0!==e)return function({state:n,postLogoutUrl:r}){return function({endSessionEndpoint:e,idTokenHint:t,postLogoutRedirectUri:n,state:r}){const i=new URL(e);return void 0!==t&&i.searchParams.append("id_token_hint",t),void 0!==n&&(i.searchParams.append("post_logout_redirect_uri",n),void 0!==r&&i.searchParams.append("state",r)),i.toString()}({endSessionEndpoint:e,idTokenHint:t,state:n,postLogoutRedirectUri:r})}}function st(e){try{return new URL(e),!0}catch{return!1}}async function ct(e,t,n,r){let i;if(function(e,t){return t.scopesSupported.includes("webid")&&void 0!==e.clientId&&st(e.clientId)}(e,t))i={clientId:e.clientId,clientName:e.clientName,clientType:"solid-oidc"};else{if(!function(e){return void 0!==e.clientId&&!st(e.clientId)}(e))return r.getClient({sessionId:e.sessionId,clientName:e.clientName,redirectUrl:e.redirectUrl},t);i={clientId:e.clientId,clientSecret:e.clientSecret,clientName:e.clientName,clientType:"static"}}const a={clientId:i.clientId,clientType:i.clientType};return"static"===i.clientType&&(a.clientSecret=i.clientSecret),i.clientName&&(a.clientName=i.clientName),await n.setForUser(e.sessionId,a),i}const lt=(e,t)=>fetch(e,t);class ut{loginHandler;redirectHandler;logoutHandler;sessionInfoManager;issuerConfigFetcher;boundLogout;constructor(e,t,n,r,i){this.loginHandler=e,this.redirectHandler=t,this.logoutHandler=n,this.sessionInfoManager=r,this.issuerConfigFetcher=i,this.loginHandler=e,this.redirectHandler=t,this.logoutHandler=n,this.sessionInfoManager=r,this.issuerConfigFetcher=i}fetch=lt;logout=async(e,t)=>{await this.logoutHandler.handle(e,"idp"===t?.logoutType?{...t,toLogoutUrl:this.boundLogout}:t),this.fetch=lt,delete this.boundLogout};getSessionInfo=async e=>this.sessionInfoManager.get(e);getAllSessionInfo=async()=>this.sessionInfoManager.getAll()}async function dt(e,t,n){try{const[r,i,a,o,s]=await Promise.all([t.getForUser(e,"issuer",{errorIfNull:!0}),t.getForUser(e,"codeVerifier"),t.getForUser(e,"redirectUrl"),t.getForUser(e,"dpop",{errorIfNull:!0}),t.getForUser(e,"keepAlive")]);await t.deleteForUser(e,"codeVerifier");return{codeVerifier:i,redirectUrl:a,issuerConfig:await n.fetchConfig(r),dpop:"true"===o,keepAlive:"string"!=typeof s||"true"===s}}catch(t){throw new Error(`Failed to retrieve OIDC context from storage associated with session [${e}]: ${t}`)}}class pt{secureStorage;insecureStorage;constructor(e,t){this.secureStorage=e,this.insecureStorage=t,this.secureStorage=e,this.insecureStorage=t}getKey(e){return`solidClientAuthenticationUser:${e}`}async getUserData(e,t){const n=await(t?this.secureStorage:this.insecureStorage).get(this.getKey(e));if(void 0===n)return{};try{return JSON.parse(n)}catch(r){throw new Error(`Data for user [${e}] in [${t?"secure":"unsecure"}] storage is corrupted - expected valid JSON, but got: ${n}`)}}async setUserData(e,t,n){await(n?this.secureStorage:this.insecureStorage).set(this.getKey(e),JSON.stringify(t))}async get(e,t){const n=await(t?.secure?this.secureStorage:this.insecureStorage).get(e);if(void 0===n&&t?.errorIfNull)throw new Error(`[${e}] is not stored`);return n}async set(e,t,n){return(n?.secure?this.secureStorage:this.insecureStorage).set(e,t)}async delete(e,t){return(t?.secure?this.secureStorage:this.insecureStorage).delete(e)}async getForUser(e,t,n){const r=await this.getUserData(e,n?.secure);let i;if(r&&r[t]||(i=void 0),i=r[t],void 0===i&&n?.errorIfNull)throw new Error(`Field [${t}] for user [${e}] is not stored`);return i||void 0}async setForUser(e,t,n){let r;try{r=await this.getUserData(e,n?.secure)}catch{r={}}await this.setUserData(e,{...r,...t},n?.secure)}async deleteForUser(e,t,n){const r=await this.getUserData(e,n?.secure);delete r[t],await this.setUserData(e,r,n?.secure)}async deleteAllUserData(e,t){await(t?.secure?this.secureStorage:this.insecureStorage).delete(this.getKey(e))}}class ft{map={};async get(e){return this.map[e]||void 0}async set(e,t){this.map[e]=t}async delete(e){delete this.map[e]}}class ht extends Error{constructor(e){super(e)}}Error;class mt extends Error{missingFields;constructor(e){super(`Invalid response from OIDC provider: missing fields ${e}`),this.missingFields=e}}class gt extends Error{error;errorDescription;constructor(e,t,n){super(e),this.error=t,this.errorDescription=n}}function vt(e){const t=new URL(e);return new URL(t.pathname,t.origin).toString()}async function bt(e,t,n){return new Pe({htu:vt(e),htm:t.toUpperCase(),jti:je()}).setProtectedHeader({alg:Me[0],jwk:n.publicKey,typ:"dpop+jwt"}).setIssuedAt().sign(n.privateKey,{})}async function yt(e,t,n,r){if(void 0!==n)return async function(e,t,n,r){const i=new Headers(r?.headers);return i.set("Authorization",`DPoP ${t}`),i.set("DPoP",await bt(e,r?.method??"get",n)),{...r,headers:i}}(e,t,n,r);const i=new Headers(r?.headers);return i.set("Authorization",`Bearer ${t}`),{...r,headers:i}}async function wt(e,t,n,r,i=fetch){return i(t,await yt(t.toString(),e,r,n))}const xt=e=>void 0!==e?e-5>0?e-5:e:600;function At(e,t){let n,r=e;const i=t?.refreshOptions;if(void 0!==i){const e=async()=>{try{const{accessToken:a,refreshToken:o,expiresIn:s}=await async function(e,t,n){const r=await e.tokenRefresher.refresh(e.sessionId,e.refreshToken,t);return n?.emit(We,r.expiresIn??600),{accessToken:r.accessToken,refreshToken:r.refreshToken,expiresIn:r.expiresIn}}(i,t.dpopKey,t.eventEmitter);r=a,void 0!==o&&(i.refreshToken=o),clearTimeout(n),n=setTimeout(e,1e3*xt(s)),t.eventEmitter?.emit(Ge,n)}catch(e){e instanceof gt&&(t?.eventEmitter?.emit(Ue,e.error,e.errorDescription),t?.eventEmitter?.emit($e)),e instanceof mt&&e.missingFields.includes("access_token")&&t?.eventEmitter?.emit($e)}};n=setTimeout(e,1e3*xt(t.expiresIn)),t.eventEmitter?.emit(Ge,n)}else if(void 0!==t&&void 0!==t.eventEmitter){const e=setTimeout(()=>{t.eventEmitter.emit($e)},1e3*xt(t.expiresIn));t.eventEmitter.emit(Ge,e)}return async(e,n)=>{let i=await wt(r,e,n,t?.dpopKey,t?.fetch);const a=!i.ok&&(o=i.status,![401,403].includes(o));var o;if(i.ok||a)return i;return i.url!==e&&void 0!==t?.dpopKey&&(i=await wt(r,i.url,n,t.dpopKey,t.fetch)),i}}var Ct=o(7),Et=o(516);function kt(e,t){if("string"!=typeof e.client_id)throw new Error(`Dynamic client registration failed: no client_id has been found on ${JSON.stringify(e)}`);if(t.redirectUrl&&function(e){return Array.isArray(e.redirect_uris)&&e.redirect_uris.every(e=>"string"==typeof e)}(e)&&e.redirect_uris[0]!==t.redirectUrl.toString())throw new Error(`Dynamic client registration failed: the returned redirect URIs ${JSON.stringify(e.redirect_uris)} don't match the provided ${JSON.stringify([t.redirectUrl.toString()])}`);return!0}async function _t(e,t){if(!t.registrationEndpoint)throw new Error("Dynamic Registration could not be completed because the issuer has no registration endpoint.");if(!Array.isArray(t.idTokenSigningAlgValuesSupported))throw new Error("The OIDC issuer discovery profile is missing the 'id_token_signing_alg_values_supported' value, which is mandatory.");const n=(r=t.idTokenSigningAlgValuesSupported,Me.find(e=>r.includes(e))??null);var r;const i={client_name:e.clientName,application_type:"web",redirect_uris:[e.redirectUrl?.toString()],subject_type:"public",token_endpoint_auth_method:"client_secret_basic",id_token_signed_response_alg:n,grant_types:["authorization_code","refresh_token"]},a=await fetch(t.registrationEndpoint.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(a.ok){const t=await a.json();return kt(t,e),{clientId:t.client_id,clientSecret:t.client_secret,expiresAt:t.client_secret_expires_at,idTokenSignedResponseAlg:t.id_token_signed_response_alg,clientType:"dynamic"}}throw 400===a.status&&function(e,t){if("invalid_redirect_uri"===e.error)throw new Error(`Dynamic client registration failed: the provided redirect uri [${t.redirectUrl?.toString()}] is invalid - ${e.error_description??""}`);if("invalid_client_metadata"===e.error)throw new Error(`Dynamic client registration failed: the provided client metadata ${JSON.stringify(t)} is invalid - ${e.error_description??""}`);throw new Error(`Dynamic client registration failed: ${e.error} - ${e.error_description??""}`)}(await a.json(),e),new Error(`Dynamic client registration failed: the server returned ${a.status} ${a.statusText} - ${await a.text()}`)}function St(e){return void 0!==e.error_description&&"string"==typeof e.error_description}function Tt(e,t){if(void 0!==(n=e).error&&"string"==typeof n.error)throw new gt(`Token endpoint returned error [${e.error}]${St(e)?`: ${e.error_description}`:""}${function(e){return void 0!==e.error_uri&&"string"==typeof e.error_uri}(e)?` (see ${e.error_uri})`:""}`,e.error,St(e)?e.error_description:void 0);var n;if(!function(e){return void 0!==e.access_token&&"string"==typeof e.access_token}(e))throw new mt(["access_token"]);if(!function(e){return void 0!==e.id_token&&"string"==typeof e.id_token}(e))throw new mt(["id_token"]);if(!function(e){return void 0!==e.token_type&&"string"==typeof e.token_type}(e))throw new mt(["token_type"]);if(!function(e){return void 0===e.expires_in||"number"==typeof e.expires_in}(e))throw new mt(["expires_in"]);if(!t&&"bearer"!==e.token_type.toLowerCase())throw new Error(`Invalid token endpoint response: requested a [Bearer] token, but got a 'token_type' value of [${e.token_type}].`);return e}async function Pt(e,t,n,r){!function(e,t){if(t.grantType&&(!e.grantTypesSupported||!e.grantTypesSupported.includes(t.grantType)))throw new Error(`The issuer [${e.issuer}] does not support the [${t.grantType}] grant`);if(!e.tokenEndpoint)throw new Error(`This issuer [${e.issuer}] does not have a token endpoint`)}(e,n);const i={"content-type":"application/x-www-form-urlencoded"};let a;r&&(a=await async function(){const{privateKey:e,publicKey:t}=await Re(Me[0]),n={privateKey:e,publicKey:await Ce(t)};return[n.publicKey.alg]=Me,n}(),i.DPoP=await bt(e.tokenEndpoint,"POST",a)),t.clientSecret&&(i.Authorization=`Basic ${btoa(`${t.clientId}:${t.clientSecret}`)}`);const o={grant_type:n.grantType,redirect_uri:n.redirectUrl,code:n.code,code_verifier:n.codeVerifier,client_id:t.clientId},s={method:"POST",headers:i,body:new URLSearchParams(o).toString()},c=await fetch(e.tokenEndpoint,s),l=Tt(await c.json(),r),{webId:u,clientId:d}=await Ye(l.id_token,e.jwksUri,e.issuer,t.clientId);return{accessToken:l.access_token,idToken:l.id_token,refreshToken:(p=l,void 0!==p.refresh_token&&"string"==typeof p.refresh_token?l.refresh_token:void 0),webId:u,clientId:d,dpopKey:a,expiresIn:l.expires_in};var p}async function Ft(e,t,n,r){if(void 0===n.clientId)throw new Error("No client ID available when trying to refresh the access token.");const i={grant_type:"refresh_token",refresh_token:e};let a={};void 0!==r&&(a={DPoP:await bt(t.tokenEndpoint,"POST",r)});let o={};void 0!==n.clientSecret?o={Authorization:`Basic ${btoa(`${n.clientId}:${n.clientSecret}`)}`}:(e=>{try{return new URL(e),!0}catch{return!1}})(n.clientId)&&(i.client_id=n.clientId);const s=await fetch(t.tokenEndpoint,{method:"POST",body:new URLSearchParams(i).toString(),headers:{...a,...o,"Content-Type":"application/x-www-form-urlencoded"}});let c;try{c=await s.json()}catch(e){throw new Error(`The token endpoint of issuer ${t.issuer} returned a malformed response.`)}const l=Tt(c,void 0!==r),{webId:u}=await Ye(l.id_token,t.jwksUri,t.issuer,n.clientId);return{accessToken:l.access_token,idToken:l.id_token,refreshToken:"string"==typeof l.refresh_token?l.refresh_token:void 0,webId:u,dpopKey:r,expiresIn:l.expires_in}}class Rt extends pt{constructor(e,t){super(e,t)}}class It extends ut{login=async(e,t)=>{"none"!==e.prompt&&await this.sessionInfoManager.clear(e.sessionId);const n=e.redirectUrl??function(e){const t=Xe(e);return t.hash="",e.includes(`${t.origin}/`)?t.href:`${t.origin}${t.href.substring(t.origin.length+1)}`}(window.location.href);if(!Qe(n))throw new Error(`${n} is not a valid redirect URL, it is either a malformed IRI, includes a hash fragment, or reserved query parameters ('code' or 'state').`);await this.loginHandler.handle({...e,redirectUrl:n,clientName:e.clientName??e.clientId,eventEmitter:t})};validateCurrentSession=async e=>{const t=await this.sessionInfoManager.get(e);return void 0===t||void 0===t.clientAppId||void 0===t.issuer?null:t};handleIncomingRedirect=async(e,t)=>{try{const n=await this.redirectHandler.handle(e,t,void 0);return this.fetch=n.fetch.bind(window),this.boundLogout=n.getLogoutUrl,await this.cleanUrlAfterRedirect(e),{isLoggedIn:n.isLoggedIn,webId:n.webId,sessionId:n.sessionId,expirationDate:n.expirationDate,clientAppId:n.clientAppId}}catch(n){return await this.cleanUrlAfterRedirect(e),void t.emit(Ue,"redirect",n)}};async cleanUrlAfterRedirect(e){const t=Xe(e).href;for(window.history.replaceState(null,"",t);window.location.href!==t;)await new Promise(e=>{setTimeout(()=>e(),1)})}}function Bt(e){return"string"==typeof e.oidcIssuer}function Nt(e){return"string"==typeof e.redirectUrl}class Lt{storageUtility;oidcHandler;issuerConfigFetcher;clientRegistrar;constructor(e,t,n,r){this.storageUtility=e,this.oidcHandler=t,this.issuerConfigFetcher=n,this.clientRegistrar=r,this.storageUtility=e,this.oidcHandler=t,this.issuerConfigFetcher=n,this.clientRegistrar=r}async canHandle(e){return Bt(e)&&Nt(e)}async handle(e){if(!Bt(e))throw new ht(`OidcLoginHandler requires an OIDC issuer: missing property 'oidcIssuer' in ${JSON.stringify(e)}`);if(!Nt(e))throw new ht(`OidcLoginHandler requires a redirect URL: missing property 'redirectUrl' in ${JSON.stringify(e)}`);const t=await this.issuerConfigFetcher.fetchConfig(e.oidcIssuer),n=await ct(e,t,this.storageUtility,this.clientRegistrar),r={issuer:t.issuer,dpop:"dpop"===e.tokenType.toLowerCase(),...e,issuerConfiguration:t,client:n,scopes:(i=e.customScopes,Array.isArray(i)?Array.from(new Set([...Ke,...i.filter(e=>"string"==typeof e&&!e.includes(" "))])):Ke)};var i;return this.oidcHandler.handle(r)}}class Ot extends Ze{async handle(e){const t={authority:e.issuer.toString(),client_id:e.client.clientId,client_secret:e.client.clientSecret,redirect_uri:e.redirectUrl,response_type:"code",scope:e.scopes.join(" "),filterProtocolClaims:!0,loadUserInfo:!1,code_verifier:!0,prompt:e.prompt??"consent"},n=new Et.OidcClient(t);try{const t=await n.createSigninRequest();return await this.setupRedirectHandler({oidcLoginOptions:e,state:t.state._id,codeVerifier:t.state._code_verifier,targetUrl:t.url.toString()})}catch(e){}}}const jt={issuer:{toKey:"issuer",convertToUrl:!0},authorization_endpoint:{toKey:"authorizationEndpoint",convertToUrl:!0},token_endpoint:{toKey:"tokenEndpoint",convertToUrl:!0},userinfo_endpoint:{toKey:"userinfoEndpoint",convertToUrl:!0},jwks_uri:{toKey:"jwksUri",convertToUrl:!0},registration_endpoint:{toKey:"registrationEndpoint",convertToUrl:!0},end_session_endpoint:{toKey:"endSessionEndpoint",convertToUrl:!0},scopes_supported:{toKey:"scopesSupported"},response_types_supported:{toKey:"responseTypesSupported"},response_modes_supported:{toKey:"responseModesSupported"},grant_types_supported:{toKey:"grantTypesSupported"},acr_values_supported:{toKey:"acrValuesSupported"},subject_types_supported:{toKey:"subjectTypesSupported"},id_token_signing_alg_values_supported:{toKey:"idTokenSigningAlgValuesSupported"},id_token_encryption_alg_values_supported:{toKey:"idTokenEncryptionAlgValuesSupported"},id_token_encryption_enc_values_supported:{toKey:"idTokenEncryptionEncValuesSupported"},userinfo_signing_alg_values_supported:{toKey:"userinfoSigningAlgValuesSupported"},userinfo_encryption_alg_values_supported:{toKey:"userinfoEncryptionAlgValuesSupported"},userinfo_encryption_enc_values_supported:{toKey:"userinfoEncryptionEncValuesSupported"},request_object_signing_alg_values_supported:{toKey:"requestObjectSigningAlgValuesSupported"},request_object_encryption_alg_values_supported:{toKey:"requestObjectEncryptionAlgValuesSupported"},request_object_encryption_enc_values_supported:{toKey:"requestObjectEncryptionEncValuesSupported"},token_endpoint_auth_methods_supported:{toKey:"tokenEndpointAuthMethodsSupported"},token_endpoint_auth_signing_alg_values_supported:{toKey:"tokenEndpointAuthSigningAlgValuesSupported"},display_values_supported:{toKey:"displayValuesSupported"},claim_types_supported:{toKey:"claimTypesSupported"},claims_supported:{toKey:"claimsSupported"},service_documentation:{toKey:"serviceDocumentation"},claims_locales_supported:{toKey:"claimsLocalesSupported"},ui_locales_supported:{toKey:"uiLocalesSupported"},claims_parameter_supported:{toKey:"claimsParameterSupported"},request_parameter_supported:{toKey:"requestParameterSupported"},request_uri_parameter_supported:{toKey:"requestUriParameterSupported"},require_request_uri_registration:{toKey:"requireRequestUriRegistration"},op_policy_uri:{toKey:"opPolicyUri",convertToUrl:!0},op_tos_uri:{toKey:"opTosUri",convertToUrl:!0}};class Dt{storageUtility;constructor(e){this.storageUtility=e,this.storageUtility=e}static getLocalStorageKey(e){return`issuerConfig:${e}`}async fetchConfig(e){let t;const n=new URL(".well-known/openid-configuration",e.endsWith("/")?e:`${e}/`).href,r=await fetch(n);try{t=function(e){const t={};return Object.keys(e).forEach(n=>{jt[n]&&(t[jt[n].toKey]=e[n])}),Array.isArray(t.scopesSupported)||(t.scopesSupported=["openid"]),t}(await r.json())}catch(t){throw new ht(`[${e.toString()}] has an invalid configuration: ${t.message}`)}return await this.storageUtility.set(Dt.getLocalStorageKey(e),JSON.stringify(t)),t}}async function Mt(e,t){await it(e,t),await async function(){const e=new Et.OidcClient({response_mode:"query"});await e.clearStaleState(new Et.WebStorageStateStore({}));const t=window.localStorage,n=[];for(let e=0;e<=t.length;e+=1){const r=t.key(e);r&&(r.match(/^oidc\..+$/)||r.match(/^solidClientAuthenticationUser:.+$/))&&n.push(r)}n.forEach(e=>t.removeItem(e))}()}class Ut extends at{async get(e){const[t,n,r,i,a,o,s,c]=await Promise.all([this.storageUtility.getForUser(e,"isLoggedIn",{secure:!0}),this.storageUtility.getForUser(e,"webId",{secure:!0}),this.storageUtility.getForUser(e,"clientId",{secure:!1}),this.storageUtility.getForUser(e,"clientSecret",{secure:!1}),this.storageUtility.getForUser(e,"redirectUrl",{secure:!1}),this.storageUtility.getForUser(e,"refreshToken",{secure:!0}),this.storageUtility.getForUser(e,"issuer",{secure:!1}),this.storageUtility.getForUser(e,"tokenType",{secure:!1})]);if("string"!=typeof a||Qe(a)){if(void 0!==c&&("string"!=typeof(l=c)||!["DPoP","Bearer"].includes(l)))throw new Error(`Tokens of type [${c}] are not supported.`);var l;if(void 0!==r||void 0!==t||void 0!==n||void 0!==o)return{sessionId:e,webId:n,isLoggedIn:"true"===t,redirectUrl:a,refreshToken:o,issuer:s,clientAppId:r,clientAppSecret:i,tokenType:c??"DPoP"}}else await Promise.all([this.storageUtility.deleteAllUserData(e,{secure:!1}),this.storageUtility.deleteAllUserData(e,{secure:!0})])}async clear(e){return Mt(e,this.storageUtility)}}class zt{async canHandle(e){try{return new URL(e),!0}catch(t){throw new Error(`[${e}] is not a valid URL, and cannot be used as a redirect URL: ${t}`)}}async handle(e){return rt()}}class Ht{storageUtility;sessionInfoManager;issuerConfigFetcher;clientRegistrar;tokerRefresher;constructor(e,t,n,r,i){this.storageUtility=e,this.sessionInfoManager=t,this.issuerConfigFetcher=n,this.clientRegistrar=r,this.tokerRefresher=i,this.storageUtility=e,this.sessionInfoManager=t,this.issuerConfigFetcher=n,this.clientRegistrar=r,this.tokerRefresher=i}async canHandle(e){try{const t=new URL(e);return null!==t.searchParams.get("code")&&null!==t.searchParams.get("state")}catch(t){throw new Error(`[${e}] is not a valid URL, and cannot be used as a redirect URL: ${t}`)}}async handle(e,t){if(!await this.canHandle(e))throw new Error(`AuthCodeRedirectHandler cannot handle [${e}]: it is missing one of [code, state].`);const n=new URL(e),r=n.searchParams.get("state"),i=await this.storageUtility.getForUser(r,"sessionId",{errorIfNull:!0}),{issuerConfig:a,codeVerifier:o,redirectUrl:s,dpop:c}=await dt(i,this.storageUtility,this.issuerConfigFetcher),l=n.searchParams.get("iss");if("string"==typeof l&&l!==a.issuer)throw new Error(`The value of the iss parameter (${l}) does not match the issuer identifier of the authorization server (${a.issuer}). See [rfc9207](https://www.rfc-editor.org/rfc/rfc9207.html#section-2.3-3.1.1)`);if(void 0===o)throw new Error(`The code verifier for session ${i} is missing from storage.`);if(void 0===s)throw new Error(`The redirect URL for session ${i} is missing from storage.`);const u=await this.clientRegistrar.getClient({sessionId:i},a),d=Date.now(),p=await Pt(a,u,{grantType:"authorization_code",code:n.searchParams.get("code"),codeVerifier:o,redirectUrl:s},c);let f;window.localStorage.removeItem(`oidc.${r}`),void 0!==p.refreshToken&&(f={sessionId:i,refreshToken:p.refreshToken,tokenRefresher:this.tokerRefresher});const h=At(p.accessToken,{dpopKey:p.dpopKey,refreshOptions:f,eventEmitter:t,expiresIn:p.expiresIn});await async function(e,t,n,r,i,a,o,s){void 0!==a&&await e.setForUser(t,{refreshToken:a},{secure:o}),void 0!==n&&await e.setForUser(t,{webId:n},{secure:o}),void 0!==r&&await e.setForUser(t,{clientId:r},{secure:o}),void 0!==i&&await e.setForUser(t,{isLoggedIn:i},{secure:o}),void 0!==s&&await e.setForUser(t,{publicKey:JSON.stringify(s.publicKey),privateKey:JSON.stringify(await Ce(s.privateKey))},{secure:o})}(this.storageUtility,i,p.webId,p.clientId,"true",void 0,!0);const m=await this.sessionInfoManager.get(i);if(!m)throw new Error(`Could not retrieve session: [${i}].`);return Object.assign(m,{fetch:h,getLogoutUrl:ot({idTokenHint:p.idToken,endSessionEndpoint:a.endSessionEndpoint}),expirationDate:"number"==typeof p.expiresIn?d+1e3*p.expiresIn:void 0})}}class qt extends Je{constructor(e){super(e)}}class $t{get storage(){return window.localStorage}async get(e){return this.storage.getItem(e)||void 0}async set(e,t){this.storage.setItem(e,t)}async delete(e){this.storage.removeItem(e)}}class Wt{redirect(e,t){t&&t.handleRedirect?t.handleRedirect(e):t&&t.redirectByReplacingState?window.history.replaceState({},"",e):window.location.href=e}}class Vt{storageUtility;constructor(e){this.storageUtility=e,this.storageUtility=e}async getClient(e,t){const[n,r,i,a,o]=await Promise.all([this.storageUtility.getForUser(e.sessionId,"clientId",{secure:!1}),this.storageUtility.getForUser(e.sessionId,"clientSecret",{secure:!1}),this.storageUtility.getForUser(e.sessionId,"expiresAt",{secure:!1}),this.storageUtility.getForUser(e.sessionId,"clientName",{secure:!1}),this.storageUtility.getForUser(e.sessionId,"clientType",{secure:!1})]),s=void 0!==i?Number.parseInt(i,10):-1,c=void 0!==r&&0!==s&&Math.floor(Date.now()/1e3)>s;if(n&&("string"==typeof(l=o)&&["dynamic","static","solid-oidc"].includes(l))&&!c)return void 0!==r?{clientId:n,clientSecret:r,clientName:a,clientType:"dynamic",expiresAt:s}:{clientId:n,clientName:a,clientType:o};var l;try{const n=await _t(e,t),r={clientId:n.clientId,clientType:"dynamic"};return void 0!==n.clientSecret&&(r.clientSecret=n.clientSecret,r.expiresAt=String(n.expiresAt)),n.idTokenSignedResponseAlg&&(r.idTokenSignedResponseAlg=n.idTokenSignedResponseAlg),await this.storageUtility.setForUser(e.sessionId,r,{secure:!1}),n}catch(e){throw new Error("Client registration failed.",{cause:e})}}}class Gt{async canHandle(e){try{return new URL(e).searchParams.has("error")}catch(t){throw new Error(`[${e}] is not a valid URL, and cannot be used as a redirect URL: ${t}`)}}async handle(e,t){if(void 0!==t){const n=new URL(e),r=n.searchParams.get("error"),i=n.searchParams.get("error_description");t.emit(Ue,r,i)}return rt()}}class Kt{storageUtility;issuerConfigFetcher;clientRegistrar;constructor(e,t,n){this.storageUtility=e,this.issuerConfigFetcher=t,this.clientRegistrar=n,this.storageUtility=e,this.issuerConfigFetcher=t,this.clientRegistrar=n}async refresh(e,t,n,r){const i=await dt(e,this.storageUtility,this.issuerConfigFetcher),a=await this.clientRegistrar.getClient({sessionId:e},i.issuerConfig);if(void 0===t)throw new Error(`Session [${e}] has no refresh token to allow it to refresh its access token.`);if(i.dpop&&void 0===n)throw new Error(`For session [${e}], the key bound to the DPoP access token must be provided to refresh said access token.`);const o=await Ft(t,i.issuerConfig,a,n);return void 0!==o.refreshToken&&r?.emit(qe,o.refreshToken),o}}function Jt(e){const t=new ft,n=e.secureStorage||t,r=e.insecureStorage||new $t,i=new Rt(n,r),a=new Dt(i),o=new Vt(i),s=new Ut(i),c=new Kt(i,a,o),l=new Wt,u=new Lt(i,new Ot(i,l),a,o),d=new qt([new Gt,new Ht(i,s,a,o,c),new zt]);return new It(u,d,new nt(s,l),s,a)}const Yt=`${De}currentSession`,Qt=`${De}currentUrl`;class Xt{info;events;clientAuthentication;tokenRequestInProgress=!1;constructor(e={},t=void 0){this.events=new Ct,e.clientAuthentication?this.clientAuthentication=e.clientAuthentication:e.secureStorage&&e.insecureStorage?this.clientAuthentication=Jt({secureStorage:e.secureStorage,insecureStorage:e.insecureStorage}):this.clientAuthentication=Jt({}),e.sessionInfo?this.info={sessionId:e.sessionInfo.sessionId,isLoggedIn:!1,webId:e.sessionInfo.webId,clientAppId:e.sessionInfo.clientAppId}:this.info={sessionId:t??je(),isLoggedIn:!1},this.events.on(ze,()=>window.localStorage.setItem(Yt,this.info.sessionId)),this.events.on($e,()=>this.internalLogout(!1)),this.events.on(Ue,()=>this.internalLogout(!1))}login=async e=>(await this.clientAuthentication.login({sessionId:this.info.sessionId,...e,tokenType:e.tokenType??"DPoP"},this.events),new Promise(()=>{}));fetch=(e,t)=>this.clientAuthentication.fetch(e,t);internalLogout=async(e,t)=>{window.localStorage.removeItem(Yt),await this.clientAuthentication.logout(this.info.sessionId,t),this.info.isLoggedIn=!1,e&&this.events.emit(He)};logout=async e=>this.internalLogout(!0,e);handleIncomingRedirect=async(e={})=>{if(this.info.isLoggedIn)return this.info;if(this.tokenRequestInProgress)return;const t="string"==typeof e?{url:e}:e,n=t.url??window.location.href;this.tokenRequestInProgress=!0;const r=await this.clientAuthentication.handleIncomingRedirect(n,this.events);if(function(e){return!!e?.isLoggedIn}(r)){this.setSessionInfo(r);const e=window.localStorage.getItem(Qt);null===e?this.events.emit(ze):(window.localStorage.removeItem(Qt),this.events.emit(Ve,e))}else if(!0===t.restorePreviousSession){const e=window.localStorage.getItem(Yt);if(null!==e){if(await async function(e,t,n){const r=await t.validateCurrentSession(e);return null!==r&&(window.localStorage.setItem(Qt,window.location.href),await t.login({sessionId:e,prompt:"none",oidcIssuer:r.issuer,redirectUrl:r.redirectUrl,clientId:r.clientAppId,clientSecret:r.clientAppSecret,tokenType:r.tokenType??"DPoP"},n.events),!0)}(e,this.clientAuthentication,this))return new Promise(()=>{})}}return this.tokenRequestInProgress=!1,r};setSessionInfo(e){this.info.isLoggedIn=e.isLoggedIn,this.info.webId=e.webId,this.info.sessionId=e.sessionId,this.info.clientAppId=e.clientAppId,this.info.expirationDate=e.expirationDate,this.events.on(We,e=>{this.info.expirationDate=Date.now()+1e3*e})}}const Zt=new Xt,en=r;var tn=o(386);const nn=o.n(tn)()(en),rn=(0,en.sym)("http://www.iana.org/assignments/link-relations/acl");function an(e){const t=nn;function n(e,n,r,i={}){const a=i.public||[],o=(0,en.graph)(),s=(0,en.Namespace)("http://www.w3.org/ns/auth/acl#");let c=o.sym(`${r}#a1`);const l=o.sym(r),u=o.sym(e);if(o.add(c,t.rdf("type"),s("Authorization"),l),o.add(c,s("accessTo"),u,l),i.defaultForNew&&o.add(c,s("default"),u,l),o.add(c,s("agent"),n,l),o.add(c,s("mode"),s("Read"),l),o.add(c,s("mode"),s("Write"),l),o.add(c,s("mode"),s("Control"),l),a.length){c=o.sym(`${r}#a2`),o.add(c,t.rdf("type"),s("Authorization"),l),o.add(c,s("accessTo"),u,l),o.add(c,s("agentClass"),t.foaf("Agent"),l);for(let e=0;e<a.length;e++)o.add(c,s("mode"),s(a[e]),l)}return(0,en.serialize)(l,o,r)}return{findAclDocUrl:async function(t){await e.fetcher.load(t);const n=e.any(t,rn);if(!n)throw new Error(`No ACL link discovered for ${t}`);return n.value},setACLUserPublic:function(t,r,i){const a=e.any(e.sym(t),rn);return Promise.resolve().then(()=>a||function(t){const n=e.fetcher;if(!n)throw new Error("Cannot fetch ACL rel, store has no fetcher");return n.load(t).then(n=>{if(!n.ok)throw new Error("fetchACLRel: While loading:"+n.error);const r=e.any(e.sym(t),rn);if(!r)throw new Error("fetchACLRel: No Link rel=ACL header for "+t);return r})}(t).catch(e=>{throw new Error(`Error fetching rel=ACL header for ${t}: ${e}`)})).then(a=>{const o=n(t,r,a.uri,i);if(!e.fetcher)throw new Error("Cannot PUT this, store has no fetcher");return e.fetcher.webOperation("PUT",a.uri,{data:o,contentType:"text/turtle"}).then(e=>{if(!e.ok)throw new Error("Error writing ACL text: "+e.error);return a})})},genACLText:n}}const on=()=>{let{SolidAppContext:e}=window;if(e||(e={}),e.viewingNoAuthPage=!1,e.noAuth&&window.document){if(window.document.location.href.startsWith(e.noAuth)){e.viewingNoAuthPage=!0;const t=new URLSearchParams(window.document.location.search);if(t){let n=e.viewedPage=t.get("uri")||null;if(n&&(n=decodeURI(n),!n.startsWith(e.noAuth))){const t=n.split(/\//);e.idp=t[0]+"//"+t[2],e.viewingNoAuthPage=!1}}}}return e};function sn(){const{$SolidTestEnvironment:e}=window;if(void 0!==e&&e.username)return e.username,(0,en.sym)(e.username);if("undefined"!=typeof document&&document.location&&"http://localhost"===(""+document.location).slice(0,16)){const e=document.getElementById("appTarget");if(!e)return null;const t=e.getAttribute("testID");return t?(0,en.sym)(t):null}return null}class cn{constructor(e){this.session=e}get authSession(){return this.session}currentUser(){const e=on();return e.viewingNoAuthPage?(0,en.sym)(e.webId):this&&this.session&&this.session.info&&this.session.info.webId&&this.session.info.isLoggedIn?(0,en.sym)(this.session.info.webId):sn()}async checkUser(e){const t=new URL(window.location.href).hash;t&&window.localStorage.setItem("preLoginRedirectHash",t),this.session.events.on(Ve,e=>{document.location.toString()!==e&&history.replaceState(null,"",e)});const n=new URL(window.location.href);n.hash="",await this.session.handleIncomingRedirect({restorePreviousSession:!0,url:n.href});const r=window.localStorage.getItem("preLoginRedirectHash");if(r){const e=new URL(window.location.href);e.hash!==r&&(history.pushState?history.pushState(null,document.title,r):location.hash=r,e.hash=r),window.localStorage.setItem("preLoginRedirectHash","")}let i=sn();if(i)return Promise.resolve(e?e(i):i);const a=this.webIdFromSession(this.session.info);return a&&(i=this.saveUser(a)),Promise.resolve(e?e(i):i)}saveUser(e,t){let n;if(e){n="string"==typeof e?e:e.uri;const r=(0,en.namedNode)(n);return t&&(t.me=r),r}return null}webIdFromSession(e){return(null==e?void 0:e.webId)&&e.isLoggedIn?e.webId:null}}function ln(e){return(0,en.sym)(e.uri+"#id"+Date.now())}function un(e){return!e||`${window.location.origin}/`!==new URL(e.value).origin}const dn="index.ttl#this";function pn(e,t){const n=nn;async function r(t,n,r){await e.fetcher.load(t);const i=e.any(t,new en.NamedNode("http://www.iana.org/assignments/link-relations/acl"));if(!i)throw new Error("Chat ACL doc not found!");const a=`\n @prefix acl: <http://www.w3.org/ns/auth/acl#>.\n <#owner>\n a acl:Authorization;\n acl:agent <${n.value}>;\n acl:accessTo <.>;\n acl:default <.>;\n acl:mode\n acl:Read, acl:Write, acl:Control.\n <#invitee>\n a acl:Authorization;\n acl:agent <${r.value}>;\n acl:accessTo <.>;\n acl:default <.>;\n acl:mode\n acl:Read, acl:Append.\n `;await e.fetcher.webOperation("PUT",i.value,{data:a,contentType:"text/turtle"})}async function i(t,r){const i=e.any(r,n.solid("privateTypeIndex"));if(!i)throw new Error("Private type index not found!");await e.fetcher.load(i);const a=ln(i),o=[(0,en.st)(a,n.rdf("type"),n.solid("TypeRegistration"),i.doc()),(0,en.st)(a,n.solid("forClass"),n.meeting("LongChat"),i.doc()),(0,en.st)(a,n.solid("instance"),t,i.doc())];await new Promise((t,n)=>{e.updater.update([],o,function(e,r,i){r?t(null):n(new Error(i))})})}async function a(n){const r=await t.loadMe(),i=function(e,t){const n=new URL(`IndividualChats/${new URL(e.value).host}/`,t.value).toString();return new en.NamedNode(n)}(n,await t.getPodRoot(r));let a=!0;try{await e.fetcher.load(new en.NamedNode(i.value+"index.ttl#this"))}catch(e){a=!1}return{me:r,chatContainer:i,exists:a}}async function o(e,t){return(await s({me:t,newBase:e.value})).newInstance}function s(t){const r=e,i=r.updater;if(t.me&&!t.me.uri)throw new Error("chat mintNew: Invalid userid "+t.me);const a=t.newInstance=t.newInstance||r.sym(t.newBase+dn),o=a.doc();return r.add(a,n.rdf("type"),n.meeting("LongChat"),o),r.add(a,n.dc("title"),"Chat channel",o),r.add(a,n.dc("created"),(0,en.term)(new Date(Date.now())),o),t.me&&r.add(a,n.dc("author"),t.me,o),new Promise(function(e,n){null==i||i.put(o,r.statementsMatching(void 0,void 0,void 0,o),"text/turtle",function(r,i,o){i?e({...t,newInstance:a}):n(new Error("FAILED to save new chat channel at: "+r+" : "+o))})})}async function c(t,r){var i;await e.fetcher.load(t.doc());const a=e.any(t,n.ldp("inbox"),void 0,t.doc());if(!a)throw new Error(`Invitee inbox not found! ${t.value}`);const o=`\n <> a <http://www.w3.org/ns/pim/meeting#LongChatInvite> ;\n ${n.rdf("seeAlso")} <${r.value}> .\n `,s=await(null===(i=e.fetcher)||void 0===i?void 0:i.webOperation("POST",a.value,{data:o,contentType:"text/turtle"}));if(!(null==s?void 0:s.headers.get("location")))throw new Error(`Invite sending returned a ${null==s?void 0:s.status}`)}return{setAcl:r,addToPrivateTypeIndex:i,findChat:a,createChatThing:o,getChat:async function(e,t=!0){const{me:n,chatContainer:s,exists:l}=await a(e);if(l)return new en.NamedNode(s.value+dn);if(t){const t=await o(s,n);return await c(e,t),await r(s,n,e),await i(t,n),t}return null},sendInvite:c,mintNew:s}}function fn(e,t,n,r,i){return{createInboxFor:async function(e,i){const a=await t.loadMe(),o=`${(await t.getPodRoot(a)).value}p2p-inboxes/${encodeURIComponent(i)}/`;return await r.createContainer(o),await n.setSinglePeerAccess({ownerWebId:a.value,peerWebId:e,accessToModes:"acl:Append",target:o}),o},getNewMessages:async function(e){e||(e=await t.loadMe());const n=await t.getMainInbox(e);return(await r.getContainerMembers(n)).filter(e=>!r.isContainer(e))},markAsRead:async function(t,n){const r=await e.fetcher._fetch(t);if(200!==r.status)throw new Error(`Not OK! ${t}`);const i=function(e,t){const n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),i=("0"+t.getUTCDate()).slice(-2),a=e.split("/"),o=a[a.length-1];return new URL(`./archive/${n}/${r}/${i}/${o}`,e).toString()}(t,n),a={method:"PUT",body:await r.text(),headers:[["Content-Type",r.headers.get("Content-Type")||"application/octet-stream"]]};"2"===(await e.fetcher._fetch(i,a)).status.toString()[0]&&await e.fetcher._fetch(t,{method:"DELETE"})}}}class hn extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype),this.name=new.target.name}}class mn extends hn{}class gn extends hn{}class vn extends hn{}class bn extends hn{}class yn extends hn{}class wn extends hn{}class xn extends hn{constructor(e,t){super(t),this.status=e}}function An(e,t,n){const r=nn;async function i(t){await a(t);const i=function(e){const t=e.uri.replace("/profile/","/").replace("/public/","/").split("/").slice(0,-1).join("/")+"/Settings/Preferences.ttl";return(0,en.sym)(t)}(t);let o;try{o=await n.followOrCreateLink(t,r.space("preferencesFile"),i,t.doc())}catch(e){if(e instanceof yn)throw e;if(e instanceof wn)throw e;if(e instanceof mn)throw e;if(e instanceof gn)throw e;if(e instanceof vn)throw e;if(e instanceof xn)throw e;throw e}try{await e.fetcher.load(o)}catch(e){const n=`Unable to load preference of user ${t}: ${e}`;if(401===e.response.status)throw new mn;if(403===e.response.status){if(un(o))throw new gn;throw new vn}throw new Error(n)}return o}async function a(t){if(!t)throw new Error("loadProfile: no user given.");try{await e.fetcher.load(t.doc())}catch(e){throw new Error(`Unable to load profile of user ${t}: ${e}`)}return t.doc()}function o(t){return e.any(t,r.space("storage"),void 0,t.doc())}return{loadMe:async function(){const n=t.currentUser();if(null===n)throw new Error("Current user not found! Not logged in?");return await e.fetcher.load(n.doc()),n},getPodRoot:function(e){const t=o(e);if(!t)throw new Error("User pod root not found!");return t},getMainInbox:async function(t){await e.fetcher.load(t);const n=e.any(t,r.ldp("inbox"),void 0,t.doc());if(!n)throw new Error("User main inbox not found!");return n},findStorage:o,loadPreferences:i,loadProfile:a,silencedLoadPreferences:async function(e){try{return await i(e)}catch(e){return}}}}function Cn(e,t,n,r){const i=nn;function a(e){return!!e&&(e.startsWith("https://")||e.startsWith("http://"))}async function o(t){if(!t)throw new Error("loadTypeIndexesFor: No user given");const a=await n.loadProfile(t);let o,s=null;try{s=p(t)}catch(e){}try{o=e.any(t,i.solid("publicTypeIndex"),void 0,a)||(s?await r.followOrCreateLink(t,i.solid("publicTypeIndex"),s,a):null)}catch(e){}const c=o?[{label:"public",index:o,agent:t}]:[];let l,u;try{l=await n.silencedLoadPreferences(t)}catch(e){l=null}if(l){let n,o=null;try{o=f(l)}catch(e){}try{n=e.any(t,i.solid("privateTypeIndex"),void 0,a)||(o?await r.followOrCreateLink(t,i.solid("privateTypeIndex"),o,l):null)}catch(e){}u=n?[{label:"private",index:n,agent:t}]:[]}else u=[];const d=c.concat(u);if(0===d.length)return d;const h=d.map(e=>e.index);try{await e.fetcher.load(h)}catch(e){}return d}async function c(t){let r;try{r=await n.silencedLoadPreferences(t)}catch(e){}if(r){const n=e.each(t,i.solid("community"),void 0,r).concat(e.each(t,i.solid("community"),void 0,t.doc()));let c=[];for(const e of n)if("NamedNode"===e.termType&&a(e.uri))try{c=c.concat(await o(e))}catch(t){s(e.uri)}else s();return c}return[]}async function l(e){return(await o(e)).concat(await c(e))}async function u(e,t){const n=await l(t);let r=[];for(const t of n){const n=await h(t,e);r=r.concat(n)}return r}function d(e){const t=e.doc(),n=t.dir();if((null==n?void 0:n.uri)&&a(n.uri))return n.uri;const r=t.uri;if(!r||!a(r))return null==e||e.uri,null;const i=r.split("#")[0],o=i.lastIndexOf("/");return-1===o?null:i.slice(0,o+1)}function p(e){const t=d(e);if(!t)throw new Error(`suggestPublicTypeIndex: Cannot derive directory for ${e.uri}`);return(0,en.sym)(t+"publicTypeIndex.ttl")}function f(e){const t=d(e);if(!t)throw new Error(`suggestPrivateTypeIndex: Cannot derive directory for ${e.uri}`);return(0,en.sym)(t+"privateTypeIndex.ttl")}async function h(t,n){const r=t.index,a=[],o=e.statementsMatching(null,i.solid("instance"),null,r).concat(e.statementsMatching(null,i.solid("instanceContainer"),null,r)).map(e=>e.subject);for(const s of o){const o=e.any(s,i.solid("forClass"),null,r);if(!n||o.sameTerm(n)){const n=e.each(s,i.solid("instance"),null,r);for(const e of n)a.push({instance:e,type:o,scope:t});const c=e.each(s,i.solid("instanceContainer"),null,r);for(const n of c)await e.fetcher.load(n),a.push({instance:(0,en.sym)(n.value),type:o,scope:t})}}return a}return{registerInTypeIndex:async function(t,n,r){const a=ln(n),o=[(0,en.st)(a,i.rdf("type"),i.solid("TypeRegistration"),n),(0,en.st)(a,i.solid("forClass"),r,n),(0,en.st)(a,i.solid("instance"),t,n)];try{await e.updater.update([],o)}catch(e){return null}return a},getRegistrations:function(t,n){return e.each(void 0,i.solid("instance"),t).filter(t=>e.holds(t,i.solid("forClass"),n))},loadTypeIndexesFor:o,loadCommunityTypeIndexes:c,loadAllTypeIndexes:l,getScopedAppInstances:u,getAppInstances:async function(e){const n=t.currentUser();if(!n)throw new Error("getAppInstances: Must be logged in to find apps.");return(await u(e,n)).map(e=>e.instance)},suggestPublicTypeIndex:p,suggestPrivateTypeIndex:f,deleteTypeIndexRegistration:async function(t){const n=e.the(null,i.solid("instance"),t.instance,t.scope.index);if(!n)throw new Error(`deleteTypeIndexRegistration: No registration found for ${t.instance}`);const r=e.statementsMatching(n,null,null,t.scope.index);await e.updater.update(r,[])},getScopedAppsFromIndex:h}}function En(e,t){const n=en.graph();en.fetcher(n,{fetch:e.fetch}),n.updater=new en.UpdateManager(n),n.features=[];const r=new cn(t),i=an(n),a=function(e){function t(t){return e.statementsMatching(t,(0,en.sym)("http://www.w3.org/ns/ldp#contains"),void 0).map(e=>e.object)}function n(e){const t=e.value;return"/"===t.charAt(t.length-1)}return{isContainer:n,createContainer:async function(t){if(!n((0,en.sym)(t)))throw new Error(`Not a container URL ${t}`);const r=await e.fetcher._fetch(t,{method:"PUT",headers:{"Content-Type":"text/turtle","If-None-Match":"*",Link:'<http://www.w3.org/ns/ldp#BasicContainer>; rel="type"'},body:" "});if("2"!==r.status.toString()[0])throw new Error(`Not OK: got ${r.status} response while creating container at ${t}`)},getContainerElements:t,getContainerMembers:async function(n){return await e.fetcher.load(n),t(n)}}}(n),o=function(e,t,n){async function r(t){let n;try{n=await e.fetcher.load(t)}catch(n){if(404!==n.response.status){if(401===n.response.status)throw new mn;if(403===n.response.status){if(un(t))throw new gn;throw new vn}const e="createIfNotExists doc load error NOT 404: "+t+": "+n;throw new xn(n.status,n.message+e)}try{await e.fetcher.webOperation("PUT",t,{data:"",contentType:"text/turtle"})}catch(e){throw new wn("createIfNotExists: PUT FAILED: "+t+": "+e)}await e.fetcher.load(t)}return n}return{recursiveDelete:async function r(i){try{if(n.isContainer(i)){const a=await t.findAclDocUrl(i);await e.fetcher._fetch(a,{method:"DELETE"});const o=await n.getContainerMembers(i);await Promise.all(o.map(e=>r(e)))}const a=i.value;return e.fetcher._fetch(a,{method:"DELETE"})}catch(e){i.value}},setSinglePeerAccess:async function(n){let r=["@prefix acl: <http://www.w3.org/ns/auth/acl#>.","",`<#alice> a acl:Authorization;\n acl:agent <${n.ownerWebId}>;`,` acl:accessTo <${n.target}>;`,` acl:default <${n.target}>;`," acl:mode acl:Read, acl:Write, acl:Control.",""].join("\n");n.accessToModes&&(r+=["<#bobAccessTo> a acl:Authorization;",` acl:agent <${n.peerWebId}>;`,` acl:accessTo <${n.target}>;`,` acl:mode ${n.accessToModes}.`,""].join("\n")),n.defaultModes&&(r+=["<#bobDefault> a acl:Authorization;",` acl:agent <${n.peerWebId}>;`,` acl:default <${n.target}>;`,` acl:mode ${n.defaultModes}.`,""].join("\n"));const i=await t.findAclDocUrl((0,en.sym)(n.target));return e.fetcher._fetch(i,{method:"PUT",body:r,headers:[["Content-Type","text/turtle"]]})},createEmptyRdfDoc:async function(t,n){await e.fetcher.webOperation("PUT",t.uri,{data:`# ${new Date} ${n}\n `,contentType:"text/turtle"})},followOrCreateLink:async function(t,n,i,a){await e.fetcher.load(a);const o=e.any(t,n,null,a);if(o)return o;if(!e.updater.editable(a)){const e=`followOrCreateLink: cannot edit ${a.value}`;throw new yn(e)}try{await e.updater.update([],[(0,en.st)(t,n,i,a)])}catch(e){throw new wn(e)}try{await r(i)}catch(e){throw e}return i},loadOrCreateIfNotExists:r}}(n,i,a),s=An(n,r,o),c=pn(n,s),l=fn(n,s,o,a),u=Cn(n,r,s,o);return{store:n,authn:r,acl:i,inbox:l,chat:c,profile:s,typeIndex:u,load:function(e){return n.fetcher.load(e)},updatePromise:function(e,t=[]){return new Promise((r,i)=>{n.updater.update(e,t,function(e,t,n){t?r():i(new Error(n))})})},clearStore:function(){n.statements.slice().forEach(n.remove.bind(n))}}}const kn=async(e,t)=>{const n=t&&t.credentials&&"omit"==t.credentials;return Zt.info.webId&&!n?Zt.fetch(e,t):window.fetch(e,t)},_n=Symbol.for("solid-logic-singleton"),Sn="undefined"!=typeof window?window:o.g;const Tn=(Sn[_n]||(Sn[_n]=En({fetch:kn},Zt)),Sn[_n]),Pn=[{name:"Solid Community",uri:"https://solidcommunity.net"},{name:"Solid Web",uri:"https://solidweb.org"},{name:"Solid Web ME",uri:"https://solidweb.me"},{name:"Inrupt.com",uri:"https://login.inrupt.com"}];function Fn(){const e=[...Pn],{host:t,origin:n}=new URL(location.href),r=e.map(({uri:e})=>new URL(e).host);return r.includes(t)||r.some(e=>function(e,t){const n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(t,e))||e.unshift({name:t,uri:n}),e}const Rn=Tn.authn,In=Tn.authn.authSession,Bn=Tn.store},1813(e){"use strict";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}}')}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=a,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var i=Object.create(null);s.r(i);var a={};t=t||[null,n({}),n([]),n(n)];for(var o=2&r&&e;("object"==typeof o||"function"==typeof o)&&!~t.indexOf(o);o=n(o))Object.getOwnPropertyNames(o).forEach(t=>a[t]=()=>e[t]);return a.default=()=>e,s.d(i,a),i},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,n)=>(s.f[n](e,t),t),[])),s.u=e=>e+".mashlib.min.js",s.miniCssF=e=>{},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.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),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},i="Mashlib:",s.l=(e,t,n,a)=>{if(r[e])r[e].push(t);else{var o,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){o=d;break}}o||(c=!0,(o=document.createElement("script")).charset="utf-8",s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-webpack",i+n),o.src=e),r[e]=[t];var p=(t,n)=>{o.onerror=o.onload=null,clearTimeout(f);var i=r[e];if(delete r[e],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach(e=>e(n)),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.bind(null,o.onload),c&&document.head.appendChild(o)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.p="/",(()=>{var e={792:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((n,i)=>r=e[t]=[n,i]);n.push(r[2]=i);var a=s.p+s.u(t),o=new Error;s.l(a,n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",o.name="ChunkLoadError",o.type=i,o.request=a,r[1](o)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[a,o,c]=n,l=0;if(a.some(t=>0!==e[t])){for(r in o)s.o(o,r)&&(s.m[r]=o[r]);if(c)c(s)}for(t&&t(n);l<a.length;l++)i=a[l],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkMashlib=self.webpackChunkMashlib||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var c={};return(()=>{"use strict";s.r(c),s.d(c,{versionInfo:()=>r});var e=s(8230),t=s(7523),n=s(9332);const r={buildTime:"2026-03-28T18:46:52Z",commit:"d1f0eb3162d43e2aeeed085e60c5343cab81b15c",npmInfo:{mashlib:"2.1.5",npm:"10.9.4",node:"22.22.1",acorn:"8.15.0",ada:"2.9.2",amaro:"1.1.5",ares:"1.34.6",brotli:"1.1.0",cjs_module_lexer:"2.2.0",cldr:"48.0",icu:"78.2",llhttp:"9.3.0",modules:"127",napi:"10",nbytes:"0.1.1",ncrypto:"0.0.1",nghttp2:"1.64.0",openssl:"3.5.5",simdjson:"4.2.4",simdutf:"6.4.2",sqlite:"3.51.2",tz:"2025c",undici:"6.23.0",unicode:"17.0",uv:"1.51.0",uvwasi:"0.0.23",v8:"12.4.254.21-node.35",zlib:"1.3.1-e00f703",zstd:"1.5.7"}},i=window,a=()=>{const e=localStorage.getItem("mashlib-theme"),t=window.matchMedia("(prefers-color-scheme: dark)").matches;"dark"===(e||(t?"dark":"light"))?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.removeAttribute("data-theme")};a(),i.$rdf=e,i.panes=t,i.SolidLogic={authn:n.authn,authSession:n.authSession,store:n.store,solidLogicSingleton:n.solidLogicSingleton},i.mashlib={versionInfo:r,theme:{set:e=>{"dark"===e?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.removeAttribute("data-theme"),localStorage.setItem("mashlib-theme",e)},get:()=>"dark"===document.documentElement.getAttribute("data-theme")?"dark":"light",init:a}},i.panes.runDataBrowser=function(r){e.Fetcher.crossSiteProxyTemplate=window.origin+"/xss/?uri={uri}";try{const e=document.createElement("meta");e.setAttribute("name","monetization"),e.setAttribute("content",`$${window.location.host}`),document.head.appendChild(e)}catch(e){}n.authn.checkUser().then(function(e){return t.initMainPage(n.solidLogicSingleton.store,r)})},window.onpopstate=function(t){i.document.outline.GotoSubject(e.sym(window.document.location.href),!0,void 0,!0,void 0)}})(),c})());
461
461
  //# sourceMappingURL=mashlib.min.js.map