solid-shim 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ (this.webpackChunkMashlib=this.webpackChunkMashlib||[]).push([[443],{8182(e,n,t){var s,i,r;e.exports=(s=t(3383),i=t(2404),r=t(9676),(()=>{"use strict";var e={85:(e,n,t)=>{t.d(n,{board:()=>o});var s=t(426),i=t(663),r=t(264);function o(e,n,t,o){const a=e.createElement("div");a.style="width: 100%;",a.style.margin="1em";const l=a.appendChild(e.createElement("table"));l.style="width: 100%;",l.style.borderCollapse="collapse";const u=l.appendChild(e.createElement("tr")),c=l.appendChild(e.createElement("tr"));function d(n,t){const r=e.createElement("div"),o=r.appendChild(e.createElement("table")),a=i.store.each(n,s.ns.rdf("type")).map(e=>i.store.any(e,s.ns.ui("backgroundColor"))).filter(e=>e);o.appendChild(s.widgets.personTR(e,null,n)),o.subject=n,o.style="margin: 1em;";const l=a[0]||i.store.any(t,s.ns.ui("backgroundColor"));return r.style.backgroundColor=l?l.value:"#fff",r}function p(e,n,t,s){const r=e.map(e=>[i.store.any(e,n)||t,e]);return r.sort(),s&&r.reverse(),r.map(e=>e[1])}return n.forEach(n=>{const t=u.appendChild(e.createElement("th"));t.textContent=s.utils.label(n,!0),t.subject=n,t.style="margin: 0.3em; padding: 0.5em 1em; font-treatment: bold; font-size: 120%;";const r=c.appendChild(e.createElement("td"));r.subject=n,r.style="border: 0.01em solid white; padding: 0.1em;",o.columnDropHandler&&s.widgets.makeDropTarget(r,function(e){e.forEach(function(e){console.log("Dropped on column: "+e);const t=i.store.sym(e);o.columnDropHandler(t,n)})})}),a.refresh=function(){const e=new r.Literal(new Date),n=t||o.renderItem||d;function a(e){const t=n(e);return s.widgets.makeDraggable(t,e),t.subject=e,t}for(let n=c.firstChild;n;n=n.nextSibling){const t=n.subject;let r=i.store.each(null,s.ns.rdf("type"),t);const l=o.sortBy||s.ns.dct("created");o.filter&&(r=r.filter(o.filter));const u=p(r,l,e,!0);s.utils.syncTableToArrayReOrdered(n,u,a)}},a.refresh(),a}},178:(e,n,t)=>{t.d(n,{exposeOverlay:()=>m,getState:()=>d,renderIssue:()=>w,renderIssueCard:()=>f});var s=t(426),i=t(663),r=t(324),o=t(264);const a=i.store,l=!1,u=s.icons.iconBase+"noun_17020_gray-tick.svg",c=(s.icons.iconBase,s.icons.iconBase+"noun_17020.svg");function d(e,n){const t=a.the(e,s.ns.wf("tracker"),null,e.doc()),i=a.any(t,s.ns.wf("issueClass"));n=n||i;const r=a.each(e,s.ns.rdf("type")).filter(e=>a.holds(e,s.ns.rdfs("subClassOf"),n));if(1!==r.length)throw new Error("Issue must have one type as state: "+r.length);return r[0]}function p(e){const n=a.each(e,s.ns.rdf("type")).map(e=>a.any(e,s.ns.ui("backgroundColor"))).filter(e=>!!e);return n.length?n[0].value:null}function f(e,n){function t(){const n=p(e)||"white";o.style.backgroundColor=n,c.style.backgroundColor=n}const i=n.dom,r=!p(e),o=i.createElement("div"),l=o.appendChild(i.createElement("table"));l.style.width="100%",l.appendChild(s.widgets.personTR(i,null,e,{draggable:!1})),l.subject=e,o.style="border-radius: 0.4em; border: 0.05em solid grey; margin: 0.3em;",o.firstChild.firstChild.firstChild.firstChild.setAttribute("src",s.icons.iconBase+"noun_Danger_1259514.svg");const u=o.firstChild.firstChild.children[2],c=s.widgets.button(i,s.icons.iconBase+"noun_253504.svg","edit",async t=>{m(e,n)}),d=c.firstChild;if(d.style.width=d.style.height="1.5em",u.appendChild(c),r){const t=s.widgets.deleteButtonWithCheck(i,u,"issue",async function(){try{await a.updater.update(a.connectedStatements(e))}catch(e){!function(e,n){console.warn(e),n.paneDiv.appendChild(s.widgets.errorMessageBlock(n.dom,e))}(`Unable to delete issue: ${e}`,n)}console.log("User deleted issue "+e),o.parentNode.removeChild(o),s.widgets.refreshTree(n.paneDiv)});u.appendChild(t)}return o.style.maxWidth="24em",o.refresh=t,t(),o}function m(e,n){const t=n.overlay;t.innerHTML="";const i=t.appendChild(s.widgets.button(n.dom,s.icons.iconBase+"noun_1180156.svg","close",function(){t.innerHTML="",t.style.visibility="hidden"}));i.style.float="right",i.style.margin="0.7em",delete i.style.backgroundColor,t.style.visibility="visible",t.appendChild(w(e,n)),t.firstChild.style.overflow="auto"}function h(e,n){const t=e.createElement("div");return t.setAttribute("style","height: 1em; margin: 0.5em;"),t.style.backgroundColor=n,t}function w(e,n){function t(n,t,i){if(l){if(!w(y,"trackLastModified"))return;const n=t.statementsMatching(e,s.ns.dct("modified")).concat(t.statementsMatching(e,s.ns.wf("modifiedBy"))),r=[o.st(e,s.ns.dct("modified"),new Date,i)];k&&r.push(o.st(e,s.ns.wf("modifiedBy"),k,i)),t.updater.update(n,r,function(e,n,t){})}}function d(e,n){const t=g.createElement("pre");return t.setAttribute("style",n||"color: grey"),F.appendChild(t),t.appendChild(g.createTextNode(e)),t}function f(e){console.warn(e),F.appendChild(s.widgets.errorMessageBlock(g,e))}function m(e,n){e||f("Sorry, failed to save your change:\n"+n)}function w(e,n){const t=a.any(e,s.ns.ui(n));return!(!t||!t.value)}const g=n.dom,y=a.the(e,s.ns.wf("tracker"),null,e.doc());if(!y)throw new Error("No tracker");const b=a.any(y,s.ns.wf("stateStore")),C=e.doc(),F=g.createElement("div"),k=i.authn.currentUser(),v=p(e)||"white";!function(){const n="padding: 0.5em 1.5em 1em 1.5em; border: 0.7em;border-color: "+(p(e)||"#eee")+"; ";F.setAttribute("style",n),F.style.backgroundColor="white"}(),i.authn.checkUser();const T=F.appendChild(s.widgets.button(g,function(e){return function(e){return!!a.findTypeURIs(e)[s.ns.wf("Open").uri]}(e)?u:c}(e)));s.widgets.makeDraggable(T,e);const x=a.any(y,s.ns.wf("issueClass"));if(!x)throw new Error("This tracker "+y+" has no issueClass");const S=s.widgets.makeSelectForCategory(g,a,e,x,b,function(e,n){e?(t(0,a,C),s.widgets.refreshTree(F)):console.log("Failed to change state:\n"+n)});F.appendChild(S);const P=a.each(y,s.ns.wf("issueCategory"));for(const n of P)F.appendChild(s.widgets.makeSelectForCategory(g,a,e,n,b,function(e,n){e?(t(0,a,C),s.widgets.refreshTree(F)):console.log("Failed to change category:\n"+n)}));const O=g.createElement("a");O.setAttribute("href",y.uri),O.setAttribute("style","float:right"),F.appendChild(O).textContent=s.utils.label(y),O.addEventListener("click",s.widgets.openHrefInOutlineMode,!0);const M=s.ns.wf("coreIsueForm");o.parse('\n @prefix : <http://www.w3.org/ns/ui#> .\n @prefix core: <http://www.w3.org/2005/01/wf/flow#>.\n @prefix dc: <http://purl.org/dc/elements/1.1/>.\n @prefix wf: <http://www.w3.org/2005/01/wf/flow#> .\n\n core:coreIsueForm a :Form;\n <http://purl.org/dc/elements/1.1/title> "Core issue data";\n :parts (\n core:titleField\n core:descriptionField ) .\n\n core:descriptionField a :MultiLineTextField;\n :label "Description";\n :property wf:description;\n :size "40" .\n\n core:titleField a :SingleLineTextField;\n :label "Title";\n :maxLength "128";\n :property dc:title; # @@ Should move to dct or schema\n :size "40" .\n\n wf:Task :creationForm core:coreIsueForm .\n',a,M.doc().uri,"text/turtle");const A=s.widgets.appendForm(g,null,{},e,M,b,m);F.appendChild(A),A.style.backgroundColor=v;const D=a.statementsMatching(e,s.ns.wf("assignee"));if(D.length>1){d("Weird, was assigned to more than one person. Fixing ..");const e=D.slice(1);a.updater.update(e,[],function(e,n,t){n?d("Now fixed."):f("Fixed failed: "+t)})}function E(e){return s.widgets.personTR(g,s.ns.wf("dependent"),e,{link:!1})}function I(e,n){n=n||[];const t=a.any(null,s.ns.wf("dependent"),e,e.doc());return t?I(t,[t].concat(n)):n}if(async function(){const n=a.each(e,s.ns.wf("assigneeGroup"));await a.fetcher.load(n);const t=n.map(e=>a.each(e,s.ns.vcard("member"),null,e.doc())).flat(),i=a.any(null,s.ns.doap("bug-database"),y);i&&await a.fetcher.load(i);const r=i?a.each(i,s.ns.doap("developer")):[];return t.concat(r)}().then(n=>{if(n.length){n.forEach(function(e){a.fetcher.lookUpThing(e)});const i={nullLabel:"(unassigned)"};F.appendChild(s.widgets.makeSelectForOptions(g,a,e,s.ns.wf("assignee"),n,i,C,function(e,n){e?t(0,a,C):console.log("Failed to change assignee:\n"+n)}))}}),w(y,"allowSubIssues")){const n=F.appendChild(g.createElement("div"));n.style="margin: 1em; padding: 1em;",n.appendChild(g.createElement("h4")).textContent="Super Issues";const t=n.appendChild(g.createElement("div"));t.style.display="flex",t.refresh=function(){const n=I(e);s.utils.syncTableToArrayReOrdered(t,n,E)},t.refresh(),n.appendChild(g.createElement("h4")).textContent="Sub Issues";const i=n.appendChild(g.createElement("div"));i.style.display="flex",i.style.flexDirection="reverse",i.refresh=function(){const n=a.each(e,s.ns.wf("dependent"),null,e.doc());s.utils.syncTableToArrayReOrdered(i,n,E)},i.refresh();const o=g.createElement("button");o.setAttribute("type","button"),n.appendChild(o);const l=s.utils.label(x);o.innerHTML="New sub "+l,o.setAttribute("style","float: right; margin: 0.5em 1em;"),o.addEventListener("click",function(t){n.insertBefore((0,r.newIssueForm)(g,a,y,e,i.refresh),o.nextSibling)},!1)}F.appendChild(g.createElement("br"));const L=a.any(y,s.ns.wf("extrasEntryForm"));L&&s.widgets.appendForm(g,F,{},e,L,b,m);const N=F.appendChild(h(g,v));let q;a.anyValue(y,s.ns.wf("issueURITemplate"))?q=e.doc():(q=a.any(y,s.ns.wf("messageStore")),q||(q=a.any(y,s.ns.wf("stateStore"))),a.sym(q.uri+"#Chat"+(new Date).getTime())),a.fetcher.nowOrWhenFetched(q,function(n,t,i){if(n){const n=(0,s.messageArea)(g,a,e,q);F.insertBefore(n,N),F.insertBefore(h(g,v),n)}else{const e=g.createElement("p");e.textContent=t,F.insertBefore(e,N)}}),F.appendChild(g.createElement("div")).innerHTML="<h4>Attachments</h4>\n <p>Drag files, emails,\n web pages onto the paper clip, or click the file upload button.</p>";const j=e.uri.endsWith("/index.ttl#this")?e.uri.slice(0,14)+"Files/":e.dir().uri+"Files/"+e.uri.split("#")[1]+"/";s.widgets.attachmentList(g,e,F,{doc:b,promptIcon:s.icons.iconBase+"noun_25830.svg",uploadFolder:a.sym(j),predicate:s.ns.wf("attachment")}),s.widgets.deleteButtonWithCheck(g,F,"issue",async function(){try{await a.updater.update(a.connectedStatements(e))}catch(e){f(`Unable to delete issue: ${e}`)}f("DELETED OK"),F.style.backgroundColor="#eee",F.style.fontColor="orange"}).style.float="right";const U=g.createElement("button");return U.textContent="refresh messages",U.addEventListener("click",async function(e){try{await a.fetcher.load(q,{force:!0,clearPreviousData:!0})}catch(e){return void alert(e)}s.widgets.refreshTree(F)},!1),U.setAttribute("style",s.style.button),F.appendChild(U),F}},197:e=>{e.exports='# Ontology for user interface hints and forms\n#\n# See also related: the Fresnel language\n#\n@prefix contact: <http://www.w3.org/2000/10/swap/pim/contact#>.\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix doc: <http://www.w3.org/2000/10/swap/pim/doc#>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix owl: <http://www.w3.org/2002/07/owl#>.\n@prefix r: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\n@prefix s: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix tt: <http://dig.csail.mit.edu/2010/issues/track#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix : <http://www.w3.org/ns/ui#>.\n@prefix wf: <http://www.w3.org/2005/01/wf/flow#>.\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.\n\n@keywords is, of, a.\n\n<> dc:title "An ontology for User Interface description, Hints and Forms.";\n dc:description """The User Interface ontology allows the definition\n of forms for processing RDF model data, and include a bootstrap form for\n editing forms. It allows user interface hints such as background colors,\n can be associated with objects and classes.\n """;\n dc:created 2010-08-07;\n dc:license <https://creativecommons.org/publicdomain/zero/1.0/>;\n dc:modified """$Date: 2020/03/22 16:53:21 $""";\n dc:author <https://www.w3.org/People/Berners-Lee/card#i>.\n\nstyle a r:Property, owl:DatatypeProperty;\n s:label "style";\n prompt "CSS style";\n s:comment """Must be a valid CSS style string such as one could put in\n an HTML style attribute. Depending on the user interface system, this can\n by given to individuals, classes or properties. It is up to a user interface\n which wants to draw on them to pick how it uses styles from which parts\n of the data it has. For example, the style of a class may be picked\n to distinguish information about things in that class.""".\n\nbackgroundColor a r:Property, owl:DatatypeProperty;\n s:label "background color"@en;\n s:range ui:Color;\n s:comment """Must be a valid CSS color string such as one could put in\n an HTML style attribute. This should be in the #xxxxxx form,\n (with 6 digits of hex) so that it\n can work with Graphviz.""".\n\nbackgroundImage a r:Property, owl:DatatypeProperty;\n s:label "background image"@en;\n s:comment """URI or base64 representation of an image""".\n\ncolor a r:Property, owl:DatatypeProperty;\n s:label "color"@en;\n s:range ui:Color;\n s:comment """Must be a valid CSS color string such as one could put in\n an HTML style attribute. This should be in the #xxxxxx form,\n (with 6 digits of hex) so that it\n can work with Graphviz.""".\n\n\n\nsortPriority a r:Property, owl:DatatypeProperty;\n s:label "sort priority";\n s:range xsd:integer;\n s:comment """When individuals or classes must be sorted, then\n if they are given different values of sortPriority a user agent can\n use this as a hint to how to present information.""".\n\nsortBy a r:Property;\n s:label "sort by";\n s:domain s:Class;\n s:range r:Property;\n s:comment """A property which typically is used to sort\n members of a given class.""".\n\nseqeunce a r:Property;\n s:label "sequence number";\n s:range xsd:integer;\n s:comment """The sequence in which this item is arranged with repect to other parts.""".\n\ninitialProperties a r:Property;\n s:label "initial properties";\n s:domain s:Class;\n s:range r:List; # List of r:Property\n s:comment """A really simple way of enabling user interfaces to\n create new information about a class of things is to make a define of properties\n to be specified when a information about a new item\n ("New item" here means an item which the system\n does not have prvious information about yet,\n not an items which has just been created,\n like new friend as opposed to new baby)""";\n prompt "Properties to be specified for new ones".\n\ntableProperties a r:Property;\n s:domain s:Class;\n s:label "table properties";\n s:range r:List; # List of r:Property\n s:comment """This is a crude way of specifying a table-based\n view for objects of this class.""";\n prompt "Properties to be given in a default table view".\n\nprompt a r:Property;\n s:label "user prompt";\n s:comment """A string for the UI to use if the user needs a longer\n prompts than just a field name, the rdfs:label. """;\n ui:prompt "A longer prompt for a user inputting this property".\n\n\n# A Taxonomy of Field types\n\nui:Form owl:disjointUnionOf ( ui:ValueField ui:Group ui:Choice ui:Classifier ui:Options ui:Multiple ui:Heading ui:Comment);\n s:comment """A form can be any type of single field, or typically a Group of several fields,\n including interspersed headings and comments. """.\nui:Single owl:disjointUnionOf ( ui:ValueField ui:Group ui:Choice ui:Classifier ui:Options ui:Heading ui:Comment).\nui:ValueField owl:disjointUnionOf ( ui:TextField ui:NumericField ui:ColorField ui:DateField ui:DateTimeField ui:PhoneField ui:EmailField).\nui:NumericField owl:disjointUnionOf (ui:BooleanField ui:TriStateField ui:IntegerField ui:DecimalField ui:FloatField).\n# ui:Multiple owl:disjointUnionOf ( ui:ZeroOrMore ui:OneOrMore ).\nui:TextField owl:disjointUnionOf (ui:SingleLineTextField ui:MultiLineTextField).\n\nui:Form a s:Class; is s:subClassOf of ui:ValueField, ui:Group, ui:Choice, ui:Heading, ui:Comment, ui:Classifier, ui:Options, ui:Multiple.\nui:Single a s:Class; is s:subClassOf of ui:ValueField, ui:Group, ui:Choice, ui:Heading, ui:Comment, ui:Classifier, ui:Options.\nui:ValueField a s:Class; is s:subClassOf of ui:TextField, ui:NumericField, ui:ColorField, ui:DateField, ui:DateTimeField, ui:PhoneField, ui:EmailField.\nui:NumericField a s:Class; is s:subClassOf of ui:BooleanField, ui:TriStateField, ui:IntegerField, ui:DecimalField, ui:FloatField.\nui:TextField a s:Class; is s:subClassOf of ui:SingleLineTextField, ui:MultiLineTextField.\n\nui:Classifier a s:Class; s:label "classifier";\n s:comment """A classifier allows the user to select the type of an object.\n The possible types must be subclasses of some overall class, the "category".\n (Ideally, the superclass is also set up as the disjoint union of the subclasses,\n if they are disjoint.)\n\n The form normally stores the resulting classes using an rdf:type triple,\n but a different predicate can be used if required, so the classifier field\n needs is \'property\' defined too.\n\n If the subclass selected itself is has subclasses defined, the user can\n recursively select from them in turn, as many levels as needed.""".\n\nui:property a r:Property; s:domain ui:Form; s:range r:Property;\n s:label "property to be stored"@en;\n s:comment """Many fields prompt for information about a given property of the subject.\n When field is filled in, this gives which property is written into the data.""".\n\nui:category a r:Property; s:domain ui:Classifier; s:range s:Class;\n s:label "overall superclass"@en;\n s:comment """The superclass subclasses of which will be selected.""".\n\nui:dependingOn a r:Property; s:domain ui:Options; s:range r:Property;\n s:label "depending on"@en;\n s:comment """Many fields prompt for information about a given property of the subject""".\n\nui:for a r:Property; s:label "for"@en; s:comment "The value for which this case is selected.".\nui:use a r:Property; s:range ui:Form.\n\nui:part a r:Property; s:label "part"@en ; s:domain ui:Form; s:range ui:Form. # Used for Multiple field - the subform for each item\nui:parts a r:Property; s:label "parts"@en ; s:domain ui:Form; s:range r:Collection. # (of Forms) The ordered set of fields in a group\nui:ordered e r:Property; s:label "ordered"; s:range xsd:Boolean . # Could be useful for all kinds of things in future so not restricted to Multiple\n\nui:from a r:Property; s:domain ui:Choice; s:range r:Class;\n s:label "from"; ui:prompt "from what class".\n\nui:size a r:Property; s:domain ui:ValueField; s:range xsd:integer;\n s:label "size of field";\n ui:prompt "size of field in characters".\n\nui:maxLength a r:Property; s:domain ui:TextField; s:range xsd:integer;\n s:label "max length of value".\n\nui:minValue a r:Property; s:domain ui:ValueField; s:label "min". # @@ range?\nui:maxValue a r:Property; s:domain ui:ValueField; s:label "max".\n\n ui:creationForm a r:Property; s:domain s:Class; s:range ui:Form;\n s:label "creation form";\n s:comment """A form which may be used to collect information about a\n hitherto locally undocumented instance instance of this class.""".\n\n ui:annotationForm a r:Property; s:domain s:Class; s:range ui:Form;\n s:label "annotation form";\n s:comment """A form which may be used to add more infromation to an\ninstance of this class which we know something about. Anything from\nadding just add one more fact, to adding a whole lot of information about a specific\nfacet of the thing.\n""".\n\n\n#############################################\n#\n# Form for editing Forms\n#\n\nFormForm a ui:Form;\n dc:title "Form for editing Forms";\n is ui:creationForm of Form;\n a ui:Group; ui:parts (FF1 FF2 FF3 FieldList) .\n\n FF1 ui:sequence 1; a ui:Heading; ui:contents "Edit Form"@en .\n FF2 ui:sequence 2; a ui:SingleLineTextField; ui:property dc:title; ui:size 60 .\n FF3 ui:sequence 3; a ui:Comment; ui:contents\n """To add a field to the form, press the plus at the bottom,\n and then select what sort of field you want."""@en; ui:style "background-color: #ffe;" .\n\n FieldList ui:sequence 10; a ui:Multiple; ui:ordered true; ui:property ui:parts; ui:part FieldForm .\n\nFieldForm a ui:Group;\n dc:title "Form for selecting a type of field";\n ui:parts (\n\n [ ui:sequence 1; a ui:Classifier; ui:property r:type; ui:category ui:Form]\n\n [ a ui:Options; ui:sequence 2; ui:dependingOn r:type;\n\n ui:case [ ui:for ui:TextField; ui:use [a ui:Group; ui:parts (\n [ a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label "property"; ui:from owl:DatatypeProperty] # @@@ Needs inference on current web\n [ a ui:IntegerField; ui:property ui:size; ui:label "field size"; ui:min 1; ui:max 4096]\n [ a ui:IntegerField; ui:property ui:maxLength; ui:label "Max. length of string"; ui:min 1]\n )]];\n\n ui:case [ ui:for ui:IntegerField; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label "property"; ui:from owl:DatatypeProperty]\n [ ui:sequence 2; a ui:IntegerField; ui:property ui:min; ui:label "minimum value"]\n [ ui:sequence 3; a ui:IntegerField; ui:property ui:max; ui:label "maximum value"] ) ]];\n\n ui:case [ ui:for ui:DecimalField; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label "property"; ui:from owl:DatatypeProperty]\n [ ui:sequence 2; a ui:DecimalField; ui:property ui:min; ui:label "minimum value"]\n [ ui:sequence 3; a ui:DecimalField; ui:property ui:max; ui:label "maximum value"] ) ]];\n\n ui:case [ ui:for ui:FloatField; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label "property"; ui:from owl:DatatypeProperty]\n [ ui:sequence 2; a ui:FloatField; ui:property ui:min; ui:label "minimum value"]\n [ ui:sequence 3; a ui:FloatField; ui:property ui:max; ui:label "maximum value"] ) ]];\n\n ui:case [ ui:for ui:ColorField; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label "property"; ui:from owl:DatatypeProperty] )\n ]];\n\n ui:case [ ui:for ui:DateField; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label "property"; ui:from owl:DatatypeProperty]\n [ ui:sequence 2; a ui:DateField; ui:property ui:min; ui:label "min"]\n [ ui:sequence 3; a ui:DateField; ui:property ui:max ; ui:label "max"]\n ) ]];\n\n ui:case [ ui:for ui:DateTimeField; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label "property"; ui:from owl:DatatypeProperty]\n [ ui:sequence 2; a ui:DateTimeField; ui:property ui:min; ui:label "min"]\n [ ui:sequence 3; a ui:DateTimeField; ui:property ui:max ; ui:label "max"]\n ) ]];\n\n ui:case [ ui:for ui:EmailField; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label "property"; ui:from owl:ObjectProperty]\n ) ]];\n\n ui:case [ ui:for ui:PhoneField; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label "property"; ui:from owl:ObjectProperty]\n )]];\n\n ui:case [ ui:for ui:Group; ui:use FieldList];\n\n ui:case [ ui:for ui:Options; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:dependingOn; ui:label "depending on"; ui:from r:Property; ui:default r:type]\n [ ui:sequence 2; a ui:Multiple; ui:property ui:case; ui:part CaseForm]\n ) ]];\n\n ui:case [ ui:for ui:Choice; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label "property";\n ui:canMintNew true; ui:from owl:ObjectProperty]\n [ ui:sequence 2; a ui:Choice; ui:canMintNew true; ui:property ui:from; ui:label "destination class";\n ui:from s:Class; ui:canMintNew true; ]\n [ ui:sequence 3; a ui:BooleanField; ui:property ui:canMintNew; # No class form yet\n ui:label "user can add new"]\n [ ui:sequence 4; a ui:Choice; ui:canMintNew true; ui:property ui:use; ui:label "Nested Form (if any)";\n ui:from ui:Form; ui:optional true; ui:use FormForm] # @@ optional\n\n ) ]];\n\n ui:case [ ui:for ui:Classifier; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 2; a ui:Comment; ui:contents """A classifier allows the user to which classes the item belongs to, given a common superclass of the allowed classes. Give the superclass here:""" ]\n\n [ ui:sequence 4; a ui:Choice; ui:canMintNew true; ui:property ui:category; ui:label "superclass"; ui:from s:Class]\n\n [ ui:sequence 6; a ui:Comment; ui:contents """(When the choice is made normally the item is given a rdf:type. Set this to rdf:type unless you want the form to set a different property.)""" ]\n\n [ ui:sequence 8; a ui:Choice; ui:canMintNew true; ui:property ui:property;\n ui:label "property"; ui:from owl:ObjectProperty; ui:default r:type] # @@ restriction\n\n ) ]];\n\n ui:case [ ui:for ui:Multiple; ui:use [a ui:Group; ui:parts (\n [ui:sequence 0; a ui:BooleanField; ui:property ui:ordered; ui:label "ordered"] # If this an ordered array or an unordered set?\n [ui:sequence 0; a ui:IntegerField; ui:property ui:min; ui:label "minimum number"] # If this an ordered array or an unordered set?\n [ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label "property"; ui:from r:Property]\n [ui:sequence 2; a ui:Choice; ui:canMintNew true; ui:property ui:part; ui:from ui:Form; ui:use FieldForm] # Form for details of the field part of the multiple\n ) ]];\n\n ui:case [ ui:for ui:Heading; ui:use [a ui:SingleLineTextField; ui:property ui:contents]];\n\n ui:case [ ui:for ui:Comment; ui:use [a ui:MultiLineTextField; ui:property ui:contents]]\n ]).\n\n\nCaseForm a ui:Group;\n dc:title "Form for a conditional case in a form";\n ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:for; ui:label "when it is"; ui:canMintNew true; ui:from s:Class]\n [ui:sequence 2; a ui:Choice; ui:canMintNew true; ui:property ui:use; ui:from ui:Form; ui:canMintNew true; ui:use FieldForm] ). # Form for details of the field part of the multiple\n\n# ENDS\n'},240:e=>{e.exports='# Issue tracking - Workflow application definition ontology\n#\n# Finite state automaton ontology\n#\n# See requirements for tracking tools http://www.w3.org/2005/01/06-tool-req.html\n#\n@keywords a, is, of.\n\n@prefix : <http://www.w3.org/2005/01/wf/flow#>.\n@prefix wf: <http://www.w3.org/2005/01/wf/flow#>.\n\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n@prefix s: <http://www.w3.org/2000/01/rdf-schema#> .\n@prefix owl: <http://www.w3.org/2002/07/owl#>.\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.\n\n@prefix doc: <http://www.w3.org/2000/10/swap/pim/doc#> .\n@prefix log: <http://www.w3.org/2000/10/swap/log#> .\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix contact: <http://www.w3.org/2000/10/swap/pim/contact#> .\n@prefix doap: <http://usefulinc.com/ns/doap#>.\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix dct: <http://purl.org/dc/terms/>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n\n<> dc:title "Issue Tracking Ontology";\n\n dct:creator <http://www.w3.org/People/Berners-Lee/card#i>;\n\n s:comment """This ontology defines a very general class (Task)\n which can used for any kind of bug tracking, issue tracking,\n to-do-list management, action items, goal dependency, and so on.\n It captures the state of a task as a subclass, so that\n subsumption can be used.\n It captures a discussion thread about a task.\n It captures subtasks structure if necessary.\n A "Tracker" defines actual set of states, categories, etc.,\n which a task can be in. The data about the tracker\n guides the software managing the task.\n\n There is some workflow modeling finite state machine\n terms which are optional for more complex definition\n of the transitions allowed.\n """.\n\nTask a s:Class;\n s:label "task"@en; owl:disjointUnionOf (Open Closed);\n s:comment """Something to be done in a wide sense,\n an agenda item at a meeting is one example, but any\n issue, task, action item, goal, product, deliverable, milestone, can such a thing.\n The requirement for this framework was that it would allow\n one to customize ontologies for things such as agenda items,\n action items, working group issues with a spec, w3c Last Call issues,\n software bugs and administrative requests.\n In π-calculus, a process.\n Make your type of issue a subclass of Task.\n """.\n\nOpen a s:Class; s:subClassOf Task;\n s:label "open"@en, "ouvert"@fr;\n ui:backgroundColor "#d6f5d6"; # green like github for some reason\n s:comment """A task which needs attention. The very crude states of Open and Closed all\n interoperability between different systems if the states for a given\n application are made subclasses of either Open or Closed. This allows\n tasks from different systems to be mixed and treated together with\n limited but valuable functionality.\n """.\n\nClosed a s:Class; s:subClassOf Task;\n s:label "closed"@en, "fermé"@fr;\n ui:backgroundColor "#f5d6d6"; # pink\n s:comment """A task which does not need attention. It may be closed because\n has been abandoned or completed, for example.\n """.\n\n\n ActionItem a s:Class;\n s:subClassOf Task;\n s:label "action item"@en; owl:disjointUnionOf (Open Closed);\n s:comment """An obligation taken on by a person, typically at a meeting.\n """.\n\n\ndescription a rdf:Property;\n s:label "description";\n s:comment """The description, definition,\n or abstract. Information explaining what this is.\n Not arbitrary comment about anything, only about the subject.\n (Use this property for anything. There is no domain restriction.).""".\n\ndependent a rdf:Property;\n s:label "how"; owl:inverseOf [ s:label "why"];\n s:domain Task; s:range Task;\n s:comment """Another task upon which this depends, in the sense that\n this task cannot be completed without that task being done.\n You can\'t use this for dependencies on anything other than other tasks.\n (Note the US spelling of the URI. In the UK, a dependant is a something\n which is dependent on somehing else.)""".\n\nassignee a rdf:Property;\n s:label "assigned to"; owl:inverseOf [s:label "assignment"];\n# s:domain Task;\n s:range foaf:Agent;\n s:comment """The person or group to whom this has been assigned.""".\n\n# use dct:modified\n#modified a rdf:Property;\n# s:label "last changed".\n\nmodifiedBy a rdf:Property;\n s:range foaf:Agent;\n s:label "changed by".\n\n# use dct:created instead\n#created a rdf:Property;\n# s:range xsd:dateTime;\n#\n# Use foaf:maker instead\n#creator a rdf:Property;\n# s:range foaf:Agent;\n# s:label "changed by".\n\nsubscriber a rdf:Property;\n s:label "subscriber";\n s:range foaf:Agent.\n\n\n################## Products\n#\n#\n# History: The Tracker system included a cocept of a product,\n# such that an action could be associated with *either* an issue *or* a product.\n# Noah Mendelsohn for the TAG needed to be able make\n# and to give products: Goals, scuuess criteria,\n# deliverables with dates, schedules, TAG members assigned, related issues.\n#\n\n\nProduct a s:Class; s:subClassOf Task;\n s:label "product";\n s:comment """A product is a task which monitors something\n which must be produced.""".\n\ndeliverable a rdf:Property; s:subPropertyOf dependent;\n s:range Product;\n s:label "deliverable"@en;\n s:comment """Something which must be delivered to accomplish this""".\n\ngoalDescription a rdf:Property, owl:DatatypeProperty;\n s:domain Task; s:range xsd:string;\n s:label "goals";\n s:comment """A textual description of the goals of this product, etc.""".\n\nsuccessCriteria a rdf:Property, owl:DatatypeProperty;\n s:domain Task; s:range xsd:string;\n s:label "success criteria";\n s:comment """A textual description of the successs critera.\n How when we know this is done?""".\n\ndateDue a rdf:Property, owl:DatatypeProperty;\n s:domain Task; s:range xsd:date;\n s:label "due"@en;\n s:comment """The date this task is due.\n """.\n\n################## Attachments\n\nattachment a rdf:Property;\n s:label "attachment";\n s:comment """Something related is attached for information.""".\n\nscreenShot a rdf:Property; s:subPropertyOf attachment;\n s:label "screen shot"@en;\n s:comment """An image taken by capturing the state of a\n computer screen, for example to demonstrate a problem""".\n\ntestData a rdf:Property; s:subPropertyOf attachment;\n s:label "test data"@en;\n s:comment """A file which can be used as inpiut to a test\n or to demonstrate a problem. """.\n\n\nterminalOutput a rdf:Property; s:subPropertyOf attachment;\n s:label "terminal output"@en;\n s:comment """A file showing user interaction from a\n text terminal or console etc. """.\n\n\nmessage a rdf:Property; s:subPropertyOf attachment;\n s:label "message"@en;\n s:comment """A message about this. Attached for information.""".\n\n\nMessage a s:Class; s:label "message"@en.\nrecipent a rdf:Property; s:label "to"; s:domain Message; s:range foaf:Agent.\nsender a rdf:Property; s:label "from"; s:domain Message; s:range foaf:Agent.\n\n############################# A Tracker connects and manages issues\n\ntracker a rdf:Property;\n s:label "tracker";\n owl:inverseOf [ s:label "issue"];\n s:domain Task;\n s:range Tracker.\n\nTracker a s:Class;\n s:label "tracker";\n s:comment """A set of issues and\n the constraints on how they evolve.\n To use this ontology, craete a new tracker.\n Copy an existing one or make up your own.""".\n\nissueClass a rdf:Property;\n s:label "all issues must be in";\n s:domain Tracker;\n s:range s:Class, State;\n s:comment """The class of issues which are allowed in this tracker.\n This is essemtial to the operation of the tracker,\n as it defines which states an issue can be in.\n (The issueClass must be a disjointUnionOf the state classes)""".\n\nissueCategory a rdf:Property;\n s:label "issue category";\n s:domain Tracker;\n s:range s:Class;\n s:comment """Issues may be categorized according to the\n subclasses of this class""".\n\nstateStore a rdf:Property;\n s:label "state store";\n s:domain Tracker;\n s:range doc:Document;\n s:comment """A read-write document.\n The state of the issues is modified here.\n When you set up a trcaker, thgis must be set to point\n to a writeble data resource on the web.""".\n\ntransactionStore\n a rdf:Property;\n s:label "transaction store";\n s:domain Tracker;\n s:range doc:Document;\n s:comment """An appendable document. Transactions and messsages\n can be written into here""".\n\nasigneeClass\n a rdf:Property;\n s:label "assignees must be";\n s:domain Tracker;\n s:range s:Class; # Subclass of foaf:Agent\n s:comment """When an issue is assigned, the assignee must be from this class""".\n\ninitialState\n a rdf:Property;\n s:label "initial state"@en;\n s:label "état initial"@fr;\n s:domain Tracker;\n s:range State;\n s:comment """The initial state for a new issue""".\n\n# Use this to link a project to a tracker\ndoap:bug-database owl:inverseOf [ s:label "project"@en ].\n\n\n\n\n############################################################\n#\n# Finite state machines\n#\nChange a s:Class;\n s:label "change";\n s:comment """The universal class of things which\nchange the state of a task.\nIncluded now: Creation, Transition. (Maybe in the future\nmore π-calculus constructions such as splitting & merging tasks,\nand import/export of obligations to a foreign opaque system.)\n""".\n\nTransition a s:Class; s:subClassOf Change;\n s:label "transition";\n s:comment """A transition is a change of state of\na task. Typical properties include date and/or source\n(a document causing the transition), and a final state.""".\n\nCreation a s:Class; s:subClassOf Change;\n s:label "creation";\n s:comment """A creation is a change from existence\nto non-existence\na task. Typical properties include date and/or source\n(a document causing the transition), and a final state.""".\n\n\ndate s:range DateTime.\n\nfinal a rdf:Property;\n s:label "to";\n s:domain Transition;\n s:range State.\n\ntask a rdf:Property;\n s:range Task;\n s:label "task".\n\nrequires a rdf:Property;\n s:label "requires";\n s:domain Transition;\n s:range rdf:List; # Of properties for validation\n s:comment """To be a valid transition,\n a necessary (but not necessarily sufficuent) condition\n is that there be recorded these properties for the record""".\n\naffects a rdf:Property;\n s:label "affects";\n s:domain doc:Work;\n s:range Task.\n\n\n# { ?x a Transition; task ?t; source ?doc } => { ?doc affects ?t }.\n\n\ncreates a rdf:Property;\n s:label "creates";\n s:domain doc:Work;\n s:range Task.\n\n\nallowedTransitions a rdf:Property;\n s:domain State;\n s:range rdf:List; # @@@ of Action\n s:label "allowed transitions";\n s:comment """The state machine is defined\n by these lists of transition allowed for each issue.\n (An interesting option in the Web is to make an allowed transition\n to a state in soemone else\'s ontology, which in turn allows\n transitions into many ontologies. So a finite state maxchine\n may become very large. In practice this means that a task handed\n off to another organization may be processed on all kinds of ways.)""".\n\n# { ?x a TerminalState} => { ?x allowedTransitions () }.\n\nfinal a rdf:Property;\n s:label "to";\n s:range State.\n\nissue a rdf:Property;\n s:label "issue";\n s:comment\n """A transition changes the state of the given issue.""".\n\nsource a rdf:Property;\n s:label "source";\n s:comment """The source of a transition is\n the document by which it happened""";\n s:range doc:Work.\nTerminalState a s:Class;\n s:subClassOf State;\n s:label "terminal state";\n s:comment """A state from which there are no transitions.""".\n\nNonTerminalState a s:Class;\n s:label "non-terminal state";\n owl:disjointWith TerminalState;\n s:comment """A state from which there are transitions.""".\n\n######################################################\n\n#ends\n'},264:e=>{e.exports=r},324:(e,n,t)=>{t.d(n,{newIssueForm:()=>r});var s=t(426),i=t(264);function r(e,n,t,r,o){const a=e.createElement("div"),l=n.any(t,s.ns.wf("stateStore")),u=n.any(t,s.ns.wf("issueClass")),c=s.utils.label(u);a.innerHTML="<h2>Add new "+(r?"sub ":"")+c+"</h2><p>Title of new "+c+":</p>";const d=e.createElement("input");return d.setAttribute("type","text"),d.setAttribute("style","margin: 0.5em; font-size: 100%; padding: 0.3em;"),d.setAttribute("size","100"),d.setAttribute("maxLength","2048"),d.select(),d.addEventListener("keyup",function(e){13===e.keyCode&&function(){d.setAttribute("class","pendingedit"),d.disabled=!0;const e=[],u=n.anyValue(t,s.ns.wf("issueURITemplate")),c=u?n.sym(function(e){const n=new i.Literal(new Date),t=""+(new Date).getTime(),s=n.value.slice(0,4),r=n.value.slice(5,7),o=n.value.slice(8,10);return e.replace("{N}",t).replace("{YYYY}",s).replace("{MM}",r).replace("{DD}",o)}(i.uri.join(u,l.uri))):n.sym(l.uri+"#Iss"+(new Date).getTime()),p=c.doc(),f=n.literal(d.value);e.push(new i.Statement(c,s.ns.wf("tracker"),t,l)),e.push(new i.Statement(c,s.ns.dc("title"),f,l)),e.push(new i.Statement(c,s.ns.dct("created"),new Date,l));const m=r?n.each(r,s.ns.rdf("type"),null,r.doc()):n.each(t,s.ns.wf("initialState"));for(const n of m)e.push(new i.Statement(c,s.ns.rdf("type"),n,l));r&&e.push(new i.Statement(r,s.ns.wf("dependent"),c,l)),u&&(e.push(new i.Statement(c,s.ns.wf("tracker"),t,p)),e.push(new i.Statement(c,s.ns.rdfs("seeAlso"),l,p))),n.updater.update([],e,function(e,n,t){n?(a.parentNode.removeChild(a),o(c)):console.log("Error: can't save new issue:"+t)})}()},!1),a.appendChild(d),d.focus(),a}},426:e=>{e.exports=s},663:e=>{e.exports=i},685:(e,n,t)=>{t.d(n,{csvButton:()=>o});var s=t(426),i=t(663);function r(e){const n=e.replaceAll("\n"," ");if(!n.includes(","))return n;const t='"'+n.replaceAll('"','""')+'"';if(console.log("Quoted: >>>"+t+"<<<"),t.slice(1,-1).replaceAll('""',"").includes('"'))throw new Error("CSV inconsistecy");return t}function o(e,n){const t=e.createElement("div"),o=s.widgets.button(e,s.icons.iconBase+"noun_Document_998605.svg","Copy as CSV",async e=>{const t=o.parentNode.parentNode;console.log("button gparent div",t),t.addEventListener("copy",e=>{const t=function(e,n){const t=e.any(n,s.ns.wf("stateStore")),i=e.each(null,s.ns.wf("tracker"),n,t);console.log(" CSV: Tasks:",i.length);const o=[{label:"Name",predicate:s.ns.dc("title")}],a=e.any(n,s.ns.wf("issueClass"));console.log(" CSV: States - main superclass:",a);const l={label:"State",category:a};console.log(" CSV: found column from state",l),o.push(l);const u=e.each(n,s.ns.wf("issueCategory"));console.log(" CSV: Categories : ",u),console.log(" CSV: Categories : length: ",u.length),console.log(" CSV: Categories : first: ",u[0]);const c=u;for(const e of c){const n={label:s.utils.label(e),category:e};console.log(" CSV: found column from classifications",n),o.push(n)}const d=e.any(n,s.ns.wf("extrasEntryForm"),null,null);if(console.log(" CSV: Form : ",d),d){const n=e.any(d,s.ns.ui("parts"),null,d.doc());console.log(" CSV: parts : ",n);const t=n.elements;console.log(" CSV: fields : ",t);for(const n of t){const t=e.any(n,s.ns.ui("property"));if(t){const e={label:s.utils.label(t),predicate:t};console.log(" CSV: found column from form",e),o.push(e)}}}o.push({label:"Description",predicate:s.ns.wf("description")}),console.log("Columns: ",o.length);const p=o.map(e=>e.label).join(",")+"\n";return console.log("CSV: Header= ",p),p+i.map(function(n){return o.map(t=>function(n,t){let i;if(t.predicate)return i=e.any(n,t.predicate),i?i.value:"--";if(!t.category)throw new Error("wot no pred or cat",t);{const r=e.each(n,s.ns.rdf("type"));for(const n of r)e.holds(n,s.ns.rdfs("subClassOf"),t.category)&&(i=n);if(!i)return"?"+s.utils.label(t.category)}return s.utils.label(i)}(n,t)).map(r).join(",")+"\n"}).join("")}(i.store,n);e.clipboardData.setData("text/plain",t),e.clipboardData.setData("text/csv",t),alert("Copy data: "+t),e.preventDefault()})});return t.appendChild(o),t}},719:(e,n,t)=>{t.d(n,{newTrackerButton:()=>l});var s=t(426),i=t(264),r=t(663);const o=s.ns,a=r.store.updater;function l(e,n){const t=s.login.newAppInstance(n.dom,{noun:"tracker"},function(t,r){function l(e){if(void 0!==e.elements)return e.elements.map(l);if(void 0===e.uri)return e;let n=e.uri;return n===p.uri?f:(n.slice(0,h.length)===h&&(n=r+n.slice(h.length)),d.sym(n))}const u="issuetracker.w3.org",c=s.ns.space,d=n.session.store;if(!r&&("/"!==(r=d.any(t,c("uriPrefix")).value).slice(-1)&&(i.log.error(u+": No / at end of uriPrefix "+r),r+="/"),r+=u+"/"+(new Date).getTime()+"/",!confirm("Make new tracker at "+r+"?")))return;const p=d.any(e,o.wf("stateStore")),f=d.sym(r+"store.ttl"),m=e.doc(),h=m.uri.slice(0,m.uri.lastIndexOf("/")+1),w=l(m),g=l(e),y=d.statementsMatching(void 0,void 0,void 0,m);for(let e=0;e<y.length;e++){const n=y[e];d.add(l(n.subject),l(n.predicate),l(n.object),w)}d.add(g,s.ns.space("inspiration"),e,p),d.add(g,s.ns.space("inspiration"),e,w),a.put(w,d.statementsMatching(void 0,void 0,void 0,w),"text/turtle",function(e,n,t){n?a.put(f,[],"text/turtle",function(e,n,t){n?console.info("Ok The tracker created OK at: "+g.uri+"\nMake a note of it, bookmark it. "):console.log("FAILED to set up new store at: "+f.uri+" : "+t)}):console.log("FAILED to save new tracker at: "+w.uri+" : "+t)})});return t.setAttribute("style","margin: 0.5em 1em;"),t}}},n={};function t(s){var i=n[s];if(void 0!==i)return i.exports;var r=n[s]={exports:{}};return e[s](r,r.exports,t),r.exports}t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var s in n)t.o(n,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:n[s]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};t.r(o),t.d(o,{default:()=>w});var a=t(426),l=t(663),u=t(85),c=t(178),d=t(719),p=t(324),f=t(685),m=t(264);const h=l.store,w={icon:a.icons.iconBase+"noun_122196.svg",name:"issue",audience:[],label:function(e,n){const t=h.findTypeURIs(e);return t["http://www.w3.org/2005/01/wf/flow#Task"]||h.holds(e,a.ns.wf("tracker"))?"issue":t["http://www.w3.org/2005/01/wf/flow#Tracker"]?"tracker":null},mintClass:a.ns.wf("Tracker"),mintNew:async function(e,n){const t=e.session.store;let s;n.newInstance?s=t.sym(n.newInstance.doc().uri+"_state.ttl"):(n.newInstance=t.sym(n.newBase+"index.ttl#this"),s=t.sym(n.newBase+"state.ttl"));const i=n.newInstance,r=i.doc(),o=l.authn.currentUser();o&&t.add(i,a.ns.dc("author"),o,r),t.add(i,a.ns.rdf("type"),a.ns.wf("Tracker"),r),t.add(i,a.ns.dc("created"),new Date,r),t.add(i,a.ns.wf("issueClass"),a.ns.wf("Task"),r),t.add(i,a.ns.wf("initialState"),a.ns.wf("Open"),r),t.add(i,a.ns.wf("stateStore"),s,r),t.add(i,a.ns.wf("assigneeClass"),a.ns.foaf("Person"),r),t.add(i,a.ns.wf("stateStore"),s,s);const u=t.statementsMatching(void 0,void 0,void 0,r).concat(t.statementsMatching(void 0,void 0,void 0,s));try{await async function(e,n){const s=e.concat(n).map(e=>e.why),i=Array.from(new Set(s)).map(s=>t.updater.update(e.filter(e=>e.why.sameTerm(s)),n.filter(e=>e.why.sameTerm(s))));return Promise.all(i)}([],u)}catch(n){return a.widgets.complain(e,"Error writing tracker configuration: "+n)}const c=e.dom;return n.div.appendChild(c.createElement("div")).innerHTML=`<h4>Success</h4>\n <p>Your <a href="${i.uri}">new tracker</a> has been made.\n Use the settings tab to configure it.\n </p>\n `,n},render:function(e,n){const s=n.dom,i=s.createElement("div");function r(e){console.warn(e),i.appendChild(a.widgets.errorMessageBlock(s,e))}function o(e,n){e||r(n)}function w(e,t){const i=h.any(e,a.ns.wf("issueClass")),o=(t=t||i).sameTerm(i),l=h.any(t,a.ns.owl("disjointUnionOf"));if(!l)return r(`Configuration error: state ${i} does not have substates`);let d=l.elements;o&&d.length>2&&(d=d.filter(e=>h.holds(e,a.ns.rdfs("subClassOf"),a.ns.wf("Open"))||e.sameTerm(a.ns.wf("Open"))));const p={columnDropHandler:async function(e,s){const i=(0,c.getState)(e,t),r=h.the(e,a.ns.wf("tracker"),null,e.doc()),o=h.any(r,a.ns.wf("stateStore"));if(!s.sameTerm(i)){try{await h.updater.update([m.st(e,a.ns.rdf("type"),i,o)],[m.st(e,a.ns.rdf("type"),s,o)])}catch(e){a.widgets.complain(n,"Unable to change issue state: "+e)}f.refresh()}},filter:o?null:function(e){return!!h.findTypeURIs(e)[a.ns.wf("Open").uri]}};p.sortBy=a.ns.dct("created"),p.sortReverse=!0;const f=(0,u.board)(s,d,function(e){return(0,c.renderIssueCard)(e,n)},p);return f}function g(e){const t=s.createElement("div"),i=l.authn.currentUser(),r={div:t,dom:s,noun:"tracker",statusArea:t,me:i,refreshTarget:e},o=[n.session.paneRegistry.byName("issue")];return a.create.newThingUI(r,n,o),t}function y(){const t=h.any(x,a.ns.wf("issueClass")),i=[k,C,t].concat(h.each(x,a.ns.wf("issueCategory")));i.push(F);const r={renderMain:function(t,i){if(t.innerHTML="",i.sameTerm(b))t.appendChild(w(x));else if(i.sameTerm(C))t.appendChild(function(t){function i(){const e=new m.IndexedFormula;return u.pat.optional.push(e),e}const r=h.any(e,a.ns.wf("issueClass")),o=h.each(t,a.ns.wf("issueCategory")),l=["issue","state","created"],u=new m.Query(a.utils.label(e));for(let e=0;e<o.length;e++)l.push("_cat_"+e);const d={};l.forEach(function(e){u.vars.push(d[e]=m.variable(e))}),u.pat.add(d.issue,a.ns.wf("tracker"),t),u.pat.add(d.issue,a.ns.dct("created"),d.created),u.pat.add(d.issue,a.ns.rdf("type"),d.state),u.pat.add(d.state,a.ns.rdfs("subClassOf"),r),u.pat.optional=[];for(let e=0;e<o.length;e++){const n=i();n.add(d.issue,a.ns.rdf("type"),d["_cat_"+e]),n.add(d["_cat_"+e],a.ns.rdfs("subClassOf"),o[e])}const p=h.any(t,a.ns.wf("propertyList"));if(p){const e=p.elements;for(let n=0;n<e.length;n++){const t=e[n];let s="_prop_"+n;t.uri.indexOf("#")>=0&&(s=t.uri.split("#")[1]);const r=i();u.vars.push(d[s]=m.variable(s)),r.add(d.issue,t,d[s])}}const f={};h.each(void 0,a.ns.rdfs("subClassOf"),r).forEach(function(e){(h.holds(e,a.ns.rdfs("subClassOf"),a.ns.wf("Open"))||e.sameTerm(a.ns.wf("Open")))&&(f[e.uri]=!0)});const w=(0,a.table)(s,{query:u,keyVariable:"?issue",sortBy:"?created",sortReverse:!0,hints:{"?issue":{linkFunction:function(e){const t=m.sym(e);(0,c.exposeOverlay)(t,n)},label:"Title"},"?created":{cellFormat:"shortDate"},"?state":{initialSelection:f,label:"Status"}}}),g=h.any(e,a.ns.wf("stateStore"));return w.appendChild(function(e,n){return a.widgets.button(s,a.icons.iconBase+"noun_479395.svg","refresh table",async t=>{try{await h.fetcher.load(e,{force:!0,clearPreviousData:!0})}catch(e){return void alert(e)}a.widgets.refreshTree(n)})}(g,w)),w}(x));else if(i.sameTerm(F))t.appendChild(function(e){const n=s.createElement("div");n.appendChild((0,f.csvButton)(s,e));const t=h.any(e,a.ns.wf("issueClass")),i=[C,t].concat(h.each(e,a.ns.wf("issueCategory"))),r=n.appendChild(s.createElement("div"));a.widgets.renderNameValuePair(s,h,r,null,"Default view").appendChild(a.widgets.makeSelectForOptions(s,h,e,a.ns.wf("defaultView"),i,{},e.doc()));const l={dom:s,div:n,noun:"tracker"};return a.login.registrationControl(l,e,a.ns.wf("Tracker")).then(t=>{const i=a.ns.wf("TrackerSettingsForm");m.parse('@prefix : <http://www.w3.org/ns/ui#> .\n@prefix core: <http://www.w3.org/2005/01/wf/flow#>.\n@prefix dct: <http://purl.org/dc/terms/>.\n@prefix owl: <http://www.w3.org/2002/07/owl#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix ui: <http://www.w3.org/ns/ui#> .\n@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.\n@prefix wf: <http://www.w3.org/2005/01/wf/flow#> .\n\n core:TrackerSettingsForm a :Form;\n <http://purl.org/dc/elements/1.1/title> "Tracker Configuration Form";\n :parts (\n\n [ a ui:Heading; ui:contents "About the tracker"@en ]\n\n [ a :SingleLineTextField;\n :label "Title of issue tracker";\n :maxLength "128";\n :property dct:title;\n :size "40" ]\n\n [ a :MultiLineTextField; :label "Description"; :property wf:description; :size "40" ]\n\n [ a ui:Choice; ui:canMintNew true; ui:use core:SuperClassForm; ui:follow true;\n ui:property wf:issueClass;\n ui:label "What states can an issue be in?";\n ui:from rdfs:Class;\n ui:default wf:Task ]\n\n [ a ui:Comment; ui:contents """You can optionally sort issues using (one or more) classification systems"""@en ]\n\n\n [ a ui:Multiple; ui:canMintNew true; ui:part core:ClassificationForm;\n ui:property wf:issueCategory; ui:label "Sort them into which category?"; ui:from rdfs:Class ]\n\n [ a :BooleanField;\n :label "Allow issues to have sub-issues";\n :property wf:allowSubIssues;\n :default false ]\n\n [ a ui:Heading; ui:contents "Table view:"@en ]\n\n [ a ui:Comment; ui:contents "Any extra properties to include?"@en ]\n\n\n [a ui:Multiple; ui:property wf:propertyList; ui:ordered true; ui:part core:PropertyForm; ui:follow true ]\n\n [ a ui:Heading; ui:contents "Details of issues"@en ]\n\n # Use a people picker ideally\n [ a ui:Choice; ui:canMintNew true; ui:use core:GroupForm;\n ui:property wf:assigneeGroup;\n ui:label "Assign issues to people from which group?";\n ui:from vcard:Group;\n ]\n\n # Optionally one form for extras\n\n [ a ui:Choice; ui:canMintNew true; ui:use ui:FormForm;\n ui:property wf:extrasEntryForm;\n ui:label "Other things to save about each issue?";\n ui:from ui:Form;\n ]\n\n\n ) .\n\n # Form for the superclass of all states\n # @@ also We must require each state class to be stated to be a subclass of EITHER Open OR Closed.\n core:SuperClassForm a ui:Form; dct:title "Form for managing states";\n ui:parts (\n [ a :SingleLineTextField;\n :label "Name of set of states";\n :defualt "States";\n :maxLength "128";\n :property rdfs:label;\n :size "40" ]\n [a ui:Multiple; ui:property owl:disjointUnionOf; ui:ordered true; ui:part core:StateForm ]\n # [ a ui:Multiple; ui:property rdfs:subClassOf; ui:reverse true; ui:part core:StateForm ]\n ) .\n\n core:StateForm a ui:Form; dct:title "Form for one state";\n ui:parts (\n [ a :SingleLineTextField;\n :label "Name of state";\n :maxLength "128";\n :property rdfs:label;\n :size "40" ]\n [ a :ColorField; :label "Background color"; :property :backgroundColor ]\n # @@ add icon for state\n\n ).\n\n\n # Form for Classification\n\n core:ClassificationForm a ui:Form; dct:title "Form for a classification by categpry";\n ui:parts (\n [ a :SingleLineTextField;\n :label "Name of classification:";\n :maxLength "128";\n :property rdfs:label;\n :size "40" ]\n [a ui:Multiple; ui:property owl:disjointUnionOf; ui:ordered true; ui:part core:CategoryForm ]\n ) .\n\n core:CategoryForm a ui:Form; dct:title "Form for a category";\n ui:parts (\n [ a :SingleLineTextField;\n :label "Name of category";\n :maxLength "128";\n :property rdfs:label;\n :size "40" ]\n [ a :ColorField; :label "Background color"; :property :backgroundColor ]\n\n ).\n\n core:PropertyForm a ui:Form; ui:parts ( # Internded for raed only only marking the\n [ a :SingleLineTextField;\n :label "(property name)";\n :maxLength "128";\n :property rdfs:label;\n :size "40" ]\n ).\n\n\n # Other ontology stuff we are otherwis missing\n\n # we can usde ui:label to give a decent abel when the ontology uses a really bad one\n rdfs:subClassOf ui:label "super class" .\n # We can also add a specific nice label for the inverse\n [] owl:inverse rdfs:subClassOf; rdfs:label "sub class" .\n owl:disjointUnionOf ui:label "option" .\n\n # Form for new group\n\n\n core:GroupForm a ui:Form; dct:title "Form for new contacts group"; ui:parts (\n [ a :SingleLineTextField;\n :label "Name of new group";\n :maxLength "128";\n :property vcard:fn;\n :size "60" ]\n\n [ a ui:Heading; ui:contents "Members of group"@en ]\n\n [ a ui:Multiple; ui:label "contacts in group"; ui:property vcard:member; ui:part core:PersonForm ]\n\n ).\n\n core:PersonForm a ui:Form; dct:title "New contact details form"; ui:parts (\n\n [ a :NamedNodeURIField; ui:label "Solid ID"; ui:property owl:sameAs; ui:size 60 ]\n\n [ a :SingleLineTextField;\n :label "Name of contact";\n :maxLength "128";\n :property vcard:fn;\n :size "60" ]\n\n [ a ui:PhoneField; :label "Phone"; :property vcard:phone; ] # @@ check property]\n\n [ a :EmailField; :label "Email"; :property vcard:email ] # @@ check property\n\n ).\n\n# classificattion owl:disjointUnionOf ()\n wf:Tracker :creationForm core:SettingsForm .\n',h,i.doc().uri,"text/turtle"),a.widgets.appendForm(s,n,{},e,i,e.doc(),o)}),n}(x));else if(i.sameTerm(k))t.appendChild(function(e){const n=s.createElement("div"),t={dom:s,div:n,noun:"tracker"};return a.login.registrationList(t,{public:!0,private:!0,type:e}).then(e=>{n.appendChild(g(n))}),n}(a.ns.wf("Tracker")));else{if(!h.holds(x,a.ns.wf("issueCategory"),i)&&!h.holds(x,a.ns.wf("issueClass"),i))throw new Error("Unexpected tab type: "+i);t.appendChild(w(x,i))}},items:i,selectedTab:h.any(x,a.ns.wf("defaultView"),null,x.doc())||C},l=k.doc();return h.add(k,a.ns.rdfs("label"),"My Trackers",l),h.add(F,a.ns.rdfs("label"),"Settings",l),h.add(t,a.ns.rdfs("label"),"By State",l),a.tabs.tabWidget(r)}n.paneDiv=i,i.setAttribute("class","issuePane");const b=a.ns.wf("BoardView"),C=a.ns.wf("TableView"),F=a.ns.wf("SettingsView"),k=a.ns.wf("InstancesView"),v=h.updater,T=h.findTypeURIs(e);let x;const S=a.ns.wf("").doc();h.holds(void 0,void 0,void 0,S)||m.parse(t(240),h,S.uri,"text/turtle");const P=a.ns.ui("").doc();let O;h.holds(void 0,void 0,void 0,P)||m.parse(t(197),h,P.uri,"text/turtle"),T["http://www.w3.org/2005/01/wf/flow#Task"]||h.holds(e,a.ns.wf("tracker"))?async function(){if(x=h.any(e,a.ns.wf("tracker")),!x)throw new Error("This issue "+e+"has no tracker");try{await n.session.store.fetcher.load(x.doc())}catch(e){return r("Failed to load tracker config "+x.doc()+": "+e)}const t=h.any(x,a.ns.wf("stateStore"));if(!t)return r("Tracker has no state store: "+x);try{await n.session.store.fetcher.load(e)}catch(e){return r("Failed to load issue state "+t+": "+e)}i.appendChild((0,c.renderIssue)(e,n)),v.addDownstreamChangeListener(t,function(){a.widgets.refreshTree(i)})}().then(()=>console.log("Single issue rendered")):T["http://www.w3.org/2005/01/wf/flow#Tracker"]?async function(){function t(e){a.widgets.refreshTree(i),(0,c.exposeOverlay)(e,n),f.disabled=!1}x=e;try{await async function(e,n){async function t(n){const t=e.any(n,a.ns.owl("disjointUnionOf"),null,s);if(!t)throw new Error(`Classification ${n} has no disjointUnionOf`);if(!t.elements)throw new Error(`Classification ${n} has no array`);const i=new Set(t.elements.map(e=>e.uri)),r=new Set(e.each(null,a.ns.rdfs("subClassOf"),n,s).map(e=>e.uri)),o=[...r].filter(e=>!i.has(e)).map(t=>({action:"delete",st:m.st(e.sym(t),a.ns.rdfs("subClassOf"),n,s)})),l=[...i].filter(e=>!r.has(e)).map(t=>({action:"insert",st:m.st(e.sym(t),a.ns.rdfs("subClassOf"),n,s)}));return o.concat(l)}const s=n.doc(),i=e.any(n,a.ns.wf("issueClass")),r=e.each(n,a.ns.wf("issueCategory")).concat([i]);let o=[];for(const e of r)o=o.concat(await t(e));if(o.length){const n=o.filter(e=>"insert"===e.action).map(e=>e.st),t=o.filter(e=>"delete"===e.action).map(e=>e.st);console.log("Damage:",o),confirm(`Fix ${o} inconsistent subclasses in tracker config?`)&&await e.updater.update(t,n)}}(h,x)}catch(e){console.log("@@@ Error fixing subclasses in config: "+e)}const r=h.any(e,a.ns.wf("issueClass"));if(!r)throw new Error("This tracker has no issueClass");const o=h.any(e,a.ns.wf("stateStore"));if(!o)throw new Error("This tracker has no stateStore");const l=s.createElement("h2");l.setAttribute("style","font-size: 150%"),i.appendChild(l);const u=a.utils.label(r);l.appendChild(s.createTextNode(u+" list"));const f=s.createElement("button"),w=s.createElement("div");f.setAttribute("type","button"),f.setAttribute("style","padding: 0.3em; font-size: 100%; margin: 0.5em;"),w.appendChild(f),i.appendChild(w);const g=s.createElement("img");g.setAttribute("src",a.icons.iconBase+"noun_19460_green.svg"),g.setAttribute("style","width: 1em; height: 1em; margin: 0.2em;"),f.appendChild(g);const b=s.createElement("span");b.innerHTML="New "+u,f.appendChild(b),f.addEventListener("click",function(e){f.disabled=!0,w.appendChild((0,p.newIssueForm)(s,h,x,null,t))},!1),n.session.store.fetcher.load([o]).then(function(t){const s=y();i.appendChild(s),s.refresh||console.log("No table refresh function?!"),i.appendChild((0,d.newTrackerButton)(e,n)),v.addDownstreamChangeListener(o,s.refresh)}).catch(function(e){return console.log("Cannot load state store: "+e)})}().then(()=>console.log("Tracker rendered")):console.log("Error: Issue pane: No evidence that "+e+" is either a bug or a tracker.");const M=i.appendChild(s.createElement("div"));return n.overlay=M,M.style="position: fixed; z-index: 100; top: 1.51em; right: 2em; left: 2em; bottom:1.5em; border: 0.1em grey; overflow: scroll;",M.style.visibility="hidden",l.authn.checkUser().then(e=>{if(e)return console.log("Web ID set already: "+e),void(n.me=e);O=a.login.loginStatusBox(s,e=>{e?(n.me=h.sym(e),console.log("Web ID set from login button: "+e),i.removeChild(O)):n.me=null}),O.setAttribute("style","margin: 0.5em 1em;"),i.appendChild(O),n.statusArea||(n.statusArea=i.appendChild(s.createElement("div")))}),i}};return o})())}}]);
2
+ //# sourceMappingURL=443.mashlib.min.js.map
@@ -0,0 +1,134 @@
1
+ (this.webpackChunkMashlib=this.webpackChunkMashlib||[]).push([[477],{24(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StuffCard=void 0;var i=n(2179),o=n(3383),r=n(3057),a=n(2061);const s=document,u=((0,a.styleMap)((0,r.fullWidth)()),(0,a.styleMap)({...(0,r.textGray)(),...(0,r.textCenter)()}),(0,a.styleMap)((0,r.card)())),l=(0,a.styleMap)({...(0,r.paddingSmall)(),...(0,r.textLeft)()});function c(e,t){return function(e,t){return o.widgets.personTR(t,null,e.instance,{})}(e,t)}function d(e){return 0===e.length?i.html``:i.html`${c(e[0],s)}${e.length>1?d(e.slice(1)):i.html``}`}t.StuffCard=(e,t,n,o)=>{const{stuff:s}=o,c=(0,a.styleMap)({...(0,r.heading)(),color:e.highlightColor});return i.html`
2
+ <div>
3
+ <div data-testid="stuff" style="${u}">
4
+ <div style=${l}>
5
+ <h3 style=${c}>Stuff</h3>
6
+
7
+ <div style=${l}><table data-testid="stuffTable">${d(s)}</table></div>
8
+ <hr />
9
+
10
+ </div>
11
+ </div>
12
+ </div>
13
+ `}},63(e,t,n){const i=n(2751);function o(e){this.mode=i.BYTE,this.data="string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=o},463(e,t,n){const i=n(6399).getSymbolSize;t.getPositions=function(e){const t=i(e);return[[0,0],[t-7,0],[0,t-7]]}},1154(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearPreviousMessage=function(e){for(;e.childNodes.length>1;)e.removeChild(e.lastChild)},t.complain=function(e,t,n){e.appendChild(i.widgets.errorMessageBlock(t.dom,n))},t.mention=function(e,t){const n=document.createElement("div");n.setAttribute("style","margin: 0.1em; padding: 0.5em; border: 0.05em solid gray; background-color: #efe; color:black;"),n.innerHTML=t,e.appendChild(n)};var i=n(3383)},1343(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n=3,i=3,o=40,r=10;function a(e,n,i){switch(e){case t.Patterns.PATTERN000:return(n+i)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return i%3==0;case t.Patterns.PATTERN011:return(n+i)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(i/3))%2==0;case t.Patterns.PATTERN101:return n*i%2+n*i%3==0;case t.Patterns.PATTERN110:return(n*i%2+n*i%3)%2==0;case t.Patterns.PATTERN111:return(n*i%3+(n+i)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let i=0,o=0,r=0,a=null,s=null;for(let u=0;u<t;u++){o=r=0,a=s=null;for(let l=0;l<t;l++){let t=e.get(u,l);t===a?o++:(o>=5&&(i+=n+(o-5)),a=t,o=1),t=e.get(l,u),t===s?r++:(r>=5&&(i+=n+(r-5)),s=t,r=1)}o>=5&&(i+=n+(o-5)),r>=5&&(i+=n+(r-5))}return i},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let i=0;i<t-1;i++)for(let o=0;o<t-1;o++){const t=e.get(i,o)+e.get(i,o+1)+e.get(i+1,o)+e.get(i+1,o+1);4!==t&&0!==t||n++}return n*i},t.getPenaltyN3=function(e){const t=e.size;let n=0,i=0,r=0;for(let o=0;o<t;o++){i=r=0;for(let a=0;a<t;a++)i=i<<1&2047|e.get(o,a),a>=10&&(1488===i||93===i)&&n++,r=r<<1&2047|e.get(a,o),a>=10&&(1488===r||93===r)&&n++}return n*o},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let i=0;i<n;i++)t+=e.data[i];return Math.abs(Math.ceil(100*t/n/5)-10)*r},t.applyMask=function(e,t){const n=t.size;for(let i=0;i<n;i++)for(let o=0;o<n;o++)t.isReserved(o,i)||t.xor(o,i,a(e,o,i))},t.getBestMask=function(e,n){const i=Object.keys(t.Patterns).length;let o=0,r=1/0;for(let a=0;a<i;a++){n(a),t.applyMask(a,e);const i=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),i<r&&(r=i,o=a)}return o}},1682(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t),n.d(t,"validateHTMLColorName",function(){return a}),n.d(t,"validateHTMLColorSpecialName",function(){return s}),n.d(t,"validateHTMLColorHex",function(){return u}),n.d(t,"validateHTMLColorRgb",function(){return m}),n.d(t,"validateHTMLColorHsl",function(){return f}),n.d(t,"validateHTMLColorHwb",function(){return y}),n.d(t,"validateHTMLColorLab",function(){return w}),n.d(t,"validateHTMLColorLch",function(){return b}),n.d(t,"validateHTMLColor",function(){return C});const i=e=>e&&"string"==typeof e,o=["AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","Black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenrod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","Goldenrod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenrodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquamarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenrod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"],r=["currentColor","inherit","transparent"],a=e=>{let t=!1;return i(e)&&o.map(n=>(e.toLowerCase()===n.toLowerCase()&&(t=!0),null)),t},s=e=>{let t=!1;return i(e)&&r.map(n=>(e.toLowerCase()===n.toLowerCase()&&(t=!0),null)),t},u=e=>{if(i(e)){return e&&/^#([\da-f]{3}){1,2}$|^#([\da-f]{4}){1,2}$/i.test(e)}return!1},l="(([\\d]{0,5})((\\.([\\d]{1,5}))?))",c=`(${l}%)`,d="(([0-9]|[1-9][0-9]|100)%)",h=`(${d}|(0?((\\.([\\d]{1,5}))?))|1)`,p=`([\\s]{0,5})\\)?)(([\\s]{0,5})(\\/?)([\\s]{1,5})(((${d}))|(0?((\\.([\\d]{1,5}))?))|1))?([\\s]{0,5})\\)`,g="(-?(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-9][0-9]|3[0-5][0-9])((\\.([\\d]{1,5}))?)|360)(deg)?)",m=e=>{if(i(e)){const t="([\\s]{0,5})([\\d]{1,5})%?([\\s]{0,5}),?",n="((([\\s]{0,5}),?([\\s]{0,5}))|(([\\s]{1,5})))",i=new RegExp(`^(rgb)a?\\(${t}${n}${t}${n}${t}${n}((\\/?([\\s]{0,5})(0?\\.?([\\d]{1,5})%?([\\s]{0,5}))?|1|0))?\\)$`);return e&&i.test(e)}return!1},f=e=>{if(i(e)){const t=new RegExp(`^(hsl)a?\\((([\\s]{0,5})(${g}|(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-9][0-9]|3[0-9][0-9]|400)grad)|((([0-5])?\\.([\\d]{1,5})|6\\.([0-9]|1[0-9]|2[0-8])|[0-6])rad)|((0?((\\.([\\d]{1,5}))?)|1)turn))((([\\s]{0,5}),([\\s]{0,5}))|(([\\s]{1,5}))))(([\\s]{0,5})(0|${d})((([\\s]{0,5}),([\\s]{0,5}))|(([\\s]{1,5}))))(([\\s]{0,5})(0|${d})([\\s]{0,5})\\)?)(([\\s]{0,5})(\\/?|,?)([\\s]{0,5})(((${d}))|(0?((\\.([\\d]{1,5}))?))|1))?\\)$`);return e&&t.test(e)}return!1},y=e=>{if(i(e)){const t=new RegExp(`^(hwb\\(([\\s]{0,5})${g}([\\s]{1,5}))((0|${d})([\\s]{1,5}))((0|${d})${p}$`);return e&&t.test(e)}return!1},w=e=>{if(i(e)){const t="(-?(([0-9]|[1-9][0-9]|1[0-5][0-9])((\\.([\\d]{1,5}))?)?|160))",n=new RegExp(`^(lab\\(([\\s]{0,5})${c}([\\s]{1,5})${t}([\\s]{1,5})${t}${p}$`);return e&&n.test(e)}return!1},b=e=>{if(i(e)){const t=new RegExp(`^lch\\((([\\s]{0,5})${"((([0-9]|[1-9][0-9])?((\\.([\\d]{1,5}))?)|100)(%)?)"}([\\s]{1,5})${""+l}([\\s]{1,5})${`((${g})|(0|${h})|(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-9][0-9]|3[0-5][0-9])((\\.([\\d]{1,5}))?)|360))`}([\\s]{0,5})(${`(\\/([\\s]{0,5})${h})`})?)\\)$`);return e&&t.test(e)}return!1},C=e=>!!(e&&u(e)||m(e)||f(e)||y(e)||w(e)||b(e));t.default=e=>!!(e&&u(e)||a(e)||s(e)||m(e)||f(e)||y(e)||w(e)||b(e))}])},1740(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIconForClass=c,t.iconForClassMap=void 0,t.presentStuff=async function(e){const t=await u(null,e);return{stuff:t.map(e=>{const t=c(e.type||o.ns.rdf("Resource"));return{href:e.instance.uri,name:o.utils.label(e.instance),icon:t,instance:e.instance}})}};var i=n(9676),o=n(3383),r=n(2404);const{iconForClass:a}=o.widgets,{typeIndex:s}=r.solidLogicSingleton,{getScopedAppInstances:u}=s,l=t.iconForClassMap={};for(const e in a){const t=e.split(":")[0],n=e.split(":")[1],r=o.ns[t](n);l[r.uri]=i.uri.join(a[e],o.icons.iconBase)}function c(e){return l[e.uri]||o.icons.iconBase+"noun_10636.svg"}},2061(e,t,n){"use strict";n.r(t),n.d(t,{styleMap:()=>s});var i=n(2179),o=n(8517);
14
+ /**
15
+ * @license
16
+ * Copyright 2018 Google LLC
17
+ * SPDX-License-Identifier: BSD-3-Clause
18
+ */
19
+ const r="important",a=" !"+r,s=(0,o.u$)(class extends o.WL{constructor(e){if(super(e),e.type!==o.OA.ATTRIBUTE||"style"!==e.name||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,n)=>{const i=e[n];return null==i?t:t+`${n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(e,[t]){const{style:n}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(t)),this.render(t);for(const e of this.ft)null==t[e]&&(this.ft.delete(e),e.includes("-")?n.removeProperty(e):n[e]=null);for(const e in t){const i=t[e];if(null!=i){this.ft.add(e);const t="string"==typeof i&&i.endsWith(a);e.includes("-")||t?n.setProperty(e,t?i.slice(0,-11):i,t?r:""):n[e]=i}}return i.noChange}})},2179(e,t,n){"use strict";n.r(t),n.d(t,{_$LH:()=>j,html:()=>O,mathml:()=>x,noChange:()=>z,nothing:()=>I,render:()=>U,svg:()=>k});
20
+ /**
21
+ * @license
22
+ * Copyright 2017 Google LLC
23
+ * SPDX-License-Identifier: BSD-3-Clause
24
+ */
25
+ const i=globalThis,o=e=>e,r=i.trustedTypes,a=r?r.createPolicy("lit-html",{createHTML:e=>e}):void 0,s="$lit$",u=`lit$${Math.random().toFixed(9).slice(2)}$`,l="?"+u,c=`<${l}>`,d=document,h=()=>d.createComment(""),p=e=>null===e||"object"!=typeof e&&"function"!=typeof e,g=Array.isArray,m=e=>g(e)||"function"==typeof e?.[Symbol.iterator],f="[ \t\n\f\r]",y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,w=/-->/g,b=/>/g,C=RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),A=/'/g,v=/"/g,F=/^(?:script|style|textarea|title)$/i,S=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),O=S(1),k=S(2),x=S(3),z=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),$=new WeakMap,P=d.createTreeWalker(d,129);function L(e,t){if(!g(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==a?a.createHTML(t):t}const M=(e,t)=>{const n=e.length-1,i=[];let o,r=2===t?"<svg>":3===t?"<math>":"",a=y;for(let t=0;t<n;t++){const n=e[t];let l,d,h=-1,p=0;for(;p<n.length&&(a.lastIndex=p,d=a.exec(n),null!==d);)p=a.lastIndex,a===y?"!--"===d[1]?a=w:void 0!==d[1]?a=b:void 0!==d[2]?(F.test(d[2])&&(o=RegExp("</"+d[2],"g")),a=C):void 0!==d[3]&&(a=C):a===C?">"===d[0]?(a=o??y,h=-1):void 0===d[1]?h=-2:(h=a.lastIndex-d[2].length,l=d[1],a=void 0===d[3]?C:'"'===d[3]?v:A):a===v||a===A?a=C:a===w||a===b?a=y:(a=C,o=void 0);const g=a===C&&e[t+1].startsWith("/>")?" ":"";r+=a===y?n+c:h>=0?(i.push(l),n.slice(0,h)+s+n.slice(h)+u+g):n+u+(-2===h?t:g)}return[L(e,r+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]};class T{constructor({strings:e,_$litType$:t},n){let i;this.parts=[];let o=0,a=0;const c=e.length-1,d=this.parts,[p,g]=M(e,t);if(this.el=T.createElement(p,n),P.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=P.nextNode())&&d.length<c;){if(1===i.nodeType){if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(s)){const t=g[a++],n=i.getAttribute(e).split(u),r=/([.?@])?(.*)/.exec(t);d.push({type:1,index:o,name:r[2],strings:n,ctor:"."===r[1]?B:"?"===r[1]?G:"@"===r[1]?D:E}),i.removeAttribute(e)}else e.startsWith(u)&&(d.push({type:6,index:o}),i.removeAttribute(e));if(F.test(i.tagName)){const e=i.textContent.split(u),t=e.length-1;if(t>0){i.textContent=r?r.emptyScript:"";for(let n=0;n<t;n++)i.append(e[n],h()),P.nextNode(),d.push({type:2,index:++o});i.append(e[t],h())}}}else if(8===i.nodeType)if(i.data===l)d.push({type:2,index:o});else{let e=-1;for(;-1!==(e=i.data.indexOf(u,e+1));)d.push({type:7,index:o}),e+=u.length-1}o++}}static createElement(e,t){const n=d.createElement("template");return n.innerHTML=e,n}}function _(e,t,n=e,i){if(t===z)return t;let o=void 0!==i?n._$Co?.[i]:n._$Cl;const r=p(t)?void 0:t._$litDirective$;return o?.constructor!==r&&(o?._$AO?.(!1),void 0===r?o=void 0:(o=new r(e),o._$AT(e,n,i)),void 0!==i?(n._$Co??=[])[i]=o:n._$Cl=o),void 0!==o&&(t=_(e,o._$AS(e,t.values),o,i)),t}class N{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:n}=this._$AD,i=(e?.creationScope??d).importNode(t,!0);P.currentNode=i;let o=P.nextNode(),r=0,a=0,s=n[0];for(;void 0!==s;){if(r===s.index){let t;2===s.type?t=new R(o,o.nextSibling,this,e):1===s.type?t=new s.ctor(o,s.name,s.strings,this,e):6===s.type&&(t=new H(o,this,e)),this._$AV.push(t),s=n[++a]}r!==s?.index&&(o=P.nextNode(),r++)}return P.currentNode=d,i}p(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,i){this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=_(this,e,t),p(e)?e===I||null==e||""===e?(this._$AH!==I&&this._$AR(),this._$AH=I):e!==this._$AH&&e!==z&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):m(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==I&&p(this._$AH)?this._$AA.nextSibling.data=e:this.T(d.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,i="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=T.createElement(L(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(t);else{const e=new N(i,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=$.get(e.strings);return void 0===t&&$.set(e.strings,t=new T(e)),t}k(e){g(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,i=0;for(const o of e)i===t.length?t.push(n=new R(this.O(h()),this.O(h()),this,this.options)):n=t[i],n._$AI(o),i++;i<t.length&&(this._$AR(n&&n._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=o(e).nextSibling;o(e).remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class E{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,i,o){this.type=1,this._$AH=I,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=o,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=I}_$AI(e,t=this,n,i){const o=this.strings;let r=!1;if(void 0===o)e=_(this,e,t,0),r=!p(e)||e!==this._$AH&&e!==z,r&&(this._$AH=e);else{const i=e;let a,s;for(e=o[0],a=0;a<o.length-1;a++)s=_(this,i[n+a],t,a),s===z&&(s=this._$AH[a]),r||=!p(s)||s!==this._$AH[a],s===I?e=I:e!==I&&(e+=(s??"")+o[a+1]),this._$AH[a]=s}r&&!i&&this.j(e)}j(e){e===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class B extends E{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===I?void 0:e}}class G extends E{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==I)}}class D extends E{constructor(e,t,n,i,o){super(e,t,n,i,o),this.type=5}_$AI(e,t=this){if((e=_(this,e,t,0)??I)===z)return;const n=this._$AH,i=e===I&&n!==I||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==I&&(n===I||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class H{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){_(this,e)}}const j={M:s,P:u,A:l,C:1,L:M,R:N,D:m,V:_,I:R,H:E,N:G,U:D,B,F:H},W=i.litHtmlPolyfillSupport;W?.(T,R),(i.litHtmlVersions??=[]).push("3.3.2");const U=(e,t,n)=>{const i=n?.renderBefore??t;let o=i._$litPart$;if(void 0===o){const e=n?.renderBefore??null;i._$litPart$=o=new R(t.insertBefore(h(),e),e,void 0,n??{})}return o._$AI(e),o}},2217(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CVCard=void 0;var i=n(2179),o=n(3057),r=n(2061);(0,r.styleMap)((0,o.fullWidth)()),(0,r.styleMap)({...(0,o.textGray)(),...(0,o.textCenter)()});const a=(0,r.styleMap)((0,o.card)()),s=(0,r.styleMap)({...(0,o.paddingSmall)(),...(0,o.textLeft)()});(0,r.styleMap)({...(0,o.paddingSmall)(),...(0,o.textRight)()});function u(e){if(e[0]>"")return i.html`${t=e[0],t?i.html`<div style="margin-top: 0.3em; margin-bottom: 0.3em;">
26
+ <b>${t.orgName}</b>
27
+ <span>${d(t.roleText)}</span>
28
+ <span>${t.dates}</span>
29
+ </div> `:i.html``}${e.length>1?u(e.slice(1)):i.html``}`;var t}function l(e){if(e[0]>"")return i.html`${t=d(e[0]),t?i.html`<div style="margin: 0.5em;">
30
+ <p style="text-align: center;">${t}</p>
31
+ </div> `:i.html``} ${e.length>1?l(e.slice(1)):i.html``}`;var t}function c(e){if(e[0]>"")return i.html`${t=e[0],t?i.html`<div style="margin: 0.5em;">
32
+ <p style="text-align: center;">${t}</p>
33
+ </div> `:i.html``}${e.length>1?c(e.slice(1)):i.html``}`;var t}function d(e){if(e&&e[0]>""){const t=e.split(" ");for(let e=0;e<t.length;e++)t[e]=t[e].charAt(0).toUpperCase()+t[e].substring(1);return t.join(" ")}return""}t.CVCard=(e,t)=>{const{rolesByType:n,skills:d,languages:h}=t,p=(0,r.styleMap)({...(0,o.heading)(),color:e.highlightColor});return u(n.FutureRole)||u(n.CurrentRole)||u(n.PastRole)||l(d)||c(h)?i.html`
34
+ <div>
35
+ <div data-testid="curriculum-vitae" style="${a}">
36
+ <div style=${s}>
37
+ <h3 style=${p}>Bio</h3>
38
+ <div style=${s}>${u(n.FutureRole)}</div>
39
+ <hr />
40
+ <div style=${s}>${u(n.CurrentRole)}</div>
41
+ <hr />
42
+ <div style=${s}>${u(n.PastRole)}</div>
43
+ <hr />
44
+ <h3 style=${p}>Skills</h3>
45
+ <div style=${s}>${l(d)}</div>
46
+ <h3 style=${p}>Languages</h3>
47
+ <div style=${s}>${c(h)}</div>
48
+
49
+ </div>
50
+ </div>
51
+ </div>
52
+ `:i.html``}},2591(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,i=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:i,scale:i?4:o,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const i=t.getScale(e,n);return Math.floor((e+2*n.margin)*i)},t.qrToImageData=function(e,n,i){const o=n.modules.size,r=n.modules.data,a=t.getScale(o,i),s=Math.floor((o+2*i.margin)*a),u=i.margin*a,l=[i.color.light,i.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let c=4*(t*s+n),d=i.color.light;if(t>=u&&n>=u&&t<s-u&&n<s-u){d=l[r[Math.floor((t-u)/a)*o+Math.floor((n-u)/a)]?1:0]}e[c++]=d.r,e[c++]=d.g,e[c++]=d.b,e[c]=d.a}}},2751(e,t,n){const i=n(3523),o=n(6257);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!i.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},2906(e,t,n){const i=n(2751),o=n(7630),r=n(5424),a=n(63),s=n(3482),u=n(6257),l=n(6399),c=n(3785);function d(e){return unescape(encodeURIComponent(e)).length}function h(e,t,n){const i=[];let o;for(;null!==(o=e.exec(n));)i.push({data:o[0],index:o.index,mode:t,length:o[0].length});return i}function p(e){const t=h(u.NUMERIC,i.NUMERIC,e),n=h(u.ALPHANUMERIC,i.ALPHANUMERIC,e);let o,r;l.isKanjiModeEnabled()?(o=h(u.BYTE,i.BYTE,e),r=h(u.KANJI,i.KANJI,e)):(o=h(u.BYTE_KANJI,i.BYTE,e),r=[]);return t.concat(n,o,r).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function g(e,t){switch(t){case i.NUMERIC:return o.getBitsLength(e);case i.ALPHANUMERIC:return r.getBitsLength(e);case i.KANJI:return s.getBitsLength(e);case i.BYTE:return a.getBitsLength(e)}}function m(e,t){let n;const u=i.getBestModeForData(e);if(n=i.from(t,u),n!==i.BYTE&&n.bit<u.bit)throw new Error('"'+e+'" cannot be encoded with mode '+i.toString(n)+".\n Suggested mode is: "+i.toString(u));switch(n!==i.KANJI||l.isKanjiModeEnabled()||(n=i.BYTE),n){case i.NUMERIC:return new o(e);case i.ALPHANUMERIC:return new r(e);case i.KANJI:return new s(e);case i.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e},[])},t.fromString=function(e,n){const o=function(e){const t=[];for(let n=0;n<e.length;n++){const o=e[n];switch(o.mode){case i.NUMERIC:t.push([o,{data:o.data,mode:i.ALPHANUMERIC,length:o.length},{data:o.data,mode:i.BYTE,length:o.length}]);break;case i.ALPHANUMERIC:t.push([o,{data:o.data,mode:i.BYTE,length:o.length}]);break;case i.KANJI:t.push([o,{data:o.data,mode:i.BYTE,length:d(o.data)}]);break;case i.BYTE:t.push([{data:o.data,mode:i.BYTE,length:d(o.data)}])}}return t}(p(e,l.isKanjiModeEnabled())),r=function(e,t){const n={},o={start:{}};let r=["start"];for(let a=0;a<e.length;a++){const s=e[a],u=[];for(let e=0;e<s.length;e++){const l=s[e],c=""+a+e;u.push(c),n[c]={node:l,lastCount:0},o[c]={};for(let e=0;e<r.length;e++){const a=r[e];n[a]&&n[a].node.mode===l.mode?(o[a][c]=g(n[a].lastCount+l.length,l.mode)-g(n[a].lastCount,l.mode),n[a].lastCount+=l.length):(n[a]&&(n[a].lastCount=l.length),o[a][c]=g(l.length,l.mode)+4+i.getCharCountIndicator(l.mode,t))}}r=u}for(let e=0;e<r.length;e++)o[r[e]].end=0;return{map:o,table:n}}(o,n),a=c.find_path(r.map,"start","end"),s=[];for(let e=1;e<a.length-1;e++)s.push(r.table[a[e]].node);return t.fromArray(function(e){return e.reduce(function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}(s))},t.rawSplit=function(e){return t.fromArray(p(e,l.isKanjiModeEnabled()))}},3e3(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.userNotLoggedInErrorMessage=t.logInAddMeToYourFriendsButtonText=t.loadingMessage=t.internalErrorMessage=t.friendWasAddedSuccesMessage=t.friendExistsMessage=t.friendExistsAlreadyButtonText=t.chatWithMeButtonText=t.addMeToYourFriendsButtonText=void 0;t.userNotLoggedInErrorMessage="Current user not found! Not logged in?",t.internalErrorMessage="An internal error occured!",t.friendWasAddedSuccesMessage="Friend was added!",t.friendExistsMessage="Friend already exists",t.loadingMessage="Loading...",t.addMeToYourFriendsButtonText="Add me to your friend list",t.logInAddMeToYourFriendsButtonText="Login to add me to your friend list",t.friendExistsAlreadyButtonText="Already part of friend list",t.chatWithMeButtonText="Chat with me"},3057(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.textXl=t.textRight=t.textLeft=t.textGray=t.textDarkGray=t.textCenter=t.responsiveGrid=t.paddingSmall=t.padding=t.marginVerticalSmall=t.label=t.headingLight=t.heading=t.fullWidth=t.fontThin=t.fontSemibold=t.card=void 0;t.responsiveGrid=()=>({"--auto-grid-min-size":"30rem",display:"grid","grid-template-columns":"repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr))","grid-gap":"1rem"});t.card=()=>({backgroundColor:"white",borderRadius:"4px",boxShadow:"0 1px 5px rgba(0,0,0,0.2)",padding:"0"});t.fullWidth=()=>({width:"100%","max-width":"100vw"});t.padding=()=>({padding:"1rem"});t.paddingSmall=()=>({padding:"0.25rem"});t.marginVerticalSmall=()=>({marginTop:"0.25rem",marginBottom:"0.25rem"});const n=()=>({textAlign:"center"});t.textCenter=n;t.textLeft=()=>({textAlign:"left"});t.textRight=()=>({textAlign:"right"});const i=()=>({fontSize:"1.25rem",lineHeight:"1.75rem"});t.textXl=i;const o=()=>({fontWeight:"100"});t.fontThin=o;const r=()=>({fontWeight:"600"});t.fontSemibold=r;const a=()=>({color:"rgb(55, 65, 81,)"});t.textDarkGray=a;const s=()=>({color:"rgb(107, 114, 128)"});t.textGray=s;t.heading=()=>({textAlign:"center",fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600",color:"rgb(55, 65, 81,)",margin:"0"});t.headingLight=()=>({color:"rgb(107, 114, 128)",fontWeight:"100",fontSize:"1.25rem",lineHeight:"1.75rem",margin:"0"});t.label=()=>({color:"rgb(107, 114, 128)",fontWeight:"600"})},3364(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=n(2179),r=n(8464),a=(i=n(3702))&&i.__esModule?i:{default:i},s=n(3383),u=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,r,a={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return a;if(o=t?i:n){if(o.has(e))return o.get(e);o.set(e,a)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?o(a,t,r):a[t]=e[t]);return a}(e,t)}(n(5032));const l={global:!1,icon:s.icons.iconBase+"noun_15059.svg",name:"profile",label:function(e,t){const n=t.session.store.findTypeURIs(e);return n[s.ns.vcard("Individual").uri]||n[s.ns.foaf("Person").uri]||n[s.ns.schema("Person").uri]?"Profile":null},editor:a.default,render:(e,t)=>{const n=t.dom.createElement("div");return async function(e,t){const n=e.each(t,s.ns.rdfs("seeAlso"),null,t.doc());n.length>0&&await e.fetcher.load(n)}(t.session.store,e).then(async()=>{(0,o.render)(await(0,r.ProfileView)(e,t),n);const i=Array.from(n.getElementsByClassName("QRCode"));if(!i.length)return console.error("QRCode Ele missing");for(const e of i){const t=e.getAttribute("data-value");if(!t)return console.error("QRCode data-value missing");const n={type:"svg",color:{dark:e.getAttribute("highlightColor")||"#000000",light:e.getAttribute("backgroundColor")||"#ffffff"}};u.toString(t,n,function(t,n){t?console.error("QRcode error!",t):(e.innerHTML=n,e.style.width="80%",e.style.height="80%",e.style.margin="10%")})}}),n}};t.default=l},3368(e,t,n){const i=n(2591);t.render=function(e,t,n){let o=n,r=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(r=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=i.getOptions(o);const a=i.getImageWidth(e.modules.size,o),s=r.getContext("2d"),u=s.createImageData(a,a);return i.qrToImageData(u.data,e,o),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,r,a),s.putImageData(u,0,0),r},t.renderToDataURL=function(e,n,i){let o=i;void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={});const r=t.render(e,n,o),a=o.type||"image/png",s=o.rendererOpts||{};return r.toDataURL(a,s.quality)}},3482(e,t,n){const i=n(2751),o=n(6399);function r(e){this.mode=i.KANJI,this.data=e}r.getBitsLength=function(e){return 13*e},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=o.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=r},3507(e,t,n){const i=n(5790),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case i.L:return o[4*(e-1)+0];case i.M:return o[4*(e-1)+1];case i.Q:return o[4*(e-1)+2];case i.H:return o[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case i.L:return r[4*(e-1)+0];case i.M:return r[4*(e-1)+1];case i.Q:return r[4*(e-1)+2];case i.H:return r[4*(e-1)+3];default:return}}},3523(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},3702(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(9676),o=n(3383),r=n(7643);const a=o.style.highlightColor||"#7C4DFF",s={global:!0,icon:o.icons.iconBase+"noun_492246.svg",name:"editProfile",label:()=>null,render:function(e,t){console.log("@@@ render edit profile pane: subject, context",e,t);const n=t.dom,s=t.session.store;function u(e,t){e||l.appendChild(o.widgets.errorMessageBlock(n,t,"#fee"))}const l=n.createElement("div");let c;l.setAttribute("data-testid","profile-editor"),l.setAttribute("style",`border: 0.3em solid ${a}; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;`);const d=l.appendChild(n.createElement("table")),h=d.appendChild(n.createElement("tr")),p=d.appendChild(n.createElement("tr")).appendChild(n.createElement("div"));function g(e){const t=h.appendChild(n.createElement("p"));return t.setAttribute("style","padding: 1em;"),t.textContent=e,t}function m(e){const t=h.appendChild(n.createElement("h3"));return t.setAttribute("style","color:"+a+";"),t.textContent=e,t}p.setAttribute("style","padding: 0.7em;");const f={dom:n,div:h,statusArea:p,me:null};return o.login.ensureLoadedProfile(f).then(e=>{const a=e.me;m("Edit your public profile");const l=a.doc();if(!s.updater)throw new Error("Store has no updater");if(s.any(a,o.ns.solid("editableProfile")))c=s.any(a,o.ns.solid("editableProfile"));else{if(!s.updater.editable(l.uri,s))return void p.appendChild(o.widgets.errorMessageBlock(n,`⚠️ Your profile ${l} is not editable, so we cannot do much here.`,"straw"));c=l}g("Everything you put here will be public.\n There will be other places to record private things."),m("Your contact information"),h.appendChild((0,r.paneDiv)(t,a,"contact")),m("People you know who have WebIDs"),g("This is your public social network.\n Only put people here to whom you are happy to be publicly connected.\n (You can always keep private track of friends and family in your contacts.)"),c&&g("Drag people onto the target below to add people."),o.widgets.attachmentList(n,a,h,{doc:l,modify:!!c,predicate:o.ns.foaf("knows"),noun:"friend"}),m("Communities you participate in"),g("These are organizations and projects (etc) whose stuff you share"),c&&g("Drag organizations onto the target below to add organizations."),o.widgets.attachmentList(n,a,h,{doc:l,modify:!!c,predicate:o.ns.solid("community"),noun:"community"}),function(e,t){const r=(0,i.sym)("https://solidos.github.io/profile-pane/src/ontology/profileForm.ttl#this"),a=r.doc();s.holds(void 0,void 0,void 0,a)||(0,i.parse)('@prefix os: <http://www.w3.org/2000/10/swap/os#> .\n@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 foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix owl: <http://www.w3.org/2002/07/owl#>.\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix schema: <http://schema.org/>.\n@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.\n\n@prefix org: <http://www.w3.org/ns/org#>.\n@prefix esco: <http://data.europa.eu/esco/model#>.\n@prefix wd: <http://www.wikidata.org/entity/>.\n@prefix wdt: <http://www.wikidata.org/prop/direct/>.\n\n@prefix : <https://solidos.github.io/profile-pane/src/ontology/profileForm.ttl#>.\n@prefix soc: <https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#>.\n\n# was: https://solidos.github.io/solid-panes/dashboard/profileStyle.ttl#this\n# moved to: https://solidos.github.io/profile-pane/src/ontology/profileForm.ttl#this\n\n\n\n\n# About forms: https://solidos.github.io/solid-ui/Documentation/forms-intro.html\n# About personal public data: https://www.w3.org/DesignIssues/PersonalPublic.html\n#\n\n:this\n <http://purl.org/dc/elements/1.1/title> "Profile form" ;\n a ui:Form ;\n # ui:part :backgroundColor, :highlightColor;\n ui:parts (\n :styleGroup\n :nicknameField\n :pronounsForm\n :LanguagesPrompt :LanguagesForm\n :SocialsPrompt :SocialsForm\n :CVGroup\n :SkillsPrompt :SkillsForm\n ).\n\n:styleGroup a ui:Group; ui:weight 0; ui:parts ( :styleHeading :backgroundColor :highlightColor ).\n :styleHeading a ui:Heading; ui:contents "The style of your public profile.".\n :backgroundColor a ui:ColorField; ui:property solid:profileBackgroundColor;\n ui:label "Background color"; ui:default "#ffffff".\n :highlightColor a ui:ColorField; ui:property solid:profileHighlightColor;\n ui:label "Highlight color"; ui:default "#000000".\n\n# Nickname\n\n:nicknameField a ui:SingleLineTextField; ui:size 12; ui:property foaf:nick;\n ui:label "Short name for chats, etc."@en, "nom court"@fr.\n\n # Pronouns\n\n :pronounsForm a ui:Group; ui:weight 0; ui:parts ( :pronounsPrompt :subjectPronounForm :objectPronounForm :relativePronounForm) .\n\n :pronounsPrompt a ui:Comment; ui:contents "What are your pronouns?" .\n\n :subjectPronounForm a ui:SingleLineTextField; ui:property solid:preferredSubjectPronoun;\n ui:size 10; ui:label "he/she/they..." .\n :objectPronounForm a ui:SingleLineTextField; ui:property solid:preferredObjectPronoun;\n ui:size 10; ui:label "him/her/them..." .\n :relativePronounForm a ui:SingleLineTextField; ui:property solid:preferredRelativePronoun;\n ui:size 10; ui:label "his/hers/theirs..." .\n\n # Curriculum Vitae: membership of organizations\n\n :CVHeading a ui:Heading; ui:contents "Public Curriculum Vitae".\n :CVPrompt a ui:Comment; ui:contents "What organizations have you been involved with?" .\n\n :CVGroup a ui:Group; ui:weight 1; ui:parts ( :CVHeading :CVPrompt :involvementWithOrganizationsForm ).\n\n\n solid:Role a rdfs:Class; owl:oneOf ( solid:CurrentRole solid:FormerRole solid:FutureRole ). # Future Role too?\n\n org:member owl:inverse [ ui:label "involvement with company, org etc" ]. # timelimited involvement\n\n :involvementWithOrganizationsForm a ui:Multiple;\n ui:label "Involvement with Organization";\n ui:property org:member; ui:reverse true; # link back from role to member\n ui:ordered false; # Allow user to order CV secions rather than force date order? No.\n ui:part :RoleMembershipForm.\n\n# This is a big important form for one of a series of roles in the list.\n\n :RoleMembershipForm a ui:Group; ui:weight 3; ui:parts ( :MembershipFormHeading :roleNameField\n :escoOccupationField :orgField :RoleClassifier :RoleDatesForm :RoleDescriptionForm).\n\n :MembershipFormHeading a ui:Heading; ui:contents "Details of this role"@en, "Détailes de ce rôle"@fr .\n\n :orgField a ui:Choice; ui:label "Organization"@en, "Organization"@fr;\n ui:canMintNew true; ui:use :OrganizationCreationForm ;\n ui:property org:organization;\n ui:from vcard:Organization .\n :roleNameField a ui:SingleLineTextField; ui:property vcard:role; ui:size 60 .\n\n :escoOccupationField a ui:AutocompleteField;\n ui:label "occupation"; ui:size 60;\n ui:property org:role;\n ui:dataSource :ESCO_Occupation_DataSource;\n ui:targetClass schema:Occupation .\n\n :ESCO_Occupation_DataSource a ui:DataSource;\n schema:name "ESCO";\n ui:targetClass schema:Occupation ;\n schema:logo <https://ec.europa.eu/esco/portal/static_resource2/images/logo/logo_en.gif>;\n ui:searchByNameURI "https://ec.europa.eu/esco/api/search?language=$(language)&type=occupation&text=$(name)".\n\n :instituteIdentityField a ui:AutocompleteField; ui:label "in wikidata";\n ui:size 60;\n ui:property solid:publicId; ui:dataSource :WikidataOnOrganizations.\n\n :WikidataOnOrganizations a ui:DataSource ;\n schema:name "Wikidata";\n ui:endpoint "https://query.wikidata.org/sparql" ;\n ui:targetClass <http://www.wikidata.org/entity/Q43229>; # Use if nothing else\n ui:searchByNameQuery """SELECT ?subject ?name\n WHERE {\n ?klass wdt:P279* $(targetClass) .\n ?subject wdt:P31 ?klass .\n ?subject rdfs:label ?name.\n FILTER regex(?name, "$(name)", "i")\n } LIMIT $(limit) """ .\n\n :WikidataOnOrganizations ui:classMap\n [ ui:internalClass schema:Corporation; ui:externalClass <http://www.wikidata.org/entity/Q6881511>], #Enterprise is for-profit\n [ ui:internalClass schema:EducationalOrganization; ui:externalClass <http://www.wikidata.org/entity/Q178706>], #insitution\n [ ui:internalClass schema:ResearchOrganization; ui:externalClass <http://www.wikidata.org/entity/Q31855>], # reearch insitutie\n [ ui:internalClass schema:GovernmentOrganization; ui:externalClass <http://www.wikidata.org/entity/Q327333>], #government agency\n [ ui:internalClass schema:MedicalOrganization; ui:externalClass <http://www.wikidata.org/entity/Q4287745>],\n [ ui:internalClass schema:MusicGroup; ui:externalClass <http://www.wikidata.org/entity/Q32178211>], #music organization\n [ ui:internalClass schema:NGO; ui:externalClass <http://www.wikidata.org/entity/Q163740>], #nonprofit organization @@\n [ ui:internalClass schema:Occupation; ui:externalClass <http://www.wikidata.org/entity/Q28640>], # superclass: Profession\n [ ui:internalClass schema:Organization; ui:externalClass <http://www.wikidata.org/entity/Q43229>], # Superclass; Organization\n [ ui:internalClass schema:Project; ui:externalClass <http://www.wikidata.org/entity/Q170584>],\n [ ui:internalClass schema:SportsOrganization; ui:externalClass <http://www.wikidata.org/entity/Q4438121>] .\n\n\n# eposodes in one\'s career - Roles\n\nsolid:Role owl:disjointUnionOf ( solid:PastRole solid:CurrentRole solid:FutureRole ) .\nsolid:PastRole a rdfs:Class; rdfs:label "former role"@en, "ancien rôle"@fr, "vergangene Rolle"@de, "rol anterior"@es .\nsolid:CurrentRole a rdfs:Class; rdfs:label "current role"@en, "rôle actuel"@fr, "momentane Rolle"@de , "rol actual"@es .\nsolid:FutureRole a rdfs:Class; rdfs:label "future role"@en, "rôle à venir"@fr, "zukünftige Rolle"@de, "rol futuro"@es .\n\n:RoleDatesGroup a ui:Group; ui:weight 0; ui:parts ( :RoleClassifier :RoleDatesForm ) .\n :RoleClassifier a ui:Classifier; ui:label "What sort of role?"@en;\n ui:category solid:Role .\n\n :RoleDatesForm a ui:Options; ui:dependingOn rdf:type; ui:case\n [ ui:for solid:PastRole; ui:use :TwoDateForm ],\n [ ui:for solid:CurrentRole; ui:use :StartDateForm ],\n [ ui:for solid:FutureRole; ui:use :StartDateForm ].\n\n :StartDateForm a ui:DateField; ui:label "start"@en,"début"@fr;\n ui:property schema:startDate .\n :TwoDateForm a ui:Group; ui:weight 0; ui:parts ( :StartDateForm :EndDateForm ) .\n :EndDateForm a ui:DateField; ui:label "end"@en,"fin"@fr;\n ui:property schema:endDate .\n\n:RoleDescriptionForm a ui:MultiLineTextField; ui:property schema:description;\n ui:label "Describe your role" .\n\n# Organizations\n\n vcard:Organization ui:creationForm :OrganizationCreationForm .\n\n# Ontology data to drive the classifier\n\nsolid:InterestingOrganization owl:disjointUnionOf (\n# Airline - a Corporation\n# Consortium - a Corporation or a NGO\n schema:Corporation\n schema:EducationalOrganization\n schema:ResearchOrganization # Proposed. https://github.com/schemaorg/schemaorg/issues/2877\n# FundingScheme - eh?\n schema:GovernmentOrganization\n# LibrarySystem\n# LocalBusiness - Corporation\n# MedicalOrganization - a Corporation or a NGO\n schema:NGO\n # NewsMediaOrganization - a Corporation or a NGO\nschema:PerformingGroup # a band\nschema:Project # like Solid\nschema:SportsOrganization # a Team\nsolid:OtherOrganization\n ) .\n\n# This until the schema.org ontology adopts it\nschema:ResearchOrganization a rdfs:Class; rdfs:label "Research Organization"@en, "Organization de Recherche"@fr ,\n "organización de investigación"@es, "منظمة البحث"@ar, "अनुसंधान संगठन"@hi, "Forschungsorganisation"@de, "shirika la utafiti"@sw .\n\n :OrganizationCreationForm a ui:Form; schema:name "Form for editing an organization using public data" ;\n ui:parts ( :OrgClassifier :OrgSwitch :OrganizationNameField :homePageURIField ) .\n\n\n :OrgClassifier a ui:Classifier; ui:label "What sort of organization?"@en;\n ui:category solid:InterestingOrganization .\n\n :OrganizationNameField\n a ui:SingleLineTextField ;\n ui:label "Organization Name";\n ui:maxLength "200" ;\n ui:property schema:name ;\n ui:size 80 .\n\n :homePageURIField a ui:NamedNodeURIField; ui:size 80;\n ui:label "Home page URI"@en;\n ui:property schema:uri . # @@ ??\n\n :initituteTypeField a ui:Classifier;\n ui:label "What sort of organization";\n ui:category solid:InterestingOrganization .\n\n# Depending on the type of org, chose a different form\n\n :OrgSwitch a ui:Options; ui:dependingOn rdf:type;\n ui:case\n [ ui:for schema:Corporation; ui:use :CorporationForm ],\n [ ui:for schema:GovernmentOrganization; ui:use :GovernmentOrganizationForm ],\n [ ui:for schema:PerformingGroup; ui:use :PerformingGroupForm ],\n [ ui:for schema:Project; ui:use :ProjectForm ],\n [ ui:for schema:NGO; ui:use :NGOForm ],\n [ ui:for schema:EducationalOrganization; ui:use :EducationalOrganizationForm ],\n [ ui:for schema:ResearchOrganization; ui:use :ResearchOrganizationForm ],\n [ ui:for :SportsOrganization; ui:use :SportsOrganizationForm ],\n [ ui:for solid:OtherOrganization; ui:use :OtherOrganizationForm ].\n\n\n :CorporationForm a ui:Group; ui:weight 0; ui:parts ( :CorporationPrompt :CorporationAutocomplete ) .\n\n :CorporationPrompt a ui:Comment; ui:contents "Which corporation?".\n\n :CorporationAutocomplete a ui:AutocompleteField;\n a ui:AutocompleteField; ui:label "Corporation in wikidata";\n ui:size 60;\n ui:targetClass <http://www.wikidata.org/entity/Q6881511>; # Enterprise\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n :WikidataInstancesByName a ui:DataSource ;\n schema:name "Wikidata instances by name";\n ui:endpoint "https://query.wikidata.org/sparql" ;\n ui:searchByNameQuery """SELECT ?subject ?name\n WHERE {\n ?klass wdt:P279* $(targetClass) .\n ?subject wdt:P31 ?klass .\n ?subject rdfs:label ?name.\n FILTER regex(?name, "$(name)", "i")\n } LIMIT $(limit) """ ;\n\n # Note this form of the query is very experimental\n ui:searchByName [ ui:construct { ?subject schema:name ?name } ;\n ui:where { ?klass wdt:P279 ?targetClass .\n ?subject wdt:P31 ?klass; rdfs:label ?name .\n };\n ].\n\n :GovernmentOrganizationForm a ui:Group; ui:weight 0; ui:parts ( :GovernmentOrganizationPrompt :GovernmentOrganizationAutocomplete ) .\n\n :GovernmentOrganizationPrompt a ui:Comment; ui:contents "Which GovernmentOrganization?".\n\n :GovernmentOrganizationAutocomplete\n a ui:AutocompleteField; ui:label "GovernmentOrganization in wikidata";\n ui:size 60;\n ui:targetClass <http://www.wikidata.org/entity/Q327333>; # GovernmentOrganization\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n :EducationalOrganizationForm a ui:Group; ui:weight 1; ui:parts ( :EducationalOrganizationPrompt :EducationalOrganizationAutocomplete ) .\n\n :EducationalOrganizationPrompt a ui:Comment; ui:contents "Which Educational Organization?".\n\n :EducationalOrganizationAutocomplete\n a ui:AutocompleteField; ui:label "Educational Organization in wikidata";\n ui:size 60;\n ui:targetClass <http://www.wikidata.org/entity/Q2385804>; # EducationalOrganization\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n\n :ResearchOrganizationForm a ui:Group; ui:weight 0; ui:parts ( :ResearchOrganizationPrompt :ResearchOrganizationAutocomplete ) .\n\n :ResearchOrganizationPrompt a ui:Comment; ui:contents "Which Research Organization?".\n\n :ResearchOrganizationAutocomplete\n a ui:AutocompleteField; ui:label "Research Insitute in wikidata";\n ui:size 60;\n ui:targetClass <http://www.wikidata.org/entity/Q31855>; # research institute\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n\n :NGOForm a ui:Group; ui:weight 0; ui:parts ( :NGOPrompt :NGOAutocomplete ) .\n\n :NGOPrompt a ui:Comment; ui:contents "Which NGO?".\n\n :NGOAutocomplete\n a ui:AutocompleteField; ui:label "NGO in wikidata";\n ui:size 60;\n ui:targetClass <http://www.wikidata.org/entity/Q163740>; # Non-profit org\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n :PerformingGroupForm a ui:Group; ui:weight 0; ui:parts ( :PerformingGroupPrompt :PerformingGroupAutocomplete ) .\n\n :PerformingGroupPrompt a ui:Comment; ui:contents "Which PerformingGroup?".\n\n :PerformingGroupAutocomplete\n a ui:AutocompleteField; ui:label "PerformingGroup in wikidata";\n ui:size 60;\n ui:targetClass <http://www.wikidata.org/entity/Q32178211>; # Music Org\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n\n :ProjectForm a ui:Group; ui:weight 0; ui:parts ( :ProjectPrompt :ProjectAutocomplete ) . # :ProjectAutocomplete - no: supress, as not in WD\n\n :ProjectPrompt a ui:Comment; ui:contents "Which Project?".\n\n :ProjectAutocomplete\n a ui:AutocompleteField; ui:label "Project in wikidata";\n ui:size 60;\n ui:targetClass <http://www.wikidata.org/entity/Q170584>; # Project\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n :SportsOrganizationForm a ui:Group; ui:weight 0; ui:parts ( :SportsOrganizationPrompt :SportsOrganizationAutocomplete ) .\n\n :SportsOrganizationPrompt a ui:Comment; ui:contents "Which Sports Organization?".\n\n :SportsOrganizationAutocomplete\n a ui:AutocompleteField; ui:label "SportsOrganization in wikidata";\n ui:size 60;\n ui:targetClass <http://www.wikidata.org/entity/Q4438121>; # SportsOrganization\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n :OtherOrganizationForm a ui:Group; ui:weight 0; ui:parts ( :OrganizationNameField :homePageURIField ) .\n\n #################### Skills\n\n :SkillsPrompt a ui:Comment; ui:contents "Skills?" .\n\n :SkillsForm a ui:Multiple;\n ui:label "Skills";\n ui:property schema:skills;\n ui:ordered false; # Allow reader to order skills\n ui:part :SkillForm.\n\n :SkillForm a ui:Group; ui:weight 1; ui:parts ( :escoSkillField ).\n\n # :skillNameField a ui:SingleLineTextField; ui:property vcard:role; ui:size 30 .\n\n :escoSkillField a ui:AutocompleteField;\n ui:label "skill"; ui:size 30;\n ui:property solid:publicId;\n ui:dataSource :ESCO_Skill_DataSource;\n ui:targetClass schema:Skill .\n\n :ESCO_Skill_DataSource a ui:DataSource;\n schema:name "ESCO Skill";\n ui:targetClass esco:Skill ;\n schema:logo <https://ec.europa.eu/esco/portal/static_resource2/images/logo/logo_en.gif>;\n ui:searchByNameURI "https://ec.europa.eu/esco/api/search?language=$(language)&limit=$(limit)&type=skill&text=$(name)".\n\n# Language\n\n:LanguagesPrompt a ui:Comment; ui:contents "Languages?" .\n\n:LanguagesForm a ui:Multiple;\n ui:label "Languages";\n ui:property schema:knowsLanguage; # @@@\n ui:ordered true; # Allow user to order languages most important first.\n ui:part :LanguageForm.\n\n:LanguageForm a ui:Group; ui:weight 1; ui:parts ( :WikidataLanguageField ).\n\n :WikidataLanguageField a ui:AutocompleteField;\n ui:label "Language"; ui:size 30;\n ui:property solid:publicId; # @@\n ui:dataSource :WikidataLanguageDataSource;\n ui:targetClass schema:Language .\n\n :WikidataLanguageDataSource\n schema:name "Wikidata languages";\n ui:endpoint "https://query.wikidata.org/sparql" ;\n ui:objectURIBase <https://www.w3.org/ns/iana/language-code/>;\n # Add this to any literal string returned as ?subject\n\n ui:searchByNameQuery """SELECT ?item ?subject ?name\nWHERE\n{ ?item wdt:P305 ?subject .\n OPTIONAL {?item rdfs:label ?name}\n OPTIONAL {?item wdt:P1705 ?name}\n FILTER regex(?name, "$(name)", "i")\n FILTER regex(?subject, "^..$", "i")\n}""" .\n # Note we restrict code to two-letter codes with the second regex, so as to limit the deluge of languages\n # Hope there are not any important ones which have three-letter codes.\n # Omitted: SERVICE wikibase:label { bd:serviceParam wikibase:language "$(languages)". }\n\n########### Social Media - other accounts\n#\n# Twitter, Linked In, Orkid, Mastodon, Matrix, Bluesky, Instagram, Facebook, Github,\n# Snapchat, TikTok, etc\n\n:SocialsPrompt a ui:Heading; ui:contents "Social Media etc?" .\n:SocialsPrompt a ui:Comment; ui:contents "Link to accounts in social media sites, etc" .\n\n:SocialsForm a ui:Multiple;\n ui:label "online account";\n ui:property foaf:account;\n ui:ordered true; # Allow user to order occounts most important first.\n ui:part :AccountsForm.\n\n:AccountsForm a ui:Group; ui:weight 1; ui:parts ( :AccountField :AccountIdField ).\n\n:AccountField a ui:Classifier; ui:label "What sort of account?"@en;\n ui:multiple false ; \n ui:category foaf:Account .\n\n:AccountIdField a ui:Options . \n\n :AccountIdField a ui:Options; ui:dependingOn rdf:type; ui:case\n [ ui:for soc:BlueSkyAccount; ui:use :BlueSkyIdField ],\n [ ui:for soc:FacebookAccount; ui:use :FacebookIdField ],\n [ ui:for soc:GithubAccount; ui:use :GithubIdField ],\n [ ui:for soc:InstagramAccount; ui:use :InstagramIdField ],\n [ ui:for soc:LinkedInAccount; ui:use :LinkedInIdField ],\n [ ui:for soc:MastodonAccount; ui:use :MastodonIdField ],\n [ ui:for soc:MatrixAccount; ui:use :MatrixIdField ],\n [ ui:for soc:MediumAccount; ui:use :MediumIdField ],\n [ ui:for soc:NostrAccount; ui:use :NostrIdField ],\n [ ui:for soc:OrcidAccount; ui:use :OrcidIdField ],\n [ ui:for soc:PinterestAccount; ui:use :PinterestIdField ],\n [ ui:for soc:RedditAccount; ui:use :RedditIdField ],\n [ ui:for soc:StravaAccount; ui:use :StravaIdField ],\n [ ui:for soc:SnapchatAccount; ui:use :SnapchatIdField ],\n [ ui:for soc:TiktokAccount; ui:use :TiktokIdField ],\n [ ui:for soc:TumblrAccount; ui:use :TumblrIdField ],\n [ ui:for soc:TwitterAccount; ui:use :TwitterIdField ],\n [ ui:for soc:OtherAccount; ui:use :OtherIdForm ] .\n\n :BlueSkyIdField\n a ui:SingleLineTextField ;\n ui:label "Bluesky Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-](.[a-z0-9A-Z_-])*"; # @@\n ui:size 40 .\n\n :FacebookIdField\n a ui:SingleLineTextField ;\n ui:label "Facebook Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :GithubIdField\n a ui:SingleLineTextField ;\n ui:label "Github Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :InstagramIdField\n a ui:SingleLineTextField ;\n ui:label "Instagram Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :LinkedInIdField\n a ui:SingleLineTextField ;\n ui:label "Linked In Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*"; # @@\n ui:size 40 .\n\n :MastodonIdField\n a ui:SingleLineTextField ;\n ui:label "Mastodon (Activity Pub) Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*"; # @@\n ui:size 40 .\n\n :MatrixIdField\n a ui:SingleLineTextField ;\n ui:label "Matrix Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*"; # @@\n ui:size 40 .\n\n :MediumIdField\n a ui:SingleLineTextField ;\n ui:label "Medium Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*"; # @@\n ui:size 40 .\n\n :NostrIdField\n a ui:SingleLineTextField ;\n ui:label "Nostr public key";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*"; # @@\n ui:size 70 .\n\n :OrcidIdField\n a ui:SingleLineTextField ;\n ui:label "ORCiD id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :PinterestIdField\n a ui:SingleLineTextField ;\n ui:label "Pinterest id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :RedditIdField\n a ui:SingleLineTextField ;\n ui:label "Reddit Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :StravaIdField\n a ui:SingleLineTextField ;\n ui:label "Strava Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :SnapchatIdField\n a ui:SingleLineTextField ;\n ui:label "Snapchat Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :TiktokIdField\n a ui:SingleLineTextField ;\n ui:label "Tiktok Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :TumblrIdField\n a ui:SingleLineTextField ;\n ui:label "Tumblr user name";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :TwitterIdField\n a ui:SingleLineTextField ;\n ui:label "Twitter Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n# an unknown SN account needs more info\n\n :OtherIdForm a ui:Group; ui:weight 0; ui:parts ( :OtherIdField :OtherIconField :OtherLabelield ).\n\n :OtherIdField\n a ui:NamedNodeURIField ;\n ui:label "URL of account to link to";\n ui:maxLength "200" ;\n ui:property foaf:homepage ; \n ui:size 60 .\n\n :OtherLabelield\n a ui:SingleLineTextField ;\n ui:label "Label";\n ui:maxLength "200" ;\n ui:property rdfs:label ; \n ui:size 40 .\n\n :OtherIconField\n a ui:NamedNodeURIField ;\n ui:label "URL of icon to display";\n ui:maxLength "200" ;\n ui:property foaf:icon ;\n ui:size 60 .\n\n\n\n\n\n# ENDS\n',s,a.uri,"text/turtle",()=>null),e.setAttribute("data-testid","profile-editor"),o.widgets.appendForm(n,e,{},t,r,c,u)}(h,a),m("Thank you for filling your profile.")}).catch(e=>{p.appendChild(o.widgets.errorMessageBlock(n,e,"#fee"))}),l}};t.default=s},3785(e){"use strict";var t={single_source_shortest_paths:function(e,n,i){var o={},r={};r[n]=0;var a,s,u,l,c,d,h,p=t.PriorityQueue.make();for(p.push(n,0);!p.empty();)for(u in s=(a=p.pop()).value,l=a.cost,c=e[s]||{})c.hasOwnProperty(u)&&(d=l+c[u],h=r[u],(void 0===r[u]||h>d)&&(r[u]=d,p.push(u,d),o[u]=s));if(void 0!==i&&void 0===r[i]){var g=["Could not find a path from ",n," to ",i,"."].join("");throw new Error(g)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],i=t;i;)n.push(i),e[i],i=e[i];return n.reverse(),n},find_path:function(e,n,i){var o=t.single_source_shortest_paths(e,n,i);return t.extract_shortest_path_from_predecessor_list(o,i)},PriorityQueue:{make:function(e){var n,i=t.PriorityQueue,o={};for(n in e=e||{},i)i.hasOwnProperty(n)&&(o[n]=i[n]);return o.queue=[],o.sorter=e.sorter||i.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},3834(e,t,n){const i=n(5908);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let o=0;o<e.length;o++)for(let r=0;r<t.length;r++)n[o+r]^=i.mul(e[o],t[r]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let o=0;o<t.length;o++)n[o]^=i.mul(t[o],e);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let o=0;o<e;o++)n=t.mul(n,new Uint8Array([1,i.exp(o)]));return n}},4023(e,t,n){const i=n(3834);function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=i.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=i.mod(t,this.genPoly),o=this.degree-n.length;if(o>0){const e=new Uint8Array(this.degree);return e.set(n,o),e}return n},e.exports=o},4077(e,t,n){"use strict";n.r(t),n.d(t,{AsyncReplaceDirective:()=>m,asyncReplace:()=>f});var i=n(2179);
53
+ /**
54
+ * @license
55
+ * Copyright 2020 Google LLC
56
+ * SPDX-License-Identifier: BSD-3-Clause
57
+ */
58
+ const{I:o}=i._$LH;var r=n(8517);
59
+ /**
60
+ * @license
61
+ * Copyright 2017 Google LLC
62
+ * SPDX-License-Identifier: BSD-3-Clause
63
+ */
64
+ const a=(e,t)=>{const n=e._$AN;if(void 0===n)return!1;for(const e of n)e._$AO?.(t,!1),a(e,t);return!0},s=e=>{let t,n;do{if(void 0===(t=e._$AM))break;n=t._$AN,n.delete(e),e=t}while(0===n?.size)},u=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),d(t)}};function l(e){void 0!==this._$AN?(s(this),this._$AM=e,u(this)):this._$AM=e}function c(e,t=!1,n=0){const i=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(i))for(let e=n;e<i.length;e++)a(i[e],!1),s(i[e]);else null!=i&&(a(i,!1),s(i));else a(this,e)}const d=e=>{e.type==r.OA.CHILD&&(e._$AP??=c,e._$AQ??=l)};class h extends r.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),u(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(a(this,e),s(this))}setValue(e){if((e=>void 0===e.strings)(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}class p{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}}class g{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise(e=>this.Z=e)}resume(){this.Z?.(),this.Y=this.Z=void 0}}
65
+ /**
66
+ * @license
67
+ * Copyright 2017 Google LLC
68
+ * SPDX-License-Identifier: BSD-3-Clause
69
+ */
70
+ class m extends h{constructor(){super(...arguments),this._$CK=new p(this),this._$CX=new g}render(e,t){return i.noChange}update(e,[t,n]){if(this.isConnected||this.disconnected(),t===this._$CJ)return i.noChange;this._$CJ=t;let o=0;const{_$CK:r,_$CX:a}=this;return(async(e,t)=>{for await(const n of e)if(!1===await t(n))return})(t,async e=>{for(;a.get();)await a.get();const i=r.deref();if(void 0!==i){if(i._$CJ!==t)return!1;void 0!==n&&(e=n(e,o)),i.commitValue(e,o),o++}return!0}),i.noChange}commitValue(e,t){this.setValue(e)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}}const f=(0,r.u$)(m)},4232(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},4332(e,t,n){const i=n(6399).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=i(e),o=145===n?26:2*Math.ceil((n-13)/(2*t-2)),r=[n-7];for(let e=1;e<t-1;e++)r[e]=r[e-1]-o;return r.push(6),r.reverse()},t.getPositions=function(e){const n=[],i=t.getRowColCoords(e),o=i.length;for(let e=0;e<o;e++)for(let t=0;t<o;t++)0===e&&0===t||0===e&&t===o-1||e===o-1&&0===t||n.push([i[e],i[t]]);return n}},4539(e){function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,i){const o=e*this.size+t;this.data[o]=n,i&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},4654(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QRCodeCard=void 0;var i=n(2179),o=n(3057),r=n(2061),a=n(3383);(0,r.styleMap)((0,o.fullWidth)()),(0,r.styleMap)({...(0,o.textGray)(),...(0,o.textCenter)()});const s=(0,r.styleMap)({});(0,r.styleMap)({...(0,o.paddingSmall)(),...(0,o.textLeft)()});t.QRCodeCard=(e,t)=>{const n=(0,r.styleMap)({...(0,o.heading)(),color:e.highlightColor}),u=e.highlightColor||"#000000",l=e.backgroundColor||"#ffffff",c="BEGIN:VCARD\r\n"+("FN:"+a.utils.label(t)+"\r\n")+("URL:"+t.uri+"r\n")+"END:VCARD\r\nVERSION:4.0\r\n";return i.html`
71
+ <div>
72
+ <div style=${s}>
73
+ <h3 style=${n}>${e.name}</h3>
74
+ <div class="QRCode" style="${"width: 80%; margin:auto;"}" data-value="${c}" highlightColor="${u}" backgroundColor="${l}"></div>
75
+ </div>
76
+ </div>
77
+ `}},4767(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.datesAsText=l,t.languageAsText=u,t.presentCV=function(e,t){const n=function(e,t){const n=e.each(null,r("member"),t,null),i={PastRole:[],CurrentRole:[],FutureRole:[]};for(const t of n){let n,s,u,c,d;const h=e.any(t,o.ns.schema("startDate")),p=e.any(t,o.ns.schema("endDate")),g=l(h,p),m=e.any(t,r("organization"));m&&(s=e.anyJS(m,o.ns.schema("name")),n=e.any(m,o.ns.schema("uri")),d=e.any(m,o.ns.solid("publicId"))),d&&(u=e.anyJS(d,o.ns.schema("name")));const f=u||s,y=e.any(t,r("role"));y&&(c=e.anyJS(y,o.ns.schema("name")));const w=e.anyJS(t,o.ns.vcard("role")),b={startDate:h,endDate:p,orgName:f,roleText:w&&c?c+" - "+w:w||c,dates:g,orgHomePage:n};for(const n of a)e.holds(t,o.ns.rdf("type"),o.ns.solid(n))&&i[n].push(b)}return i}(t,e);for(const e of a)n[e].sort(function(e,t){return e.endDate&&t.endDate?e.endDate>t.endDate?-1:1:e.startDate>t.startDate?-1:1});const i=t.each(e,o.ns.schema("skills")).map(e=>s(t,e)),c=t.anyJS(e,o.ns.schema("knowsLanguage"));let d=[];c&&(d=c.map(e=>u(t,e)));return{rolesByType:n,skills:i,languages:d}},t.skillAsText=s,t.typesOfRole=void 0;var i=n(9676),o=n(3383);const r=(0,i.Namespace)("http://www.w3.org/ns/org#"),a=t.typesOfRole=["PastRole","CurrentRole","FutureRole"];function s(e,t){if("Literal"===t.termType)return t.value;const n=e.anyJS(t,o.ns.solid("publicId"));if(n){const t=e.anyJS(n,o.ns.schema("name"));if(t)return t}const i=e.anyJS(t,o.ns.vcard("role"));return i&&i[0]>""?i:"¿¿¿ skill ???"}function u(e,t){if("Literal"===t.termType)return t.value;const n=e.anyJS(t,o.ns.solid("publicId"));return n?o.utils.label(n,!0):"-"}function l(e,t){return e?"("+e.value.slice(0,10)+" to "+(t?t.value.slice(0,10):"")+")":""}},5001(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},5032(e,t,n){const i=n(5001),o=n(5886),r=n(3368),a=n(6925);function s(e,t,n,r,a){const s=[].slice.call(arguments,1),u=s.length,l="function"==typeof s[u-1];if(!l&&!i())throw new Error("Callback required as last argument");if(!l){if(u<1)throw new Error("Too few arguments provided");return 1===u?(n=t,t=r=void 0):2!==u||t.getContext||(r=n,n=t,t=void 0),new Promise(function(i,a){try{const a=o.create(n,r);i(e(a,t,r))}catch(e){a(e)}})}if(u<2)throw new Error("Too few arguments provided");2===u?(a=n,n=t,t=r=void 0):3===u&&(t.getContext&&void 0===a?(a=r,r=void 0):(a=r,r=n,n=t,t=void 0));try{const i=o.create(n,r);a(null,e(i,t,r))}catch(e){a(e)}}t.create=o.create,t.toCanvas=s.bind(null,r.render),t.toDataURL=s.bind(null,r.renderToDataURL),t.toString=s.bind(null,function(e,t,n){return a.render(e,n)})},5170(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChatWithMe=void 0;var i=n(2179),o=n(3383),r=n(4077),a=n(3e3);t.ChatWithMe=(e,t)=>{const n=t.session.logic,s=t.session.paneRegistry.byName("long chat");return i.html` ${(0,r.asyncReplace)(async function*(){const i=t.dom.createElement("div");let r;try{yield a.loadingMessage,r=await n.chat.getChat(e,!1)}catch(e){r=!1}if(r)i.appendChild(s.render(r,t,{})),yield i;else{const r=o.widgets.button(t.dom,void 0,a.chatWithMeButtonText,async()=>{try{const o=await n.chat.getChat(e,!0);i.innerHTML="",i.appendChild(s.render(o,t,{}))}catch(e){i.appendChild(o.widgets.errorMessageBlock(t.dom,e.message))}},{needsBorder:!0});i.appendChild(r),yield i}}())} `}},5424(e,t,n){const i=n(2751),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function r(e){this.mode=i.ALPHANUMERIC,this.data=e}r.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*o.indexOf(this.data[t]);n+=o.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=r},5494(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FriendList=void 0;var i=n(3383),o=n(2179),r=n(2061),a=n(3057);const s=(0,r.styleMap)((0,a.padding)()),u=((0,r.styleMap)((0,a.headingLight)()),(0,r.styleMap)((0,a.card)()));t.FriendList=(e,t,n)=>{const i=(0,r.styleMap)({...(0,a.heading)(),color:e.highlightColor});return l(t,n)?o.html`
78
+ <div data-testid="friend-list" style="${u}">
79
+ <div style=${s}>
80
+ <h3 style=${i}>Friends</h3>
81
+ ${l(t,n)}
82
+ </div>
83
+ </div>
84
+ `:o.html``};const l=(e,{dom:t})=>{const n=t.createElement("div");return i.widgets.attachmentList(t,e,n,{doc:e.doc(),modify:!1,predicate:i.ns.foaf("knows"),noun:"friend"}),""===n.textContent?null:n}},5790(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},5886(e,t,n){const i=n(6399),o=n(5790),r=n(4232),a=n(4539),s=n(4332),u=n(463),l=n(1343),c=n(3507),d=n(4023),h=n(9450),p=n(8864),g=n(2751),m=n(2906);function f(e,t,n){const i=e.size,o=p.getEncodedBits(t,n);let r,a;for(r=0;r<15;r++)a=1==(o>>r&1),r<6?e.set(r,8,a,!0):r<8?e.set(r+1,8,a,!0):e.set(i-15+r,8,a,!0),r<8?e.set(8,i-r-1,a,!0):r<9?e.set(8,15-r-1+1,a,!0):e.set(8,15-r-1,a,!0);e.set(i-8,8,1,!0)}function y(e,t,n){const o=new r;n.forEach(function(t){o.put(t.mode.bit,4),o.put(t.getLength(),g.getCharCountIndicator(t.mode,e)),t.write(o)});const a=8*(i.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,t));for(o.getLengthInBits()+4<=a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);const s=(a-o.getLengthInBits())/8;for(let e=0;e<s;e++)o.put(e%2?17:236,8);return function(e,t,n){const o=i.getSymbolTotalCodewords(t),r=c.getTotalCodewordsCount(t,n),a=o-r,s=c.getBlocksCount(t,n),u=o%s,l=s-u,h=Math.floor(o/s),p=Math.floor(a/s),g=p+1,m=h-p,f=new d(m);let y=0;const w=new Array(s),b=new Array(s);let C=0;const A=new Uint8Array(e.buffer);for(let e=0;e<s;e++){const t=e<l?p:g;w[e]=A.slice(y,y+t),b[e]=f.encode(w[e]),y+=t,C=Math.max(C,t)}const v=new Uint8Array(o);let F,S,O=0;for(F=0;F<C;F++)for(S=0;S<s;S++)F<w[S].length&&(v[O++]=w[S][F]);for(F=0;F<m;F++)for(S=0;S<s;S++)v[O++]=b[S][F];return v}(o,e,t)}function w(e,t,n,o){let r;if(Array.isArray(e))r=m.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let i=t;if(!i){const t=m.rawSplit(e);i=h.getBestVersionForData(t,n)}r=m.fromString(e,i||40)}}const c=h.getBestVersionForData(r,n);if(!c)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<c)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+c+".\n")}else t=c;const d=y(t,n,r),p=i.getSymbolSize(t),g=new a(p);return function(e,t){const n=e.size,i=u.getPositions(t);for(let t=0;t<i.length;t++){const o=i[t][0],r=i[t][1];for(let t=-1;t<=7;t++)if(!(o+t<=-1||n<=o+t))for(let i=-1;i<=7;i++)r+i<=-1||n<=r+i||(t>=0&&t<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===t||6===t)||t>=2&&t<=4&&i>=2&&i<=4?e.set(o+t,r+i,!0,!0):e.set(o+t,r+i,!1,!0))}}(g,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(g),function(e,t){const n=s.getPositions(t);for(let t=0;t<n.length;t++){const i=n[t][0],o=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)-2===t||2===t||-2===n||2===n||0===t&&0===n?e.set(i+t,o+n,!0,!0):e.set(i+t,o+n,!1,!0)}}(g,t),f(g,n,0),t>=7&&function(e,t){const n=e.size,i=h.getEncodedBits(t);let o,r,a;for(let t=0;t<18;t++)o=Math.floor(t/3),r=t%3+n-8-3,a=1==(i>>t&1),e.set(o,r,a,!0),e.set(r,o,a,!0)}(g,t),function(e,t){const n=e.size;let i=-1,o=n-1,r=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(o,s-n)){let i=!1;a<t.length&&(i=1==(t[a]>>>r&1)),e.set(o,s-n,i),r--,-1===r&&(a++,r=7)}if(o+=i,o<0||n<=o){o-=i,i=-i;break}}}(g,d),isNaN(o)&&(o=l.getBestMask(g,f.bind(null,g,n))),l.applyMask(o,g),f(g,n,o),{modules:g,version:t,errorCorrectionLevel:n,maskPattern:o,segments:r}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");let n,r,a=o.M;return void 0!==t&&(a=o.from(t.errorCorrectionLevel,o.M),n=h.from(t.version),r=l.from(t.maskPattern),t.toSJISFunc&&i.setToSJISFunction(t.toSJISFunc)),w(e,n,a,r)}},5908(e,t){const n=new Uint8Array(512),i=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,i[e]=t,e<<=1,256&e&&(e^=285);for(let e=255;e<512;e++)n[e]=n[e-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return i[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[i[e]+i[t]]}},5947(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SocialCard=void 0;var i=n(2179),o=n(3057),r=n(2061);(0,r.styleMap)((0,o.fullWidth)()),(0,r.styleMap)({...(0,o.textGray)(),...(0,o.textCenter)()});const a=(0,r.styleMap)((0,o.card)()),s=(0,r.styleMap)({...(0,o.paddingSmall)(),...(0,o.textCenter)()});(0,r.styleMap)({...(0,o.paddingSmall)(),...(0,o.textRight)()});function u(e){if(e.length>0)return i.html`${t=e[0],t.homepage&&t.name&&t.icon?i.html`<div class="textButton-0-1-3" style="margin-top: 0.3em; margin-bottom: 0.3em;">
85
+
86
+ <a href="${t.homepage}" style="text-decoration: none;" target="social">
87
+ <img style="width: 2em; height: 2em; margin: 1em; vertical-align:middle;" src="${t.icon}" alt="${t.name}">
88
+
89
+ <span style="font-size: 1.2rem;">${t.name}</span>
90
+ </a>
91
+ </div> `:i.html``}${e.length>1?u(e.slice(1)):i.html``}`;var t}t.SocialCard=(e,t)=>{const{accounts:n}=t,l=(0,r.styleMap)({...(0,o.heading)(),color:e.highlightColor});return n.length?i.html`
92
+ <div>
93
+ <div data-testid="social-media" style="${a}">
94
+ <div style=${s+"margin: auto;"}>
95
+ <h3 style=${l}>Follow me on</h3>
96
+
97
+ <div style=${s}>${u(n)}</div>
98
+ </div>
99
+ </div>
100
+ </div>
101
+ `:i.html``}},6189(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadProfileForm=a,t.presentSocial=function(e,t){function n(e){const n=t.any(e,o.ns.foaf("name"))||t.any(e,o.ns.rdfs("label"));if(n)return n.value;const i=t.each(e,o.ns.rdf("type"));for(const e of i){const n=t.any(e,o.ns.rdfs("label"));return n?n.value:o.utils.label(e)}return""}function i(e){const n=t.any(e,o.ns.foaf("icon"));if(n)return n.value;const i=t.each(e,o.ns.rdf("type"));if(i.length>0){console.log("@@ classes[0].termType 2 ",i[0].termType);for(const e of i){const n=t.any(e,o.ns.foaf("icon"));if(null!==n)return n.value}}return r}function s(e){const n=t.any(e,o.ns.foaf("homepage"));if(n)return n.value;const i=t.anyJS(e,o.ns.foaf("accountName"),null,e.doc())||"No_account_Name",r=t.each(e,o.ns.rdf("type"));for(const e of r){const n=t.any(e,o.ns.foaf("userProfilePrefix"));if(n)return n.value+i.trim()}return"no userProfilePrefix?"}a(t);const u=t.anyJS(e,o.ns.foaf("account"));if(!u)return{accounts:[]};console.log("Social: accountThings",u);const l=u.map(e=>function(e){return{name:n(e),icon:i(e),homepage:s(e)}}(e));return console.log("Social: account objects",l),{accounts:l}};var i=n(9676),o=n(3383);const r=o.icons.iconBase+"noun_10636_grey.svg";function a(e){const t=e.sym("https://solidos.github.io/profile-pane/src/ontology/profileForm.ttl#this").doc();e.holds(void 0,void 0,void 0,t)||(0,i.parse)('@prefix os: <http://www.w3.org/2000/10/swap/os#> .\n@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 foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix owl: <http://www.w3.org/2002/07/owl#>.\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix schema: <http://schema.org/>.\n@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.\n\n@prefix org: <http://www.w3.org/ns/org#>.\n@prefix esco: <http://data.europa.eu/esco/model#>.\n@prefix wd: <http://www.wikidata.org/entity/>.\n@prefix wdt: <http://www.wikidata.org/prop/direct/>.\n\n@prefix : <https://solidos.github.io/profile-pane/src/ontology/profileForm.ttl#>.\n@prefix soc: <https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#>.\n\n# was: https://solidos.github.io/solid-panes/dashboard/profileStyle.ttl#this\n# moved to: https://solidos.github.io/profile-pane/src/ontology/profileForm.ttl#this\n\n\n\n\n# About forms: https://solidos.github.io/solid-ui/Documentation/forms-intro.html\n# About personal public data: https://www.w3.org/DesignIssues/PersonalPublic.html\n#\n\n:this\n <http://purl.org/dc/elements/1.1/title> "Profile form" ;\n a ui:Form ;\n # ui:part :backgroundColor, :highlightColor;\n ui:parts (\n :styleGroup\n :nicknameField\n :pronounsForm\n :LanguagesPrompt :LanguagesForm\n :SocialsPrompt :SocialsForm\n :CVGroup\n :SkillsPrompt :SkillsForm\n ).\n\n:styleGroup a ui:Group; ui:weight 0; ui:parts ( :styleHeading :backgroundColor :highlightColor ).\n :styleHeading a ui:Heading; ui:contents "The style of your public profile.".\n :backgroundColor a ui:ColorField; ui:property solid:profileBackgroundColor;\n ui:label "Background color"; ui:default "#ffffff".\n :highlightColor a ui:ColorField; ui:property solid:profileHighlightColor;\n ui:label "Highlight color"; ui:default "#000000".\n\n# Nickname\n\n:nicknameField a ui:SingleLineTextField; ui:size 12; ui:property foaf:nick;\n ui:label "Short name for chats, etc."@en, "nom court"@fr.\n\n # Pronouns\n\n :pronounsForm a ui:Group; ui:weight 0; ui:parts ( :pronounsPrompt :subjectPronounForm :objectPronounForm :relativePronounForm) .\n\n :pronounsPrompt a ui:Comment; ui:contents "What are your pronouns?" .\n\n :subjectPronounForm a ui:SingleLineTextField; ui:property solid:preferredSubjectPronoun;\n ui:size 10; ui:label "he/she/they..." .\n :objectPronounForm a ui:SingleLineTextField; ui:property solid:preferredObjectPronoun;\n ui:size 10; ui:label "him/her/them..." .\n :relativePronounForm a ui:SingleLineTextField; ui:property solid:preferredRelativePronoun;\n ui:size 10; ui:label "his/hers/theirs..." .\n\n # Curriculum Vitae: membership of organizations\n\n :CVHeading a ui:Heading; ui:contents "Public Curriculum Vitae".\n :CVPrompt a ui:Comment; ui:contents "What organizations have you been involved with?" .\n\n :CVGroup a ui:Group; ui:weight 1; ui:parts ( :CVHeading :CVPrompt :involvementWithOrganizationsForm ).\n\n\n solid:Role a rdfs:Class; owl:oneOf ( solid:CurrentRole solid:FormerRole solid:FutureRole ). # Future Role too?\n\n org:member owl:inverse [ ui:label "involvement with company, org etc" ]. # timelimited involvement\n\n :involvementWithOrganizationsForm a ui:Multiple;\n ui:label "Involvement with Organization";\n ui:property org:member; ui:reverse true; # link back from role to member\n ui:ordered false; # Allow user to order CV secions rather than force date order? No.\n ui:part :RoleMembershipForm.\n\n# This is a big important form for one of a series of roles in the list.\n\n :RoleMembershipForm a ui:Group; ui:weight 3; ui:parts ( :MembershipFormHeading :roleNameField\n :escoOccupationField :orgField :RoleClassifier :RoleDatesForm :RoleDescriptionForm).\n\n :MembershipFormHeading a ui:Heading; ui:contents "Details of this role"@en, "Détailes de ce rôle"@fr .\n\n :orgField a ui:Choice; ui:label "Organization"@en, "Organization"@fr;\n ui:canMintNew true; ui:use :OrganizationCreationForm ;\n ui:property org:organization;\n ui:from vcard:Organization .\n :roleNameField a ui:SingleLineTextField; ui:property vcard:role; ui:size 60 .\n\n :escoOccupationField a ui:AutocompleteField;\n ui:label "occupation"; ui:size 60;\n ui:property org:role;\n ui:dataSource :ESCO_Occupation_DataSource;\n ui:targetClass schema:Occupation .\n\n :ESCO_Occupation_DataSource a ui:DataSource;\n schema:name "ESCO";\n ui:targetClass schema:Occupation ;\n schema:logo <https://ec.europa.eu/esco/portal/static_resource2/images/logo/logo_en.gif>;\n ui:searchByNameURI "https://ec.europa.eu/esco/api/search?language=$(language)&type=occupation&text=$(name)".\n\n :instituteIdentityField a ui:AutocompleteField; ui:label "in wikidata";\n ui:size 60;\n ui:property solid:publicId; ui:dataSource :WikidataOnOrganizations.\n\n :WikidataOnOrganizations a ui:DataSource ;\n schema:name "Wikidata";\n ui:endpoint "https://query.wikidata.org/sparql" ;\n ui:targetClass <http://www.wikidata.org/entity/Q43229>; # Use if nothing else\n ui:searchByNameQuery """SELECT ?subject ?name\n WHERE {\n ?klass wdt:P279* $(targetClass) .\n ?subject wdt:P31 ?klass .\n ?subject rdfs:label ?name.\n FILTER regex(?name, "$(name)", "i")\n } LIMIT $(limit) """ .\n\n :WikidataOnOrganizations ui:classMap\n [ ui:internalClass schema:Corporation; ui:externalClass <http://www.wikidata.org/entity/Q6881511>], #Enterprise is for-profit\n [ ui:internalClass schema:EducationalOrganization; ui:externalClass <http://www.wikidata.org/entity/Q178706>], #insitution\n [ ui:internalClass schema:ResearchOrganization; ui:externalClass <http://www.wikidata.org/entity/Q31855>], # reearch insitutie\n [ ui:internalClass schema:GovernmentOrganization; ui:externalClass <http://www.wikidata.org/entity/Q327333>], #government agency\n [ ui:internalClass schema:MedicalOrganization; ui:externalClass <http://www.wikidata.org/entity/Q4287745>],\n [ ui:internalClass schema:MusicGroup; ui:externalClass <http://www.wikidata.org/entity/Q32178211>], #music organization\n [ ui:internalClass schema:NGO; ui:externalClass <http://www.wikidata.org/entity/Q163740>], #nonprofit organization @@\n [ ui:internalClass schema:Occupation; ui:externalClass <http://www.wikidata.org/entity/Q28640>], # superclass: Profession\n [ ui:internalClass schema:Organization; ui:externalClass <http://www.wikidata.org/entity/Q43229>], # Superclass; Organization\n [ ui:internalClass schema:Project; ui:externalClass <http://www.wikidata.org/entity/Q170584>],\n [ ui:internalClass schema:SportsOrganization; ui:externalClass <http://www.wikidata.org/entity/Q4438121>] .\n\n\n# eposodes in one\'s career - Roles\n\nsolid:Role owl:disjointUnionOf ( solid:PastRole solid:CurrentRole solid:FutureRole ) .\nsolid:PastRole a rdfs:Class; rdfs:label "former role"@en, "ancien rôle"@fr, "vergangene Rolle"@de, "rol anterior"@es .\nsolid:CurrentRole a rdfs:Class; rdfs:label "current role"@en, "rôle actuel"@fr, "momentane Rolle"@de , "rol actual"@es .\nsolid:FutureRole a rdfs:Class; rdfs:label "future role"@en, "rôle à venir"@fr, "zukünftige Rolle"@de, "rol futuro"@es .\n\n:RoleDatesGroup a ui:Group; ui:weight 0; ui:parts ( :RoleClassifier :RoleDatesForm ) .\n :RoleClassifier a ui:Classifier; ui:label "What sort of role?"@en;\n ui:category solid:Role .\n\n :RoleDatesForm a ui:Options; ui:dependingOn rdf:type; ui:case\n [ ui:for solid:PastRole; ui:use :TwoDateForm ],\n [ ui:for solid:CurrentRole; ui:use :StartDateForm ],\n [ ui:for solid:FutureRole; ui:use :StartDateForm ].\n\n :StartDateForm a ui:DateField; ui:label "start"@en,"début"@fr;\n ui:property schema:startDate .\n :TwoDateForm a ui:Group; ui:weight 0; ui:parts ( :StartDateForm :EndDateForm ) .\n :EndDateForm a ui:DateField; ui:label "end"@en,"fin"@fr;\n ui:property schema:endDate .\n\n:RoleDescriptionForm a ui:MultiLineTextField; ui:property schema:description;\n ui:label "Describe your role" .\n\n# Organizations\n\n vcard:Organization ui:creationForm :OrganizationCreationForm .\n\n# Ontology data to drive the classifier\n\nsolid:InterestingOrganization owl:disjointUnionOf (\n# Airline - a Corporation\n# Consortium - a Corporation or a NGO\n schema:Corporation\n schema:EducationalOrganization\n schema:ResearchOrganization # Proposed. https://github.com/schemaorg/schemaorg/issues/2877\n# FundingScheme - eh?\n schema:GovernmentOrganization\n# LibrarySystem\n# LocalBusiness - Corporation\n# MedicalOrganization - a Corporation or a NGO\n schema:NGO\n # NewsMediaOrganization - a Corporation or a NGO\nschema:PerformingGroup # a band\nschema:Project # like Solid\nschema:SportsOrganization # a Team\nsolid:OtherOrganization\n ) .\n\n# This until the schema.org ontology adopts it\nschema:ResearchOrganization a rdfs:Class; rdfs:label "Research Organization"@en, "Organization de Recherche"@fr ,\n "organización de investigación"@es, "منظمة البحث"@ar, "अनुसंधान संगठन"@hi, "Forschungsorganisation"@de, "shirika la utafiti"@sw .\n\n :OrganizationCreationForm a ui:Form; schema:name "Form for editing an organization using public data" ;\n ui:parts ( :OrgClassifier :OrgSwitch :OrganizationNameField :homePageURIField ) .\n\n\n :OrgClassifier a ui:Classifier; ui:label "What sort of organization?"@en;\n ui:category solid:InterestingOrganization .\n\n :OrganizationNameField\n a ui:SingleLineTextField ;\n ui:label "Organization Name";\n ui:maxLength "200" ;\n ui:property schema:name ;\n ui:size 80 .\n\n :homePageURIField a ui:NamedNodeURIField; ui:size 80;\n ui:label "Home page URI"@en;\n ui:property schema:uri . # @@ ??\n\n :initituteTypeField a ui:Classifier;\n ui:label "What sort of organization";\n ui:category solid:InterestingOrganization .\n\n# Depending on the type of org, chose a different form\n\n :OrgSwitch a ui:Options; ui:dependingOn rdf:type;\n ui:case\n [ ui:for schema:Corporation; ui:use :CorporationForm ],\n [ ui:for schema:GovernmentOrganization; ui:use :GovernmentOrganizationForm ],\n [ ui:for schema:PerformingGroup; ui:use :PerformingGroupForm ],\n [ ui:for schema:Project; ui:use :ProjectForm ],\n [ ui:for schema:NGO; ui:use :NGOForm ],\n [ ui:for schema:EducationalOrganization; ui:use :EducationalOrganizationForm ],\n [ ui:for schema:ResearchOrganization; ui:use :ResearchOrganizationForm ],\n [ ui:for :SportsOrganization; ui:use :SportsOrganizationForm ],\n [ ui:for solid:OtherOrganization; ui:use :OtherOrganizationForm ].\n\n\n :CorporationForm a ui:Group; ui:weight 0; ui:parts ( :CorporationPrompt :CorporationAutocomplete ) .\n\n :CorporationPrompt a ui:Comment; ui:contents "Which corporation?".\n\n :CorporationAutocomplete a ui:AutocompleteField;\n a ui:AutocompleteField; ui:label "Corporation in wikidata";\n ui:size 60;\n ui:targetClass <http://www.wikidata.org/entity/Q6881511>; # Enterprise\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n :WikidataInstancesByName a ui:DataSource ;\n schema:name "Wikidata instances by name";\n ui:endpoint "https://query.wikidata.org/sparql" ;\n ui:searchByNameQuery """SELECT ?subject ?name\n WHERE {\n ?klass wdt:P279* $(targetClass) .\n ?subject wdt:P31 ?klass .\n ?subject rdfs:label ?name.\n FILTER regex(?name, "$(name)", "i")\n } LIMIT $(limit) """ ;\n\n # Note this form of the query is very experimental\n ui:searchByName [ ui:construct { ?subject schema:name ?name } ;\n ui:where { ?klass wdt:P279 ?targetClass .\n ?subject wdt:P31 ?klass; rdfs:label ?name .\n };\n ].\n\n :GovernmentOrganizationForm a ui:Group; ui:weight 0; ui:parts ( :GovernmentOrganizationPrompt :GovernmentOrganizationAutocomplete ) .\n\n :GovernmentOrganizationPrompt a ui:Comment; ui:contents "Which GovernmentOrganization?".\n\n :GovernmentOrganizationAutocomplete\n a ui:AutocompleteField; ui:label "GovernmentOrganization in wikidata";\n ui:size 60;\n ui:targetClass <http://www.wikidata.org/entity/Q327333>; # GovernmentOrganization\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n :EducationalOrganizationForm a ui:Group; ui:weight 1; ui:parts ( :EducationalOrganizationPrompt :EducationalOrganizationAutocomplete ) .\n\n :EducationalOrganizationPrompt a ui:Comment; ui:contents "Which Educational Organization?".\n\n :EducationalOrganizationAutocomplete\n a ui:AutocompleteField; ui:label "Educational Organization in wikidata";\n ui:size 60;\n ui:targetClass <http://www.wikidata.org/entity/Q2385804>; # EducationalOrganization\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n\n :ResearchOrganizationForm a ui:Group; ui:weight 0; ui:parts ( :ResearchOrganizationPrompt :ResearchOrganizationAutocomplete ) .\n\n :ResearchOrganizationPrompt a ui:Comment; ui:contents "Which Research Organization?".\n\n :ResearchOrganizationAutocomplete\n a ui:AutocompleteField; ui:label "Research Insitute in wikidata";\n ui:size 60;\n ui:targetClass <http://www.wikidata.org/entity/Q31855>; # research institute\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n\n :NGOForm a ui:Group; ui:weight 0; ui:parts ( :NGOPrompt :NGOAutocomplete ) .\n\n :NGOPrompt a ui:Comment; ui:contents "Which NGO?".\n\n :NGOAutocomplete\n a ui:AutocompleteField; ui:label "NGO in wikidata";\n ui:size 60;\n ui:targetClass <http://www.wikidata.org/entity/Q163740>; # Non-profit org\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n :PerformingGroupForm a ui:Group; ui:weight 0; ui:parts ( :PerformingGroupPrompt :PerformingGroupAutocomplete ) .\n\n :PerformingGroupPrompt a ui:Comment; ui:contents "Which PerformingGroup?".\n\n :PerformingGroupAutocomplete\n a ui:AutocompleteField; ui:label "PerformingGroup in wikidata";\n ui:size 60;\n ui:targetClass <http://www.wikidata.org/entity/Q32178211>; # Music Org\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n\n :ProjectForm a ui:Group; ui:weight 0; ui:parts ( :ProjectPrompt :ProjectAutocomplete ) . # :ProjectAutocomplete - no: supress, as not in WD\n\n :ProjectPrompt a ui:Comment; ui:contents "Which Project?".\n\n :ProjectAutocomplete\n a ui:AutocompleteField; ui:label "Project in wikidata";\n ui:size 60;\n ui:targetClass <http://www.wikidata.org/entity/Q170584>; # Project\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n :SportsOrganizationForm a ui:Group; ui:weight 0; ui:parts ( :SportsOrganizationPrompt :SportsOrganizationAutocomplete ) .\n\n :SportsOrganizationPrompt a ui:Comment; ui:contents "Which Sports Organization?".\n\n :SportsOrganizationAutocomplete\n a ui:AutocompleteField; ui:label "SportsOrganization in wikidata";\n ui:size 60;\n ui:targetClass <http://www.wikidata.org/entity/Q4438121>; # SportsOrganization\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n :OtherOrganizationForm a ui:Group; ui:weight 0; ui:parts ( :OrganizationNameField :homePageURIField ) .\n\n #################### Skills\n\n :SkillsPrompt a ui:Comment; ui:contents "Skills?" .\n\n :SkillsForm a ui:Multiple;\n ui:label "Skills";\n ui:property schema:skills;\n ui:ordered false; # Allow reader to order skills\n ui:part :SkillForm.\n\n :SkillForm a ui:Group; ui:weight 1; ui:parts ( :escoSkillField ).\n\n # :skillNameField a ui:SingleLineTextField; ui:property vcard:role; ui:size 30 .\n\n :escoSkillField a ui:AutocompleteField;\n ui:label "skill"; ui:size 30;\n ui:property solid:publicId;\n ui:dataSource :ESCO_Skill_DataSource;\n ui:targetClass schema:Skill .\n\n :ESCO_Skill_DataSource a ui:DataSource;\n schema:name "ESCO Skill";\n ui:targetClass esco:Skill ;\n schema:logo <https://ec.europa.eu/esco/portal/static_resource2/images/logo/logo_en.gif>;\n ui:searchByNameURI "https://ec.europa.eu/esco/api/search?language=$(language)&limit=$(limit)&type=skill&text=$(name)".\n\n# Language\n\n:LanguagesPrompt a ui:Comment; ui:contents "Languages?" .\n\n:LanguagesForm a ui:Multiple;\n ui:label "Languages";\n ui:property schema:knowsLanguage; # @@@\n ui:ordered true; # Allow user to order languages most important first.\n ui:part :LanguageForm.\n\n:LanguageForm a ui:Group; ui:weight 1; ui:parts ( :WikidataLanguageField ).\n\n :WikidataLanguageField a ui:AutocompleteField;\n ui:label "Language"; ui:size 30;\n ui:property solid:publicId; # @@\n ui:dataSource :WikidataLanguageDataSource;\n ui:targetClass schema:Language .\n\n :WikidataLanguageDataSource\n schema:name "Wikidata languages";\n ui:endpoint "https://query.wikidata.org/sparql" ;\n ui:objectURIBase <https://www.w3.org/ns/iana/language-code/>;\n # Add this to any literal string returned as ?subject\n\n ui:searchByNameQuery """SELECT ?item ?subject ?name\nWHERE\n{ ?item wdt:P305 ?subject .\n OPTIONAL {?item rdfs:label ?name}\n OPTIONAL {?item wdt:P1705 ?name}\n FILTER regex(?name, "$(name)", "i")\n FILTER regex(?subject, "^..$", "i")\n}""" .\n # Note we restrict code to two-letter codes with the second regex, so as to limit the deluge of languages\n # Hope there are not any important ones which have three-letter codes.\n # Omitted: SERVICE wikibase:label { bd:serviceParam wikibase:language "$(languages)". }\n\n########### Social Media - other accounts\n#\n# Twitter, Linked In, Orkid, Mastodon, Matrix, Bluesky, Instagram, Facebook, Github,\n# Snapchat, TikTok, etc\n\n:SocialsPrompt a ui:Heading; ui:contents "Social Media etc?" .\n:SocialsPrompt a ui:Comment; ui:contents "Link to accounts in social media sites, etc" .\n\n:SocialsForm a ui:Multiple;\n ui:label "online account";\n ui:property foaf:account;\n ui:ordered true; # Allow user to order occounts most important first.\n ui:part :AccountsForm.\n\n:AccountsForm a ui:Group; ui:weight 1; ui:parts ( :AccountField :AccountIdField ).\n\n:AccountField a ui:Classifier; ui:label "What sort of account?"@en;\n ui:multiple false ; \n ui:category foaf:Account .\n\n:AccountIdField a ui:Options . \n\n :AccountIdField a ui:Options; ui:dependingOn rdf:type; ui:case\n [ ui:for soc:BlueSkyAccount; ui:use :BlueSkyIdField ],\n [ ui:for soc:FacebookAccount; ui:use :FacebookIdField ],\n [ ui:for soc:GithubAccount; ui:use :GithubIdField ],\n [ ui:for soc:InstagramAccount; ui:use :InstagramIdField ],\n [ ui:for soc:LinkedInAccount; ui:use :LinkedInIdField ],\n [ ui:for soc:MastodonAccount; ui:use :MastodonIdField ],\n [ ui:for soc:MatrixAccount; ui:use :MatrixIdField ],\n [ ui:for soc:MediumAccount; ui:use :MediumIdField ],\n [ ui:for soc:NostrAccount; ui:use :NostrIdField ],\n [ ui:for soc:OrcidAccount; ui:use :OrcidIdField ],\n [ ui:for soc:PinterestAccount; ui:use :PinterestIdField ],\n [ ui:for soc:RedditAccount; ui:use :RedditIdField ],\n [ ui:for soc:StravaAccount; ui:use :StravaIdField ],\n [ ui:for soc:SnapchatAccount; ui:use :SnapchatIdField ],\n [ ui:for soc:TiktokAccount; ui:use :TiktokIdField ],\n [ ui:for soc:TumblrAccount; ui:use :TumblrIdField ],\n [ ui:for soc:TwitterAccount; ui:use :TwitterIdField ],\n [ ui:for soc:OtherAccount; ui:use :OtherIdForm ] .\n\n :BlueSkyIdField\n a ui:SingleLineTextField ;\n ui:label "Bluesky Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-](.[a-z0-9A-Z_-])*"; # @@\n ui:size 40 .\n\n :FacebookIdField\n a ui:SingleLineTextField ;\n ui:label "Facebook Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :GithubIdField\n a ui:SingleLineTextField ;\n ui:label "Github Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :InstagramIdField\n a ui:SingleLineTextField ;\n ui:label "Instagram Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :LinkedInIdField\n a ui:SingleLineTextField ;\n ui:label "Linked In Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*"; # @@\n ui:size 40 .\n\n :MastodonIdField\n a ui:SingleLineTextField ;\n ui:label "Mastodon (Activity Pub) Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*"; # @@\n ui:size 40 .\n\n :MatrixIdField\n a ui:SingleLineTextField ;\n ui:label "Matrix Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*"; # @@\n ui:size 40 .\n\n :MediumIdField\n a ui:SingleLineTextField ;\n ui:label "Medium Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*"; # @@\n ui:size 40 .\n\n :NostrIdField\n a ui:SingleLineTextField ;\n ui:label "Nostr public key";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*"; # @@\n ui:size 70 .\n\n :OrcidIdField\n a ui:SingleLineTextField ;\n ui:label "ORCiD id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :PinterestIdField\n a ui:SingleLineTextField ;\n ui:label "Pinterest id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :RedditIdField\n a ui:SingleLineTextField ;\n ui:label "Reddit Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :StravaIdField\n a ui:SingleLineTextField ;\n ui:label "Strava Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :SnapchatIdField\n a ui:SingleLineTextField ;\n ui:label "Snapchat Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :TiktokIdField\n a ui:SingleLineTextField ;\n ui:label "Tiktok Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :TumblrIdField\n a ui:SingleLineTextField ;\n ui:label "Tumblr user name";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n :TwitterIdField\n a ui:SingleLineTextField ;\n ui:label "Twitter Id";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*"; # @@\n ui:size 40 .\n\n# an unknown SN account needs more info\n\n :OtherIdForm a ui:Group; ui:weight 0; ui:parts ( :OtherIdField :OtherIconField :OtherLabelield ).\n\n :OtherIdField\n a ui:NamedNodeURIField ;\n ui:label "URL of account to link to";\n ui:maxLength "200" ;\n ui:property foaf:homepage ; \n ui:size 60 .\n\n :OtherLabelield\n a ui:SingleLineTextField ;\n ui:label "Label";\n ui:maxLength "200" ;\n ui:property rdfs:label ; \n ui:size 40 .\n\n :OtherIconField\n a ui:NamedNodeURIField ;\n ui:label "URL of icon to display";\n ui:maxLength "200" ;\n ui:property foaf:icon ;\n ui:size 60 .\n\n\n\n\n\n# ENDS\n',e,t.uri,"text/turtle",()=>null)}},6257(e,t){const n="[0-9]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+")(?:.|[\r\n]))+";t.KANJI=new RegExp(i,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const r=new RegExp("^"+i+"$"),a=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return r.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},6399(e,t){let n;const i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return i[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},6596(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.presentProfile=void 0,t.pronounsAsText=a;var i=n(3383),o=n(2404),r=n(1682);function a(e){let t=o.store.anyJS(e,i.ns.solid("preferredSubjectPronoun"))||"";if(t){const n=o.store.anyJS(e,i.ns.solid("preferredObjectPronoun"));if(n){t+="/"+n;const r=o.store.anyJS(e,i.ns.solid("preferredRelativePronoun"));r&&(t+="/"+r)}t=" ("+t+") "}return t||""}function s(e,t){return e&&t?`${t}, ${e}`:e||t||null}function u(e,t){return e&&t?`${e} at ${t}`:t||e||null}function l(e,t){return e&&(0,r.validateHTMLColorHex)(e)?e:t}t.presentProfile=(e,t)=>{const n=i.utils.label(e),o=i.widgets.findImage(e),r=t.anyValue(e,i.ns.vcard("role")),c=t.anyValue(e,i.ns.vcard("organization-name")),d=t.any(e,i.ns.vcard("hasAddress")),h=null!=d?t.anyValue(d,i.ns.vcard("country-name")):null,p=null!=d?t.anyValue(d,i.ns.vcard("locality")):null,{backgroundColor:g,highlightColor:m}=function(e,t){const n=t.anyValue(e,i.ns.solid("profileBackgroundColor"),null,e.doc()),o=t.anyValue(e,i.ns.solid("profileHighlightColor"),null,e.doc());return{backgroundColor:l(n,"#eee"),highlightColor:l(o,"#090")}}(e,t),f=a(e);return{name:n,imageSrc:o,introduction:u(r,c),location:s(h,p),backgroundColor:g,pronouns:f,highlightColor:m}}},6925(e,t,n){const i=n(2591);function o(e,t){const n=e.a/255,i=t+'="'+e.hex+'"';return n<1?i+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function r(e,t,n){let i=e+t;return void 0!==n&&(i+=" "+n),i}t.render=function(e,t,n){const a=i.getOptions(t),s=e.modules.size,u=e.modules.data,l=s+2*a.margin,c=a.color.light.a?"<path "+o(a.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",d="<path "+o(a.color.dark,"stroke")+' d="'+function(e,t,n){let i="",o=0,a=!1,s=0;for(let u=0;u<e.length;u++){const l=Math.floor(u%t),c=Math.floor(u/t);l||a||(a=!0),e[u]?(s++,u>0&&l>0&&e[u-1]||(i+=a?r("M",l+n,.5+c+n):r("m",o,0),o=0,a=!1),l+1<t&&e[u+1]||(i+=r("h",s),s=0)):o++}return i}(u,s,a.margin)+'"/>',h='viewBox="0 0 '+l+" "+l+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+h+' shape-rendering="crispEdges">'+c+d+"</svg>\n";return"function"==typeof n&&n(null,p),p}},6935(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProfileCard=void 0;var i=n(2179),o=n(2061),r=n(3057);const a=(0,o.styleMap)((0,r.fullWidth)()),s=(0,o.styleMap)({...(0,r.textGray)(),...(0,r.textCenter)()}),u=(0,o.styleMap)((0,r.padding)());t.ProfileCard=({name:e,imageSrc:t,introduction:n,location:a,pronouns:d,highlightColor:h})=>{const p=(0,o.styleMap)({...(0,r.heading)(),"text-decoration":"underline","text-decoration-color":h});return i.html`
102
+ ${c(t,e)}
103
+ <div style=${u}>
104
+ <h3 style=${p}>${e}</h3>
105
+ <div style=${s}>
106
+ ${l(n)} ${l(a,"🌐")} ${l(d)}
107
+ </div>
108
+ </div>
109
+ `};const l=(e,t=i.nothing)=>e?i.html`<p>${t} ${e}</p>`:i.nothing,c=(e,t)=>e?i.html`<img style=${a} src=${e} alt=${t} />`:i.nothing},7178(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addMeToYourFriendsDiv=void 0,t.checkIfAnyUserLoggedIn=m,t.checkIfFriendExists=f,t.createAddMeToYourFriendsButton=void 0,t.saveNewFriend=g;var i=n(2179),o=n(2061),r=n(2404),a=n(9676),s=n(3383),u=n(1154),l=n(3057),c=n(3e3);let d=document.createElement("div");const h=(0,o.styleMap)({...(0,l.textCenter)(),...(0,l.padding)()});t.addMeToYourFriendsDiv=(e,t)=>{d=t.dom.createElement("div");const n=p(e,t);return d.appendChild(n),i.html` <div style="${h}">${d}</div> `};const p=(e,t)=>{const n=s.widgets.button(t.dom,void 0,c.logInAddMeToYourFriendsButtonText,function(n){n.preventDefault(),g(e,t).then(()=>{(0,u.clearPreviousMessage)(d),(0,u.mention)(d,c.friendWasAddedSuccesMessage),i()}).catch(e=>{(0,u.clearPreviousMessage)(d),(0,u.complain)(d,t,e)})},{needsBorder:!0});function i(){const i=r.authn.currentUser(),o=t.session.store;m(i)?f(o,i,e).then(e=>{e?(n.innerHTML=c.friendExistsAlreadyButtonText.toUpperCase(),n.setAttribute("class","textButton-0-1-3")):(n.innerHTML=c.addMeToYourFriendsButtonText.toUpperCase(),n.setAttribute("class","textButton-0-1-2"))}):(n.innerHTML=c.logInAddMeToYourFriendsButtonText.toUpperCase(),n.setAttribute("class","textButton-0-1-3"))}return n.refresh=i(),n};async function g(e,t){const n=r.authn.currentUser(),i=t.session.store;if(!m(n))throw new Error(c.userNotLoggedInErrorMessage);if(await f(i,n,e))throw new Error(c.friendExistsMessage);{await i.fetcher.load(n);const t=i.updater,o=[(0,a.st)(n,s.ns.foaf("knows"),e,n.doc())];try{await t.update([],o)}catch(e){let t=e;throw t.toString().includes("Unauthenticated")&&(t=c.userNotLoggedInErrorMessage),new Error(t)}}}function m(e){return!!e}async function f(e,t,n){return await e.fetcher.load(t),0!==e.whether(t,s.ns.foaf("knows"),n,t.doc())}t.createAddMeToYourFriendsButton=p},7630(e,t,n){const i=n(2751);function o(e){this.mode=i.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,n,i;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),i=parseInt(n,10),e.put(i,10);const o=this.data.length-t;o>0&&(n=this.data.substr(t),i=parseInt(n,10),e.put(i,3*o+1))},e.exports=o},7643(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.paneDiv=function(e,t,n){const i=e.session.paneRegistry.byName(n);if(!i){const t=e.dom.createElement("div");return t.innerText=`Unable to load view: ${n}`,t}const o=i.render(t,e);let r;o&&"function"==typeof o.setAttribute?r=o:o&&o.nodeType===Node.TEXT_NODE?(r=e.dom.createElement("div"),r.appendChild(o)):(r=e.dom.createElement("div"),r.innerText=`View render did not return a valid Node for: ${n}`);return r.setAttribute("style","border: 0.3em solid #444; border-radius: 0.5em"),r}},8464(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProfileView=async function(e,t){const n=(0,u.presentProfile)(e,t.session.store),w=(0,l.presentCV)(e,t.session.store),b=(0,c.presentSocial)(e,t.session.store),C=await(0,d.presentStuff)(e),A={grid:(0,o.styleMap)({...(0,r.responsiveGrid)(),...(0,r.paddingSmall)(),background:`radial-gradient(circle, ${n.backgroundColor} 80%, ${n.highlightColor} 100%)`}),card:(0,o.styleMap)((0,r.card)()),chat:(0,o.styleMap)({...(0,r.card)(),...(0,r.padding)()})};return i.html`
110
+ <div style="${A.grid}">
111
+ <div>
112
+ <div data-testid="profile-card" style="${A.card}">
113
+ ${(0,h.ProfileCard)(n)}
114
+ ${(0,y.addMeToYourFriendsDiv)(e,t)}
115
+ </div>
116
+ </div>
117
+ ${(0,p.CVCard)(n,w)}
118
+ ${(0,g.SocialCard)(n,b)}
119
+ ${(0,m.StuffCard)(n,t,e,C)}
120
+ ${(0,s.FriendList)(n,e,t)}
121
+ <div style="${A.chat}">${(0,a.ChatWithMe)(e,t)}</div>
122
+ <div data-testid="qrcode-display" class="qrcode-display" style="${A.card}">
123
+ ${(0,f.QRCodeCard)(n,e)}
124
+
125
+ </div>
126
+ </div>
127
+ `};var i=n(2179),o=n(2061),r=n(3057),a=n(5170),s=n(5494),u=n(6596),l=n(4767),c=n(6189),d=n(1740),h=n(6935),p=n(2217),g=n(5947),m=n(24),f=n(4654),y=n(7178)},8517(e,t,n){"use strict";n.d(t,{OA:()=>i,WL:()=>r,u$:()=>o});
128
+ /**
129
+ * @license
130
+ * Copyright 2017 Google LLC
131
+ * SPDX-License-Identifier: BSD-3-Clause
132
+ */
133
+ const i={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},o=e=>(...t)=>({_$litDirective$:e,values:t});class r{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}},8864(e,t,n){const i=n(6399),o=i.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let r=n<<10;for(;i.getBCHDigit(r)-o>=0;)r^=1335<<i.getBCHDigit(r)-o;return 21522^(n<<10|r)}},9450(e,t,n){const i=n(6399),o=n(3507),r=n(5790),a=n(2751),s=n(3523),u=i.getBCHDigit(7973);function l(e,t){return a.getCharCountIndicator(e,t)+4}function c(e,t){let n=0;return e.forEach(function(e){const i=l(e.mode,t);n+=i+e.getBitsLength()}),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=a.BYTE);const r=8*(i.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t));if(n===a.MIXED)return r;const u=r-l(n,e);switch(n){case a.NUMERIC:return Math.floor(u/10*3);case a.ALPHANUMERIC:return Math.floor(u/11*2);case a.KANJI:return Math.floor(u/13);case a.BYTE:default:return Math.floor(u/8)}},t.getBestVersionForData=function(e,n){let i;const o=r.from(n,r.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let i=1;i<=40;i++)if(c(e,i)<=t.getCapacity(i,n,a.MIXED))return i}(e,o);if(0===e.length)return 1;i=e[0]}else i=e;return function(e,n,i){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,i,e))return o}(i.mode,i.getLength(),o)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;i.getBCHDigit(t)-u>=0;)t^=7973<<i.getBCHDigit(t)-u;return e<<12|t}}}]);
134
+ //# sourceMappingURL=477.mashlib.min.js.map