solid-panes 4.2.2 → 4.2.3-583c15bd

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.
Files changed (114) hide show
  1. package/dist/RDFXMLPane.js +1 -2
  2. package/dist/argument/argumentPane.js +1 -2
  3. package/dist/attach/attachPane.js +1 -2
  4. package/dist/audio/audioPane.js +1 -2
  5. package/dist/classInstancePane.js +1 -2
  6. package/dist/dataContentPane.js +12 -10
  7. package/dist/defaultPane.js +1 -2
  8. package/dist/dokieli/dokieliPane.js +1 -2
  9. package/dist/dokieli/new.js +1 -2
  10. package/dist/form/pane.js +1 -2
  11. package/dist/humanReadablePane.js +12 -10
  12. package/dist/imagePane.js +1 -2
  13. package/dist/internal/internalPane.d.ts +1 -0
  14. package/dist/internal/internalPane.d.ts.map +1 -1
  15. package/dist/microblogPane/mbStyle.css +267 -0
  16. package/dist/microblogPane/microblogPane.js +1 -2
  17. package/dist/n3Pane.js +1 -2
  18. package/dist/outline/manager.css +80 -0
  19. package/dist/outline/manager.js +14 -11
  20. package/dist/outline/outlineIcons.js +1 -2
  21. package/dist/outline/queryByExample.js +1 -2
  22. package/dist/outline/userInput.js +1 -2
  23. package/dist/pad/padPane.d.ts +1 -0
  24. package/dist/pad/padPane.d.ts.map +1 -1
  25. package/dist/playlist/playlistPane.js +1 -2
  26. package/dist/registerPanes.js +1 -2
  27. package/dist/schedule/schedulePane.js +27 -3
  28. package/dist/slideshow/slideshowPane.js +1 -2
  29. package/dist/socialPane.js +1 -2
  30. package/dist/solid-panes.js +49702 -0
  31. package/dist/solid-panes.js.map +1 -0
  32. package/dist/solid-panes.min.js +290 -0
  33. package/dist/solid-panes.min.js.map +1 -0
  34. package/dist/styles/dataContentPane.css +23 -0
  35. package/dist/styles/humanReadablePane.css +8 -0
  36. package/dist/styles/internalPane.css +12 -0
  37. package/dist/styles/padPane.css +13 -0
  38. package/dist/styles/tabbedtab.css +1347 -0
  39. package/dist/tableViewPane.js +1 -2
  40. package/dist/transaction/pane.js +1 -2
  41. package/dist/transaction/period.js +1 -2
  42. package/dist/trip/tripPane.js +1 -2
  43. package/dist/ui/pane.js +1 -2
  44. package/dist/video/videoPane.js +1 -2
  45. package/package.json +13 -12
  46. package/dist/RDFXMLPane.js.map +0 -1
  47. package/dist/argument/argumentPane.js.map +0 -1
  48. package/dist/attach/attachPane.js.map +0 -1
  49. package/dist/audio/audioPane.js.map +0 -1
  50. package/dist/classInstancePane.js.map +0 -1
  51. package/dist/dashboard/basicPreferences.js +0 -147
  52. package/dist/dashboard/basicPreferences.js.map +0 -1
  53. package/dist/dashboard/dashboardPane.js +0 -68
  54. package/dist/dashboard/dashboardPane.js.map +0 -1
  55. package/dist/dashboard/homepage.js +0 -73
  56. package/dist/dashboard/homepage.js.map +0 -1
  57. package/dist/dataContentPane.js.map +0 -1
  58. package/dist/defaultPane.js.map +0 -1
  59. package/dist/dokieli/dokieliPane.js.map +0 -1
  60. package/dist/dokieli/new.js.map +0 -1
  61. package/dist/form/pane.js.map +0 -1
  62. package/dist/home/homePane.js +0 -73
  63. package/dist/home/homePane.js.map +0 -1
  64. package/dist/humanReadablePane.js.map +0 -1
  65. package/dist/imagePane.js.map +0 -1
  66. package/dist/index.js +0 -109
  67. package/dist/index.js.map +0 -1
  68. package/dist/internal/internalPane.js +0 -184
  69. package/dist/internal/internalPane.js.map +0 -1
  70. package/dist/mainPage/footer.js +0 -22
  71. package/dist/mainPage/footer.js.map +0 -1
  72. package/dist/mainPage/header.js +0 -86
  73. package/dist/mainPage/header.js.map +0 -1
  74. package/dist/mainPage/index.js +0 -25
  75. package/dist/mainPage/index.js.map +0 -1
  76. package/dist/microblogPane/microblogPane.js.map +0 -1
  77. package/dist/n3Pane.js.map +0 -1
  78. package/dist/outline/context.js +0 -19
  79. package/dist/outline/context.js.map +0 -1
  80. package/dist/outline/manager.js.map +0 -1
  81. package/dist/outline/outlineIcons.js.map +0 -1
  82. package/dist/outline/propertyViews.js +0 -44
  83. package/dist/outline/propertyViews.js.map +0 -1
  84. package/dist/outline/queryByExample.js.map +0 -1
  85. package/dist/outline/userInput.js.map +0 -1
  86. package/dist/outline/viewAsImage.js +0 -15
  87. package/dist/outline/viewAsImage.js.map +0 -1
  88. package/dist/outline/viewAsMbox.js +0 -22
  89. package/dist/outline/viewAsMbox.js.map +0 -1
  90. package/dist/pad/padPane.js +0 -411
  91. package/dist/pad/padPane.js.map +0 -1
  92. package/dist/playlist/playlistPane.js.map +0 -1
  93. package/dist/registerPanes.js.map +0 -1
  94. package/dist/schedule/schedulePane.js.map +0 -1
  95. package/dist/sharing/sharingPane.js +0 -49
  96. package/dist/sharing/sharingPane.js.map +0 -1
  97. package/dist/slideshow/slideshowPane.js.map +0 -1
  98. package/dist/socialPane.js.map +0 -1
  99. package/dist/tabbed/tabbedPane.js +0 -58
  100. package/dist/tabbed/tabbedPane.js.map +0 -1
  101. package/dist/tableViewPane.js.map +0 -1
  102. package/dist/transaction/pane.js.map +0 -1
  103. package/dist/transaction/period.js.map +0 -1
  104. package/dist/trip/tripPane.js.map +0 -1
  105. package/dist/trustedApplications/trustedApplications.dom.js +0 -146
  106. package/dist/trustedApplications/trustedApplications.dom.js.map +0 -1
  107. package/dist/trustedApplications/trustedApplications.utils.js +0 -24
  108. package/dist/trustedApplications/trustedApplications.utils.js.map +0 -1
  109. package/dist/trustedApplications/trustedApplications.view.js +0 -56
  110. package/dist/trustedApplications/trustedApplications.view.js.map +0 -1
  111. package/dist/ui/pane.js.map +0 -1
  112. package/dist/versionInfo.js +0 -36
  113. package/dist/versionInfo.js.map +0 -1
  114. package/dist/video/videoPane.js.map +0 -1
@@ -0,0 +1,290 @@
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("UI"),require("SolidLogic"),require("rdflib")):"function"==typeof define&&define.amd?define(["UI","SolidLogic","rdflib"],t):"object"==typeof exports?exports.SolidPanes=t(require("UI"),require("SolidLogic"),require("rdflib")):e.SolidPanes=t(e.UI,e.SolidLogic,e.rdflib)}(this,(e,t,n)=>(()=>{var a={6305(e){e.exports&&(e.exports=function(e,t){if(void 0===n)var n=t.dom;var a=n.querySelectorAll(e),i={init:function(e,t){this.counter=0,this.el=e,this.$items=e.querySelectorAll("figure"),this.numItems=this.$items.length,(t=t||{}).auto=t.auto||!1,this.opts={auto:void 0!==t.auto&&t.auto,speed:void 0===t.auto.speed?1500:t.auto.speed,pauseOnHover:void 0!==t.auto.pauseOnHover&&t.auto.pauseOnHover,fullScreen:void 0!==t.fullScreen&&t.fullScreen,swipe:void 0!==t.swipe&&t.swipe},this.$items[0].classList.add("bss-show"),this.injectControls(e),this.addEventListeners(e),this.opts.auto&&this.autoCycle(this.el,this.opts.speed,this.opts.pauseOnHover),this.opts.fullScreen&&this.addFullScreen(this.el),this.opts.swipe&&this.addSwipe(this.el)},showCurrent:function(e){this.counter=e>0?this.counter+1===this.numItems?0:this.counter+1:this.counter-1<0?this.numItems-1:this.counter-1,[].forEach.call(this.$items,function(e){e.classList.remove("bss-show")}),this.$items[this.counter].classList.add("bss-show")},injectControls:function(e){var t=n.createElement("span"),a=n.createElement("span"),i=n.createDocumentFragment();t.classList.add("bss-prev"),a.classList.add("bss-next"),t.innerHTML="&laquo;",a.innerHTML="&raquo;",i.appendChild(t),i.appendChild(a),e.appendChild(i)},addEventListeners:function(e){var t=this;e.querySelector(".bss-next").addEventListener("click",function(){t.showCurrent(1)},!1),e.querySelector(".bss-prev").addEventListener("click",function(){t.showCurrent(-1)},!1),e.onkeydown=function(e){37===(e=e||window.event).keyCode?t.showCurrent(-1):39===e.keyCode&&t.showCurrent(1)}},autoCycle:function(e,t,n){var a=this,i=window.setInterval(function(){a.showCurrent(1)},t);n&&(e.addEventListener("mouseover",function(){i=clearInterval(i)},!1),e.addEventListener("mouseout",function(){i=window.setInterval(function(){a.showCurrent(1)},t)},!1))},addFullScreen:function(e){var t=this,a=n.createElement("span");a.classList.add("bss-fullscreen"),e.appendChild(a),e.querySelector(".bss-fullscreen").addEventListener("click",function(){t.toggleFullScreen(e)},!1)},addSwipe:function(e){var t=this,n=new Hammer(e);n.on("swiperight",function(e){t.showCurrent(-1)}),n.on("swipeleft",function(e){t.showCurrent(1)})},toggleFullScreen:function(e){n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement||n.msFullscreenElement?n.exitFullscreen?n.exitFullscreen():n.msExitFullscreen?n.msExitFullscreen():n.mozCancelFullScreen?n.mozCancelFullScreen():n.webkitExitFullscreen&&n.webkitExitFullscreen():n.documentElement.requestFullscreen?e.requestFullscreen():n.documentElement.msRequestFullscreen?e.msRequestFullscreen():n.documentElement.mozRequestFullScreen?e.mozRequestFullScreen():n.documentElement.webkitRequestFullscreen&&e.webkitRequestFullscreen(e.ALLOW_KEYBOARD_INPUT)}};[].forEach.call(a,function(e){Object.create(i).init(e,t)})})},701(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findChat=s,t.getChat=async function(e,t=!0){const{me:n,chatContainer:l,exists:c}=await s(e);if(c)return new o.NamedNode(l.value+r.longChatPane.CHAT_LOCATION_IN_CONTAINER);if(t){const t=await async function(e,t){const n=await r.longChatPane.mintNew({session:{store:i.store}},{me:t,newBase:e.value});return n.newInstance}(l,n);return await async function(e,t){await i.store.fetcher.load(e.doc());const n=i.store.any(e,a.ns.ldp("inbox"),void 0,e.doc());if(!n)throw new Error(`Invitee inbox not found! ${e.value}`);const o=`\n<> a <http://www.w3.org/ns/pim/meeting#LongChatInvite> ;\n${a.ns.rdf("seeAlso")} <${t.value}> . \n `,r=await i.store.fetcher.webOperation("POST",n.value,{data:o,contentType:"text/turtle"});if(!r.headers.get("location"))throw new Error(`Invite sending returned a ${r.status}`)}(e,t),await async function(e,t,n){await i.store.fetcher.load(e);const a=i.store.any(e,new o.NamedNode("http://www.iana.org/assignments/link-relations/acl"));if(!a)throw new Error("Chat ACL doc not found!");const r=`\n@prefix acl: <http://www.w3.org/ns/auth/acl#>.\n<#owner>\n a acl:Authorization;\n acl:agent <${t.value}>;\n acl:accessTo <.>;\n acl:default <.>;\n acl:mode\n acl:Read, acl:Write, acl:Control.\n<#invitee>\n a acl:Authorization;\n acl:agent <${n.value}>;\n acl:accessTo <.>;\n acl:default <.>;\n acl:mode\n acl:Read, acl:Append.\n`;await i.store.fetcher.webOperation("PUT",a.value,{data:r,contentType:"text/turtle"})}(l,n,e),await async function(e,t){const n=i.store.any(t,a.ns.solid("privateTypeIndex"));if(!n)throw new Error("Private type index not found!");await i.store.fetcher.load(n);const r=a.widgets.newThing(n),s=[(0,o.st)(r,a.ns.rdf("type"),a.ns.solid("TypeRegistration"),n.doc()),(0,o.st)(r,a.ns.solid("forClass"),a.ns.meeting("LongChat"),n.doc()),(0,o.st)(r,a.ns.solid("instance"),e,n.doc())];await new Promise((e,t)=>{i.store.updater.update([],s,function(n,a,i){a?e():t(new Error(i))})})}(t,n),t}throw new Error("Chat does not exist and createIfMissing is false")};var a=n(9426),i=n(5663),o=n(5491),r=n(8055);async function s(e){const t=await async function(){const e=i.authn.currentUser();if(null===e)throw new Error("Current user not found! Not logged in?");return await i.store.fetcher.load(e.doc()),e}(),n=await async function(e){const t=i.store.any(e,a.ns.space("storage"),void 0,e.doc());if(!t)throw new Error("Current user pod root not found!");return t}(t),s=function(e,t){const n=new URL(`IndividualChats/${new URL(e.value).host}/`,t.value).toString();return new o.NamedNode(n)}(e,n);let l=!0;try{await i.store.fetcher.load(new o.NamedNode(s.value+r.longChatPane.CHAT_LOCATION_IN_CONTAINER))}catch(e){l=!1}return{me:t,chatContainer:s,exists:l}}},8055(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.longChatPane=void 0;var a=n(5663),i=r(n(9426)),o=r(n(5491));function r(e,t){if("function"==typeof WeakMap)var n=new WeakMap,a=new WeakMap;return(r=function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=t?a:n){if(i.has(e))return i.get(e);i.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?i(r,t,o):r[t]=e[t]);return r})(e,t)}const s=i.ns,l=s.meeting("LongChat"),c="index.ttl#this",u=i.style.sidebarComponentStyle||" padding: 0.5em; width: 100%;",d=i.style.sidebarStyle||"overflow-x: auto; overflow-y: auto; border-radius: 1em; border: 0.1em solid white;";t.longChatPane={CHAT_LOCATION_IN_CONTAINER:c,icon:i.icons.iconBase+"noun_1689339.svg",name:"long chat",label:function(e,t){const n=t.session.store;return n.holds(e,s.rdf("type"),s.meeting("LongChat"))?"Chat channnel":n.holds(e,s.rdf("type"),s.sioc("Thread"))?"Thread":n.any(e,s.sioc("content"))&&n.any(e,s.dct("created"))?"message":null},mintClass:l,mintNew:function(e,t){const n=e.session.store,a=n.updater;if(t.me&&!t.me.uri)throw new Error("chat mintNew: Invalid userid "+t.me);const i=t.newInstance=t.newInstance||n.sym(t.newBase+c),o=i.doc();n.add(i,s.rdf("type"),s.meeting("LongChat"),o),n.add(i,s.dc("title"),"Chat channel",o),n.add(i,s.dc("created"),new Date,o),t.me&&n.add(i,s.dc("author"),t.me,o);const r=(e,t,n)=>`\n @prefix : <#>.\n @prefix acl: <http://www.w3.org/ns/auth/acl#>.\n @prefix foaf: <http://xmlns.com/foaf/0.1/>.\n @prefix lon: <./${t}>.\n\n :ControlReadWrite\n a acl:Authorization;\n acl:accessTo lon:;\n acl:agent <${e.uri}>;\n acl:default lon:;\n acl:mode acl:Control, acl:Read, acl:Write.\n :Read\n a acl:Authorization;\n acl:accessTo lon:;\n acl:agentClass foaf:Agent;\n acl:default lon:;\n acl:mode acl:Read.\n :Read${n}\n a acl:Authorization;\n acl:accessTo lon:;\n acl:agentClass acl:AuthenticatedAgent;\n acl:default lon:;\n acl:mode acl:Read, acl:${n}.`;return new Promise(function(e,i){a.put(o,n.statementsMatching(void 0,void 0,void 0,o),"text/turtle",function(n,a,o){a?e(t):i(new Error("FAILED to save new chat channel at: "+n+" : "+o))}).then(e=>new Promise((e,a)=>{t.me&&(n.fetcher.webOperation("PUT",t.newBase+".acl",{data:r(t.me,"","Append"),contentType:"text/turtle"}),n.fetcher.webOperation("PUT",t.newBase+"index.ttl.acl",{data:r(t.me,"index.ttl","Write"),contentType:"text/turtle"})),e(t)}))})},render:function(e,t,n){const r=t.dom,c=t.session.store,p=c.sym("https://solid.github.io/solid-panes/longCharPane/preferencesForm.ttl#this"),f=p.doc();c.holds(void 0,void 0,void 0,f)||o.parse('\n @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\n @prefix solid: <http://www.w3.org/ns/solid/terms#>.\n @prefix ui: <http://www.w3.org/ns/ui#>.\n @prefix : <#>.\n\n :this\n <http://purl.org/dc/elements/1.1/title> "Chat preferences" ;\n a ui:Form ;\n ui:parts ( :colorizeByAuthor :expandImagesInline :newestFirst :inlineImageHeightEms\n :shiftEnterSendsMessage :authorDateOnLeft :showDeletedMessages).\n\n :colorizeByAuthor a ui:TristateField; ui:property solid:colorizeByAuthor;\n ui:label "Color user input by user".\n\n :expandImagesInline a ui:TristateField; ui:property solid:expandImagesInline;\n ui:label "Expand image URLs inline".\n\n :newestFirst a ui:TristateField; ui:property solid:newestFirst;\n ui:label "Newest messages at the top".\n\n :inlineImageHeightEms a ui:IntegerField; ui:property solid:inlineImageHeightEms;\n ui:label "Inline image height (lines)".\n\n :shiftEnterSendsMessage a ui:TristateField; ui:property solid:shiftEnterSendsMessage;\n ui:label "Shift-Enter sends message".\n\n :authorDateOnLeft a ui:TristateField; ui:property solid:authorDateOnLeft;\n ui:label "Author & date of message on left".\n\n :showDeletedMessages a ui:TristateField; ui:property solid:showDeletedMessages;\n ui:label "Show placeholders for deleted messages".\n',c,f.uri,"text/turtle");const m=c.statementsMatching(null,s.ui.property,null,f).map(e=>e.object);function h(e){const n=i.widgets.button(t.dom,i.icons.iconBase+"noun_1180156.svg","close",function(){e.parentNode.removeChild(e)});return n.style.float="right",n.style.margin="0.7em",delete n.style.backgroundColor,n}function g(e,n){const o=r.createElement("div"),s=a.authn.currentUser(),l={div:o,dom:r,noun:n,statusArea:o,me:s,refreshTarget:e},c=[t.session.paneRegistry.byName("chat")];return i.create.newThingUI(l,t,c),o}let b,v=null;let y=e,w=null,x=null;if(c.holds(e,s.rdf("type"),s.meeting("LongChat")))console.log("@@@ Chat channnel");else if(c.holds(e,s.rdf("type"),s.sioc("Thread"))){console.log("Thread is subject "+e.uri),x=e;const t=c.the(null,s.sioc("has_reply"),x,x.doc());if(!t)throw new Error("Thread has no root message "+x);if(y=c.any(null,s.wf("message"),t),!y)throw new Error("Thread root has no link to chatChannel")}else if(c.any(e,s.sioc("content"))&&c.any(e,s.dct("created"))&&(console.log("message is subject "+e.uri),w=e,y=c.any(null,s.wf("message"),w),!y))throw new Error("Message has no link to chatChannel");const A=r.createElement("div"),C="20cm",k=A.appendChild(r.createElement("table"));k.style.maxHeight='12"';const E=k.appendChild(r.createElement("tr")),T=E.appendChild(r.createElement("td")),S=E.appendChild(r.createElement("td")),P=E.appendChild(r.createElement("td")),B=E.appendChild(r.createElement("td")),N=k.appendChild(r.createElement("tr"));T.style=d,T.style.paddingRight="1em",P.style=d,P.style.paddingLeft="1em",B.style=d,B.style.paddingLeft="1em",N.appendChild(r.createElement("td"));const I=N.appendChild(r.createElement("td"));N.appendChild(r.createElement("td"));const _=i.widgets.button(r,i.icons.iconBase+"noun_339237.svg","participants ...");I.appendChild(_),_.addEventListener("click",function(e){if(!b){b=r.createElement("div"),b.style=u,b.style.maxHeight=C,b.appendChild(h(b));const e=a.authn.currentUser();e||alert("Should be logeed in for partipants panel"),i.pad.manageParticipation(r,b,y.doc(),y,e,{})}T.contains(b)?(b.parentNode.removeChild(b),b=null):T.appendChild(b)});const O=i.widgets.button(r,i.icons.iconBase+"noun_1689339.svg","List of other chats ...");I.appendChild(O),O.addEventListener("click",async function(e){v||(v=r.createElement("div"),v.style=u,v.style.maxHeight=C,v.appendChild(h(v)),v.appendChild(await async function(e,t){const n=r.createElement("div"),a={dom:r,div:n,noun:t};return await i.login.registrationList(a,{public:!0,private:!0,type:e}),n.appendChild(g(n,t)),n}(s.meeting("LongChat"),"chat"))),T.contains(v)?v.parentNode.removeChild(v):T.appendChild(v)});let L=null;const F=i.widgets.button(r,i.icons.iconBase+"noun_344563.svg","Setting ...");I.appendChild(F),F.style.float="right",F.addEventListener("click",async function(e){L||(L=await async function(e){const{dom:t,noun:n}=e,o=t.createElement("div");o.appendChild(h(o)),o.style=u,o.style.minWidth="25em",o.style.maxHeight=C;const r=o.appendChild(t.createElement("table")),s=r.appendChild(t.createElement("tr")),d=r.appendChild(t.createElement("tr")),f=a.authn.currentUser();return f&&(await i.login.registrationControl({noun:n,me:f,statusArea:d,dom:t,div:s},y,l),console.log("Registration control finsished."),o.appendChild(i.preferences.renderPreferencesForm(y,l,p,{noun:n,me:f,statusArea:d,div:o,dom:t,kb:c}))),o}({dom:r,noun:"chat room"})),B.contains(L)?(L.parentNode.removeChild(L),L=null):B.appendChild(L)}),A.setAttribute("class","chatPane");const R={infinite:!0},M={noun:"chat room",div:A,dom:r};async function D(e,t){console.log("@@@@ showThread thread "+e);const n={};n.thread=e,n.includeRemoveButton=!0,n.authorDateOnLeft=t.authorDateOnLeft,n.newestFirst=t.newestFirst,P.innerHTML="",console.log("Options for showThread message Area",n);const a=await i.infiniteMessageArea(r,c,y,n);a.style.resize="both",a.style.overflow="auto",a.style.maxHeight=C,P.appendChild(a)}return M.me=a.authn.currentUser(),async function(){let e;try{e=await i.preferences.getPreferencesForClass(y,l,m,M)}catch(e){i.widgets.complain(M,e)}for(const t in e)R[t.split("#")[1]]=e[t];w&&(R.selectedMessage=w),n.solo&&(R.solo=!0),x?R.thread=x:R.showThread=D;const t=await i.infiniteMessageArea(r,c,y,R);t.style.resize="both",t.style.overflow="auto",t.style.maxHeight=C,S.appendChild(t)}().then(console.log("async - chat pane built")),A}}},7052(e,t,n){"use strict";Object.defineProperty(t,"Pq",{enumerable:!0,get:function(){return i.longChatPane}}),Object.defineProperty(t,"bz",{enumerable:!0,get:function(){return a.shortChatPane}});var a=n(6303),i=n(8055),o=n(701)},6303(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shortChatPane=void 0;var a=n(5663),i=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,a=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=t?a:n){if(i.has(e))return i.get(e);i.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?i(r,t,o):r[t]=e[t]);return r}(e,t)}(n(9426));const o=i.ns;t.shortChatPane={icon:i.icons.iconBase+"noun_346319.svg",name:"chat",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store,a=n.each(e,o.wf("message")).length;return a>0?"Chat ("+a+")":n.holds(e,o.rdf("type"),o.meeting("Chat"))?"Meeting chat":n.holds(void 0,o.rdf("type"),o.foaf("ChatChannel"),e)?"IRC log":null},mintClass:o.meeting("Chat"),mintNew:function(e,t){if(!confirm("short Chat is deprecated in favor of long Chat.\nEmbedded chat for comments and existing short Chats will work.\nYou can report any issues at https://github.com/SolidOS/chat-pane ?\n\nDo you really want to create a new deprecated short Chat?"))return;const n=e.session.store,a=n.updater;if(t.me&&!t.me.uri)throw new Error("chat mintNew: Invalid userid "+t.me);const i=t.newInstance=t.newInstance||n.sym(t.newBase+"index.ttl#this"),r=i.doc();return n.add(i,o.rdf("type"),o.meeting("Chat"),r),n.add(i,o.dc("title"),"Chat",r),n.add(i,o.dc("created"),new Date,r),t.me&&n.add(i,o.dc("author"),t.me,r),new Promise(function(e,i){a.put(r,n.statementsMatching(void 0,void 0,void 0,r),"text/turtle",function(n,a,o){a?e(t):i(new Error("FAILED to save new tool at: "+n+" : "+o))})})},render:function(e,t){const n=t.session.store,r=t.dom,s=r.createElement("div");s.setAttribute("class","chatPane");const l={};let c;if(n.holds(e,o.rdf("type"),o.meeting("Chat")))c=e.doc();else if(n.any(e,i.ns.wf("message")))c=a.store.any(e,i.ns.wf("message")).doc();else if(n.holds(void 0,o.rdf("type"),o.foaf("ChatChannel"),e)||n.holds(e,o.rdf("type"),o.foaf("ChatChannel"))){const t=function(){const e=new $rdf.Query("IRC log entries"),t=[];return["chan","msg","date","list","pred","creator","content"].forEach(function(n){e.vars.push(t[n]=$rdf.variable(n))}),e.pat.add(t.chan,o.foaf("chatEventList"),t.list),e.pat.add(t.list,t.pred,t.msg),e.pat.add(t.msg,o.dc("date"),t.date),e.pat.add(t.msg,o.dc("creator"),t.creator),e.pat.add(t.msg,o.dc("description"),t.content),e};c=e.doc(),l.query=t()}else!function(e,t){const n=r.createElement("pre");n.setAttribute("style","background-color: "+t||0),s.appendChild(n),n.appendChild(r.createTextNode(e))}("Unknown chat type");return s.appendChild(i.messageArea(r,n,e,c,l)),n.updater.addDownstreamChangeListener(c,function(){i.widgets.refreshTree(s)}),s}}},3311(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderAutocompleteControl=async function(e,t,n,u){async function d(e,n){const a=e.uri;return p(),u(t,a)}function p(){v&&(y.removeChild(v),v=null)}const f=n.queryParameters||r.wikidataParameters,m=i.widgets.continueButton(e),h=i.widgets.cancelButton(e,p),g=n.class,b={queryParams:f,class:g,acceptButton:m,cancelButton:h};var v=null;(n=n||{}).editable=s.updater.editable(t.doc().uri,s);const y=e.createElement("div");if(y.setAttribute("style","display: flex; flex-flow: wrap;"),n.editable){y.style.width="100%";const r=y.appendChild(i.widgets.button(e,l,n.idNoun,async function(n){const o=await i.widgets.askName(e,a.store,y,i.ns.vcard("url"),null,"Solid ID");if(o)return u(t,o)}));i.widgets.makeDropTarget(r,async function(e){for(const n of e)await u(t,n)},null),n.dbLookup&&y.appendChild(i.widgets.button(e,c,n.idNoun,async function(t){v?(y.removeChild(v),v=null):((v=e.createElement("div")).setAttribute("style","display: flex; flex-flow: wrap;"),v.appendChild(await(0,o.renderAutoComplete)(e,b,d)),v.appendChild(m),v.appendChild(h),y.appendChild(v))}))}return y};var a=n(5663),i=n(9426),o=n(1830),r=n(3705);const s=a.store,l=i.icons.iconBase+"noun_34653_green.svg",c=i.icons.iconBase+"noun_Search_875351.svg"},1830(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderAutoComplete=async function(e,t,n){function r(e,t){console.log("Auto complete: finish! "+e),n(e,t)}async function s(e,n){if(t.acceptButton)return t.acceptButton.disabled=!1,k.value=n,w=n,x=e,console.log("Auto complete: name: "+n),void console.log("Auto complete: waiting for accept "+e);r(e,n)}async function l(e){k.value===w?r(x,w):t.acceptButton.disabled=!0}function c(e,t){const n=e.split(" ");for(let e=0;e<n.length;e++){const a=n[e];if(t.toLowerCase().indexOf(a)<0)return!1}return!0}function u(){for(;A.children.length>1&&A.lastChild;)A.removeChild(A.lastChild)}async function d(){if(h)return void console.log(`Ignoring "${k.value}" because of lock `);h=!0;const n=await(0,o.getPreferredLanguages)(),r=k.value.trim().toLowerCase();if(r.length<4)u(),f=!1,v=20;else{if(g&&b&&r.startsWith(b))return function(e){let t=0,n=null,i="";for(let a=A.children.length-1;a>0;a--){const o=A.children[a];c(e,o.textContent)?(t+=1,n=o.getAttribute("subject"),i=o.textContent,o.style.display="",o.style.color="blue"):o.style.display="none"}1===t&&n&&(console.log(` auto complete elimination: "${e}" -> "${i}"`),s(a.store.sym(n),i))}(r),void(h=!1);let l;try{l=await(0,o.queryPublicDataByName)(r,p,t.queryParams)}catch(t){return function(t){const n=A.appendChild(e.createElement("tr"));console.log(t),n.appendChild(i.widgets.errorMessageBlock(e,t,"pink")),i.style.setStyle(n,"autocompleteRowStyle"),n.style.padding="1em"}("Error querying db of organizations: "+t),void(h=!1)}f=!0;const d=l.length<o.AUTOCOMPLETE_LIMIT;b=d?r:null,u();const m=(0,o.filterByLanguage)(l,n);d&&m.length<=40&&(v=m.length),g=d&&m.length<=v,console.log(` Filter:"${r}" bindings: ${l.length}, slimmed to ${m.length}; rows: ${v}, Enough? ${d}, All displayed? ${g}`),m.slice(0,v).forEach(t=>{const n=A.appendChild(e.createElement("tr"));i.style.setStyle(n,"autocompleteRowStyle");const o=t.subject.value,r=t.name?.value;n.setAttribute("style","padding: 0.3em;"),n.setAttribute("subject",o),n.style.color=g?"#080":"#000",n.textContent=r||"",n.addEventListener("click",async e=>{console.log(" click row textContent: "+n.textContent),console.log(" click name: "+r),s(a.store.sym(o),r||"")})})}h=!1}const p=t.class;t.acceptButton&&t.acceptButton.addEventListener("click",l,!1);t.cancelButton;let f=!1;const m=null;let h=!1,g=!1;var b=null,v=20;const y=e.createElement("div");var w=null,x=null,A=y.appendChild(e.createElement("table"));A.setAttribute("style","max-width: 30em; margin: 0.5em;");const C=A.appendChild(e.createElement("tr"));i.style.setStyle(C,"autocompleteRowStyle");const k=C.appendChild(e.createElement("td")).appendChild(e.createElement("input"));k.setAttribute("type","text");const E=i.style.searchInputStyle||"border: 0.1em solid #444; border-radius: 0.5em; width: 100%; font-size: 100%; padding: 0.1em 0.6em";return k.setAttribute("style",E),k.addEventListener("keyup",function(e){13===e.keyCode&&l(e)},!1),k.addEventListener("input",async function(e){m&&clearTimeout(m);setTimeout(d,300)}),y};var a=n(5663),i=n(9426),o=n(3705)},466(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPersonToGroup=async function(e,t){const n=[e.doc(),t.doc()];try{await u.fetcher.load(n)}catch(e){throw new Error("addPersonToGroup: "+e)}const a=u.findTypeURIs(e);if(!(l.vcard("Individual").uri in a)&&!(l.vcard("Organization").uri in a))return alert(`Can't add ${e} to a group: it has to be an individual or another group.`);const o=u.any(e,l.vcard("fn")),s=u.any(t,l.vcard("fn"));if(!o)return alert("No vcard name known for "+e);if(u.holds(e,l.vcard("fn"),null,t.doc()))return alert("ALREADY added "+o+" to group "+s);if(!confirm("Add "+o+" to group "+s+"?"))return;const c=[i.st(e,l.vcard("fn"),o,t.doc())],p=(0,r.getPersonas)(u,e).map(e=>e.value);p.length?p.forEach(n=>{c.push(i.st(u.sym(n),l.owl("sameAs"),e,t.doc())),c.push(i.st(t,l.vcard("hasMember"),u.sym(n),t.doc()))}):c.push(i.st(t,l.vcard("hasMember"),e,t.doc()));try{await d.update([],c),u.fetcher.unload(t.doc()),await u.fetcher.load(t.doc())}catch(e){throw new Error(`Error adding ${o} to group ${s}:`+e)}return e},t.getDataModelIssues=async function(e){const t=[],n=[];return e.forEach(e=>{u.each(e,l.vcard("hasMember"),null,e.doc()).forEach(a=>{const o=m(u,a,e.doc());if(o.length&&f(e,a))for(const r of o)if(!f(e,r)){t.push(i.st(e,l.vcard("hasMember"),a,e.doc())),n.push(i.st(e,l.vcard("hasMember"),r,e.doc()));break}})}),{del:t,ins:n}},t.getSameAs=m,t.groupMembers=function(e,t){const n=e.each(t,l.vcard("hasMember"),null,t.doc());let a=[];n.forEach(n=>{a=e.any(n,l.vcard("fn"),null,t.doc())?a.concat(n):a.concat(e.each(n,l.owl("sameAs"),null,t.doc()))});const i=new Set(a.map(e=>e.uri));return a=[...i].map(t=>e.sym(t)),a},t.isLocal=f,t.sanitizeToAlpha=p,t.saveNewContact=async function(e,t,n,a){await u.fetcher.load(e.doc());const o=u.any(e,l.vcard("nameEmailIndex")),r=c.genUuid(),s=u.sym(e.dir().uri+"Person/"+r+"/index.ttl#this"),p=s.doc(),f=[i.st(s,l.vcard("inAddressBook"),e,o),i.st(s,l.vcard("fn"),t,o),i.st(s,l.vcard("fn"),t,p),i.st(s,l.rdf("type"),a,p),i.st(p,l.dct("created"),new Date,p)];for(const e in n){const n=u.sym(e),a=n.doc();f.push(i.st(n,l.vcard("hasMember"),s,a),i.st(s,l.vcard("fn"),t,a))}try{await d.updateMany([],f)}catch(e){throw console.error("Error: can't update "+s+" as new contact:"+e),new Error("Updating new contact: "+e)}return s},t.saveNewGroup=async function(e,t){await u.fetcher.load(e.doc());const n=u.any(e,l.vcard("groupIndex")),a=p(t),o=u.sym(e.dir().uri+"Group/"+a+".ttl#this"),r=o.doc();try{await u.fetcher.load(n)}catch(e){throw new Error("Error loading group index!"+n.uri+": "+e)}if(u.holds(e,l.vcard("includesGroup"),o,n))return o;const s=[i.st(e,l.vcard("includesGroup"),o,n),i.st(o,l.rdf("type"),l.vcard("Group"),n),i.st(o,l.vcard("fn"),t,n)];try{await d.update([],s)}catch(e){throw new Error("Could not update group index "+e)}const c=[i.st(e,l.vcard("includesGroup"),o,r),i.st(o,l.rdf("type"),l.vcard("Group"),r),i.st(o,l.vcard("fn"),t,r)];try{await d.update([],c)}catch(e){throw new Error("Could not update group file: "+e)}return o},t.updateMany=async function(e,t=[]){const n=e.concat(t).map(e=>e.why),a=[];n.forEach(e=>{a.find(t=>t.equals(e))||a.push(e)});const i=a.map(n=>u.updater.update(e.filter(e=>e.why.sameTerm(n)),t.filter(e=>e.why.sameTerm(n))));return Promise.all(i)};var a=s(n(9426)),i=s(n(5491)),o=n(5663),r=n(4416);function s(e,t){if("function"==typeof WeakMap)var n=new WeakMap,a=new WeakMap;return(s=function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=t?a:n){if(i.has(e))return i.get(e);i.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?i(r,t,o):r[t]=e[t]);return r})(e,t)}const l=a.ns,c=a.utils,u=o.store,d=u.updater;function p(e){return e.replace(/\W/gu,"_").replace(/_+/g,"_")}function f(e,t){const n=e.dir().dir().dir();return t.uri&&t.uri.startsWith(n.uri)}function m(e,t,n){return e.each(t,l.owl("sameAs"),null,n).concat(e.each(null,l.owl("sameAs"),t,n))}},3955(e,t,n){"use strict";t.Ay=void 0;var a=n(5663),i=n(466),o=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,a=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=t?a:n){if(i.has(e))return i.get(e);i.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?i(r,t,o):r[t]=e[t]);return r}(e,t)}(n(9426)),r=n(7587),s=n(547),l=n(4195),c=n(9208);const u=o.ns,d=o.utils,p=o.style;t.Ay={icon:o.icons.iconBase+"noun_99101.svg",name:"contact",label:function(e,t){const n=t.session.store.findTypeURIs(e);return n[u.vcard("Individual").uri]?"Contact":n[u.vcard("Organization").uri]?"contact":n[u.foaf("Person").uri]||n[u.schema("Person").uri]?"Person":n[u.vcard("Group").uri]?"Group":n[u.vcard("AddressBook").uri]?"Address book":null},mintClass:o.ns.vcard("AddressBook"),mintNew:r.mintNewAddressBook,render:function(e,t,n={}){const r=this;function m(e){console.log("contactsPane: "+e),y.appendChild(o.widgets.errorMessageBlock(b,e,"pink"))}function h(e,t){e||m("Error: "+t)}function g(e){return o.login.newAppInstance(b,{noun:"address book",appPathSegment:"contactorator.timbl.com"},function(t,n){r.clone(e,n,{me:w,div:y,dom:b})})}const b=t.dom,v=t.session.store,y=b.createElement("div"),w=a.authn.currentUser();return o.aclControl.preventBrowserDropEvents(b),y.setAttribute("class","contactPane"),async function(){o.aclControl.preventBrowserDropEvents(b);const r=v.findTypeURIs(e);let w=a.authn.currentUser();const x={target:e,me:w,noun:"address book",div:y,dom:b};function A(e,r,s){v.fetcher.load(e).then(function(r){!function(e,r,s){const x=d.label(u.vcard("AddressBook"));let A=e[0];const C=v.any(A,u.vcard("groupIndex"));let k={},E={};const T=s.foreignGroup||A;let S=v.any(T,u.dc("title"))||v.any(T,u.vcard("fn"));n.solo&&S&&"undefined"!=typeof document&&(document.title=S.value);function P(e){if(e)return e;let t;for(const e in k){t=v.sym(e);const n=v.any(void 0,u.vcard("includesGroup"),t);if(n)return n}throw new Error("findBookFromGroups: Cant find address book which this group is part of")}function B(e){const t=v.any(e,u.vcard("fn"))||v.any(e,u.foaf("name"))||v.any(e,u.vcard("organization-name"));return t?t.value:"???"}function N(e){const t=le.value.trim().toLowerCase();if(0===t.length)return!0;const n=t.split(" ");for(let t=0;t<n.length;t++){const a=n[t];if(e.toLowerCase().indexOf(a)<0)return!1}return!0}function I(e){ce.innerHTML="loading...",E={},E[e.uri]=!0,_();const t=A?z(e):e;v.fetcher.nowOrWhenFetched(t.doc(),void 0,function(n,a){if(ce.innerHTML="",!n)return h(n,"Can't load card: "+t+": "+a);ce.appendChild(R(b,t,"contact")),ce.appendChild(b.createElement("br")),ce.appendChild(o.widgets.linkIcon(b,t));const i=o.widgets.deleteButtonWithCheck(b,ce,"contact",async function(){const t=e.dir(),n=v.any(e,u.vcard("fn"));if(confirm("Delete contact "+n+" completely?? "+t)){console.log("Deleting a contact "+n),await L();const a=v.any(A,u.vcard("nameEmailIndex"));await v.fetcher.load(a);const i=(0,c.groupMembership)(e);let o=[];i.forEach(t=>{f(v,e,t.doc()).forEach(e=>{1===f(v,e,t.doc()).length&&(o=o.concat(v.statementsMatching(t,u.vcard("hasMember"),e,t.doc())))})}),await v.updater.updateMany(o),await D(e),await j(v,t),U(),ce.innerHTML="Contact Data Deleted."}});i.style="height: 2em;"})}function _(e){let t=0,n=null;for(let e=0;e<ie.children.length;e++){const a=ie.children[e],i=N(B(a.subject));i&&(t++,n=a),a.setAttribute("style",i?E[a.subject.uri]?"background-color: #cce;":"":"display: none;")}if(1===t&&e){I(n.subject)}}function O(e,t,n){function a(t,a){a.setAttribute("style","background-color: #ffe;"),v.fetcher.nowOrWhenFetched(t.doc(),void 0,function(r,s){if(!r){const e="Can't load group file: "+t+": "+s;return o.push(e),h(r,e)}a.setAttribute("style","background-color: #cce;"),e[t.uri]=!0,q(),U(),i-=1,i||n&&n(0===o.length,o)})}let i=t.children.length;var o=[];for(let e=0;e<t.children.length;e++){const n=t.children[e];a(n.subject,n)}}async function L(){await v.fetcher.load(C);const e=A?v.each(A,u.vcard("includesGroup"),null,C):[];return await v.fetcher.load(e),e}function F(){let t=[];return s.foreignGroup&&t.push(["",v.any(s.foreignGroup,u.vcard("fn")),s.foreignGroup]),A&&(e.forEach(function(e){const n=(e?v.each(e,u.vcard("includesGroup"),null,C):[]).map(function(t){return[e,v.any(t,u.vcard("fn")),t]});t=t.concat(n)}),t.sort()),t.map(e=>e[2])}function R(e,n,a){const i=t.session.paneRegistry.byName(a).render(n,t);return i.setAttribute("style","border: 0.1em solid #444; border-radius: 0.5em"),i}function M(e,t){let n=B(e),a=B(t);if(n&&a){if(n=n.toLowerCase(),a=a.toLowerCase(),n>a)return 1;if(n<a)return-1}return e.uri>t.uri?1:e.uri<t.uri?-1:0}async function D(e){console.log("deleteThingAndDoc: "+e);const t=v.statementsMatching(e).concat(v.statementsMatching(void 0,void 0,e));try{await v.updater.updateMany(t),console.log("Deleting resoure "+e.doc()),await v.fetcher.delete(e.doc()),console.log("Delete thing "+e+": complete.")}catch(t){m("Error deleting thing "+e+": "+t)}}function j(e,t){return new Promise(function(n){e.fetcher.load(t).then(function(){const a=e.each(t,u.ldp("contains")).map(t=>{if(e.holds(t,u.rdf("type"),u.ldp("BasicContainer")))return j(e,t);if(console.log("deleteRecirsive file: "+t),!confirm(" Really DELETE File "+t))throw new Error("User aborted delete file");return e.fetcher.webOperation("DELETE",t.uri)});if(console.log("deleteRecirsive folder: "+t),!confirm(" Really DELETE folder "+t))throw new Error("User aborted delete file");a.push(e.fetcher.webOperation("DELETE",t.uri)),Promise.all(a).then(e=>{n()})})})}function z(e,t){const n=v.allAliases(e),a=A.dir().uri;for(let e=0;e<n.length;e++)if(n[e].uri.slice(0,a.length)===a)return n[e];throw new Error("No local URI for "+e)}function U(){function e(e,t){e.addEventListener("click",function(e){e.preventDefault(),I(t)})}let t=[];Object.keys(k).map(e=>v.sym(e)).forEach(e=>{k[e.value]&&(t=t.concat((0,i.groupMembers)(v,e)))}),t.sort(M);for(let e=0;e<t.length-1;)t[e].uri===t[e+1].uri?t.splice(e,1):e++;function n(t){const n=b.createElement("tr"),a=n.appendChild(b.createElement("td"));a.setAttribute("style",ue),n.subject=t;const i=B(t);return a.textContent=i,n.subject=t,o.widgets.makeDraggable(n,t),e(n,t),n}X.textContent=t.length>5?t.length+" contacts":"contact",d.syncTableToArrayReOrdered(ie,t,n),_()}function $(e,t){for(let n=0;n<e.children.length;n++){const a=e.children[n];a.subject&&a.setAttribute("style",t[a.subject.uri]?"background-color: #cce;":"")}}function q(){return $(ne,k)}function H(){function e(e){async function n(t){t.forEach(function(t){console.log("Dropped on group: "+t);const n=v.sym(t);try{(0,i.addPersonToGroup)(n,e)}catch(e){m(e)}U()})}function a(n){n.preventDefault();const a=v.sym(e.uri.split("#")[0]);n.metaKey||(k={}),k[e.uri]=!k[e.uri],q(),ie.innerHTML="",v.fetcher.nowOrWhenFetched(a.uri,void 0,function(i,r){if(!i)return h(i,"Can't load group file: "+a+": "+r);if(U(),!n.metaKey){ce.innerHTML="";let n=!1;const a=o.aclControl.ACLControlBox5(e,t,"group",v,function(e,t,n){e||(n&&n.status&&403===n.status?ce.innerHTML="No control access.":ce.innerHTML="Failed to load access control: "+t)}),i=ce.appendChild(b.createElement("button"));i.style.cssText="padding: 1em; margin: 1em";const r=i.appendChild(b.createElement("img"));r.style.cssText="width: 1.5em; height: 1.5em",r.setAttribute("src",o.icons.iconBase+"noun_123691.svg"),i.addEventListener("click",function(){n=!n,n?ce.appendChild(a):ce.removeChild(a)})}})}const r=v.any(e,u.vcard("fn")),s=b.createElement("tr");return s.subject=e,o.widgets.makeDraggable(s,e),s.setAttribute("style",ue),s.textContent=r,o.widgets.makeDropTarget(s,n),o.widgets.deleteButtonWithCheck(b,s,"group "+r,async function(){await D(e),H()}),s.addEventListener("click",a,!0),s}const n=F();d.syncTableToArrayReOrdered(ne,n,e),q()}async function W(){const e=await L(),{del:t,ins:n}=await(0,i.getDataModelIssues)(e);t.length&&confirm(`Groups data model need to be updated? (${t.length})`)&&(await v.updater.updateMany(t,n),alert("Update done"))}async function G(e){ce.innerHTML="";const n=v.any(A,u.vcard("groupIndex"));try{await v.fetcher.load(n)}catch(e){console.log("Error: Group index NOT loaded:"+e+"\n")}console.log(" Group index has been loaded\n");const a=await o.widgets.askName(b,v,ce,o.ns.foaf("name"),u.vcard("Group"),"group");if(!a)return;let r;try{r=await(0,i.saveNewGroup)(A,a)}catch(e){return console.log("Error: can't save new group:"+e),void(ce.innerHTML="Failed to save group"+e)}k={},k[r.uri]=!0,H(),ce.innerHTML="",ce.appendChild(o.aclControl.ACLControlBox5(r.doc(),t,"group",v,function(e,t){e||(ce.innerHTML="Group sharing setup failed: "+t)}))}async function V(e){ce.innerHTML="";const t=P(A);try{await v.fetcher.load(t)}catch(e){throw new Error("Book won't load:"+t)}const n=v.any(t,u.vcard("nameEmailIndex"));if(!n)throw new Error("Wot no nameEmailIndex?");await v.fetcher.load(n);const a=await o.widgets.askName(b,v,ce,o.ns.foaf("name"),e);if(!a)return;let r;ce.innerHTML="indexing...",A=P(A);try{r=await(0,i.saveNewContact)(A,a,k,e)}catch(e){const t="Error: can't save new contact: "+e;console.log(t),alert(t)}E={},E[r.uri]=!0,U(),ce.innerHTML="",ce.appendChild(R(b,r,"contact"))}S=S?S.value:x;const Q=b.createElement("table");Q.setAttribute("style","border-collapse: collapse; margin-right: 0; max-height: 9in;"),y.appendChild(Q);const Y=Q.appendChild(b.createElement("tr")),J=Q.appendChild(b.createElement("tr")),K=Q.appendChild(b.createElement("tr")),Z=Y.appendChild(b.createElement("td")),X=Y.appendChild(b.createElement("td")),ee=Y.appendChild(b.createElement("td")),te=J.appendChild(b.createElement("td")),ne=te.appendChild(b.createElement("table")),ae=J.appendChild(b.createElement("td")),ie=ae.appendChild(b.createElement("table")),oe=K.appendChild(b.createElement("td")),re=K.appendChild(b.createElement("td")),se=K.appendChild(b.createElement("td"));ee.appendChild(b.createElement("div"));const le=ee.appendChild(b.createElement("input"));le.setAttribute("type","text"),le.style=p.searchInputStyle||"border: 0.1em solid #444; border-radius: 0.5em; width: 100%; font-size: 100%; padding: 0.1em 0.6em",le.addEventListener("input",function(e){_(!0)});const ce=J.appendChild(b.createElement("td"));ce.setAttribute("style","margin: 0;");const ue="padding: 0.1em;";function de(e){const t=e?"":"display: none;";Z.setAttribute("style","min-width: 10em; padding-bottom 0.2em;"+t);const n="padding: 0.1em;";te.setAttribute("style",n+t),oe.setAttribute("style",n+t)}Z.textContent="groups",Z.setAttribute("style","min-width: 10em; padding-bottom 0.2em;"),de(!0),s.foreignGroup&&(k[s.foreignGroup.uri]=!0);if(A){const e=Z.appendChild(b.createElement("button"));e.textContent="All";const t="margin-left: 1em; font-size: 100%;";e.setAttribute("style",t),e.addEventListener("click",function(n){e.state=e.state?0:1,ie.innerHTML="",e.state?(e.setAttribute("style",t+"background-color: #ff8;"),O(k,ne,function(n,a){if(!n)return m(a);e.setAttribute("style",t+"background-color: black; color: white"),q()})):(e.setAttribute("style",t+"background-color: #cfc;"),k={},q())}),v.fetcher.nowOrWhenFetched(C.uri,A,function(e,t){if(!e)return console.log("Cannot load group index: "+t);H(),U()})}else H(),U(),console.log("No book, only one group -> hide list of groups"),de(!1);X.textContent="name",X.setAttribute("style","min-width: 18em;"),ae.setAttribute("style","overflow:scroll;");const pe=b.createElement("button"),fe=b.createElement("div");pe.setAttribute("type","button"),w||pe.setAttribute("disabled","true");a.authn.checkUser().then(e=>{e&&(w=e,pe.removeAttribute("disabled"))}),fe.appendChild(pe),pe.innerHTML="New Contact",re.appendChild(fe),pe.addEventListener("click",async e=>V(u.vcard("Individual")),!1);const me=b.createElement("button"),he=b.createElement("div");me.setAttribute("type","button"),w||me.setAttribute("disabled","true");if(a.authn.checkUser().then(e=>{e&&(w=e,me.removeAttribute("disabled"))}),he.appendChild(me),me.innerHTML="New Organization",re.appendChild(he),me.addEventListener("click",async e=>V(u.vcard("Organization")),!1),A){const e=oe.appendChild(b.createElement("button"));e.setAttribute("type","button"),e.innerHTML="New Group",e.addEventListener("click",G,!1);const n=se.appendChild(b.createElement("button"));n.setAttribute("type","button"),n.innerHTML="Tools",n.addEventListener("click",function(e){ce.innerHTML="",ce.appendChild((0,l.toolsPane)(O,k,ne,A,t,w))})}se.appendChild(g(A)),y.appendChild(b.createElement("hr")),W().then(()=>{console.log("async checkDataModel done.")})}(e,0,s)}).catch(function(e){m(e)})}r[u.vcard("Individual").uri]||r[u.foaf("Person").uri]||r[u.schema("Person").uri]||r[u.vcard("Organization").uri]||r[u.schema("Organization").uri]?(0,s.renderIndividual)(b,y,e,t).then(()=>console.log("(individual rendered)")):r[u.vcard("Group").uri]?o.login.findAppInstances(x,u.vcard("AddressBook")).then(function(t){const n=t.instances,a={foreignGroup:e};n.length>0?A(n,0,a):A([],0,a)}).catch(function(e){o.widgets.complain(x,e)}):r[u.vcard("AddressBook").uri]?A([e],0,{}):console.log("Error: Contact pane: No evidence that "+e+" is anything to do with contacts.");w=a.authn.currentUser(),w||(console.log("(You do not have your Web Id set. Sign in or sign up to make changes.)"),o.login.ensureLoadedProfile(x).then(e=>{console.log("Logged in as "+e.me),w=e.me},e=>{y.appendChild(o.widgets.errorMessageBlock(e))}));"undefined"!=typeof document&&document.location&&"http://localhost"===(""+document.location).slice(0,16)&&(w=v.any(e,o.ns.acl("owner")),console.log("Assuming user is "+w));return y}().then(()=>console.log("contactsPane Rendered "+e),e=>m(""+e)),y}};function f(e,t,n){return e.each(t,u.owl("sameAs"),null,n).concat(e.each(null,u.owl("sameAs"),t,n))}},9208(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupMembership=l,t.renderGroupMemberships=async function(e,t){function n(t){const n={deleteFunction:function(){!async function(t,n){const r=u.any(t,o.vcard("fn")),s=u.any(n,o.vcard("fn")),l=u.each(null,o.owl("sameAs"),t,n.doc());let p=[];l.forEach(e=>{u.statementsMatching(e,o.owl("sameAs"),t,n.doc())&&(p=p.concat(e))});let f=t;if(p.length>0&&(f=p[0]),u.each(null,o.vcard("hasMember"),f).length<2)return void alert("Must be a member of at least one group. Add to another group first.");if(confirm("Remove "+r+" from group "+s+"?")){let t=u.statementsMatching(e,void 0,void 0,n.doc()).concat(u.statementsMatching(void 0,void 0,e,n.doc()));p.forEach(e=>{u.statementsMatching(e,o.owl("sameAs"),void 0,n.doc()).length<2&&(t=t.concat(u.statementsMatching(void 0,void 0,e,n.doc())))}),u.updater.update(t,[],function(e,t,i){if(!t){const e="Error removing member from group "+n+": "+i;d.parentNode.appendChild(a.widgets.errorMessageBlock(c,e,"pink"))}}),console.log("Removed "+r+" from group "+s),u.fetcher.unload(n.doc()),await u.fetcher.load(n.doc()),i()}}(e,t)},noun:"membership"};return a.widgets.personTR(c,null,t,n)}function i(){r.syncTableToArray(d,l(e),n)}async function s(e=null){if(!e&&!(e=u.any(void 0,o.vcard("includesGroup"))))return;const t=u.any(e,o.vcard("groupIndex")),n=e?u.each(e,o.vcard("includesGroup"),null,t):[];await u.fetcher.load(n)}const{dom:c}=t,u=t.session.store,d=c.createElement("table");return await s(),d.refresh=i,i(),d};var a=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,a=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=t?a:n){if(i.has(e))return i.get(e);i.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?i(r,t,o):r[t]=e[t]);return r}(e,t)}(n(9426)),i=n(5663);const o=a.ns,r=a.utils,s=i.store;function l(e){let t=s.statementsMatching(null,o.owl("sameAs"),e).map(e=>e.why).concat(s.each(null,o.vcard("hasMember"),e));const n=new Set(t.map(e=>e.uri));return t=[...n].map(e=>s.sym(e)),t}},547(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadTurtleText=f,t.renderIndividual=async function(e,t,n,c){function m(n){console.log(n),t.appendChild(a.widgets.errorMessageBlock(e,n,"pink"))}function h(){t.appendChild(e.createElement("div")).setAttribute("style","height: 1em")}const g=d.findTypeURIs(n),b=!(!g[u.vcard("Organization").uri]&&!g[u.schema("Organization").uri]),v=d.updater.editable(n.doc().uri,d),y=d.sym("https://solid.github.io/solid-panes/contact/individualForm.ttl#form1");f(d,y,'# This turtle file defined the forms usied in the contacts management\n#\n# Indivduals and orgs are in one file as they both\n# share some forms (address etc) and also interact (roles)\n\n# Now hand-edited, was originally made using form editor.\n# Forms documentaion: https://solid.github.io/solid-ui/Documentation/forms-intro.html\n\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\n@prefix dct: <http://purl.org/dc/terms/>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix owl: <http://www.w3.org/2002/07/owl#>.\n@prefix prov: <http://www.w3.org/ns/prov#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix schema: <http://schema.org/>.\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.\n@prefix : <#>.\n\n# Ontology additions or interpretations needed for the form to work well\n\n# The ontology file doesn\'t make them disjoint. This makes the selector be a choice.\nvcard:TelephoneType owl:disjointUnionOf ( vcard:Cell vcard:Home vcard:Work) .\nvcard:Type owl:disjointUnionOf (vcard:Home vcard:Work) . # for email\n\n# Better field labels\nvcard:Cell ui:label "mobile"@en . # app will imake nitial caps if nec\nvcard:hasAddress ui:label "address"@en .\nvcard:bday ui:label "born"@en.\nvcard:hasEmail ui:label "email"@en .\nvcard:hasTelephone ui:label "phone"@en .\nvcard:note ui:label "notes"@en .\n\n\n\n# Ontology data to drive a top classifier\n\nfoaf:Agent owl:disjointUnionOf (\n vcard:Individual\n # @@ schema:robot @@ schem:SoftwareApplication, n0:Agent, n0:Person,\n prov:SoftwareAgent\n # vcard:Group a group of agents is not (currently) an agent itself.\n # You can\'t get a decision out of it so it can\'t own a bank account\n vcard:Organization\n).\n\n\n# Ontology data to drive the classifier\n\nsolid:InterestingOrganization owl:disjointUnionOf (\n# Airline - a Corpration\n# Consortium - a Corporation or a NGO\n schema:Corporation\n schema:EducationalOrganization\n schema:ResearchOrganization\n# FundingScheme - eh?\n schema:GovernmentOrganization\n# LibrarySystem\n# LocalBusiness - Corporation\n schema:MedicalOrganization\n schema:NGO\n # NewsMediaOrganization - a Corporation or a NGO\n schema:MusicGroup # e.g. a band\n schema:Project # like Solid\n schema:SportsOrganization # a Team\n ) .\n\n#########################################################\n# The forms themselves\n\nfoaf:Agent ui:creationForm :AgentForm .\n\n:AgentForm a ui:Form; schema:name "Form for editing a agent" ;\n ui:parts ( :AgentClassifier :AgentOptions ) .\n\n :AgentClassifier a ui:Classifier; ui:label "What sort of agent?"@en;\n ui:category foaf:Agent .\n\n:AgentOptions a ui:Options; ui:dependingon rdf:type;\n ui:case [ ui:for vcard:Individual; ui:use :form1 ],\n [ ui:for vcard:Organization; ui:use :orgDetailsForm ],\n [ ui:for prov:SoftwareAgent; ui:use :robotDetailsForm ] .\n\n# Robots\n\n:robotDetailsForm a ui:Form; ui:parts ( ) . # @@@@\n\n# Individual-specific form\n\nvcard:Individual\n ui:creationForm :form1 .\n\n# The addressComment, etc., fields with a comment before each type of field\n# were originally partly because the labels on the fields were clumsy like "hasAddress".\n# This is fixed by adding the ui:label to the properties above, so let\'s try\n# removing the little micro-headings\n\n# For org:\n:orgDetailsForm a ui:Form ; dct:title "Contact details for an organozation";\n ui:parts (\n :OrgClassifier\n\n :fullNameField\n :addresses\n :eMails\n :telephones\n :noteField ) .\n# For individual:\n:form1\n dct:title "Contact Details for a person" ;\n a ui:Form ;\n ui:part\n :fullNameField, :roleField, :orgNameField,\n # :addressesComment,\n :addresses,\n # :emailComment,\n :eMails,\n# :telephoneComment,\n :telephones,\n# :noteComment,\n :noteField ;\n ui:parts (\n :fullNameField :roleField :orgNameField\n # :addressesComment\n :addresses\n # :emailComment\n :eMails\n # :telephoneComment\n :telephones :birthdayField\n # :noteComment\n :noteField ) .\n\n :fullNameField\n a ui:SingleLineTextField ;\n ui:label "Name";\n ui:maxLength "128" ;\n ui:property vcard:fn ;\n ui:size "40" .\n\n :roleField\n a ui:SingleLineTextField ;\n ui:suppressEmptyUneditable true;\n ui:maxLength "128" ;\n ui:property vcard:role ;\n ui:size "40" .\n\n :orgNameField\n a ui:SingleLineTextField ;\n ui:suppressEmptyUneditable true;\n ui:maxLength "128" ;\n ui:property vcard:organization-name ;\n ui:size "40" .\n\n\n:addressesComment\n a ui:Comment ;\n ui:suppressIfUneditable true;\n ui:contents "Address" .\n\n\n:addresses\n dct:title "Address details" ;\n a ui:Multiple ;\n ui:part :oneAddress ;\n ui:property vcard:hasAddress .\n\n:oneAddress\n a ui:Group ;\n ui:parts ( :id1409437207443 :id1409437292400 :id1409437421996 :id1409437467649 :id1409437569420 ). # :id1409437646712\n\n:id1409437207443\n a ui:SingleLineTextField ;\n ui:maxLength "128" ;\n ui:property vcard:street-address ;\n ui:size "40" .\n\n:id1409437292400\n a ui:SingleLineTextField ;\n ui:maxLength "128" ;\n ui:property vcard:locality ;\n ui:size "40" .\n\n:id1409437421996\n a ui:SingleLineTextField ;\n ui:maxLength "25" ;\n ui:property vcard:postal-code ;\n ui:size "25" .\n\n:id1409437467649\n a ui:SingleLineTextField ;\n ui:maxLength "128" ;\n ui:property vcard:region ;\n ui:size "40" .\n\n:id1409437569420\n a ui:SingleLineTextField ;\n ui:maxLength "128" ;\n ui:property vcard:country-name ;\n ui:size "40" .\n\n:id1409437646712\n a ui:Classifier ;\n ui:from rdf:Class ;\n ui:property rdf:type .\n\n\n##############################\n\n:emailComment\n a ui:Comment ;\n ui:suppressIfUneditable true;\n\n ui:contents "Email" .\n\n\n:eMails\n a ui:Multiple ;\n ui:part :oneEMail ;\n ui:property vcard:hasEmail .\n\n:oneEMail\n a ui:Group ; # hint: side by side is good\n ui:part :emailValue, :emailType ;\n ui:parts ( :emailType :emailValue ).\n\n:emailValue\n a ui:EmailField ; ui:label "email";\n ui:property vcard:value ;\n ui:size "50" .\n\n:emailType\n a ui:Classifier ;\n ui:canMintNew "0" ;\n ui:category vcard:Type ;\n ui:from vcard:Type ;\n ui:property rdf:type .\n\n\n##############################\n\n:telephoneComment\n a ui:Comment ;\n ui:suppressIfUneditable true;\n ui:contents "Phones" .\n\n\n:telephones\n a ui:Multiple ;\n ui:part :onetelephone ;\n ui:property vcard:hasTelephone .\n\n:onetelephone\n a ui:Group ;\n ui:part :telephoneValue, :telephoneType ;\n ui:parts ( :telephoneType :telephoneValue ).\n\n:telephoneValue\n a ui:PhoneField ;\n ui:property vcard:value ;\n ui:size "50" .\n\n:telephoneType\n a ui:Classifier ;\n ui:canMintNew "0" ;\n ui:category vcard:TelephoneType ;\n ui:from vcard:Type ;\n ui:property rdf:type .\n\n##############################\n\n:birthdayField\n a ui:DateField;\n ui:label "Born";\n ui:suppressEmptyUneditable true;\n ui:property vcard:bday .\n\n##############################\n\n:noteComment\n a ui:Comment ;\n ui:suppressIfUneditable true;\n ui:contents "General Notes" .\n\n:noteField\n a ui:MultiLineTextField ;\n ui:suppressEmptyUneditable true;\n\n ui:property vcard:note .\n\n\n############ organization forms\n\n:OrganinizatioCreationForm a ui:Form; schema:name "Form for editing contact details of an organization" ;\n ui:parts ( :OrgClassifier :homePageURIField ) .\n\n\n:OrgClassifier a ui:Classifier; ui:label "What sort of organization?"@en;\n ui:category solid:InterestingOrganization .\n\n\n:instituteNameField\n a ui:SingleLineTextField ;\n ui:label "Intitute Name";\n ui:maxLength "200" ;\n ui:property schema:name ;\n ui:size "80" .\n\n :homePageURIField a ui:NamedNodeURIField;\n ui:property schema:url . # @@ ??\n\n :initituteTypeField a ui:Classifier;\n ui:label "What sort of organization";\n ui:category solid:InterestingOrganization .\n');const w=d.sym("https://solid.github.io/solid-panes/contact/individualForm.ttl#orgDetailsForm"),x=a.ns.vcard("Type").doc();d.holds(void 0,void 0,void 0,x)||l.parse('@prefix : <http://www.w3.org/2006/vcard/ns#> .\n@prefix owl: <http://www.w3.org/2002/07/owl#> .\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 xml: <http://www.w3.org/XML/1998/namespace> .\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n\n:Acquaintance a owl:Class ;\n rdfs:label "Acquaintance"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:Agent a owl:Class ;\n rdfs:label "Agent"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:BBS a owl:Class ;\n rdfs:label "BBS"@en ;\n rdfs:comment "This class is deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :TelephoneType ;\n owl:deprecated true .\n\n:Car a owl:Class ;\n rdfs:label "Car"@en ;\n rdfs:comment "This class is deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :TelephoneType ;\n owl:deprecated true .\n\n:Cell a owl:Class ;\n rdfs:label "Cell"@en ;\n rdfs:comment "Also called mobile telephone"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :TelephoneType .\n\n:Child a owl:Class ;\n rdfs:label "Child"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:Colleague a owl:Class ;\n rdfs:label "Colleague"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:Contact a owl:Class ;\n rdfs:label "Contact"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:Coresident a owl:Class ;\n rdfs:label "Coresident"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:Coworker a owl:Class ;\n rdfs:label "Coworker"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:Crush a owl:Class ;\n rdfs:label "Crush"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:Date a owl:Class ;\n rdfs:label "Date"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:Dom a owl:Class ;\n rdfs:label "Dom"@en ;\n rdfs:comment "This class is deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Type ;\n owl:deprecated true .\n\n:Emergency a owl:Class ;\n rdfs:label "Emergency"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:Fax a owl:Class ;\n rdfs:label "Fax"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :TelephoneType .\n\n:Female a owl:Class ;\n rdfs:label "Female"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Gender .\n\n:Friend a owl:Class ;\n rdfs:label "Friend"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:Home a owl:Class ;\n rdfs:label "Home"@en ;\n rdfs:comment "This implies that the property is related to an individual\'s personal life"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Type .\n\n:ISDN a owl:Class ;\n rdfs:label "ISDN"@en ;\n rdfs:comment "This class is deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Type ;\n owl:deprecated true .\n\n:Internet a owl:Class ;\n rdfs:label "Internet"@en ;\n rdfs:comment "This class is deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Type ;\n owl:deprecated true .\n\n:Intl a owl:Class ;\n rdfs:label "Intl"@en ;\n rdfs:comment "This class is deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Type ;\n owl:deprecated true .\n\n:Kin a owl:Class ;\n rdfs:label "Kin"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:Label a owl:Class ;\n rdfs:label "Label"@en ;\n rdfs:comment "This class is deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Type ;\n owl:deprecated true .\n\n:Male a owl:Class ;\n rdfs:label "Male"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Gender .\n\n:Me a owl:Class ;\n rdfs:label "Me"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:Met a owl:Class ;\n rdfs:label "Met"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:Modem a owl:Class ;\n rdfs:label "Modem"@en ;\n rdfs:comment "This class is deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :TelephoneType ;\n owl:deprecated true .\n\n:Msg a owl:Class ;\n rdfs:label "Msg"@en ;\n rdfs:comment "This class is deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :TelephoneType ;\n owl:deprecated true .\n\n:Muse a owl:Class ;\n rdfs:label "Muse"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:Neighbor a owl:Class ;\n rdfs:label "Neighbor"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:None a owl:Class ;\n rdfs:label "None"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Gender .\n\n:Other a owl:Class ;\n rdfs:label "Other"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Gender .\n\n:PCS a owl:Class ;\n rdfs:label "PCS"@en ;\n rdfs:comment "This class is deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :TelephoneType ;\n owl:deprecated true .\n\n:Pager a owl:Class ;\n rdfs:label "Pager"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :TelephoneType .\n\n:Parcel a owl:Class ;\n rdfs:label "Parcel"@en ;\n rdfs:comment "This class is deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Type ;\n owl:deprecated true .\n\n:Parent a owl:Class ;\n rdfs:label "Parent"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:Postal a owl:Class ;\n rdfs:label "Postal"@en ;\n rdfs:comment "This class is deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Type ;\n owl:deprecated true .\n\n:Pref a owl:Class ;\n rdfs:label "Pref"@en ;\n rdfs:comment "This class is deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Type ;\n owl:deprecated true .\n\n:Sibling a owl:Class ;\n rdfs:label "Sibling"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:Spouse a owl:Class ;\n rdfs:label "Spouse"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:Sweetheart a owl:Class ;\n rdfs:label "Sweetheart"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :RelatedType .\n\n:Tel a owl:Class ;\n rdfs:label "Tel"@en ;\n rdfs:comment "This class is deprecated. Use the hasTelephone object property."@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:deprecated true .\n\n:Text a owl:Class ;\n rdfs:label "Text"@en ;\n rdfs:comment "Also called sms telephone"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :TelephoneType .\n\n:TextPhone a owl:Class ;\n rdfs:label "Text phone"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :TelephoneType .\n\n:Unknown a owl:Class ;\n rdfs:label "Unknown"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Gender .\n\n:Video a owl:Class ;\n rdfs:label "Video"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :TelephoneType .\n\n:Voice a owl:Class ;\n rdfs:label "Voice"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :TelephoneType .\n\n:Work a owl:Class ;\n rdfs:label "Work"@en ;\n rdfs:comment "This implies that the property is related to an individual\'s work place"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Type .\n\n:X400 a owl:Class ;\n rdfs:label "X400"@en ;\n rdfs:comment "This class is deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Type ;\n owl:deprecated true .\n\n:adr a owl:ObjectProperty ;\n rdfs:label "address"@en ;\n rdfs:comment "This object property has been mapped"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentProperty :hasAddress .\n\n:agent a owl:ObjectProperty ;\n rdfs:label "agent"@en ;\n rdfs:comment "This object property has been deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:deprecated true .\n\n:anniversary a owl:DatatypeProperty ;\n rdfs:label "anniversary"@en ;\n rdfs:comment "The date of marriage, or equivalent, of the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range [ a rdfs:Datatype ;\n owl:unionOf ( xsd:dateTime xsd:gYear ) ] .\n\n:bday a owl:DatatypeProperty ;\n rdfs:label "birth date"@en ;\n rdfs:comment "To specify the birth date of the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range [ a rdfs:Datatype ;\n owl:unionOf ( xsd:dateTime xsd:dateTimeStamp xsd:gYear ) ] .\n\n:category a owl:DatatypeProperty ;\n rdfs:label "category"@en ;\n rdfs:comment "The category information about the object, also known as tags"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:class a owl:DatatypeProperty ;\n rdfs:label "class"@en ;\n rdfs:comment "This data property has been deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:deprecated true .\n\n:email a owl:ObjectProperty ;\n rdfs:label "email"@en ;\n rdfs:comment "This object property has been mapped"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentProperty :hasEmail .\n\n:extended-address a owl:DatatypeProperty ;\n rdfs:label "extended address"@en ;\n rdfs:comment "This data property has been deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:deprecated true .\n\n:geo a owl:ObjectProperty ;\n rdfs:label "geo"@en ;\n rdfs:comment "This object property has been mapped"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentProperty :hasGeo .\n\n:hasAdditionalName a owl:ObjectProperty ;\n rdfs:label "has additional name"@en ;\n rdfs:comment "Used to support property parameters for the additional name data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasCalendarBusy a owl:ObjectProperty ;\n rdfs:label "has calendar busy"@en ;\n rdfs:comment "To specify the busy time associated with the object. (Was called FBURL in RFC6350)"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasCalendarLink a owl:ObjectProperty ;\n rdfs:label "has calendar link"@en ;\n rdfs:comment "To specify the calendar associated with the object. (Was called CALURI in RFC6350)"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasCalendarRequest a owl:ObjectProperty ;\n rdfs:label "has calendar request"@en ;\n rdfs:comment "To specify the calendar user address to which a scheduling request be sent for the object. (Was called CALADRURI in RFC6350)"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasCategory a owl:ObjectProperty ;\n rdfs:label "has category"@en ;\n rdfs:comment "Used to support property parameters for the category data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasCountryName a owl:ObjectProperty ;\n rdfs:label "has country name"@en ;\n rdfs:comment "Used to support property parameters for the country name data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasFN a owl:ObjectProperty ;\n rdfs:label "has formatted name"@en ;\n rdfs:comment "Used to support property parameters for the formatted name data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasFamilyName a owl:ObjectProperty ;\n rdfs:label "has family name"@en ;\n rdfs:comment "Used to support property parameters for the family name data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasGender a owl:ObjectProperty ;\n rdfs:label "has gender"@en ;\n rdfs:comment "To specify the sex or gender identity of the object. URIs are recommended to enable interoperable sex and gender codes to be used."@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasGivenName a owl:ObjectProperty ;\n rdfs:label "has given name"@en ;\n rdfs:comment "Used to support property parameters for the given name data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasHonorificPrefix a owl:ObjectProperty ;\n rdfs:label "has honorific prefix"@en ;\n rdfs:comment "Used to support property parameters for the honorific prefix data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasHonorificSuffix a owl:ObjectProperty ;\n rdfs:label "has honorific suffix"@en ;\n rdfs:comment "Used to support property parameters for the honorific suffix data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasInstantMessage a owl:ObjectProperty ;\n rdfs:label "has messaging"@en ;\n rdfs:comment "To specify the instant messaging and presence protocol communications with the object. (Was called IMPP in RFC6350)"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasLanguage a owl:ObjectProperty ;\n rdfs:label "has language"@en ;\n rdfs:comment "Used to support property parameters for the language data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasLocality a owl:ObjectProperty ;\n rdfs:label "has locality"@en ;\n rdfs:comment "Used to support property parameters for the locality data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasNickname a owl:ObjectProperty ;\n rdfs:label "has nickname"@en ;\n rdfs:comment "Used to support property parameters for the nickname data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:seeAlso :nickname .\n\n:hasNote a owl:ObjectProperty ;\n rdfs:label "has note"@en ;\n rdfs:comment "Used to support property parameters for the note data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasOrganizationName a owl:ObjectProperty ;\n rdfs:label "has organization name"@en ;\n rdfs:comment "Used to support property parameters for the organization name data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasOrganizationUnit a owl:ObjectProperty ;\n rdfs:label "has organization unit name"@en ;\n rdfs:comment "Used to support property parameters for the organization unit name data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasPostalCode a owl:ObjectProperty ;\n rdfs:label "has postal code"@en ;\n rdfs:comment "Used to support property parameters for the postal code data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasRegion a owl:ObjectProperty ;\n rdfs:label "has region"@en ;\n rdfs:comment "Used to support property parameters for the region data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasRelated a owl:ObjectProperty ;\n rdfs:label "has related"@en ;\n rdfs:comment "To specify a relationship between another entity and the entity represented by this object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasRole a owl:ObjectProperty ;\n rdfs:label "has role"@en ;\n rdfs:comment "Used to support property parameters for the role data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasSource a owl:ObjectProperty ;\n rdfs:label "has source"@en ;\n rdfs:comment "To identify the source of directory information of the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasStreetAddress a owl:ObjectProperty ;\n rdfs:label "has street address"@en ;\n rdfs:comment "Used to support property parameters for the street address data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasTitle a owl:ObjectProperty ;\n rdfs:label "has title"@en ;\n rdfs:comment "Used to support property parameters for the title data property"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasUID a owl:ObjectProperty ;\n rdfs:label "has uid"@en ;\n rdfs:comment "To specify a value that represents a globally unique identifier corresponding to the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasValue a owl:ObjectProperty ;\n rdfs:label "has value"@en ;\n rdfs:comment "Used to indicate the resource value of an object property that requires property parameters"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:label a owl:DatatypeProperty ;\n rdfs:label "label"@en ;\n rdfs:comment "This data property has been deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:deprecated true .\n\n:language a owl:DatatypeProperty ;\n rdfs:label "language"@en ;\n rdfs:comment "To specify the language that may be used for contacting the object. May also be used as a property parameter."@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:latitude a owl:DatatypeProperty ;\n rdfs:label "latitude"@en ;\n rdfs:comment "This data property has been deprecated. See hasGeo"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:deprecated true .\n\n:longitude a owl:DatatypeProperty ;\n rdfs:label "longitude"@en ;\n rdfs:comment "This data property has been deprecated. See hasGeo"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:deprecated true .\n\n:mailer a owl:DatatypeProperty ;\n rdfs:label "mailer"@en ;\n rdfs:comment "This data property has been deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:deprecated true .\n\n:note a owl:DatatypeProperty ;\n rdfs:label "note"@en ;\n rdfs:comment "A note associated with the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:org a owl:ObjectProperty ;\n rdfs:label "organization"@en ;\n rdfs:comment "This object property has been mapped. Use the organization-name data property."@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentProperty :organization-name .\n\n:organization-unit a owl:DatatypeProperty ;\n rdfs:label "organizational unit name"@en ;\n rdfs:comment "To specify the organizational unit name associated with the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string ;\n rdfs:subPropertyOf :organization-name .\n\n:post-office-box a owl:DatatypeProperty ;\n rdfs:label "post office box"@en ;\n rdfs:comment "This data property has been deprecated"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:deprecated true .\n\n:prodid a owl:DatatypeProperty ;\n rdfs:label "product id"@en ;\n rdfs:comment "To specify the identifier for the product that created the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:rev a owl:DatatypeProperty ;\n rdfs:label "revision"@en ;\n rdfs:comment "To specify revision information about the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:dateTime .\n\n:role a owl:DatatypeProperty ;\n rdfs:label "role"@en ;\n rdfs:comment "To specify the function or part played in a particular situation by the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:sort-string a owl:DatatypeProperty ;\n rdfs:label "sort as"@en ;\n rdfs:comment "To specify the string to be used for national-language-specific sorting. Used as a property parameter only."@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:title a owl:DatatypeProperty ;\n rdfs:label "title"@en ;\n rdfs:comment "To specify the position or job of the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:tz a owl:DatatypeProperty ;\n rdfs:label "time zone"@en ;\n rdfs:comment "To indicate time zone information that is specific to the object. May also be used as a property parameter."@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:value a owl:DatatypeProperty ;\n rdfs:label "value"@en ;\n rdfs:comment "Used to indicate the literal value of a data property that requires property parameters"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:Address a owl:Class ;\n rdfs:label "Address"@en ;\n rdfs:comment "To specify the components of the delivery address for the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentClass [ a owl:Class ;\n owl:unionOf ( [ a owl:Class ;\n owl:intersectionOf ( [ a owl:Restriction ;\n owl:onProperty :country-name ;\n owl:someValuesFrom xsd:string ] [ a owl:Restriction ;\n owl:maxCardinality "1"^^xsd:nonNegativeInteger ;\n owl:onProperty :country-name ] ) ] [ a owl:Class ;\n owl:intersectionOf ( [ a owl:Restriction ;\n owl:onProperty :locality ;\n owl:someValuesFrom xsd:string ] [ a owl:Restriction ;\n owl:maxCardinality "1"^^xsd:nonNegativeInteger ;\n owl:onProperty :locality ] ) ] [ a owl:Class ;\n owl:intersectionOf ( [ a owl:Restriction ;\n owl:onProperty :postal-code ;\n owl:someValuesFrom xsd:string ] [ a owl:Restriction ;\n owl:maxCardinality "1"^^xsd:nonNegativeInteger ;\n owl:onProperty :postal-code ] ) ] [ a owl:Class ;\n owl:intersectionOf ( [ a owl:Restriction ;\n owl:onProperty :region ;\n owl:someValuesFrom xsd:string ] [ a owl:Restriction ;\n owl:maxCardinality "1"^^xsd:nonNegativeInteger ;\n owl:onProperty :region ] ) ] [ a owl:Class ;\n owl:intersectionOf ( [ a owl:Restriction ;\n owl:onProperty :street-address ;\n owl:someValuesFrom xsd:string ] [ a owl:Restriction ;\n owl:maxCardinality "1"^^xsd:nonNegativeInteger ;\n owl:onProperty :street-address ] ) ] ) ] .\n\n:Email a owl:Class ;\n rdfs:label "Email"@en ;\n rdfs:comment "To specify the electronic mail address for communication with the object the vCard represents. Use the hasEmail object property."@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:deprecated true .\n\n:Group a owl:Class ;\n rdfs:label "Group"@en ;\n rdfs:comment "Object representing a group of persons or entities. A group object will usually contain hasMember properties to specify the members of the group."@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Kind ;\n owl:disjointWith :Individual,\n :Location,\n :Organization ;\n owl:equivalentClass [ a owl:Class ;\n owl:intersectionOf ( [ a owl:Restriction ;\n owl:onProperty :hasMember ;\n owl:someValuesFrom :Kind ] [ a owl:Restriction ;\n owl:minQualifiedCardinality "1"^^xsd:nonNegativeInteger ;\n owl:onClass :Kind ;\n owl:onProperty :hasMember ] ) ] .\n\n:Individual a owl:Class ;\n rdfs:label "Individual"@en ;\n rdfs:comment "An object representing a single person or entity"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Kind ;\n owl:disjointWith :Location,\n :Organization .\n\n:Name a owl:Class ;\n rdfs:label "Name"@en ;\n rdfs:comment "To specify the components of the name of the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentClass [ a owl:Class ;\n owl:unionOf ( [ a owl:Class ;\n owl:intersectionOf ( [ a owl:Restriction ;\n owl:onProperty :additional-name ;\n owl:someValuesFrom xsd:string ] [ a owl:Restriction ;\n owl:minCardinality "0"^^xsd:nonNegativeInteger ;\n owl:onProperty :additional-name ] ) ] [ a owl:Class ;\n owl:intersectionOf ( [ a owl:Restriction ;\n owl:onProperty :family-name ;\n owl:someValuesFrom xsd:string ] [ a owl:Restriction ;\n owl:maxCardinality "1"^^xsd:nonNegativeInteger ;\n owl:onProperty :family-name ] ) ] [ a owl:Class ;\n owl:intersectionOf ( [ a owl:Restriction ;\n owl:onProperty :given-name ;\n owl:someValuesFrom xsd:string ] [ a owl:Restriction ;\n owl:maxCardinality "1"^^xsd:nonNegativeInteger ;\n owl:onProperty :given-name ] ) ] [ a owl:Class ;\n owl:intersectionOf ( [ a owl:Restriction ;\n owl:onProperty :honorific-prefix ;\n owl:someValuesFrom xsd:string ] [ a owl:Restriction ;\n owl:minCardinality "0"^^xsd:nonNegativeInteger ;\n owl:onProperty :honorific-prefix ] ) ] [ a owl:Class ;\n owl:intersectionOf ( [ a owl:Restriction ;\n owl:onProperty :honorific-suffix ;\n owl:someValuesFrom xsd:string ] [ a owl:Restriction ;\n owl:minCardinality "0"^^xsd:nonNegativeInteger ;\n owl:onProperty :honorific-suffix ] ) ] ) ] .\n\n:VCard a owl:Class ;\n rdfs:label "VCard"@en ;\n rdfs:comment "The vCard class is equivalent to the new Kind class, which is the parent for the four explicit types of vCards (Individual, Organization, Location, Group)"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentClass :Kind .\n\n:fn a owl:DatatypeProperty ;\n rdfs:label "formatted name"@en ;\n rdfs:comment "The formatted text corresponding to the name of the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:hasAddress a owl:ObjectProperty ;\n rdfs:label "has address"@en ;\n rdfs:comment "To specify the components of the delivery address for the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range :Address .\n\n:hasEmail a owl:ObjectProperty ;\n rdfs:label "has email"@en ;\n rdfs:comment "To specify the electronic mail address for communication with the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range :Email .\n\n:hasGeo a owl:ObjectProperty ;\n rdfs:label "has geo"@en ;\n rdfs:comment "To specify information related to the global positioning of the object. May also be used as a property parameter."@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:hasKey a owl:ObjectProperty ;\n rdfs:label "has key"@en ;\n rdfs:comment "To specify a public key or authentication certificate associated with the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentProperty :key .\n\n:hasLogo a owl:ObjectProperty ;\n rdfs:label "has logo"@en ;\n rdfs:comment "To specify a graphic image of a logo associated with the object "@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentProperty :logo .\n\n:hasName a owl:ObjectProperty ;\n rdfs:label "has name"@en ;\n rdfs:comment "To specify the components of the name of the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range :Name ;\n owl:equivalentProperty :n .\n\n:hasPhoto a owl:ObjectProperty ;\n rdfs:label "has photo"@en ;\n rdfs:comment "To specify an image or photograph information that annotates some aspect of the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentProperty :photo .\n\n:hasSound a owl:ObjectProperty ;\n rdfs:label "has sound"@en ;\n rdfs:comment "To specify a digital sound content information that annotates some aspect of the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentProperty :sound .\n\n:hasTelephone a owl:ObjectProperty ;\n rdfs:label "has telephone"@en ;\n rdfs:comment "To specify the telephone number for telephony communication with the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentProperty :tel .\n\n:hasURL a owl:ObjectProperty ;\n rdfs:label "has url"@en ;\n rdfs:comment "To specify a uniform resource locator associated with the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentProperty :url .\n\n:key a owl:ObjectProperty ;\n rdfs:label "key"@en ;\n rdfs:comment "This object property has been mapped"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentProperty :hasKey .\n\n:logo a owl:ObjectProperty ;\n rdfs:label "logo"@en ;\n rdfs:comment "This object property has been mapped"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentProperty :hasLogo .\n\n:n a owl:ObjectProperty ;\n rdfs:label "name"@en ;\n rdfs:comment "This object property has been mapped"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentProperty :hasName .\n\n:nickname a owl:DatatypeProperty ;\n rdfs:label "nickname"@en ;\n rdfs:comment "The nick name associated with the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:photo a owl:ObjectProperty ;\n rdfs:label "photo"@en ;\n rdfs:comment "This object property has been mapped"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentProperty :hasPhoto .\n\n:sound a owl:ObjectProperty ;\n rdfs:label "sound"@en ;\n rdfs:comment "This object property has been mapped"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentProperty :hasSound .\n\n:tel a owl:ObjectProperty ;\n rdfs:label "telephone"@en ;\n rdfs:comment "This object property has been mapped"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentProperty :hasTelephone .\n\n:url a owl:ObjectProperty ;\n rdfs:label "url"@en ;\n rdfs:comment "This object property has been mapped"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentProperty :hasURL .\n\n:Location a owl:Class ;\n rdfs:label "Location"@en ;\n rdfs:comment "An object representing a named geographical place"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Kind ;\n owl:disjointWith :Organization .\n\n:additional-name a owl:DatatypeProperty ;\n rdfs:label "additional name"@en ;\n rdfs:comment "The additional name associated with the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:country-name a owl:DatatypeProperty ;\n rdfs:label "country name"@en ;\n rdfs:comment "The country name associated with the address of the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:family-name a owl:DatatypeProperty ;\n rdfs:label "family name"@en ;\n rdfs:comment "The family name associated with the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:given-name a owl:DatatypeProperty ;\n rdfs:label "given name"@en ;\n rdfs:comment "The given name associated with the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:hasMember a owl:ObjectProperty ;\n rdfs:label "has member"@en ;\n rdfs:comment "To include a member in the group this object represents. (This property can only be used by Group individuals)"@en ;\n rdfs:domain :Group ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range :Kind .\n\n:honorific-prefix a owl:DatatypeProperty ;\n rdfs:label "honorific prefix"@en ;\n rdfs:comment "The honorific prefix of the name associated with the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:honorific-suffix a owl:DatatypeProperty ;\n rdfs:label "honorific suffix"@en ;\n rdfs:comment "The honorific suffix of the name associated with the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:locality a owl:DatatypeProperty ;\n rdfs:label "locality"@en ;\n rdfs:comment "The locality (e.g. city or town) associated with the address of the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:organization-name a owl:DatatypeProperty ;\n rdfs:label "organization name"@en ;\n rdfs:comment "To specify the organizational name associated with the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:postal-code a owl:DatatypeProperty ;\n rdfs:label "postal code"@en ;\n rdfs:comment "The postal code associated with the address of the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:region a owl:DatatypeProperty ;\n rdfs:label "region"@en ;\n rdfs:comment "The region (e.g. state or province) associated with the address of the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:street-address a owl:DatatypeProperty ;\n rdfs:label "street address"@en ;\n rdfs:comment "The street address associated with the address of the object"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:range xsd:string .\n\n:Organization a owl:Class ;\n rdfs:label "Organization"@en ;\n rdfs:comment """An object representing an organization. An organization is a single entity, and might represent a business or government, a department or division within a business or government, a club, an association, or the like.\n"""@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n rdfs:subClassOf :Kind .\n\n:Gender a owl:Class ;\n rdfs:label "Gender"@en ;\n rdfs:comment "Used for gender codes. The URI of the gender code must be used as the value for Gender."@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:Kind a owl:Class ;\n rdfs:label "Kind"@en ;\n rdfs:comment "The parent class for all objects"@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;\n owl:equivalentClass [ a owl:Restriction ;\n owl:minQualifiedCardinality "1"^^xsd:nonNegativeInteger ;\n owl:onDataRange xsd:string ;\n owl:onProperty :fn ],\n :VCard .\n\n:Type a owl:Class ;\n rdfs:label "Type"@en ;\n rdfs:comment "Used for type codes. The URI of the type code must be used as the value for Type."@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:TelephoneType a owl:Class ;\n rdfs:label "Phone"@en ;\n rdfs:comment "Used for telephone type codes. The URI of the telephone type code must be used as the value for the Telephone Type."@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n:RelatedType a owl:Class ;\n rdfs:label "Relation Type"@en ;\n rdfs:comment "Used for relation type codes. The URI of the relation type code must be used as the value for the Relation Type."@en ;\n rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> .\n\n<http://www.w3.org/2006/vcard/ns> a owl:Ontology ;\n rdfs:label "Ontology for vCard"@en ;\n rdfs:comment "Ontology for vCard based on RFC6350"@en ;\n owl:versionInfo "Final"@en .\n\n\n',d,x.uri,"text/turtle");try{await d.fetcher.load(n.doc())}catch(e){m("Error: Failed to load contact card: "+e)}t.style=p.paneDivStyle||"padding: 0.5em 1.5em 1em 1.5em;",i.authn.checkUser(),t.appendChild((0,o.renderMugshotGallery)(e,n));const A=b?w:y;a.widgets.appendForm(e,t,{},n,A,n.doc(),function(e,t){e||m("Error: "+t)}),h(),t.appendChild(await(0,s.renderGroupMemberships)(n,c)),h(),a.widgets.attachmentList(e,n,t,{modify:v}),h(),b?t.appendChild(await(0,r.renderPublicIdControl)(n,c)):t.appendChild(await(0,r.renderWebIdControl)(n,c))};var a=c(n(9426)),i=n(5663),o=n(8223),r=n(4416),s=n(9208),l=c(n(5491));function c(e,t){if("function"==typeof WeakMap)var n=new WeakMap,a=new WeakMap;return(c=function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=t?a:n){if(i.has(e))return i.get(e);i.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?i(r,t,o):r[t]=e[t]);return r})(e,t)}const u=a.ns,d=i.store,p=a.style;function f(e,t,n){const a=t.doc();e.holds(void 0,void 0,void 0,a)||l.parse(n,e,a.uri,"text/turtle")}},7587(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mintNewAddressBook=function(e,t){return new Promise(function(n,i){a.login.ensureLoadedProfile(t).then(t=>{console.log("Logged in as "+t.me);const r=t.me,l=t.dom,c=t.div,u=e.session.store,d=a.ns,p=t.newBase||t.newInstance.dir().uri;if((t.instanceClass||d.vcard("AddressBook")).sameTerm(d.vcard("Group"))){const e=t.newInstance||u.sym(t.newBase+"index.ttl#this"),a=e.doc();return u.add(e,d.rdf("type"),d.vcard("Group"),a),u.add(e,d.vcard("fn"),t.instanceName||"untitled group",a),void u.fetcher.putBack(a,{contentType:"text/turtle"}).then(function(e){n(t)}).catch(function(e){i(new Error("Error creating document for new group "+e))})}function f(e){c.appendChild(a.widgets.errorMessageBlock(l,e,"pink"))}let m='@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.\n @prefix ab: <http://www.w3.org/ns/pim/ab#>.\n @prefix dc: <http://purl.org/dc/elements/1.1/>.\n @prefix xsd: <http://www.w3.org/2001/XMLSchema#>.\n\n <#this> a vcard:AddressBook;\n dc:title "New address Book";\n vcard:nameEmailIndex <people.ttl>;\n vcard:groupIndex <groups.ttl>.\n';m+="<#this> <http://www.w3.org/ns/auth/acl#owner> <"+r.uri+">.\n\n";const h=u.sym(p+"index.ttl#this"),g=[{to:"index.ttl",content:m,contentType:"text/turtle"},{to:"groups.ttl",content:"",contentType:"text/turtle"},{to:"people.ttl",content:"",contentType:"text/turtle"},{to:"",existing:!0,aclOptions:{defaultForNew:!0}}];!function e(){function a(t,n){if(!n)return f("Error writing new file "+d.to),i(new Error("Error writing new file "+d.to));s(m,r,b).then(()=>e()).catch(e=>{const t="Error setting access permissions for "+d.to+" : "+e.message;return f(t),i(new Error(t))})}if(0===g.length)!function(e,a){console.log(`New ${a} created at ${e}`);const i=c.appendChild(l.createElement("p"));i.setAttribute("style","font-size: 140%;"),i.innerHTML="Your <a href='"+e.uri+"'><b>new "+a+"</b></a> is ready. <br/><br/><a href='"+e.uri+"'>Go to new "+a+"</a>";const o=Object.assign({newInstance:e},t);n(o)}(h,"address book");else{var d=g.shift();console.log("Creating new file "+d.to+" in new instance ");var m=o.uri.join(d.to,p),b=d.aclOptions||{};"content"in d?u.fetcher.webOperation("PUT",m,{data:d.content,saveMetadata:!0,contentType:d.contentType}).then(()=>a(0,!0)):"existing"in d?a(0,!0):i(new Error("copy not expected buiding new app!!"))}}()},e=>{t.div.appendChild(a.widgets.errorMessageBlock(e))})})};var a=r(n(9426)),i=n(5663),o=r(n(5491));function r(e,t){if("function"==typeof WeakMap)var n=new WeakMap,a=new WeakMap;return(r=function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=t?a:n){if(i.has(e))return i.get(e);i.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?i(r,t,o):r[t]=e[t]);return r})(e,t)}const{setACLUserPublic:s}=i.solidLogicSingleton.acl},8223(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderMugshotGallery=function(e,t){function n(t){console.log(t),w.appendChild(i.widgets.errorMessageBlock(e,t,"pink"))}async function a(e,t,n){const a=[s.st(e,c.vcard("hasPhoto"),t,e.doc())];try{n?await d.updater.update(a,[]):await d.updater.update([],a)}catch(e){const n=" Write back image link FAIL "+t+", Error: "+e;console.log(n),alert(n)}}function l(e){d.fetcher.nowOrWhenFetched(e.doc(),function(n,a){if(n){const n=d.findTypeURIs(e);for(const e in n)console.log(" drop object type includes: "+e);console.log("Default: assume web page "+e),d.add(t,c.wf("attachment"),e,t.doc())}else console.log("Error looking up dropped thing "+e+": "+a)})}function p(e,a,i){const o=r.default.extension(a);let s,l;a!==r.default.lookup(e)&&(e+="_."+o,console.log("MIME TYPE MISMATCH -- adding extension: "+e));const u=a.startsWith("image");let p,f;for(u?(s="image_",l=c.vcard("hasPhoto")):(s="attachment_",l=c.wf("attachment")),p=0;f=d.sym(t.dir().uri+e),d.holds(t,c.vcard("hasPhoto"),f);p++)e=s+p+"."+o;console.log("Putting "+i.byteLength+" bytes of "+a+" to "+f),d.fetcher.webOperation("PUT",f.uri,{data:i,contentType:a}).then(function(e){e.ok?(console.log(" Upload: put OK: "+f),d.add(t,l,f,t.doc()),d.fetcher.putBack(t.doc(),{contentType:"text/turtle"}).then(function(e){u&&x.refresh()},function(e){console.log(" Write back image link FAIL "+f+", Error: "+e)})):n("Error uploading "+f+":"+e.status)})}async function f(e){for(const t of e){let e=s.sym(t);if(console.log("Dropped on mugshot thing "+e),t.startsWith("http")&&t.indexOf("#")<0){t.startsWith("http:")&&(e=s.sym("https:"+t.slice(5)));const a={withCredentials:!1,credentials:"omit"};let i;try{i=await d.fetcher.webOperation("GET",e.uri,a)}catch(t){return n(`Gallery: fetch error trying to read picture ${e} data: ${t}`),void l(e)}const o=i.headers.get("Content-Type");let r=e.uri.split("/").slice(-1)[0];r=r.split("?")[0];const c=await i.arrayBuffer();return i.ok?void p(r,o,c):(alert("Cant download, so will link image. "+e+":"+i.status),void l(e))}alert("Not a web document URI, cannot copy as picture: "+e),l(e)}}function m(e){for(let t=0;t<e.length;t++){const n=e[t];console.log(" contacts: Filename: "+n.name+", type: "+(n.type||"n/a")+" size: "+n.size+" bytes, last modified: "+(n.lastModifiedDate?n.lastModifiedDate.toLocaleDateString():"n/a"));const a=new FileReader;a.onload=function(e){return function(t){const n=t.target.result;console.log(" File read byteLength : "+n.byteLength);p(encodeURIComponent(e.name),e.type,n)}}(n),a.readAsArrayBuffer(n)}}function h(t){const n=e.createElement("img");return n.setAttribute("style","max-height: 10em; border-radius: 1em; margin: 0.7em;"),i.widgets.makeDropTarget(n,f,m),t&&(o.store.fetcher._fetch(t.uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);n.setAttribute("src",t)}),i.widgets.makeDraggable(n,t)),n}function g(){let e=d.each(t,c.vcard("hasPhoto"));e.sort(),e=e.slice(0,5),0===e.length?(x.innerHTML="",y&&x.appendChild(A)):u.syncTableToArray(x,e,h)}function b(){return d.sym(t.dir().uri+"Image_"+Date.now()+".png")}async function v(e){e&&(await a(t,e),g())}const y=d.updater.editable(t.doc().uri,d),w=e.createElement("div"),x=w.appendChild(e.createElement("div")),A=h();i.widgets.setImage(A,t),g(),x.refresh=g,y&&w.appendChild(function(){const n=e.createElement("table"),o=n.appendChild(e.createElement("tr")),r=o.appendChild(e.createElement("td")),s=o.appendChild(e.createElement("td")),l=o.appendChild(e.createElement("td"));r.appendChild(i.media.cameraButton(e,d,b,v));try{s.appendChild(i.widgets.fileUploadButtonDiv(e,m))}catch(e){console.log("ignore fileUploadButtonDiv error for now",e)}return l.appendChild(function(){const n=i.widgets.button(e,i.icons.iconBase+"noun_925021.svg","Drag here to delete");return i.widgets.makeDropTarget(n,async function(e){const n=d.each(t,c.vcard("hasPhoto")).map(e=>e.uri);for(const i of e){if(!n.includes(i))return void alert("Only drop images in this contact onto this trash can.");if(confirm(`Permanently DELETE image ${i} completely?`)){console.log("Unlinking image file "+i),await a(t,d.sym(i),!0);try{console.log("Deleting image file "+i),await d.fetcher.webOperation("DELETE",i)}catch(e){alert("Unable to delete picture! "+e)}}}g()},null),n}()),n}());return w};var a,i=l(n(9426)),o=n(5663),r=(a=n(6049))&&a.__esModule?a:{default:a},s=l(n(5491));function l(e,t){if("function"==typeof WeakMap)var n=new WeakMap,a=new WeakMap;return(l=function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=t?a:n){if(i.has(e))return i.get(e);i.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?i(r,t,o):r[t]=e[t]);return r})(e,t)}const c=i.ns,u=i.utils,d=o.store},3705(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escoParameters=t.dbpediaParameters=t.AUTOCOMPLETE_LIMIT=void 0,t.filterByLanguage=function(e,t){const n={};e.forEach(e=>{const t=e.subject.value;n[t]=n[t]||[],n[t].push(e)});const a=t;a.reverse();const i=[];for(const e in n){const t=n[e].map(e=>[a.indexOf(e.name?.["xml:lang"]||""),e]);t.sort(),t.reverse(),i.push(t[0][1])}return console.log(` Filter by language: ${e.length} -> ${i.length}`),i},t.getDbpediaDetails=g,t.getPreferredLanguages=async function(){return["fr","en","de","it"]},t.getWikidataDetails=h,t.getWikidataDetailsOld=async function(e,t,n){const a='select distinct * where {\n optional { $(subject) wdt:P31 ?class } # instance of\n optional { $(subject) wdt:P154 ?logo }\n optional { $(subject) wdt:P158 ?sealImage }\n# optional { $(subject) wdt:P159 ?headquartersLocation }\n\noptional { $(subject) wdt:P17 ?country }\noptional { $(subject) wdt:P18 ?image }\noptional { $(subject) wdt:P1813 ?shortName }\n\noptional { $(subject) wdt:P355 ?subsidiary }\n# SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it" }\n}'.replace(s,n.uri),i=await f(a,c);p(e,n,i,n.doc())},t.getWikidataLocation=async function(e,t,n){const a='select distinct * where {\n\n $(subject) wdt:P276 ?location .\n\n optional { ?location wdt:P2044 ?elevation }\n optional { ?location wdt:P131 ?region }\n optional { ?location wdt:P625 ?coordinates }\noptional { ?location wdt:P17 ?country }\n\n# SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it" }\n}'.replace(s,n.uri);console.log(" location query sparql:"+a);const i=await f(a,c);console.log(" location query bindings:",i),p(e,n,i,n.doc())},t.loadFromBindings=p,t.loadPublicDataThing=async function(e,t,n){if(n.uri.startsWith("https://dbpedia.org/resource/"))return g(e,t,n);if(!n.uri.match(/^https?:\/\/www\.wikidata\.org\/entity\/.*/)){const t=n.uri.startsWith("http:")?e.sym("https:"+n.uri.slice(5)):n;return e.fetcher.load(t,{credentials:"omit",headers:{Accept:"text/turtle"}})}await h(e,t,n)},t.predMap=void 0,t.queryESCODataByName=async function(e,t,n){if(!n.searchByNameURI)throw new Error("Query target searchByNameURI is required for ESCO queries");const a=n.searchByNameURI.replace("$(name)",e).replace("$(limit)",""+r).replace("$(class)",t.uri);console.log("Querying ESCO data - uri: "+a);const o=(await i.store.fetcher.webOperation("GET",a,{credentials:"omit",headers:{Accept:"application/json"}})).responseText;if(!o)throw new Error("No response text from ESCO query "+a);if(console.log(" Query result text"+o.slice(0,500)+"..."),0===o.length)throw new Error("Wot no text back from ESCO query "+a);const s=JSON.parse(o);console.log(" Query result JSON"+JSON.stringify(s,null,4).slice(0,500)+"...");const l=s._embedded.results;return l.map(e=>({name:{value:e.title,type:"literal"},uri:{type:"IRI",value:e.uri}}))},t.queryPublicDataByName=async function(e,t,n){const a=n.searchByNameQuery.replace("$(name)",e).replace("$(limit)",""+r).replace("$(class)",t.uri);return console.log("Querying public data - sparql: "+a),f(a,n)},t.queryPublicDataConstruct=m,t.queryPublicDataSelect=f,t.wikidataParameters=t.wikidataClasses=t.wikidataClassMap=void 0;var a=n(5491),i=n(5663),o=n(9426);const r=t.AUTOCOMPLETE_LIMIT=3e3,s=/\$\(subject\)/g;t.wikidataClasses={Corporation:"http://www.wikidata.org/entity/Q6881511",EducationalOrganization:"http://www.wikidata.org/entity/Q178706",GovernmentOrganization:"http://www.wikidata.org/entity/Q327333",MedicalOrganization:"http://www.wikidata.org/entity/Q4287745",MusicGroup:"http://www.wikidata.org/entity/Q32178211",NGO:"http://www.wikidata.org/entity/Q163740",Occupation:"http://www.wikidata.org/entity/Q28640",Project:"http://www.wikidata.org/entity/Q170584",SportsOrganization:"http://www.wikidata.org/entity/Q4438121"};t.escoParameters={label:"ESCO",logo:"https://ec.europa.eu/esco/portal/static_resource2/images/logo/logo_en.gif",searchByNameQuery:void 0,searchByNameURI:"https://ec.europa.eu/esco/api/search?language=$(language)&type=occupation&text=$(name)",endpoint:void 0,class:{}};const l=t.dbpediaParameters={label:"DBPedia",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/7/73/DBpediaLogo.svg/263px-DBpediaLogo.svg.png",searchByNameQuery:'select distinct ?subject, ?name where {\n ?subject a $(class); rdfs:label ?name\n FILTER regex(?name, "$(name)", "i")\n } LIMIT $(limit)',endpoint:"https://dbpedia.org/sparql/",class:{AcademicInsitution:"http://umbel.org/umbel/rc/EducationalOrganization"}},c=t.wikidataParameters={label:"WikiData",logo:"https://www.wikimedia.org/static/images/project-logos/wikidatawiki.png",endpoint:"https://query.wikidata.org/sparql",class:{AcademicInsitution:"http://www.wikidata.org/entity/Q4671277",Enterprise:"http://www.wikidata.org/entity/Q6881511",Business:"http://www.wikidata.org/entity/Q4830453",NGO:"http://www.wikidata.org/entity/Q79913",CharitableOrganization:"http://www.wikidata.org/entity/Q708676",Insitute:"http://www.wikidata.org/entity/Q1664720"},searchByNameQuery:'SELECT ?subject ?name\n WHERE {\n ?klass wdt:P279* $(class) .\n ?subject wdt:P31 ?klass .\n ?subject rdfs:label ?name.\n FILTER regex(?name, "$(name)", "i")\n } LIMIT $(limit) ',insitituteDetailsQuery:'CONSTRUCT\n{ wd:Q49108 schema:name ?itemLabel;\n schema:logo ?logo;\n schema:logo ?sealImage;\n schema:subOrganization ?subsidiary .\n ?subsidiary schema:name ?subsidiaryLabel .\n}\nWHERE\n{\n wd:Q49108 # rdfs:label ?itemLabel ;\n wdt:P154 ?logo;\n wdt:P158 ?sealImage ;\n wdt:P355 ?subsidiary .\n # ?subsidiary rdfs:label ?subsidiaryLabel .\n\n SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE], fr". }\n}'};var u=t.wikidataClassMap={"http://www.wikidata.org/entity/Q15936437":o.ns.schema("CollegeOrUniversity"),"http://www.wikidata.org/entity/Q1664720":o.ns.schema("EducationalOrganization"),"http://www.wikidata.org/entity/Q43229":o.ns.schema("Organization"),"http://www.wikidata.org/entity/Q3918":o.ns.schema("CollegeOrUniversity"),"http://www.wikidata.org/entity/Q170584":o.ns.schema("Project"),"http://www.wikidata.org/entity/Q327333":o.ns.schema("GovernmentOrganization"),"http://www.wikidata.org/entity/Q2221906":o.ns.schema("Place")},d=t.predMap={class:o.ns.rdf("type"),sealImage:o.ns.schema("logo"),shortName:o.ns.foaf("nick"),subsidiary:o.ns.schema("subOrganization")};function p(e,t,n,i){const r={};console.log(`loadFromBindings: subject: ${t}`),console.log(` doc: ${i}`),n.forEach(e=>{for(const t in e){const n=e[t],a=JSON.stringify(n);r[t]=r[t]||new Set,r[t].add(a)}});for(const n in r){const s=r[n];console.log(` results ${n} -> ${s}`),s.forEach(r=>{const s=JSON.parse(r),{type:l,value:c}=s;let p;if("uri"===l)p=e.sym(c);else{if("literal"!==l)throw new Error(`loadFromBindings: unexpected type: ${l}`);p=new a.Literal(c,s.language,s.datatype)}if("type"===n)u[c]?p=u[c]:console.warn("Unmapped Wikidata Class: "+c);else if("coordinates"===n){console.log(" @@@ hey a point: "+c);const n=/.*\(([-0-9\.-]*) ([-0-9\.-]*)\)/.exec(c);if(n){const r=o.ns.xsd("float"),s=new a.Literal(n[1],null,r),l=new a.Literal(n[2],null,r);e.add(t,o.ns.schema("longitude"),l,i),e.add(t,o.ns.schema("latitude"),s,i)}}else if(d[n]){const a=d[n]||o.ns.schema(n);e.add(t,a,p,i),console.log(` public data ${a} ${p}.`)}})}}async function f(e,t){if(!t.endpoint)throw new Error("Query target endpoint is required");const n=new URL(t.endpoint);n.searchParams.append("query",e);const a=n.href;console.log(" queryPublicDataSelect uri: "+a);const o=(await i.store.fetcher.webOperation("GET",a,{credentials:"omit",headers:{Accept:"application/json"}})).responseText;if(o&&0!==o.length){const e=JSON.parse(o);console.log(" Query result JSON"+JSON.stringify(e,null,4).slice(0,100)+"...");return e.results.bindings}throw new Error("Wot no text back from query "+a)}async function m(e,t,n){if(console.log("queryPublicDataConstruct: sparql:",e),!n.endpoint)throw new Error("Query target endpoint is required");const o=new URL(n.endpoint);o.searchParams.append("query",e);const r=o.href;console.log(" queryPublicDataConstruct uri: "+r);const s=(await i.store.fetcher.webOperation("GET",r,{credentials:"omit",headers:{Accept:"text/turtle"}})).responseText,l=s&&s.length>500?s.slice(0,200)+" ... "+s.slice(-200):s;if(console.log(" queryPublicDataConstruct result text:"+l),!s||0===s.length)throw new Error("queryPublicDataConstruct: No text back from construct query:"+r);(0,a.parse)(s,i.store,t.uri,"text/turtle")}async function h(e,t,n){const a='prefix vcard: <http://www.w3.org/2006/vcard/ns#>\nCONSTRUCT\n{ wd:Q49108 vcard:fn ?itemLabel.\nwd:Q49108 rdf:type ?klass. ?klass rdfs:label ?klassLabel; rdfs:comment ?klassDescription .\nwd:Q49108 schema:logo ?logo;\n schema:image ?image;\n schema:logo ?sealImage;\n schema:subOrganization ?subsidiary .\n ?subsidiary rdfs:label ?subsidiaryLabel .\n ?supersidiary schema:subOrganization wd:Q49108 .\n ?supersidiary rdfs:label ?supersidiaryLabel .\n wd:Q49108 schema:location ?location .\n ?location schema:elevation ?elevation .\n ?location wdt:P131 ?region . ?region rdfs:label ?regionLabel .\n ?location wdt:P625 ?coordinates .\n ?location schema:country ?country . ?country rdfs:label ?countryLabel .\n}\nWHERE\n{ optional {wd:Q49108 rdfs:label ?itemLabel} .\n optional {wd:Q49108 wdt:P154 ?logo .}\n optional {wd:Q49108 wdt:P31 ?klass .}\n optional {wd:Q49108 wdt:P158 ?sealImage .}\n optional {wd:Q49108 wdt:P18 ?image .}\n\n optional { wd:Q49108 wdt:P355 ?subsidiary . }\n optional { ?supersidiary wdt:P355 wd:Q49108. }\n\n optional { wd:Q49108 wdt:P276 ?location .\n\n optional { ?location schema:eleveation ?elevation }\n optional { ?location wdt:P131 ?region }\n optional { ?location wdt:P625 ?coordinates }\n optional { ?location wdt:P17 ?country }\n }\n SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it". }\n}\n'.replace(/wd:Q49108/g,n.value);await m(a,n,c),console.log("getWikidataDetails: loaded.",n)}async function g(e,t,n){const a=`select distinct ?city, ?state, ?country, ?homepage, ?logo, ?lat, ?long, WHERE {\n OPTIONAL { <${n}> <http://dbpedia.org/ontology/city> ?city }\n OPTIONAL { ${n} <http://dbpedia.org/ontology/state> ?state }\n OPTIONAL { ${n} <http://dbpedia.org/ontology/country> ?country }\n OPTIONAL { ${n} foaf:homepage ?homepage }\n OPTIONAL { ${n} foaf:lat ?lat; foaf:long ?long }\n OPTIONAL { ${n} <http://dbpedia.org/ontology/country> ?country }\n }`;return(await f(a,l)).map(e=>{const t=e.subject.value,n=e.name?.value;return{uri:t,name:n}})}},4195(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toolsPane=function(e,t,n,r,s,l){const c=s.dom,u=i.store,d=a.ns,p=d.vcard,f="font-size: 100%; margin: 0.8em; padding:0.5em;",m=c.createElement("div"),h=m.appendChild(c.createElement("table"));h.setAttribute("style","font-size:120%; margin: 1em; border: 0.1em #ccc ;");const g=h.appendChild(c.createElement("tr"));g.textContent=a.utils.label(r)+" - tools",g.setAttribute("style","min-width: 20em; padding: 1em; font-size: 150%; border-bottom: 0.1em solid red; margin-bottom: 2em;");const b=h.appendChild(c.createElement("tr")).appendChild(c.createElement("div"));b.setAttribute("style","padding: 2em;");const v=h.appendChild(c.createElement("tr")),y=v.appendChild(c.createElement("table"));h.appendChild(c.createElement("tr"));const w={target:r,me:l,noun:"address book",div:m,dom:c,statusRegion:b};function x(e){console.log(e),b.appendChild(a.widgets.errorMessageBlock(c,e,"pink"))}return async function(){y.appendChild(a.aclControl.ACLControlBox5(r.dir(),s,"book",u,function(e,t){e||(y.innerHTML="ACL control box Failed: "+t)}));try{await a.login.registrationControl(w,r,d.vcard("AddressBook"))}catch(e){a.widgets.complain(w,"registrationControl: "+e)}console.log("Registration control finished.");const l=v.appendChild(c.createElement("pre"));function h(e){console.log(e),l.textContent+=e+"\n"}function g(){h(u.each(void 0,p("inAddressBook"),r).length+" cards loaded. ");let e=u.each(r,p("includesGroup"));const n=new Set(e.map(e=>e.uri));e=[...n].map(e=>u.sym(e)),h(e.length+" total groups. ");const a=[];for(const e in t)a.push(e);h(a.length+" selected groups. ")}async function b(e){A.setAttribute("style","background-color: #ffc;");const t=u.any(r,d.vcard("nameEmailIndex"));try{await u.fetcher.load(t)}catch(e){A.setAttribute("style","background-color: #fcc;"),h("Error: People index has NOT been loaded"+e+"\n")}A.setAttribute("style","background-color: #cfc;"),h(" People index has been loaded\n")}const A=m.appendChild(c.createElement("button"));A.textContent="Load main index",A.style.cssText=f,A.addEventListener("click",b);const C=m.appendChild(c.createElement("button"));C.textContent="Statistics",C.style.cssText=f,C.addEventListener("click",g);const k=m.appendChild(c.createElement("button"));async function E(e){function n(e){a.acl.fixIndividualCardACL(e,h,function(t,n){h(t?"Success for "+a.utils.label(e):"Failure for "+a.utils.label(e)+": "+n)})}const i=[];for(const e in t)i.push(e);for(let e=0;e<i.length;e++){const t=u.sym(i[e]),r=(0,o.groupMembers)(u,t);h(a.utils.label(t)+": "+r.length+" members");for(let e=0;e<r.length;e++){const t=r[e];h(a.utils.label(t)),n(t)}}}k.textContent="Check individual card access of selected groups",k.style.cssText=f,k.addEventListener("click",E);const T=m.appendChild(c.createElement("button"));async function S(e){const t=await P(e);if(0===t.length)return void h("No groupless cards found.");const n=await(0,o.saveNewGroup)(e,"ZSortThese");if(confirm(`Add the ${t.length} cards without groups to a ZSortThese group?`))for(const e of t)h(" adding "+e),await(0,o.addPersonToGroup)(e,n);h("People moved to group.")}async function P(e){const t=u.any(e,d.vcard("groupIndex")),n=u.any(e,d.vcard("nameEmailIndex"));try{await u.fetcher.load([n,t]);const a=u.each(e,d.vcard("includesGroup"));await u.fetcher.load(a)}catch(e){x("Error loading stuff:"+e)}const i={},r=[];let s=u.each(e,p("includesGroup"));const l=new Set(s.map(e=>e.uri));s=[...l].map(e=>u.sym(e)),h(s.length+" total groups. ");for(let e=0;e<s.length;e++){const t=s[e],n=(0,o.groupMembers)(u,t);h(a.utils.label(t)+": "+n.length+" members");for(let e=0;e<n.length;e++)u.allAliases(n[e]).forEach(function(e){i[e.uri]=t})}const c=u.each(void 0,p("inAddressBook"),e);h(c.length+" total cards");for(let e=0;e<c.length;e++)i[c[e].uri]||(r.push(c[e]),h(" groupless "+a.utils.label(c[e])));return h(r.length+" groupless cards."),r}T.textContent="Find duplicate cards",T.style.cssText=f,T.addEventListener("click",function(e){const t={};t.book=r,t.nameEmailIndex=u.any(r,d.vcard("nameEmailIndex")),h("Loading name index..."),i.store.fetcher.nowOrWhenFetched(t.nameEmailIndex,void 0,function(e,n){function a(e){return new Promise(function(n){u.fetcher.load(e).then(function(a){h(" Nameless check "+e);const i={};function o(e){return u.statementsMatching(null,null,null,e.doc()).filter(function(e){return!i[e.predicate.uri]})}i[d.vcard("hasUID").uri]=!0,i[d.dc("created").uri]=!0,i[d.dc("modified").uri]=!0;const r=o(e);if(!r.length)return h(" Zero length "+e),t.nameLessZeroData.push(e),n(!1);const s=new $rdf.Serializer(u).setBase(e.doc().uri).statementsToN3(r),l=t.nameLessIndex[s];if(l){h(" Matches with "+l);const a=u.each(null,d.vcard("hasMember"),e),i=u.each(null,d.vcard("hasMember"),l);for(let o=0;o<a.length;o++){let r=!1;for(let e=0;e<i.length;e++)i[e].sameTerm(a[o])&&(r=!0);if(!r)return h("This one groups: "+a),h("Other one groups: "+i),h("Cant skip this one because it has a group, "+a[o]+", which the other does not."),t.nameOnlyDuplicatesGroupDiff.push(e),n(!1)}console.log("Group check done -- exact duplicate: "+e)}else h("First nameless like: "+e.doc()),h("___________________________________________"),h(s),h("___________________________________________"),t.nameLessIndex[s]=e,t.namelessUniques.push(e);n(!0)}).catch(function(a){h("Cant load a nameless card!: "+a),t.nameOnlyErrors.push(e),n(!1)})})}function i(){return t.namelessToCheck=t.namelessToCheck||t.nameless.slice(),h("Nameless check left: "+t.namelessToCheck.length),new Promise(function(e){const n=t.namelessToCheck.shift();if(!n){if(h("namelessUniques: "+t.namelessUniques.length),h("namelessUniques: "+t.namelessUniques),t.namelessUniques.length>0&&confirm("Add all "+t.namelessUniques.length+" nameless cards to the rescued set?")){t.uniques=t.uniques.concat(t.namelessUniques);for(let e=0;e<t.namelessUniques.length;e++)t.uniqueSet[t.namelessUniques[e].uri]=!0}return e(!0)}a(n).then(function(e){h(" Nameless check returns "+e),i()})})}function s(){return new Promise(function(e){h("Groups loaded");for(let e=0;e<t.uniques.length;e++)t.uniquesSet[t.uniques[e].uri]=!0;t.groupMembers=[],u.each(null,d.vcard("hasMember")).forEach(e=>{t.groupMembers=t.groupMembers.concat((0,o.groupMembers)(u,e))}),h(" Naive group members "+t.groupMembers.length),t.groupMemberSet=[];for(let e=0;e<t.groupMembers.length;e++)t.groupMemberSet[t.groupMembers[e].uri]=t.groupMembers[e];t.groupMembers2=[];for(const e in t.groupMemberSet)t.groupMembers2.push(t.groupMemberSet[e]);if(h(" Compact group members "+t.groupMembers2.length),$rdf.keepThisCodeForLaterButDisableFerossConstantConditionPolice){for(let e=0;e<t.groupMembers.length;e++){const n=t.groupMembers[e];t.uniquesSet[n.uri]||(h(" Not in uniques: "+n),t.groupProblems.push(n),t.duplicateSet[n.uri]?h(" ** IN duplicates alas:"+n):h(" **** WTF?"))}h("Problem cards: "+t.groupProblems.length)}e(!0)})}function l(){return new Promise(function(e){let n,a,i;for(t.cards=u.each(void 0,p("inAddressBook"),t.book),h(t.cards.length+" total cards"),n=0;n<t.cards.length;n++)if(a=t.cards[n],i=u.anyValue(a,d.vcard("fn")),i)if(t.definitive[i]===a);else if(t.definitive[i]){t.duplicates.length;t.duplicates.push(a)}else t.definitive[i]=a;else t.nameless.push(a);t.duplicateSet=[];for(let e=0;e<t.duplicates.length;e++)t.duplicateSet[t.duplicates[e].uri]=t.duplicates[e];t.namelessSet=[];for(let e=0;e<t.nameless.length;e++)t.namelessSet[t.nameless[e].uri]=t.nameless[e];t.uniques=[],t.uniqueSet=[];for(let e=0;e<t.cards.length;e++){const n=t.cards[e].uri;t.duplicateSet[n]||t.namelessSet[n]||(t.uniques.push(t.cards[e]),t.uniqueSet[n]=t.cards[e])}h("Uniques: "+t.uniques.length),h(t.nameless.length+" nameless cards."),h(t.duplicates.length+" name-duplicate cards, leaving "+(t.cards.length-t.duplicates.length)),e(!0)})}function c(){let e;return Promise.resolve().then(()=>{e=u.sym(t.book.dir().uri+"clean-people.ttl");let n=[];for(let e=0;e<t.uniques.length;e++)n=n.concat(u.connectedStatements(t.uniques[e],t.nameEmailIndex));const a=new $rdf.Serializer(u).setBase(t.nameEmailIndex.uri);h("Serializing index of uniques...");const i=a.statementsToN3(n);return u.fetcher.webOperation("PUT",e,{data:i,contentType:"text/turtle"})}).then(function(){return h("Done uniques log "+e),!0}).catch(function(e){h("Error saving uniques: "+e)})}function f(e){let n;return Promise.resolve().then(()=>{const a=e.uri.replace("/Group/","/NewGroup/");n=u.sym(a);let i=[];for(let n=0;n<t.uniques.length;n++)i=i.concat(u.connectedStatements(t.uniques[n],e.doc()));const o=new $rdf.Serializer(u).setBase(e.uri);h(" Regenerating group of uniques..."+n);const r=o.statementsToN3(i);return u.fetcher.webOperation("PUT",n,{data:r,contentType:"text/turtle"})}).then(()=>(h(" Done uniques group "+n),!0)).catch(e=>{h("Error saving : "+e)})}function m(){return h("Saving ALL GROUPS"),Promise.all(t.groupObjects.map(f))}h("Loaded name index."),t.cards=[],t.duplicates=[],t.definitive=[],t.nameless=[],t.exactDuplicates=[],t.nameOnlyDuplicates=[],t.uniquesSet=[],t.groupProblems=[],t.nameDupLog=u.sym(r.dir().uri+"dedup-nameDupLog.ttl"),t.exactDupLog=u.sym(r.dir().uri+"dedup-exactDupLog.ttl"),t.nameOnlyErrors=[],t.nameLessZeroData=[],t.nameLessIndex=[],t.namelessUniques=[],t.nameOnlyDuplicatesGroupDiff=[];const g=function(){let e=[];if(t.book){[t.book].forEach(function(t){const n=(t?u.each(t,d.vcard("includesGroup")):[]).map(function(e){return[t,u.any(e,d.vcard("fn")),e]});e=e.concat(n)}),e.sort()}return e},b=g();t.groupObjects=b.map(e=>e[2]),h("Loading "+t.groupObjects.length+" groups... "),u.fetcher.load(t.groupObjects).then(l).then(s).then(i).then(()=>new Promise(function(e,t){confirm("Write new clean versions?")?e(!0):t(new Error("User cancelled writing clean versions"))})).then(c).then(m).then(function(){h("Done!")})})});const B=m.appendChild(c.createElement("button"));B.style.cssText=f,B.textContent="Find individuals with no group",B.addEventListener("click",function(a){h("Loading groups..."),e(t,n,async function(e,t){if(!e)return void h("Load all groups: failed: "+t);const n=u.any(r,d.vcard("nameEmailIndex"));try{await u.fetcher.load(n)}catch(e){x(e)}h("Loaded groups and name index."),P(r),h("Groupless list finished..")})});const N=m.appendChild(c.createElement("button"));async function I(e){async function t(e){let t=[],n=[];e.forEach(e=>{let a=u.statementsMatching(null,d.owl("sameAs"),null,e.doc()).map(e=>e.subject);const i=new Set(a.map(e=>e.uri));a=[...i].map(e=>u.sym(e)),a.forEach(a=>{if(!u.each(a,d.vcard("fn"),null,e.doc()).length){t=t.concat(u.statementsMatching(a,d.owl("sameAs"),null,e.doc()).concat(u.statementsMatching(void 0,void 0,a,e.doc())));u.each(a,d.owl("sameAs"),null,e.doc()).forEach(t=>{n=n.concat($rdf.st(t,d.owl("sameAs"),a,e.doc())).concat($rdf.st(e,d.vcard("hasMember"),t,e.doc()))})}})}),t.length&&confirm("Groups can be updated to old data model ?")?(await u.updater.updateMany(t,n),alert("Update done")):t.length||alert("Nothing to update.\nAll Groups already use the old data model.")}let n=u.each(e,p("includesGroup"));const a=new Set(n.map(e=>e.uri));n=[...a].map(e=>u.sym(e)),t(n)}N.style.cssText=f,N.textContent="Put all individuals with no group in a new group",N.addEventListener("click",e=>S(r));const _=m.appendChild(c.createElement("button"));_.style.cssText=f,_.textContent="Revert groups to old data model",_.addEventListener("click",e=>I(r))}(),m};var a=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,a=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=t?a:n){if(i.has(e))return i.get(e);i.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?i(r,t,o):r[t]=e[t]);return r}(e,t)}(n(9426)),i=n(5663),o=n(466)},4416(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addWebIDToContacts=w,t.getPersonas=C,t.getSameAs=A,t.isOrganization=E,t.removeWebIDFromContacts=x,t.renderIdControl=S,t.renderNamedPane=T,t.renderPublicIdControl=async function(e,t){let n=p.sym("http://www.wikidata.org/wiki/Q43229"),a="Organization";for(const t in m)p.holds(e,c.rdf("type"),c.schema(t),e.doc())&&(n=p.sym(m[t]),a=t,console.log(` renderPublicIdControl bingo: ${t} -> ${n}`));const i={longPrompt:`If you know the ${b} of this ${a}, you can do more stuff with it.\n To record its ${b}, drag it onto the plus, or click the magnifyinng glass\n to search for it in WikiData.`,idNoun:b,urlType:c.vcard("PublicId"),dbLookup:!0,class:n,queryParams:h};return S(e,t,i)},t.renderWebIdControl=async function(e,t){const n={longPrompt:`If you know someone's ${g}, you can do more stuff with them.\n To record their ${g}, drag it onto the plus, or click the plus\n to enter it by hand.`,idNoun:g,urlType:c.vcard("WebID")};return S(e,t,n)},t.vcardWebIDs=k;var a=l(n(9426)),i=n(5663),o=n(466),r=n(3311),s=l(n(5491));function l(e,t){if("function"==typeof WeakMap)var n=new WeakMap,a=new WeakMap;return(l=function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=t?a:n){if(i.has(e))return i.get(e);i.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?i(r,t,o):r[t]=e[t]);return r})(e,t)}const c=a.ns,u=a.widgets,d=a.utils,p=i.store,f=a.style,m=u.publicData.wikidataClasses,h=u.publicData.wikidataParameters,g="Solid ID",b="In public data",v=a.icons.iconBase+"noun_1369241.svg",y=a.icons.iconBase+"noun_1369237.svg";async function w(e,t,n,a){try{new URL(t)}catch(e){throw new Error(`${g}: ${t} is not a valid url.`)}console.log(`Adding to ${e} a ${g}: ${t}.`);const i=a.bnode(),r=[s.st(e,c.vcard("url"),i,e.doc()),s.st(i,c.rdf("type"),n,e.doc()),s.st(i,c.vcard("value"),t,e.doc())],l=a.each(null,c.vcard("hasMember"),e);let u=[];l.forEach(n=>{u=u.concat(a.statementsMatching(n,c.vcard("hasMember"),e,n.doc())),r.push(s.st(n,c.vcard("hasMember"),a.sym(t),n.doc())),r.push(s.st(a.sym(t),c.owl("sameAs"),e,n.doc()))});try{await(0,o.updateMany)(u,r)}catch(e){throw new Error(`Could not create webId ${g}: ${t}.`)}}async function x(e,t,n,a){console.log(`Removing from ${e} their ${g}: ${t}.`);const i=a.each(e,c.vcard("url"),null,e.doc()).filter(t=>a.holds(t,c.rdf("type"),n,e.doc())).filter(n=>a.holds(n,c.vcard("value"),t,e.doc()));if(!i.length)throw new Error(`Person ${e} does not have ${g} ${t}.`);const r=i[0],l=[s.st(e,c.vcard("url"),r,e.doc()),s.st(r,c.rdf("type"),n,e.doc()),s.st(r,c.vcard("value"),t,e.doc())];await a.updater.update(l,[]);const u=a.each(null,c.vcard("hasMember"),a.sym(t));let d=[];const p=[];u.forEach(async n=>{d=d.concat(a.statementsMatching(a.sym(t),c.owl("sameAs"),e,n.doc())),p.push(s.st(n,c.vcard("hasMember"),e,n.doc())),a.statementsMatching(a.sym(t),c.owl("sameAs"),null,n.doc()).length<2&&(d=d.concat(a.statementsMatching(n,c.vcard("hasMember"),a.sym(t),n.doc())))}),await(0,o.updateMany)(d,p)}function A(e,t,n){const a=new Set,i=new Set([t.uri]);for(;i.size;){const t=Array.from(i)[0];if(i.delete(t),a.has(t))continue;a.add(t);const o=e.sym(t);e.each(o,c.owl("sameAs"),null,n).concat(e.each(null,c.owl("sameAs"),o,n)).forEach(e=>{console.log(" OWL sameAs found "+e),i.add(e.uri)}),e.each(o,c.schema("sameAs"),null,n).concat(e.each(null,c.schema("sameAs"),o,n)).forEach(e=>{console.log(" Schema sameAs found "+e),i.add(e.uri)})}return a.delete(t.uri),Array.from(a).map(t=>e.sym(t))}function C(e,t){const n=k(e,t).concat(A(e,t,t.doc())),a=[...new Set(n.map(e=>e.value))].map(t=>e.sym(t));return a.sort(),a.filter(e=>!e.sameTerm(t)),a}function k(e,t,n){return e.each(t,c.vcard("url"),null,t.doc()).filter(a=>e.holds(a,c.rdf("type"),n,t.doc())).map(n=>e.any(n,c.vcard("value"),null,t.doc())).filter(e=>!!e)}function E(e){const t=e.doc();return p.holds(e,c.rdf("type"),c.vcard("Organization"),t)||p.holds(e,c.rdf("type"),c.schema("Organization"),t)}function T(e,t,n,a){const i=a.session.paneRegistry.byName(n).render(t,a);return i.setAttribute("style","border: 0.1em solid #444; border-radius: 0.5em"),i}async function S(e,t,n){async function i(){const r=C(p,e);console.log("WebId personas: "+e+" -> "+r.map(e=>e.uri).join(",\n ")),g.style.display=r.length?"none":"",d.syncTableToArrayReOrdered(b,r,r=>function(o,r,l){const d=o.createElement("div");d.style.width="100%";const p=d.appendChild(o.createElement("table"));p.style.width="100%";const f=p.appendChild(function(t){const r=new s.Literal(t.uri),p=n.urlType.sameTerm(c.vcard("WebID")),f={deleteFunction:n.editable?async function(){try{await x(e,r,n.urlType,l)}catch(t){d.appendChild(u.errorMessageBlock(o,`Error removing Id ${r} from ${e}: ${t}`))}await i()}:null,draggable:!0};p&&(f.title=t.uri.split("/")[2],f.image=u.faviconOrDefault(o,t.site()));const m=u.personTR(o,a.ns.foaf("knows"),t,f);return p&&(m.children[1].textConent=f.title,m.style.backgroundColor="#ffe6ff"),m.style.padding="0.2em",m}(r));f.style.width="100%";const m=p.appendChild(o.createElement("tr")).appendChild(o.createElement("td"));let h;m.setAttribute("colspan",3);let g=!0;const b=f.children[2].appendChild(u.button(o,v,"View",function(e){g=!g,h.style.visibility=g?"visible":"collapse",b.children[0].src=g?y:v}));b.style.float="right",delete b.style.backgroundColor,delete b.style.border;const w=(E(e)||E(r),"profile");return u.publicData.loadPublicDataThing(l,e,r).then(e=>{try{h=T(0,r,w,t),console.log("main: ",h),h.style.width="100%",console.log("renderIdControl: main element: ",h),m.appendChild(h)}catch(e){h=u.errorMessageBlock(o,`Problem displaying persona ${r}: ${e}`),m.appendChild(h)}},e=>{h=u.errorMessageBlock(o,`Error loading persona ${r}: ${e}`),m.appendChild(h)}),d}(o,r,p))}const{dom:o}=t;(n=n||{}).editable=p.updater.editable(e.doc().uri,p);const l=o.createElement("div");if(l.style="border-radius:0.3em; border: 0.1em solid #888;",0===C(p,e).length&&!n.editable)return l.style.display="none",l;const m=l.appendChild(o.createElement("h4"));m.textContent=n.idNoun,m.style=f.formHeadingStyle,m.style.color=f.highlightColor;const g=l.appendChild(o.createElement("p"));g.style=f.commentStyle,g.textContent=n.longPrompt;l.appendChild(o.createElement("table")).style.width="100%",n.editable&&(n.manualURIEntry=!0,n.queryParams=n.queryParams||h,l.appendChild(await(0,r.renderAutocompleteControl)(o,e,n,async function(e,t){try{await w(e,t,n.urlType,p)}catch(n){l.appendChild(u.errorMessageBlock(o,`Error adding Id ${t} to ${e}: ${n}`))}await i()})));const b=l.appendChild(o.createElement("div"));return await i(),l}},566(e,t,n){"use strict";n.d(t,{A:()=>s});var a=n(1354),i=n.n(a),o=n(6314),r=n.n(o)()(i());r.push([e.id,"/* CVCard.css */\n/* Note: Uses utilities: .section-title for cvOrg styling */\n\n.cvSection {\n margin-bottom: 1.25em;\n}\n\n.cvRole {\n margin: var(--spacing-xs) 0;\n font-size: var(--font-size-base);\n line-height: var(--line-height-base);\n display: flex;\n flex-direction: column;\n gap: 0.2em;\n}\n\n.cvOrg {\n font-weight: 600;\n color: var(--color-primary);\n}\n\n.cvSkill, .cvLanguage {\n text-align: left;\n margin: var(--spacing-xs) 0;\n font-size: var(--font-size-base);\n line-height: var(--line-height-base);\n}\n\n.cvSection h3 {\n color: var(--color-text);\n font-size: var(--font-size-lg);\n font-weight: 600;\n line-height: var(--line-height-tight);\n margin-bottom: var(--spacing-xs);\n border-bottom: 1px solid var(--color-border-pale);\n padding-bottom: var(--spacing-xs);\n}\n","",{version:3,sources:["webpack://./node_modules/profile-pane/lib/styles/CVCard.css"],names:[],mappings:"AAAA,eAAe;AACf,2DAA2D;;AAE3D;EACE,qBAAqB;AACvB;;AAEA;EACE,2BAA2B;EAC3B,gCAAgC;EAChC,oCAAoC;EACpC,aAAa;EACb,sBAAsB;EACtB,UAAU;AACZ;;AAEA;EACE,gBAAgB;EAChB,2BAA2B;AAC7B;;AAEA;EACE,gBAAgB;EAChB,2BAA2B;EAC3B,gCAAgC;EAChC,oCAAoC;AACtC;;AAEA;EACE,wBAAwB;EACxB,8BAA8B;EAC9B,gBAAgB;EAChB,qCAAqC;EACrC,gCAAgC;EAChC,iDAAiD;EACjD,iCAAiC;AACnC",sourcesContent:["/* CVCard.css */\n/* Note: Uses utilities: .section-title for cvOrg styling */\n\n.cvSection {\n margin-bottom: 1.25em;\n}\n\n.cvRole {\n margin: var(--spacing-xs) 0;\n font-size: var(--font-size-base);\n line-height: var(--line-height-base);\n display: flex;\n flex-direction: column;\n gap: 0.2em;\n}\n\n.cvOrg {\n font-weight: 600;\n color: var(--color-primary);\n}\n\n.cvSkill, .cvLanguage {\n text-align: left;\n margin: var(--spacing-xs) 0;\n font-size: var(--font-size-base);\n line-height: var(--line-height-base);\n}\n\n.cvSection h3 {\n color: var(--color-text);\n font-size: var(--font-size-lg);\n font-weight: 600;\n line-height: var(--line-height-tight);\n margin-bottom: var(--spacing-xs);\n border-bottom: 1px solid var(--color-border-pale);\n padding-bottom: var(--spacing-xs);\n}\n"],sourceRoot:""}]);const s=r},5223(e,t,n){"use strict";n.d(t,{A:()=>s});var a=n(1354),i=n.n(a),o=n(6314),r=n.n(o)()(i());r.push([e.id,"/* ChatWithMe.css */\n/* Uses utilities: .section-centered, .loading-text, .btn-primary, .btn-transparent */\n\n.chatSection {\n overflow-x: auto;\n}\n","",{version:3,sources:["webpack://./node_modules/profile-pane/lib/styles/ChatWithMe.css"],names:[],mappings:"AAAA,mBAAmB;AACnB,qFAAqF;;AAErF;EACE,gBAAgB;AAClB",sourcesContent:["/* ChatWithMe.css */\n/* Uses utilities: .section-centered, .loading-text, .btn-primary, .btn-transparent */\n\n.chatSection {\n overflow-x: auto;\n}\n"],sourceRoot:""}]);const s=r},5191(e,t,n){"use strict";n.d(t,{A:()=>s});var a=n(1354),i=n.n(a),o=n(6314),r=n.n(o)()(i());r.push([e.id,"/* FriendList.css */\n/* Uses utilities: .list-reset, .section-title, .zebra-stripe, .flex, .gap-xs, .mb-md */\n\n.friendItem {\n padding: var(--spacing-xs) 0;\n font-size: 1em;\n color: var(--color-text-muted);\n}\n\n.friendItem:last-child {\n border-bottom: none;\n}\n","",{version:3,sources:["webpack://./node_modules/profile-pane/lib/styles/FriendList.css"],names:[],mappings:"AAAA,mBAAmB;AACnB,uFAAuF;;AAEvF;EACE,4BAA4B;EAC5B,cAAc;EACd,8BAA8B;AAChC;;AAEA;EACE,mBAAmB;AACrB",sourcesContent:["/* FriendList.css */\n/* Uses utilities: .list-reset, .section-title, .zebra-stripe, .flex, .gap-xs, .mb-md */\n\n.friendItem {\n padding: var(--spacing-xs) 0;\n font-size: 1em;\n color: var(--color-text-muted);\n}\n\n.friendItem:last-child {\n border-bottom: none;\n}\n"],sourceRoot:""}]);const s=r},9662(e,t,n){"use strict";n.d(t,{A:()=>s});var a=n(1354),i=n.n(a),o=n(6314),r=n.n(o)()(i());r.push([e.id,"/* ProfileCard.css */\n/* Uses utilities: .action-button-focus, .btn-primary, .flex-column-center, .text-truncate, .text-center, .text-wrap-anywhere, .section-centered, .btn-transparent */\n\n.profileCard {\n /* Component container */\n}\n\n.image {\n width: 160px;\n height: 160px;\n border-radius: 50%;\n object-fit: cover;\n margin-bottom: var(--spacing-sm);\n box-shadow: var(--box-shadow-sm);\n border: 3px solid var(--color-primary);\n background: var(--color-card-bg);\n box-sizing: border-box;\n}\n\n.image-alt {\n width: 160px;\n height: 160px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n margin-bottom: var(--spacing-sm);\n box-shadow: var(--box-shadow-sm);\n border: 3px solid var(--color-primary);\n background: var(--color-card-bg);\n box-sizing: border-box;\n color: var(--color-text-secondary);\n}\n\n.name {\n font-size: var(--font-size-xl);\n font-weight: 700;\n line-height: var(--line-height-tight);\n text-decoration: underline;\n text-underline-offset: 0.2em;\n margin: 0;\n letter-spacing: var(--letter-spacing-wide);\n}\n\n.intro {\n color: var(--color-text-secondary);\n font-size: var(--font-size-base);\n line-height: var(--line-height-base);\n margin-bottom: var(--spacing-xs);\n max-width: 40ch;\n margin-left: auto;\n margin-right: auto;\n}\n\n.buttonSection {\n color: var(--color-text-secondary);\n font-size: 1em;\n margin-bottom: var(--spacing-xs);\n}\n\n.buttonSubSection {\n width: 100%;\n min-width: 0;\n display: grid;\n}\n\n.buttonSubSection button {\n width: 100%;\n min-width: 0;\n}\n\n.qrCodeSection {\n color: var(--color-text-secondary);\n font-size: 1em;\n margin-bottom: var(--spacing-xs);\n}\n\n.details {\n color: var(--color-text-muted);\n font-size: var(--font-size-base);\n line-height: var(--line-height-base);\n max-width: 45ch;\n margin-left: auto;\n margin-right: auto;\n}\n\n/* ProfileCard styles as regular CSS */\n.profile-card {\n border: 1px solid #ccc;\n padding: 16px;\n background: white;\n}\n","",{version:3,sources:["webpack://./node_modules/profile-pane/lib/styles/ProfileCard.css"],names:[],mappings:"AAAA,oBAAoB;AACpB,oKAAoK;;AAEpK;EACE,wBAAwB;AAC1B;;AAEA;EACE,YAAY;EACZ,aAAa;EACb,kBAAkB;EAClB,iBAAiB;EACjB,gCAAgC;EAChC,gCAAgC;EAChC,sCAAsC;EACtC,gCAAgC;EAChC,sBAAsB;AACxB;;AAEA;EACE,YAAY;EACZ,aAAa;EACb,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,kBAAkB;EAClB,gCAAgC;EAChC,gCAAgC;EAChC,sCAAsC;EACtC,gCAAgC;EAChC,sBAAsB;EACtB,kCAAkC;AACpC;;AAEA;EACE,8BAA8B;EAC9B,gBAAgB;EAChB,qCAAqC;EACrC,0BAA0B;EAC1B,4BAA4B;EAC5B,SAAS;EACT,0CAA0C;AAC5C;;AAEA;EACE,kCAAkC;EAClC,gCAAgC;EAChC,oCAAoC;EACpC,gCAAgC;EAChC,eAAe;EACf,iBAAiB;EACjB,kBAAkB;AACpB;;AAEA;EACE,kCAAkC;EAClC,cAAc;EACd,gCAAgC;AAClC;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAEA;EACE,WAAW;EACX,YAAY;AACd;;AAEA;EACE,kCAAkC;EAClC,cAAc;EACd,gCAAgC;AAClC;;AAEA;EACE,8BAA8B;EAC9B,gCAAgC;EAChC,oCAAoC;EACpC,eAAe;EACf,iBAAiB;EACjB,kBAAkB;AACpB;;AAEA,sCAAsC;AACtC;EACE,sBAAsB;EACtB,aAAa;EACb,iBAAiB;AACnB",sourcesContent:["/* ProfileCard.css */\n/* Uses utilities: .action-button-focus, .btn-primary, .flex-column-center, .text-truncate, .text-center, .text-wrap-anywhere, .section-centered, .btn-transparent */\n\n.profileCard {\n /* Component container */\n}\n\n.image {\n width: 160px;\n height: 160px;\n border-radius: 50%;\n object-fit: cover;\n margin-bottom: var(--spacing-sm);\n box-shadow: var(--box-shadow-sm);\n border: 3px solid var(--color-primary);\n background: var(--color-card-bg);\n box-sizing: border-box;\n}\n\n.image-alt {\n width: 160px;\n height: 160px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n margin-bottom: var(--spacing-sm);\n box-shadow: var(--box-shadow-sm);\n border: 3px solid var(--color-primary);\n background: var(--color-card-bg);\n box-sizing: border-box;\n color: var(--color-text-secondary);\n}\n\n.name {\n font-size: var(--font-size-xl);\n font-weight: 700;\n line-height: var(--line-height-tight);\n text-decoration: underline;\n text-underline-offset: 0.2em;\n margin: 0;\n letter-spacing: var(--letter-spacing-wide);\n}\n\n.intro {\n color: var(--color-text-secondary);\n font-size: var(--font-size-base);\n line-height: var(--line-height-base);\n margin-bottom: var(--spacing-xs);\n max-width: 40ch;\n margin-left: auto;\n margin-right: auto;\n}\n\n.buttonSection {\n color: var(--color-text-secondary);\n font-size: 1em;\n margin-bottom: var(--spacing-xs);\n}\n\n.buttonSubSection {\n width: 100%;\n min-width: 0;\n display: grid;\n}\n\n.buttonSubSection button {\n width: 100%;\n min-width: 0;\n}\n\n.qrCodeSection {\n color: var(--color-text-secondary);\n font-size: 1em;\n margin-bottom: var(--spacing-xs);\n}\n\n.details {\n color: var(--color-text-muted);\n font-size: var(--font-size-base);\n line-height: var(--line-height-base);\n max-width: 45ch;\n margin-left: auto;\n margin-right: auto;\n}\n\n/* ProfileCard styles as regular CSS */\n.profile-card {\n border: 1px solid #ccc;\n padding: 16px;\n background: white;\n}\n"],sourceRoot:""}]);const s=r},2751(e,t,n){"use strict";n.d(t,{A:()=>s});var a=n(1354),i=n.n(a),o=n(6314),r=n.n(o)()(i());r.push([e.id,"/* ProfileView.css */\n/* Uses utilities: .section-bg, .text-center */\n\n.profileSection {\n \n}\n\n/* Horizontal layout for cards */\n.profile-grid .profileSection {\n width: 100%;\n max-width: 100%;\n box-sizing: border-box;\n margin-bottom: var(--spacing-md);\n box-sizing: border-box;\n margin-bottom: var(--spacing-md);\n}\n\n@media (min-width: 900px) {\n .profileSection {\n margin-bottom: 0;\n }\n}\n","",{version:3,sources:["webpack://./node_modules/profile-pane/lib/styles/ProfileView.css"],names:[],mappings:"AAAA,oBAAoB;AACpB,8CAA8C;;AAE9C;;AAEA;;AAEA,gCAAgC;AAChC;EACE,WAAW;EACX,eAAe;EACf,sBAAsB;EACtB,gCAAgC;EAChC,sBAAsB;EACtB,gCAAgC;AAClC;;AAEA;EACE;IACE,gBAAgB;EAClB;AACF",sourcesContent:["/* ProfileView.css */\n/* Uses utilities: .section-bg, .text-center */\n\n.profileSection {\n \n}\n\n/* Horizontal layout for cards */\n.profile-grid .profileSection {\n width: 100%;\n max-width: 100%;\n box-sizing: border-box;\n margin-bottom: var(--spacing-md);\n box-sizing: border-box;\n margin-bottom: var(--spacing-md);\n}\n\n@media (min-width: 900px) {\n .profileSection {\n margin-bottom: 0;\n }\n}\n"],sourceRoot:""}]);const s=r},1783(e,t,n){"use strict";n.d(t,{A:()=>s});var a=n(1354),i=n.n(a),o=n(6314),r=n.n(o)()(i());r.push([e.id,'/* QRCodeCard.css */\n/* Note: Uses utilities: .text-center */\n\n/* Caption under the QR code */\n.qrCaption {\n text-align: center;\n margin-top: 0;\n font-size: 0.95em;\n color: var(--color-text-secondary);\n}\n\n.QRCode {\n width: 100%;\n max-width: 320px;\n min-width: 180px;\n margin: 0 auto;\n display: block;\n}\n\n.QRCode [role="img"]:focus {\n outline: 2px solid var(--color-primary, #7C4DFF);\n outline-offset: 2px;\n box-shadow: 0 0 0 2px rgba(124,77,255,0.2);\n}',"",{version:3,sources:["webpack://./node_modules/profile-pane/lib/styles/QRCodeCard.css"],names:[],mappings:"AAAA,mBAAmB;AACnB,uCAAuC;;AAEvC,8BAA8B;AAC9B;EACE,kBAAkB;EAClB,aAAa;EACb,iBAAiB;EACjB,kCAAkC;AACpC;;AAEA;EACE,WAAW;EACX,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;EACd,cAAc;AAChB;;AAEA;EACE,gDAAgD;EAChD,mBAAmB;EACnB,0CAA0C;AAC5C",sourcesContent:['/* QRCodeCard.css */\n/* Note: Uses utilities: .text-center */\n\n/* Caption under the QR code */\n.qrCaption {\n text-align: center;\n margin-top: 0;\n font-size: 0.95em;\n color: var(--color-text-secondary);\n}\n\n.QRCode {\n width: 100%;\n max-width: 320px;\n min-width: 180px;\n margin: 0 auto;\n display: block;\n}\n\n.QRCode [role="img"]:focus {\n outline: 2px solid var(--color-primary, #7C4DFF);\n outline-offset: 2px;\n box-shadow: 0 0 0 2px rgba(124,77,255,0.2);\n}'],sourceRoot:""}]);const s=r},8824(e,t,n){"use strict";n.d(t,{A:()=>s});var a=n(1354),i=n.n(a),o=n(6314),r=n.n(o)()(i());r.push([e.id,'/* SocialCard.css */\n/* Uses utilities: .list-reset, .text-wrap-anywhere, .flex, .gap-sm, .gap-lg, .rounded-sm */\n\n.socialList {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: var(--spacing-lg);\n justify-content: center;\n}\n\n.socialItem {\n display: flex;\n align-items: center;\n gap: var(--spacing-sm);\n font-size: 1.1em;\n}\n\n.socialItem span {\n min-width: 0;\n display: block;\n}\n\n.socialItem a {\n color: var(--color-primary);\n text-decoration: none;\n display: flex;\n align-items: center;\n gap: var(--spacing-sm);\n min-height: var(--min-touch-target);\n padding: var(--spacing-xs);\n border-radius: var(--border-radius-base);\n transition: background-color var(--animation-duration) ease;\n position: relative;\n flex: 1;\n min-width: 0;\n}\n\n.socialItem a:hover,\n.socialItem a:focus {\n text-decoration: underline;\n background-color: rgba(124, 77, 255, 0.1);\n}\n\n/* Screen reader only external link indication */\n.socialItem a[href^="http"]:after {\n content: " (external link)";\n position: absolute;\n left: -10000px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n}\n\n.socialIcon {\n width: 2.5em;\n height: 2.5em;\n border-radius: var(--border-radius-base);\n background: var(--color-card-bg);\n flex-shrink: 0;\n}\n',"",{version:3,sources:["webpack://./node_modules/profile-pane/lib/styles/SocialCard.css"],names:[],mappings:"AAAA,mBAAmB;AACnB,2FAA2F;;AAE3F;EACE,aAAa;EACb,mBAAmB;EACnB,eAAe;EACf,sBAAsB;EACtB,uBAAuB;AACzB;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,sBAAsB;EACtB,gBAAgB;AAClB;;AAEA;EACE,YAAY;EACZ,cAAc;AAChB;;AAEA;EACE,2BAA2B;EAC3B,qBAAqB;EACrB,aAAa;EACb,mBAAmB;EACnB,sBAAsB;EACtB,mCAAmC;EACnC,0BAA0B;EAC1B,wCAAwC;EACxC,2DAA2D;EAC3D,kBAAkB;EAClB,OAAO;EACP,YAAY;AACd;;AAEA;;EAEE,0BAA0B;EAC1B,yCAAyC;AAC3C;;AAEA,gDAAgD;AAChD;EACE,2BAA2B;EAC3B,kBAAkB;EAClB,cAAc;EACd,UAAU;EACV,WAAW;EACX,gBAAgB;AAClB;;AAEA;EACE,YAAY;EACZ,aAAa;EACb,wCAAwC;EACxC,gCAAgC;EAChC,cAAc;AAChB",sourcesContent:['/* SocialCard.css */\n/* Uses utilities: .list-reset, .text-wrap-anywhere, .flex, .gap-sm, .gap-lg, .rounded-sm */\n\n.socialList {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: var(--spacing-lg);\n justify-content: center;\n}\n\n.socialItem {\n display: flex;\n align-items: center;\n gap: var(--spacing-sm);\n font-size: 1.1em;\n}\n\n.socialItem span {\n min-width: 0;\n display: block;\n}\n\n.socialItem a {\n color: var(--color-primary);\n text-decoration: none;\n display: flex;\n align-items: center;\n gap: var(--spacing-sm);\n min-height: var(--min-touch-target);\n padding: var(--spacing-xs);\n border-radius: var(--border-radius-base);\n transition: background-color var(--animation-duration) ease;\n position: relative;\n flex: 1;\n min-width: 0;\n}\n\n.socialItem a:hover,\n.socialItem a:focus {\n text-decoration: underline;\n background-color: rgba(124, 77, 255, 0.1);\n}\n\n/* Screen reader only external link indication */\n.socialItem a[href^="http"]:after {\n content: " (external link)";\n position: absolute;\n left: -10000px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n}\n\n.socialIcon {\n width: 2.5em;\n height: 2.5em;\n border-radius: var(--border-radius-base);\n background: var(--color-card-bg);\n flex-shrink: 0;\n}\n'],sourceRoot:""}]);const s=r},5295(e,t,n){"use strict";n.d(t,{A:()=>s});var a=n(1354),i=n.n(a),o=n(6314),r=n.n(o)()(i());r.push([e.id,"/* StuffCard.css */\n/* Uses utilities: .zebra-stripe */\n\n.stuffTable {\n width: 100%;\n border-collapse: collapse;\n margin-bottom: var(--spacing-md);\n caption-side: top;\n}\n\n.stuffTable caption {\n font-weight: 600;\n padding: var(--spacing-sm);\n text-align: left;\n color: var(--color-text);\n}\n\n.stuffTable th,\n.stuffTable td {\n padding: var(--spacing-sm) var(--spacing-md);\n text-align: left;\n line-height: 1.4;\n}\n","",{version:3,sources:["webpack://./node_modules/profile-pane/lib/styles/StuffCard.css"],names:[],mappings:"AAAA,kBAAkB;AAClB,kCAAkC;;AAElC;EACE,WAAW;EACX,yBAAyB;EACzB,gCAAgC;EAChC,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;EAChB,0BAA0B;EAC1B,gBAAgB;EAChB,wBAAwB;AAC1B;;AAEA;;EAEE,4CAA4C;EAC5C,gBAAgB;EAChB,gBAAgB;AAClB",sourcesContent:["/* StuffCard.css */\n/* Uses utilities: .zebra-stripe */\n\n.stuffTable {\n width: 100%;\n border-collapse: collapse;\n margin-bottom: var(--spacing-md);\n caption-side: top;\n}\n\n.stuffTable caption {\n font-weight: 600;\n padding: var(--spacing-sm);\n text-align: left;\n color: var(--color-text);\n}\n\n.stuffTable th,\n.stuffTable td {\n padding: var(--spacing-sm) var(--spacing-md);\n text-align: left;\n line-height: 1.4;\n}\n"],sourceRoot:""}]);const s=r},2024(e,t,n){"use strict";n.d(t,{A:()=>s});var a=n(1354),i=n.n(a),o=n(6314),r=n.n(o)()(i());r.push([e.id,'/* Solid-UI form sizing fixes scoped to Edit CV section */\n.profile-form .hoverControl:not(:has(> img:first-child)) {\n border: 0.1em solid rgb(136, 136, 136) !important;\n}\n\n.profile-form .hoverControl:has(> img:first-child) {\n background-color: transparent !important;\n border: none !important;\n margin: 0 !important;\n border-radius: 0 !important;\n padding: 0.7em !important;\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n\n.profile-form .hoverControlHide {\n width: 1.5em !important;\n height: 1.5em !important;\n display: block;\n margin-top: 0 !important;\n margin-left: 0 !important;\n margin-right: 0 !important;\n margin-bottom: 0.3em !important;\n}\n\n.profile-form .hoverControl:has(> img:first-child) > span {\n display: inline-flex;\n align-items: center;\n margin-left: 0.3em;\n}\n\n.profile-form div[style*="padding: 0.5em"]:has(> img) {\n display: inline-flex;\n align-items: center;\n}\n\n.profile-form div[style*="padding: 0.5em"]:has(> img) > span {\n margin-left: 0.3em;\n}\n\n.profile-form .hoverControl:has(> img:first-child):hover {\n background-color: transparent !important;\n}\n\n.profile-form button:has(> img[src$=".svg"]) {\n background-color: transparent !important;\n border: none !important;\n margin: 0 !important;\n border-radius: 0 !important;\n}\n\n.profile-form button {\n\n}\n\n.profile-form input:not([type="color"]),\n.profile-form textarea,\n.profile-form select {\n max-width: 100%;\n min-width: 0;\n box-sizing: border-box ;\n background-color: #eef !important;\n border: .05em solid #88c\n}\n\n.profile-form input[type="url"] {\n width: 100%;\n}\n\n.profile-form .formFieldValue {\n min-width: 0;\n margin-bottom: var(--spacing-sm);\n}\n\n.profile-form .formFieldValue table {\n margin: 0 !important;\n padding: 0 !important;\n}\n\n.profile-form .formFieldValue td {\n padding: 0 !important;\n}\n\n.profile-form .formFieldValue input:not([type="color"]),\n.profile-form .formFieldValue textarea,\n.profile-form .formFieldValue select {\n width: 100%;\n max-width: 100%;\n}\n\n.profile-form select#formSelect {\n width: 100%;\n max-width: 97%;\n box-sizing: border-box;\n margin-left: 0 !important;\n margin-right: 0 !important;\n}\n\n.profile-form span select {\n max-width: 96% !important;\n box-sizing: border-box;\n}\n\n/* Remove border/padding from the first wrapper div (and its first child wrapper). */\n.profile-form > div:first-of-type,\n.profile-form > div:first-of-type > div:first-of-type {\n border: none !important;\n padding: 0 !important;\n}\n\n/* Remove border/padding from the inner div of the first wrapper in the contact section. */\nsection[aria-labelledby="edit-profile-contact-heading"] .profile-form > div:first-of-type > div:first-of-type {\n border: none !important;\n padding: 0 !important;\n}\n\n/* In contactPane, remove border/padding from all direct child divs. */\n.contactPane > div {\n border: none !important;\n padding: 0 !important;\n}\n\n/* Align schema.org, solid terms, FOAF, vCard, and org field labels with their input values. */\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://schema.org/"]),\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://www.w3.org/ns/solid/terms#"]),\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://xmlns.com/foaf/0.1/"]),\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://www.w3.org/2006/vcard/ns"]),\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://www.w3.org/ns/org#"]) {\n display: inline-flex;\n align-items: center;\n vertical-align: middle;\n}\n\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://schema.org/"]) + .formFieldValue,\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://www.w3.org/ns/solid/terms#"]) + .formFieldValue,\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://xmlns.com/foaf/0.1/"]) + .formFieldValue,\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://www.w3.org/2006/vcard/ns"]) + .formFieldValue,\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://www.w3.org/ns/org#"]) + .formFieldValue {\n display: inline-flex;\n align-items: center;\n vertical-align: middle;\n}\n\n.profile-form textarea {\n width: 100%;\n box-sizing: border-box;\n margin-top: var(--spacing-xs);\n margin-left: 0 !important;\n margin-right: 0 !important;\n}\n\n/* Add horizontal gap between label and textarea for all label+textarea pairs. */\n.profile-form div:has(> a) + div:has(textarea) {\n margin-left: var(--spacing-sm);\n}\n\n/* Center textarea label vertically in flex rows. */\n.profile-form div[style*="display: flex"][style*="flex-direction: row"]:has(textarea) {\n align-items: flex-start;\n}\n\n.profile-form div[style*="display: flex"][style*="flex-direction: row"]:has(textarea) > div:has(> a) {\n padding-top: var(--spacing-xs);\n}\n\n.profile-form input:not([type="color"]) {\n width: 100%;\n margin-left: 0 !important;\n margin-right: 0 !important;\n}\n\n/* Remove padding from table cells within webidControl */\n.webidControl table td {\n padding: 0 !important;\n}\n\n/* Remove padding from contactPane divs inside webidControl table cells */\n.webidControl table td div.contactPane.namedPane.fullWidth.individualPane {\n padding: 0 !important;\n}\n\n.webidControl table td div.contactPane.namedPane {\n border: none !important;\n}\n',"",{version:3,sources:["webpack://./node_modules/profile-pane/lib/styles/rdfFormsEnforced.css"],names:[],mappings:"AAAA,yDAAyD;AACzD;EACE,iDAAiD;AACnD;;AAEA;EACE,wCAAwC;EACxC,uBAAuB;EACvB,oBAAoB;EACpB,2BAA2B;EAC3B,yBAAyB;EACzB,eAAe;EACf,oBAAoB;EACpB,mBAAmB;EACnB,uBAAuB;AACzB;;AAEA;EACE,uBAAuB;EACvB,wBAAwB;EACxB,cAAc;EACd,wBAAwB;EACxB,yBAAyB;EACzB,0BAA0B;EAC1B,+BAA+B;AACjC;;AAEA;EACE,oBAAoB;EACpB,mBAAmB;EACnB,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;EACpB,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,wCAAwC;AAC1C;;AAEA;EACE,wCAAwC;EACxC,uBAAuB;EACvB,oBAAoB;EACpB,2BAA2B;AAC7B;;AAEA;;AAEA;;AAEA;;;EAGE,eAAe;EACf,YAAY;EACZ,uBAAuB;EACvB,iCAAiC;EACjC;AACF;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,YAAY;EACZ,gCAAgC;AAClC;;AAEA;EACE,oBAAoB;EACpB,qBAAqB;AACvB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;;;EAGE,WAAW;EACX,eAAe;AACjB;;AAEA;EACE,WAAW;EACX,cAAc;EACd,sBAAsB;EACtB,yBAAyB;EACzB,0BAA0B;AAC5B;;AAEA;EACE,yBAAyB;EACzB,sBAAsB;AACxB;;AAEA,oFAAoF;AACpF;;EAEE,uBAAuB;EACvB,qBAAqB;AACvB;;AAEA,0FAA0F;AAC1F;EACE,uBAAuB;EACvB,qBAAqB;AACvB;;AAEA,sEAAsE;AACtE;EACE,uBAAuB;EACvB,qBAAqB;AACvB;;AAEA,8FAA8F;AAC9F;;;;;EAKE,oBAAoB;EACpB,mBAAmB;EACnB,sBAAsB;AACxB;;AAEA;;;;;EAKE,oBAAoB;EACpB,mBAAmB;EACnB,sBAAsB;AACxB;;AAEA;EACE,WAAW;EACX,sBAAsB;EACtB,6BAA6B;EAC7B,yBAAyB;EACzB,0BAA0B;AAC5B;;AAEA,gFAAgF;AAChF;EACE,8BAA8B;AAChC;;AAEA,mDAAmD;AACnD;EACE,uBAAuB;AACzB;;AAEA;EACE,8BAA8B;AAChC;;AAEA;EACE,WAAW;EACX,yBAAyB;EACzB,0BAA0B;AAC5B;;AAEA,wDAAwD;AACxD;EACE,qBAAqB;AACvB;;AAEA,yEAAyE;AACzE;EACE,qBAAqB;AACvB;;AAEA;EACE,uBAAuB;AACzB",sourcesContent:['/* Solid-UI form sizing fixes scoped to Edit CV section */\n.profile-form .hoverControl:not(:has(> img:first-child)) {\n border: 0.1em solid rgb(136, 136, 136) !important;\n}\n\n.profile-form .hoverControl:has(> img:first-child) {\n background-color: transparent !important;\n border: none !important;\n margin: 0 !important;\n border-radius: 0 !important;\n padding: 0.7em !important;\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n\n.profile-form .hoverControlHide {\n width: 1.5em !important;\n height: 1.5em !important;\n display: block;\n margin-top: 0 !important;\n margin-left: 0 !important;\n margin-right: 0 !important;\n margin-bottom: 0.3em !important;\n}\n\n.profile-form .hoverControl:has(> img:first-child) > span {\n display: inline-flex;\n align-items: center;\n margin-left: 0.3em;\n}\n\n.profile-form div[style*="padding: 0.5em"]:has(> img) {\n display: inline-flex;\n align-items: center;\n}\n\n.profile-form div[style*="padding: 0.5em"]:has(> img) > span {\n margin-left: 0.3em;\n}\n\n.profile-form .hoverControl:has(> img:first-child):hover {\n background-color: transparent !important;\n}\n\n.profile-form button:has(> img[src$=".svg"]) {\n background-color: transparent !important;\n border: none !important;\n margin: 0 !important;\n border-radius: 0 !important;\n}\n\n.profile-form button {\n\n}\n\n.profile-form input:not([type="color"]),\n.profile-form textarea,\n.profile-form select {\n max-width: 100%;\n min-width: 0;\n box-sizing: border-box ;\n background-color: #eef !important;\n border: .05em solid #88c\n}\n\n.profile-form input[type="url"] {\n width: 100%;\n}\n\n.profile-form .formFieldValue {\n min-width: 0;\n margin-bottom: var(--spacing-sm);\n}\n\n.profile-form .formFieldValue table {\n margin: 0 !important;\n padding: 0 !important;\n}\n\n.profile-form .formFieldValue td {\n padding: 0 !important;\n}\n\n.profile-form .formFieldValue input:not([type="color"]),\n.profile-form .formFieldValue textarea,\n.profile-form .formFieldValue select {\n width: 100%;\n max-width: 100%;\n}\n\n.profile-form select#formSelect {\n width: 100%;\n max-width: 97%;\n box-sizing: border-box;\n margin-left: 0 !important;\n margin-right: 0 !important;\n}\n\n.profile-form span select {\n max-width: 96% !important;\n box-sizing: border-box;\n}\n\n/* Remove border/padding from the first wrapper div (and its first child wrapper). */\n.profile-form > div:first-of-type,\n.profile-form > div:first-of-type > div:first-of-type {\n border: none !important;\n padding: 0 !important;\n}\n\n/* Remove border/padding from the inner div of the first wrapper in the contact section. */\nsection[aria-labelledby="edit-profile-contact-heading"] .profile-form > div:first-of-type > div:first-of-type {\n border: none !important;\n padding: 0 !important;\n}\n\n/* In contactPane, remove border/padding from all direct child divs. */\n.contactPane > div {\n border: none !important;\n padding: 0 !important;\n}\n\n/* Align schema.org, solid terms, FOAF, vCard, and org field labels with their input values. */\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://schema.org/"]),\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://www.w3.org/ns/solid/terms#"]),\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://xmlns.com/foaf/0.1/"]),\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://www.w3.org/2006/vcard/ns"]),\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://www.w3.org/ns/org#"]) {\n display: inline-flex;\n align-items: center;\n vertical-align: middle;\n}\n\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://schema.org/"]) + .formFieldValue,\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://www.w3.org/ns/solid/terms#"]) + .formFieldValue,\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://xmlns.com/foaf/0.1/"]) + .formFieldValue,\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://www.w3.org/2006/vcard/ns"]) + .formFieldValue,\n.profile-form :not(.choiceBox) > .formFieldName:has(a[href*="http://www.w3.org/ns/org#"]) + .formFieldValue {\n display: inline-flex;\n align-items: center;\n vertical-align: middle;\n}\n\n.profile-form textarea {\n width: 100%;\n box-sizing: border-box;\n margin-top: var(--spacing-xs);\n margin-left: 0 !important;\n margin-right: 0 !important;\n}\n\n/* Add horizontal gap between label and textarea for all label+textarea pairs. */\n.profile-form div:has(> a) + div:has(textarea) {\n margin-left: var(--spacing-sm);\n}\n\n/* Center textarea label vertically in flex rows. */\n.profile-form div[style*="display: flex"][style*="flex-direction: row"]:has(textarea) {\n align-items: flex-start;\n}\n\n.profile-form div[style*="display: flex"][style*="flex-direction: row"]:has(textarea) > div:has(> a) {\n padding-top: var(--spacing-xs);\n}\n\n.profile-form input:not([type="color"]) {\n width: 100%;\n margin-left: 0 !important;\n margin-right: 0 !important;\n}\n\n/* Remove padding from table cells within webidControl */\n.webidControl table td {\n padding: 0 !important;\n}\n\n/* Remove padding from contactPane divs inside webidControl table cells */\n.webidControl table td div.contactPane.namedPane.fullWidth.individualPane {\n padding: 0 !important;\n}\n\n.webidControl table td div.contactPane.namedPane {\n border: none !important;\n}\n'],sourceRoot:""}]);const s=r},6723(e,t,n){"use strict";n.d(t,{A:()=>s});var a=n(1354),i=n.n(a),o=n(6314),r=n.n(o)()(i());r.push([e.id,'/* Utility-first CSS classes for layout, spacing, and responsiveness */\n\n.actionButton {\n width: 100%;\n min-width: 180px;\n max-width: 320px;\n box-sizing: border-box;\n display: inline-block;\n}\n\n/* ===========================================\n PROFILE GRID LAYOUT\n =========================================== */\n\n.profile-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(30em, 1fr));\n gap: var(--spacing-lg);\n background: var(--color-background);\n}\n\n.profile-header,\n.profile-footer {\n grid-column: 1 / -1;\n}\n\n.center {\n justify-content: center;\n align-items: center;\n}\n\n.flex {\n display: flex;\n}\n.grid {\n display: grid;\n}\n\n/* Spacing utilities using CSS variables */\n.gap-xs { gap: var(--spacing-xs); }\n.gap-sm { gap: var(--spacing-sm); }\n.gap-md { gap: var(--spacing-md); }\n.gap-lg { gap: var(--spacing-lg); }\n.gap-xl { gap: var(--spacing-xl); }\n\n.mt-xs { margin-top: var(--spacing-xs); }\n.mt-sm { margin-top: var(--spacing-sm); }\n.mt-md { margin-top: var(--spacing-md); }\n.mt-lg { margin-top: var(--spacing-lg); }\n\n.mb-xs { margin-bottom: var(--spacing-xs); }\n.mb-sm { margin-bottom: var(--spacing-sm); }\n.mb-md { margin-bottom: var(--spacing-md); }\n.mb-lg { margin-bottom: var(--spacing-lg); }\n\n.p-xs { padding: var(--spacing-xs); }\n.p-sm { padding: var(--spacing-sm); }\n.p-md { padding: var(--spacing-md); }\n.p-lg { padding: var(--spacing-lg); }\n\n.rounded { border-radius: var(--border-radius-full); }\n.rounded-sm { border-radius: var(--border-radius-base); }\n\n.shadow { box-shadow: var(--box-shadow); }\n.shadow-sm { box-shadow: var(--box-shadow-sm); }\n\n.bg-primary {\n background: var(--color-primary);\n color: #fff;\n}\n.bg-card {\n background: var(--color-card-bg);\n}\n\n/* Accessibility utilities */\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n}\n\n.min-touch-target {\n min-height: var(--min-touch-target);\n min-width: var(--min-touch-target);\n}\n\n/* Enhanced accessibility utilities */\n.visually-hidden {\n position: absolute !important;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n margin: -1px !important;\n overflow: hidden !important;\n clip: rect(0, 0, 0, 0) !important;\n white-space: nowrap !important;\n border: 0 !important;\n}\n\n.visually-hidden.focusable:focus,\n.visually-hidden.focusable:active {\n position: static !important;\n width: auto !important;\n height: auto !important;\n padding: inherit !important;\n margin: inherit !important;\n overflow: visible !important;\n clip: auto !important;\n white-space: inherit !important;\n}\n\n/* Skip links utility */\n.skip-links {\n position: absolute;\n top: -100px;\n left: 0;\n z-index: 1000;\n}\n\n.skip-links a {\n position: absolute;\n left: 6px;\n top: 6px;\n padding: var(--spacing-sm);\n background: var(--color-primary);\n color: white;\n text-decoration: none;\n border-radius: var(--border-radius-base);\n}\n\n.skip-links a:focus {\n top: 6px;\n}\n\n.reduced-motion {\n animation: none !important;\n transition: none !important;\n}\n\n/* Focus management */\n.focus-ring {\n outline: 2px solid var(--color-primary);\n outline-offset: 2px;\n}\n\n.no-focus-ring {\n outline: none;\n}\n\n.no-focus-ring:focus-visible {\n outline: none;\n box-shadow: none;\n}\n\n/* ARIA live regions */\n.live-region {\n position: absolute;\n left: -10000px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n}\n\n/* Note: Use aria-live="polite" or aria-live="assertive" HTML attributes with .live-region */\n\n/* Text scaling utilities */\n.text-scale-friendly {\n line-height: 1.5;\n max-width: 70ch; /* Optimal reading length */\n}\n\n/* Text accessibility utilities */\n.text-readable {\n line-height: var(--line-height-base);\n max-width: 65ch;\n}\n\n.text-lg {\n font-size: var(--font-size-lg);\n line-height: var(--line-height-base);\n}\n\n.text-small {\n font-size: max(var(--font-size-sm), var(--min-font-size));\n line-height: var(--min-line-height);\n}\n\n.text-contrast-high {\n color: var(--color-text);\n font-weight: 600;\n}\n\n:focus-visible {\n outline: var(--focus-ring-width) solid var(--color-primary);\n outline-offset: 2px;\n box-shadow: 0 0 0 1px var(--color-background);\n}\n\n:focus:not(:focus-visible) {\n outline: none;\n box-shadow: none;\n}\n\n/* Better focus for text elements */\n.focusable-text:focus {\n background-color: rgba(124, 77, 255, 0.1);\n outline: 2px solid var(--color-primary);\n outline-offset: 2px;\n border-radius: 2px;\n}\n\n/* High contrast text */\n.high-contrast {\n color: var(--color-text);\n background: var(--color-background);\n border: 1px solid var(--color-border-pale);\n}\n\n/* ===========================================\n CONSOLIDATED COMPONENT PATTERNS\n =========================================== */\n\n/* Primary Button - used by ChatWithMe, ProfileCard */\n.btn-primary {\n min-height: var(--min-touch-target);\n padding: var(--spacing-sm) var(--spacing-md);\n border: 1px solid var(--color-primary);\n border-radius: var(--border-radius-base);\n background: var(--color-primary);\n color: white;\n font-weight: 600;\n cursor: pointer;\n transition: all var(--animation-duration) ease;\n}\n\n.btn-primary:hover {\n background: color-mix(in srgb, var(--color-primary) 90%, black);\n box-shadow: 0 2px 4px rgba(124, 77, 255, 0.2);\n}\n\n.btn-primary:active {\n box-shadow: 0 1px 2px rgba(124, 77, 255, 0.2);\n}\n\n.btn-primary:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n transform: none;\n}\n\n/* Action Button Focus - used by ChatWithMe, ProfileCard */\n.action-button-focus:focus,\n.action-button-focus:focus-visible {\n outline: 3px solid var(--color-primary) !important;\n outline-offset: 2px !important;\n box-shadow: 0 0 0 2px var(--color-background), 0 0 0 5px rgba(124, 77, 255, 0.25) !important;\n z-index: 1;\n}\n\n/* List Reset - used by FriendList, SocialCard, nav */\n.list-reset {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n/* Zebra Striping - used by FriendList, StuffCard tables */\n.zebra-stripe tr:nth-child(even),\n.zebra-stripe > *:nth-child(even) {\n background-color: rgba(0, 0, 0, 0.02);\n}\n\n/* Section Title - primary colored heading */\n.section-title {\n font-size: 1.25em;\n font-weight: 600;\n color: var(--color-primary);\n margin: 0;\n}\n\n/* Text Overflow - used by ProfileCard, SocialCard */\n.text-truncate {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.text-wrap-anywhere {\n overflow-wrap: anywhere;\n word-break: break-word;\n}\n\n/* Loading Text - primary colored centered loading indicator */\n.loading-text {\n color: var(--color-primary);\n text-align: center;\n margin: var(--spacing-md) 0;\n}\n\n/* Centered Section - flex column with center alignment */\n.section-centered {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n/* Card Section Background */\n.section-bg {\n background: var(--color-section-bg);\n border-radius: var(--border-radius-full);\n box-shadow: var(--box-shadow);\n padding: var(--spacing-md);\n}\n\n\n/* Transparent button override (for solid-ui integration) */\n.btn-transparent {\n background-color: transparent;\n}\n\n.btn-transparent:hover {\n background-color: transparent;\n}\n',"",{version:3,sources:["webpack://./node_modules/profile-pane/lib/styles/utilities.css"],names:[],mappings:"AAAA,sEAAsE;;AAEtE;EACE,WAAW;EACX,gBAAgB;EAChB,gBAAgB;EAChB,sBAAsB;EACtB,qBAAqB;AACvB;;AAEA;;gDAEgD;;AAEhD;EACE,aAAa;EACb,0DAA0D;EAC1D,sBAAsB;EACtB,mCAAmC;AACrC;;AAEA;;EAEE,mBAAmB;AACrB;;AAEA;EACE,uBAAuB;EACvB,mBAAmB;AACrB;;AAEA;EACE,aAAa;AACf;AACA;EACE,aAAa;AACf;;AAEA,0CAA0C;AAC1C,UAAU,sBAAsB,EAAE;AAClC,UAAU,sBAAsB,EAAE;AAClC,UAAU,sBAAsB,EAAE;AAClC,UAAU,sBAAsB,EAAE;AAClC,UAAU,sBAAsB,EAAE;;AAElC,SAAS,6BAA6B,EAAE;AACxC,SAAS,6BAA6B,EAAE;AACxC,SAAS,6BAA6B,EAAE;AACxC,SAAS,6BAA6B,EAAE;;AAExC,SAAS,gCAAgC,EAAE;AAC3C,SAAS,gCAAgC,EAAE;AAC3C,SAAS,gCAAgC,EAAE;AAC3C,SAAS,gCAAgC,EAAE;;AAE3C,QAAQ,0BAA0B,EAAE;AACpC,QAAQ,0BAA0B,EAAE;AACpC,QAAQ,0BAA0B,EAAE;AACpC,QAAQ,0BAA0B,EAAE;;AAEpC,WAAW,wCAAwC,EAAE;AACrD,cAAc,wCAAwC,EAAE;;AAExD,UAAU,6BAA6B,EAAE;AACzC,aAAa,gCAAgC,EAAE;;AAE/C;EACE,gCAAgC;EAChC,WAAW;AACb;AACA;EACE,gCAAgC;AAClC;;AAEA,4BAA4B;AAC5B;EACE,kBAAkB;EAClB,UAAU;EACV,WAAW;EACX,UAAU;EACV,YAAY;EACZ,gBAAgB;EAChB,sBAAsB;EACtB,mBAAmB;EACnB,SAAS;AACX;;AAEA;EACE,mCAAmC;EACnC,kCAAkC;AACpC;;AAEA,qCAAqC;AACrC;EACE,6BAA6B;EAC7B,qBAAqB;EACrB,sBAAsB;EACtB,qBAAqB;EACrB,uBAAuB;EACvB,2BAA2B;EAC3B,iCAAiC;EACjC,8BAA8B;EAC9B,oBAAoB;AACtB;;AAEA;;EAEE,2BAA2B;EAC3B,sBAAsB;EACtB,uBAAuB;EACvB,2BAA2B;EAC3B,0BAA0B;EAC1B,4BAA4B;EAC5B,qBAAqB;EACrB,+BAA+B;AACjC;;AAEA,uBAAuB;AACvB;EACE,kBAAkB;EAClB,WAAW;EACX,OAAO;EACP,aAAa;AACf;;AAEA;EACE,kBAAkB;EAClB,SAAS;EACT,QAAQ;EACR,0BAA0B;EAC1B,gCAAgC;EAChC,YAAY;EACZ,qBAAqB;EACrB,wCAAwC;AAC1C;;AAEA;EACE,QAAQ;AACV;;AAEA;EACE,0BAA0B;EAC1B,2BAA2B;AAC7B;;AAEA,qBAAqB;AACrB;EACE,uCAAuC;EACvC,mBAAmB;AACrB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,aAAa;EACb,gBAAgB;AAClB;;AAEA,sBAAsB;AACtB;EACE,kBAAkB;EAClB,cAAc;EACd,UAAU;EACV,WAAW;EACX,gBAAgB;AAClB;;AAEA,4FAA4F;;AAE5F,2BAA2B;AAC3B;EACE,gBAAgB;EAChB,eAAe,EAAE,2BAA2B;AAC9C;;AAEA,iCAAiC;AACjC;EACE,oCAAoC;EACpC,eAAe;AACjB;;AAEA;EACE,8BAA8B;EAC9B,oCAAoC;AACtC;;AAEA;EACE,yDAAyD;EACzD,mCAAmC;AACrC;;AAEA;EACE,wBAAwB;EACxB,gBAAgB;AAClB;;AAEA;EACE,2DAA2D;EAC3D,mBAAmB;EACnB,6CAA6C;AAC/C;;AAEA;EACE,aAAa;EACb,gBAAgB;AAClB;;AAEA,mCAAmC;AACnC;EACE,yCAAyC;EACzC,uCAAuC;EACvC,mBAAmB;EACnB,kBAAkB;AACpB;;AAEA,uBAAuB;AACvB;EACE,wBAAwB;EACxB,mCAAmC;EACnC,0CAA0C;AAC5C;;AAEA;;gDAEgD;;AAEhD,qDAAqD;AACrD;EACE,mCAAmC;EACnC,4CAA4C;EAC5C,sCAAsC;EACtC,wCAAwC;EACxC,gCAAgC;EAChC,YAAY;EACZ,gBAAgB;EAChB,eAAe;EACf,8CAA8C;AAChD;;AAEA;EACE,+DAA+D;EAC/D,6CAA6C;AAC/C;;AAEA;EACE,6CAA6C;AAC/C;;AAEA;EACE,YAAY;EACZ,mBAAmB;EACnB,eAAe;AACjB;;AAEA,0DAA0D;AAC1D;;EAEE,kDAAkD;EAClD,8BAA8B;EAC9B,4FAA4F;EAC5F,UAAU;AACZ;;AAEA,qDAAqD;AACrD;EACE,gBAAgB;EAChB,UAAU;EACV,SAAS;AACX;;AAEA,0DAA0D;AAC1D;;EAEE,qCAAqC;AACvC;;AAEA,4CAA4C;AAC5C;EACE,iBAAiB;EACjB,gBAAgB;EAChB,2BAA2B;EAC3B,SAAS;AACX;;AAEA,oDAAoD;AACpD;EACE,mBAAmB;EACnB,uBAAuB;EACvB,gBAAgB;AAClB;;AAEA;EACE,uBAAuB;EACvB,sBAAsB;AACxB;;AAEA,8DAA8D;AAC9D;EACE,2BAA2B;EAC3B,kBAAkB;EAClB,2BAA2B;AAC7B;;AAEA,yDAAyD;AACzD;EACE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;AACrB;;AAEA,4BAA4B;AAC5B;EACE,mCAAmC;EACnC,wCAAwC;EACxC,6BAA6B;EAC7B,0BAA0B;AAC5B;;;AAGA,2DAA2D;AAC3D;EACE,6BAA6B;AAC/B;;AAEA;EACE,6BAA6B;AAC/B",sourcesContent:['/* Utility-first CSS classes for layout, spacing, and responsiveness */\n\n.actionButton {\n width: 100%;\n min-width: 180px;\n max-width: 320px;\n box-sizing: border-box;\n display: inline-block;\n}\n\n/* ===========================================\n PROFILE GRID LAYOUT\n =========================================== */\n\n.profile-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(30em, 1fr));\n gap: var(--spacing-lg);\n background: var(--color-background);\n}\n\n.profile-header,\n.profile-footer {\n grid-column: 1 / -1;\n}\n\n.center {\n justify-content: center;\n align-items: center;\n}\n\n.flex {\n display: flex;\n}\n.grid {\n display: grid;\n}\n\n/* Spacing utilities using CSS variables */\n.gap-xs { gap: var(--spacing-xs); }\n.gap-sm { gap: var(--spacing-sm); }\n.gap-md { gap: var(--spacing-md); }\n.gap-lg { gap: var(--spacing-lg); }\n.gap-xl { gap: var(--spacing-xl); }\n\n.mt-xs { margin-top: var(--spacing-xs); }\n.mt-sm { margin-top: var(--spacing-sm); }\n.mt-md { margin-top: var(--spacing-md); }\n.mt-lg { margin-top: var(--spacing-lg); }\n\n.mb-xs { margin-bottom: var(--spacing-xs); }\n.mb-sm { margin-bottom: var(--spacing-sm); }\n.mb-md { margin-bottom: var(--spacing-md); }\n.mb-lg { margin-bottom: var(--spacing-lg); }\n\n.p-xs { padding: var(--spacing-xs); }\n.p-sm { padding: var(--spacing-sm); }\n.p-md { padding: var(--spacing-md); }\n.p-lg { padding: var(--spacing-lg); }\n\n.rounded { border-radius: var(--border-radius-full); }\n.rounded-sm { border-radius: var(--border-radius-base); }\n\n.shadow { box-shadow: var(--box-shadow); }\n.shadow-sm { box-shadow: var(--box-shadow-sm); }\n\n.bg-primary {\n background: var(--color-primary);\n color: #fff;\n}\n.bg-card {\n background: var(--color-card-bg);\n}\n\n/* Accessibility utilities */\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n}\n\n.min-touch-target {\n min-height: var(--min-touch-target);\n min-width: var(--min-touch-target);\n}\n\n/* Enhanced accessibility utilities */\n.visually-hidden {\n position: absolute !important;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n margin: -1px !important;\n overflow: hidden !important;\n clip: rect(0, 0, 0, 0) !important;\n white-space: nowrap !important;\n border: 0 !important;\n}\n\n.visually-hidden.focusable:focus,\n.visually-hidden.focusable:active {\n position: static !important;\n width: auto !important;\n height: auto !important;\n padding: inherit !important;\n margin: inherit !important;\n overflow: visible !important;\n clip: auto !important;\n white-space: inherit !important;\n}\n\n/* Skip links utility */\n.skip-links {\n position: absolute;\n top: -100px;\n left: 0;\n z-index: 1000;\n}\n\n.skip-links a {\n position: absolute;\n left: 6px;\n top: 6px;\n padding: var(--spacing-sm);\n background: var(--color-primary);\n color: white;\n text-decoration: none;\n border-radius: var(--border-radius-base);\n}\n\n.skip-links a:focus {\n top: 6px;\n}\n\n.reduced-motion {\n animation: none !important;\n transition: none !important;\n}\n\n/* Focus management */\n.focus-ring {\n outline: 2px solid var(--color-primary);\n outline-offset: 2px;\n}\n\n.no-focus-ring {\n outline: none;\n}\n\n.no-focus-ring:focus-visible {\n outline: none;\n box-shadow: none;\n}\n\n/* ARIA live regions */\n.live-region {\n position: absolute;\n left: -10000px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n}\n\n/* Note: Use aria-live="polite" or aria-live="assertive" HTML attributes with .live-region */\n\n/* Text scaling utilities */\n.text-scale-friendly {\n line-height: 1.5;\n max-width: 70ch; /* Optimal reading length */\n}\n\n/* Text accessibility utilities */\n.text-readable {\n line-height: var(--line-height-base);\n max-width: 65ch;\n}\n\n.text-lg {\n font-size: var(--font-size-lg);\n line-height: var(--line-height-base);\n}\n\n.text-small {\n font-size: max(var(--font-size-sm), var(--min-font-size));\n line-height: var(--min-line-height);\n}\n\n.text-contrast-high {\n color: var(--color-text);\n font-weight: 600;\n}\n\n:focus-visible {\n outline: var(--focus-ring-width) solid var(--color-primary);\n outline-offset: 2px;\n box-shadow: 0 0 0 1px var(--color-background);\n}\n\n:focus:not(:focus-visible) {\n outline: none;\n box-shadow: none;\n}\n\n/* Better focus for text elements */\n.focusable-text:focus {\n background-color: rgba(124, 77, 255, 0.1);\n outline: 2px solid var(--color-primary);\n outline-offset: 2px;\n border-radius: 2px;\n}\n\n/* High contrast text */\n.high-contrast {\n color: var(--color-text);\n background: var(--color-background);\n border: 1px solid var(--color-border-pale);\n}\n\n/* ===========================================\n CONSOLIDATED COMPONENT PATTERNS\n =========================================== */\n\n/* Primary Button - used by ChatWithMe, ProfileCard */\n.btn-primary {\n min-height: var(--min-touch-target);\n padding: var(--spacing-sm) var(--spacing-md);\n border: 1px solid var(--color-primary);\n border-radius: var(--border-radius-base);\n background: var(--color-primary);\n color: white;\n font-weight: 600;\n cursor: pointer;\n transition: all var(--animation-duration) ease;\n}\n\n.btn-primary:hover {\n background: color-mix(in srgb, var(--color-primary) 90%, black);\n box-shadow: 0 2px 4px rgba(124, 77, 255, 0.2);\n}\n\n.btn-primary:active {\n box-shadow: 0 1px 2px rgba(124, 77, 255, 0.2);\n}\n\n.btn-primary:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n transform: none;\n}\n\n/* Action Button Focus - used by ChatWithMe, ProfileCard */\n.action-button-focus:focus,\n.action-button-focus:focus-visible {\n outline: 3px solid var(--color-primary) !important;\n outline-offset: 2px !important;\n box-shadow: 0 0 0 2px var(--color-background), 0 0 0 5px rgba(124, 77, 255, 0.25) !important;\n z-index: 1;\n}\n\n/* List Reset - used by FriendList, SocialCard, nav */\n.list-reset {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n/* Zebra Striping - used by FriendList, StuffCard tables */\n.zebra-stripe tr:nth-child(even),\n.zebra-stripe > *:nth-child(even) {\n background-color: rgba(0, 0, 0, 0.02);\n}\n\n/* Section Title - primary colored heading */\n.section-title {\n font-size: 1.25em;\n font-weight: 600;\n color: var(--color-primary);\n margin: 0;\n}\n\n/* Text Overflow - used by ProfileCard, SocialCard */\n.text-truncate {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.text-wrap-anywhere {\n overflow-wrap: anywhere;\n word-break: break-word;\n}\n\n/* Loading Text - primary colored centered loading indicator */\n.loading-text {\n color: var(--color-primary);\n text-align: center;\n margin: var(--spacing-md) 0;\n}\n\n/* Centered Section - flex column with center alignment */\n.section-centered {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n/* Card Section Background */\n.section-bg {\n background: var(--color-section-bg);\n border-radius: var(--border-radius-full);\n box-shadow: var(--box-shadow);\n padding: var(--spacing-md);\n}\n\n\n/* Transparent button override (for solid-ui integration) */\n.btn-transparent {\n background-color: transparent;\n}\n\n.btn-transparent:hover {\n background-color: transparent;\n}\n'],sourceRoot:""}]);const s=r},9405(e,t,n){"use strict";n.d(t,{A:()=>s});var a=n(1354),i=n.n(a),o=n(6314),r=n.n(o)()(i());r.push([e.id,"/* Styles extracted from manager.js */\n\n.obj {\n margin: 0.2em;\n border: none;\n padding: 0;\n vertical-align: top;\n}\n\n.pred, .pred.internal {\n /* Add any specific styles for predicate TDs here */\n}\n\n.iconTD {\n margin: 0.2em;\n border: none;\n padding: 0;\n vertical-align: top;\n width: 0px;\n}\n\n.labelTD {\n width: 100%;\n}\n\n.paneIconTray {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n}\n\n.paneShown {\n width: 24px;\n border-radius: 0.5em;\n border-top: solid #222 1px;\n border-left: solid #222 0.1em;\n border-bottom: solid #eee 0.1em;\n border-right: solid #eee 0.1em;\n margin-left: 1em;\n padding: 3px;\n background-color: #ffd;\n}\n\n.paneHidden {\n width: 24px;\n border-radius: 0.5em;\n margin-left: 1em;\n padding: 3px;\n}\n\n.header {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n}\n\n.strongHeader {\n font-size: 150%;\n margin: 0 0.6em 0 0;\n padding: 0.1em 0.4em;\n}\n\n.tableFullWidth {\n width: 100%;\n}\n\n.placeholderTable {\n width: 100%;\n}\n\n.tdFlex {\n margin: 0.2em;\n border: none;\n padding: 0;\n vertical-align: top;\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n}\n","",{version:3,sources:["webpack://./src/outline/manager.css"],names:[],mappings:"AAAA,qCAAqC;;AAErC;EACE,aAAa;EACb,YAAY;EACZ,UAAU;EACV,mBAAmB;AACrB;;AAEA;EACE,mDAAmD;AACrD;;AAEA;EACE,aAAa;EACb,YAAY;EACZ,UAAU;EACV,mBAAmB;EACnB,UAAU;AACZ;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,aAAa;EACb,2BAA2B;EAC3B,mBAAmB;AACrB;;AAEA;EACE,WAAW;EACX,oBAAoB;EACpB,0BAA0B;EAC1B,6BAA6B;EAC7B,+BAA+B;EAC/B,8BAA8B;EAC9B,gBAAgB;EAChB,YAAY;EACZ,sBAAsB;AACxB;;AAEA;EACE,WAAW;EACX,oBAAoB;EACpB,gBAAgB;EAChB,YAAY;AACd;;AAEA;EACE,aAAa;EACb,2BAA2B;EAC3B,mBAAmB;EACnB,eAAe;AACjB;;AAEA;EACE,eAAe;EACf,mBAAmB;EACnB,oBAAoB;AACtB;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,aAAa;EACb,YAAY;EACZ,UAAU;EACV,mBAAmB;EACnB,aAAa;EACb,8BAA8B;EAC9B,mBAAmB;AACrB",sourcesContent:["/* Styles extracted from manager.js */\n\n.obj {\n margin: 0.2em;\n border: none;\n padding: 0;\n vertical-align: top;\n}\n\n.pred, .pred.internal {\n /* Add any specific styles for predicate TDs here */\n}\n\n.iconTD {\n margin: 0.2em;\n border: none;\n padding: 0;\n vertical-align: top;\n width: 0px;\n}\n\n.labelTD {\n width: 100%;\n}\n\n.paneIconTray {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n}\n\n.paneShown {\n width: 24px;\n border-radius: 0.5em;\n border-top: solid #222 1px;\n border-left: solid #222 0.1em;\n border-bottom: solid #eee 0.1em;\n border-right: solid #eee 0.1em;\n margin-left: 1em;\n padding: 3px;\n background-color: #ffd;\n}\n\n.paneHidden {\n width: 24px;\n border-radius: 0.5em;\n margin-left: 1em;\n padding: 3px;\n}\n\n.header {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n}\n\n.strongHeader {\n font-size: 150%;\n margin: 0 0.6em 0 0;\n padding: 0.1em 0.4em;\n}\n\n.tableFullWidth {\n width: 100%;\n}\n\n.placeholderTable {\n width: 100%;\n}\n\n.tdFlex {\n margin: 0.2em;\n border: none;\n padding: 0;\n vertical-align: top;\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n}\n"],sourceRoot:""}]);const s=r},5089(e,t,n){"use strict";n.d(t,{A:()=>s});var a=n(1354),i=n.n(a),o=n(6314),r=n.n(o)()(i());r.push([e.id,".contentPaneLiteral {\n white-space: pre-wrap;\n}\n\n.dataContentPaneRowEven {\n background-color: #f0f0f0;\n}\n\n.dataContentPaneRowOdd {\n background-color: white;\n}\n\n.dataContentPaneTopAlignedRow {\n vertical-align: top;\n}\n\n.dataContentPaneNestedLight {\n background-color: white;\n}\n\n.dataContentPaneNestedDark {\n background-color: #eee;\n}","",{version:3,sources:["webpack://./src/styles/dataContentPane.css"],names:[],mappings:"AAAA;EACE,qBAAqB;AACvB;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,uBAAuB;AACzB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,uBAAuB;AACzB;;AAEA;EACE,sBAAsB;AACxB",sourcesContent:[".contentPaneLiteral {\n white-space: pre-wrap;\n}\n\n.dataContentPaneRowEven {\n background-color: #f0f0f0;\n}\n\n.dataContentPaneRowOdd {\n background-color: white;\n}\n\n.dataContentPaneTopAlignedRow {\n vertical-align: top;\n}\n\n.dataContentPaneNestedLight {\n background-color: white;\n}\n\n.dataContentPaneNestedDark {\n background-color: #eee;\n}"],sourceRoot:""}]);const s=r},3913(e,t,n){"use strict";n.d(t,{A:()=>s});var a=n(1354),i=n.n(a),o=n(6314),r=n.n(o)()(i());r.push([e.id,".humanReadableFrame {\n\tborder: 1px solid;\n\tpadding: 1em;\n\theight: var(--human-readable-height, 30em);\n\twidth: 800px;\n\tresize: both;\n\toverflow: auto;\n}\n","",{version:3,sources:["webpack://./src/styles/humanReadablePane.css"],names:[],mappings:"AAAA;CACC,iBAAiB;CACjB,YAAY;CACZ,0CAA0C;CAC1C,YAAY;CACZ,YAAY;CACZ,cAAc;AACf",sourcesContent:[".humanReadableFrame {\n\tborder: 1px solid;\n\tpadding: 1em;\n\theight: var(--human-readable-height, 30em);\n\twidth: 800px;\n\tresize: both;\n\toverflow: auto;\n}\n"],sourceRoot:""}]);const s=r},2759(e,t,n){"use strict";n.d(t,{A:()=>s});var a=n(1354),i=n.n(a),o=n(6314),r=n.n(o)()(i());r.push([e.id,".internalPaneContent {\n background-color: #ddddff; \n padding: var(--spacing-xs, 0.5em); \n border-radius: 1em;\n}\n.internalPaneControls {\n width: 100%;\n margin: var(--spacing-sm, 1em);\n}\n.internalPaneDeleteButton {\n height: 2em;\n}","",{version:3,sources:["webpack://./src/styles/internalPane.css"],names:[],mappings:"AAAA;EACE,yBAAyB;EACzB,iCAAiC;EACjC,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,8BAA8B;AAChC;AACA;EACE,WAAW;AACb",sourcesContent:[".internalPaneContent {\n background-color: #ddddff; \n padding: var(--spacing-xs, 0.5em); \n border-radius: 1em;\n}\n.internalPaneControls {\n width: 100%;\n margin: var(--spacing-sm, 1em);\n}\n.internalPaneDeleteButton {\n height: 2em;\n}"],sourceRoot:""}]);const s=r},649(e,t,n){"use strict";n.d(t,{A:()=>s});var a=n(1354),i=n.n(a),o=n(6314),r=n.n(o)()(i());r.push([e.id,".padPaneTable {\n border-collapse: collapse;\n width: 100%;\n background-color: white; \n min-width: 94%; \n margin-right: 3%;\n margin-left: 3%;\n min-height: 13em;\n}\n\n.padPaneSuccess {\n font-size: 140%;\n}","",{version:3,sources:["webpack://./src/styles/padPane.css"],names:[],mappings:"AAAA;EACE,yBAAyB;EACzB,WAAW;EACX,uBAAuB;EACvB,cAAc;EACd,gBAAgB;EAChB,eAAe;EACf,gBAAgB;AAClB;;AAEA;EACE,eAAe;AACjB",sourcesContent:[".padPaneTable {\n border-collapse: collapse;\n width: 100%;\n background-color: white; \n min-width: 94%; \n margin-right: 3%;\n margin-left: 3%;\n min-height: 13em;\n}\n\n.padPaneSuccess {\n font-size: 140%;\n}"],sourceRoot:""}]);const s=r},6314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",a=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,a,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(a)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(r[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);a&&r[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},1354(e){"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var a=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),o="/*# ".concat(i," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},6320(e){"use strict";var t={single_source_shortest_paths:function(e,n,a){var i={},o={};o[n]=0;var r,s,l,c,u,d,p,f=t.PriorityQueue.make();for(f.push(n,0);!f.empty();)for(l in s=(r=f.pop()).value,c=r.cost,u=e[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],p=o[l],(void 0===o[l]||p>d)&&(o[l]=d,f.push(l,d),i[l]=s));if(void 0!==a&&void 0===o[a]){var m=["Could not find a path from ",n," to ",a,"."].join("");throw new Error(m)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],a=t;a;)n.push(a),e[a],a=e[a];return n.reverse(),n},find_path:function(e,n,a){var i=t.single_source_shortest_paths(e,n,a);return t.extract_shortest_path_from_predecessor_list(i,a)},PriorityQueue:{make:function(e){var n,a=t.PriorityQueue,i={};for(n in e=e||{},a)a.hasOwnProperty(n)&&(i[n]=a[n]);return i.queue=[],i.sorter=e.sorter||a.default_sorter,i},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},4146(e,t,n){"use strict";var a=n(3404),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return a.isMemo(e)?r:s[e.$$typeof]||i}s[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[a.Memo]=r;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,a){if("string"!=typeof n){if(m){var i=f(n);i&&i!==m&&e(t,i,a)}var r=u(n);d&&(r=r.concat(d(n)));for(var s=l(t),h=l(n),g=0;g<r.length;++g){var b=r[g];if(!(o[b]||a&&a[b]||h&&h[b]||s&&s[b])){var v=p(n,b);try{c(t,b,v)}catch(e){}}}}return t}},3072(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,a=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,r=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case u:case d:case o:case s:case r:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case h:case l:return e;default:return t}}case i:return t}}}function A(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=a,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=h,t.Portal=i,t.Profiler=s,t.StrictMode=r,t.Suspense=f,t.isAsyncMode=function(e){return A(e)||x(e)===u},t.isConcurrentMode=A,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===h},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===r},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===r||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===y||e.$$typeof===w||e.$$typeof===b)},t.typeOf=x},3404(e,t,n){"use strict";e.exports=n(3072)},3931(e,t,n){var a,i,o;e.exports=(a=n(9426),i=n(5663),o=n(5491),(()=>{"use strict";var e={85:(e,t,n)=>{n.d(t,{board:()=>r});var a=n(426),i=n(663),o=n(264);function r(e,t,n,r){const s=e.createElement("div");s.style="width: 100%;",s.style.margin="1em";const l=s.appendChild(e.createElement("table"));l.style="width: 100%;",l.style.borderCollapse="collapse";const c=l.appendChild(e.createElement("tr")),u=l.appendChild(e.createElement("tr"));function d(t,n){const o=e.createElement("div"),r=o.appendChild(e.createElement("table")),s=i.store.each(t,a.ns.rdf("type")).map(e=>i.store.any(e,a.ns.ui("backgroundColor"))).filter(e=>e);r.appendChild(a.widgets.personTR(e,null,t)),r.subject=t,r.style="margin: 1em;";const l=s[0]||i.store.any(n,a.ns.ui("backgroundColor"));return o.style.backgroundColor=l?l.value:"#fff",o}function p(e,t,n,a){const o=e.map(e=>[i.store.any(e,t)||n,e]);return o.sort(),a&&o.reverse(),o.map(e=>e[1])}return t.forEach(t=>{const n=c.appendChild(e.createElement("th"));n.textContent=a.utils.label(t,!0),n.subject=t,n.style="margin: 0.3em; padding: 0.5em 1em; font-treatment: bold; font-size: 120%;";const o=u.appendChild(e.createElement("td"));o.subject=t,o.style="border: 0.01em solid white; padding: 0.1em;",r.columnDropHandler&&a.widgets.makeDropTarget(o,function(e){e.forEach(function(e){console.log("Dropped on column: "+e);const n=i.store.sym(e);r.columnDropHandler(n,t)})})}),s.refresh=function(){const e=new o.Literal(new Date),t=n||r.renderItem||d;function s(e){const n=t(e);return a.widgets.makeDraggable(n,e),n.subject=e,n}for(let t=u.firstChild;t;t=t.nextSibling){const n=t.subject;let o=i.store.each(null,a.ns.rdf("type"),n);const l=r.sortBy||a.ns.dct("created");r.filter&&(o=o.filter(r.filter));const c=p(o,l,e,!0);a.utils.syncTableToArrayReOrdered(t,c,s)}},s.refresh(),s}},178:(e,t,n)=>{n.d(t,{exposeOverlay:()=>m,getState:()=>d,renderIssue:()=>g,renderIssueCard:()=>f});var a=n(426),i=n(663),o=n(324),r=n(264);const s=i.store,l=!1,c=a.icons.iconBase+"noun_17020_gray-tick.svg",u=(a.icons.iconBase,a.icons.iconBase+"noun_17020.svg");function d(e,t){const n=s.the(e,a.ns.wf("tracker"),null,e.doc()),i=s.any(n,a.ns.wf("issueClass"));t=t||i;const o=s.each(e,a.ns.rdf("type")).filter(e=>s.holds(e,a.ns.rdfs("subClassOf"),t));if(1!==o.length)throw new Error("Issue must have one type as state: "+o.length);return o[0]}function p(e){const t=s.each(e,a.ns.rdf("type")).map(e=>s.any(e,a.ns.ui("backgroundColor"))).filter(e=>!!e);return t.length?t[0].value:null}function f(e,t){function n(){const t=p(e)||"white";r.style.backgroundColor=t,u.style.backgroundColor=t}const i=t.dom,o=!p(e),r=i.createElement("div"),l=r.appendChild(i.createElement("table"));l.style.width="100%",l.appendChild(a.widgets.personTR(i,null,e,{draggable:!1})),l.subject=e,r.style="border-radius: 0.4em; border: 0.05em solid grey; margin: 0.3em;",r.firstChild.firstChild.firstChild.firstChild.setAttribute("src",a.icons.iconBase+"noun_Danger_1259514.svg");const c=r.firstChild.firstChild.children[2],u=a.widgets.button(i,a.icons.iconBase+"noun_253504.svg","edit",async n=>{m(e,t)}),d=u.firstChild;if(d.style.width=d.style.height="1.5em",c.appendChild(u),o){const n=a.widgets.deleteButtonWithCheck(i,c,"issue",async function(){try{await s.updater.update(s.connectedStatements(e))}catch(e){!function(e,t){console.warn(e),t.paneDiv.appendChild(a.widgets.errorMessageBlock(t.dom,e))}(`Unable to delete issue: ${e}`,t)}console.log("User deleted issue "+e),r.parentNode.removeChild(r),a.widgets.refreshTree(t.paneDiv)});c.appendChild(n)}return r.style.maxWidth="24em",r.refresh=n,n(),r}function m(e,t){const n=t.overlay;n.innerHTML="";const i=n.appendChild(a.widgets.button(t.dom,a.icons.iconBase+"noun_1180156.svg","close",function(){n.innerHTML="",n.style.visibility="hidden"}));i.style.float="right",i.style.margin="0.7em",delete i.style.backgroundColor,n.style.visibility="visible",n.appendChild(g(e,t)),n.firstChild.style.overflow="auto"}function h(e,t){const n=e.createElement("div");return n.setAttribute("style","height: 1em; margin: 0.5em;"),n.style.backgroundColor=t,n}function g(e,t){function n(t,n,i){if(l){if(!g(v,"trackLastModified"))return;const t=n.statementsMatching(e,a.ns.dct("modified")).concat(n.statementsMatching(e,a.ns.wf("modifiedBy"))),o=[r.st(e,a.ns.dct("modified"),new Date,i)];A&&o.push(r.st(e,a.ns.wf("modifiedBy"),A,i)),n.updater.update(t,o,function(e,t,n){})}}function d(e,t){const n=b.createElement("pre");return n.setAttribute("style",t||"color: grey"),x.appendChild(n),n.appendChild(b.createTextNode(e)),n}function f(e){console.warn(e),x.appendChild(a.widgets.errorMessageBlock(b,e))}function m(e,t){e||f("Sorry, failed to save your change:\n"+t)}function g(e,t){const n=s.any(e,a.ns.ui(t));return!(!n||!n.value)}const b=t.dom,v=s.the(e,a.ns.wf("tracker"),null,e.doc());if(!v)throw new Error("No tracker");const y=s.any(v,a.ns.wf("stateStore")),w=e.doc(),x=b.createElement("div"),A=i.authn.currentUser(),C=p(e)||"white";!function(){const t="padding: 0.5em 1.5em 1em 1.5em; border: 0.7em;border-color: "+(p(e)||"#eee")+"; ";x.setAttribute("style",t),x.style.backgroundColor="white"}(),i.authn.checkUser();const k=x.appendChild(a.widgets.button(b,function(e){return function(e){return!!s.findTypeURIs(e)[a.ns.wf("Open").uri]}(e)?c:u}(e)));a.widgets.makeDraggable(k,e);const E=s.any(v,a.ns.wf("issueClass"));if(!E)throw new Error("This tracker "+v+" has no issueClass");const T=a.widgets.makeSelectForCategory(b,s,e,E,y,function(e,t){e?(n(0,s,w),a.widgets.refreshTree(x)):console.log("Failed to change state:\n"+t)});x.appendChild(T);const S=s.each(v,a.ns.wf("issueCategory"));for(const t of S)x.appendChild(a.widgets.makeSelectForCategory(b,s,e,t,y,function(e,t){e?(n(0,s,w),a.widgets.refreshTree(x)):console.log("Failed to change category:\n"+t)}));const P=b.createElement("a");P.setAttribute("href",v.uri),P.setAttribute("style","float:right"),x.appendChild(P).textContent=a.utils.label(v),P.addEventListener("click",a.widgets.openHrefInOutlineMode,!0);const B=a.ns.wf("coreIsueForm");r.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',s,B.doc().uri,"text/turtle");const N=a.widgets.appendForm(b,null,{},e,B,y,m);x.appendChild(N),N.style.backgroundColor=C;const I=s.statementsMatching(e,a.ns.wf("assignee"));if(I.length>1){d("Weird, was assigned to more than one person. Fixing ..");const e=I.slice(1);s.updater.update(e,[],function(e,t,n){t?d("Now fixed."):f("Fixed failed: "+n)})}function _(e){return a.widgets.personTR(b,a.ns.wf("dependent"),e,{link:!1})}function O(e,t){t=t||[];const n=s.any(null,a.ns.wf("dependent"),e,e.doc());return n?O(n,[n].concat(t)):t}if(async function(){const t=s.each(e,a.ns.wf("assigneeGroup"));await s.fetcher.load(t);const n=t.map(e=>s.each(e,a.ns.vcard("member"),null,e.doc())).flat(),i=s.any(null,a.ns.doap("bug-database"),v);i&&await s.fetcher.load(i);const o=i?s.each(i,a.ns.doap("developer")):[];return n.concat(o)}().then(t=>{if(t.length){t.forEach(function(e){s.fetcher.lookUpThing(e)});const i={nullLabel:"(unassigned)"};x.appendChild(a.widgets.makeSelectForOptions(b,s,e,a.ns.wf("assignee"),t,i,w,function(e,t){e?n(0,s,w):console.log("Failed to change assignee:\n"+t)}))}}),g(v,"allowSubIssues")){const t=x.appendChild(b.createElement("div"));t.style="margin: 1em; padding: 1em;",t.appendChild(b.createElement("h4")).textContent="Super Issues";const n=t.appendChild(b.createElement("div"));n.style.display="flex",n.refresh=function(){const t=O(e);a.utils.syncTableToArrayReOrdered(n,t,_)},n.refresh(),t.appendChild(b.createElement("h4")).textContent="Sub Issues";const i=t.appendChild(b.createElement("div"));i.style.display="flex",i.style.flexDirection="reverse",i.refresh=function(){const t=s.each(e,a.ns.wf("dependent"),null,e.doc());a.utils.syncTableToArrayReOrdered(i,t,_)},i.refresh();const r=b.createElement("button");r.setAttribute("type","button"),t.appendChild(r);const l=a.utils.label(E);r.innerHTML="New sub "+l,r.setAttribute("style","float: right; margin: 0.5em 1em;"),r.addEventListener("click",function(n){t.insertBefore((0,o.newIssueForm)(b,s,v,e,i.refresh),r.nextSibling)},!1)}x.appendChild(b.createElement("br"));const L=s.any(v,a.ns.wf("extrasEntryForm"));L&&a.widgets.appendForm(b,x,{},e,L,y,m);const F=x.appendChild(h(b,C));let R;s.anyValue(v,a.ns.wf("issueURITemplate"))?R=e.doc():(R=s.any(v,a.ns.wf("messageStore")),R||(R=s.any(v,a.ns.wf("stateStore"))),s.sym(R.uri+"#Chat"+(new Date).getTime())),s.fetcher.nowOrWhenFetched(R,function(t,n,i){if(t){const t=(0,a.messageArea)(b,s,e,R);x.insertBefore(t,F),x.insertBefore(h(b,C),t)}else{const e=b.createElement("p");e.textContent=n,x.insertBefore(e,F)}}),x.appendChild(b.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 M=e.uri.endsWith("/index.ttl#this")?e.uri.slice(0,14)+"Files/":e.dir().uri+"Files/"+e.uri.split("#")[1]+"/";a.widgets.attachmentList(b,e,x,{doc:y,promptIcon:a.icons.iconBase+"noun_25830.svg",uploadFolder:s.sym(M),predicate:a.ns.wf("attachment")}),a.widgets.deleteButtonWithCheck(b,x,"issue",async function(){try{await s.updater.update(s.connectedStatements(e))}catch(e){f(`Unable to delete issue: ${e}`)}f("DELETED OK"),x.style.backgroundColor="#eee",x.style.fontColor="orange"}).style.float="right";const D=b.createElement("button");return D.textContent="refresh messages",D.addEventListener("click",async function(e){try{await s.fetcher.load(R,{force:!0,clearPreviousData:!0})}catch(e){return void alert(e)}a.widgets.refreshTree(x)},!1),D.setAttribute("style",a.style.button),x.appendChild(D),x}},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=o},324:(e,t,n)=>{n.d(t,{newIssueForm:()=>o});var a=n(426),i=n(264);function o(e,t,n,o,r){const s=e.createElement("div"),l=t.any(n,a.ns.wf("stateStore")),c=t.any(n,a.ns.wf("issueClass")),u=a.utils.label(c);s.innerHTML="<h2>Add new "+(o?"sub ":"")+u+"</h2><p>Title of new "+u+":</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=[],c=t.anyValue(n,a.ns.wf("issueURITemplate")),u=c?t.sym(function(e){const t=new i.Literal(new Date),n=""+(new Date).getTime(),a=t.value.slice(0,4),o=t.value.slice(5,7),r=t.value.slice(8,10);return e.replace("{N}",n).replace("{YYYY}",a).replace("{MM}",o).replace("{DD}",r)}(i.uri.join(c,l.uri))):t.sym(l.uri+"#Iss"+(new Date).getTime()),p=u.doc(),f=t.literal(d.value);e.push(new i.Statement(u,a.ns.wf("tracker"),n,l)),e.push(new i.Statement(u,a.ns.dc("title"),f,l)),e.push(new i.Statement(u,a.ns.dct("created"),new Date,l));const m=o?t.each(o,a.ns.rdf("type"),null,o.doc()):t.each(n,a.ns.wf("initialState"));for(const t of m)e.push(new i.Statement(u,a.ns.rdf("type"),t,l));o&&e.push(new i.Statement(o,a.ns.wf("dependent"),u,l)),c&&(e.push(new i.Statement(u,a.ns.wf("tracker"),n,p)),e.push(new i.Statement(u,a.ns.rdfs("seeAlso"),l,p))),t.updater.update([],e,function(e,t,n){t?(s.parentNode.removeChild(s),r(u)):console.log("Error: can't save new issue:"+n)})}()},!1),s.appendChild(d),d.focus(),s}},426:e=>{e.exports=a},663:e=>{e.exports=i},685:(e,t,n)=>{n.d(t,{csvButton:()=>r});var a=n(426),i=n(663);function o(e){const t=e.replaceAll("\n"," ");if(!t.includes(","))return t;const n='"'+t.replaceAll('"','""')+'"';if(console.log("Quoted: >>>"+n+"<<<"),n.slice(1,-1).replaceAll('""',"").includes('"'))throw new Error("CSV inconsistecy");return n}function r(e,t){const n=e.createElement("div"),r=a.widgets.button(e,a.icons.iconBase+"noun_Document_998605.svg","Copy as CSV",async e=>{const n=r.parentNode.parentNode;console.log("button gparent div",n),n.addEventListener("copy",e=>{const n=function(e,t){const n=e.any(t,a.ns.wf("stateStore")),i=e.each(null,a.ns.wf("tracker"),t,n);console.log(" CSV: Tasks:",i.length);const r=[{label:"Name",predicate:a.ns.dc("title")}],s=e.any(t,a.ns.wf("issueClass"));console.log(" CSV: States - main superclass:",s);const l={label:"State",category:s};console.log(" CSV: found column from state",l),r.push(l);const c=e.each(t,a.ns.wf("issueCategory"));console.log(" CSV: Categories : ",c),console.log(" CSV: Categories : length: ",c.length),console.log(" CSV: Categories : first: ",c[0]);const u=c;for(const e of u){const t={label:a.utils.label(e),category:e};console.log(" CSV: found column from classifications",t),r.push(t)}const d=e.any(t,a.ns.wf("extrasEntryForm"),null,null);if(console.log(" CSV: Form : ",d),d){const t=e.any(d,a.ns.ui("parts"),null,d.doc());console.log(" CSV: parts : ",t);const n=t.elements;console.log(" CSV: fields : ",n);for(const t of n){const n=e.any(t,a.ns.ui("property"));if(n){const e={label:a.utils.label(n),predicate:n};console.log(" CSV: found column from form",e),r.push(e)}}}r.push({label:"Description",predicate:a.ns.wf("description")}),console.log("Columns: ",r.length);const p=r.map(e=>e.label).join(",")+"\n";return console.log("CSV: Header= ",p),p+i.map(function(t){return r.map(n=>function(t,n){let i;if(n.predicate)return i=e.any(t,n.predicate),i?i.value:"--";if(!n.category)throw new Error("wot no pred or cat",n);{const o=e.each(t,a.ns.rdf("type"));for(const t of o)e.holds(t,a.ns.rdfs("subClassOf"),n.category)&&(i=t);if(!i)return"?"+a.utils.label(n.category)}return a.utils.label(i)}(t,n)).map(o).join(",")+"\n"}).join("")}(i.store,t);e.clipboardData.setData("text/plain",n),e.clipboardData.setData("text/csv",n),alert("Copy data: "+n),e.preventDefault()})});return n.appendChild(r),n}},719:(e,t,n)=>{n.d(t,{newTrackerButton:()=>l});var a=n(426),i=n(264),o=n(663);const r=a.ns,s=o.store.updater;function l(e,t){const n=a.login.newAppInstance(t.dom,{noun:"tracker"},function(n,o){function l(e){if(void 0!==e.elements)return e.elements.map(l);if(void 0===e.uri)return e;let t=e.uri;return t===p.uri?f:(t.slice(0,h.length)===h&&(t=o+t.slice(h.length)),d.sym(t))}const c="issuetracker.w3.org",u=a.ns.space,d=t.session.store;if(!o&&("/"!==(o=d.any(n,u("uriPrefix")).value).slice(-1)&&(i.log.error(c+": No / at end of uriPrefix "+o),o+="/"),o+=c+"/"+(new Date).getTime()+"/",!confirm("Make new tracker at "+o+"?")))return;const p=d.any(e,r.wf("stateStore")),f=d.sym(o+"store.ttl"),m=e.doc(),h=m.uri.slice(0,m.uri.lastIndexOf("/")+1),g=l(m),b=l(e),v=d.statementsMatching(void 0,void 0,void 0,m);for(let e=0;e<v.length;e++){const t=v[e];d.add(l(t.subject),l(t.predicate),l(t.object),g)}d.add(b,a.ns.space("inspiration"),e,p),d.add(b,a.ns.space("inspiration"),e,g),s.put(g,d.statementsMatching(void 0,void 0,void 0,g),"text/turtle",function(e,t,n){t?s.put(f,[],"text/turtle",function(e,t,n){t?console.info("Ok The tracker created OK at: "+b.uri+"\nMake a note of it, bookmark it. "):console.log("FAILED to set up new store at: "+f.uri+" : "+n)}):console.log("FAILED to save new tracker at: "+g.uri+" : "+n)})});return n.setAttribute("style","margin: 0.5em 1em;"),n}}},t={};function n(a){var i=t[a];if(void 0!==i)return i.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};n.r(r),n.d(r,{default:()=>g});var s=n(426),l=n(663),c=n(85),u=n(178),d=n(719),p=n(324),f=n(685),m=n(264);const h=l.store,g={icon:s.icons.iconBase+"noun_122196.svg",name:"issue",audience:[],label:function(e,t){const n=h.findTypeURIs(e);return n["http://www.w3.org/2005/01/wf/flow#Task"]||h.holds(e,s.ns.wf("tracker"))?"issue":n["http://www.w3.org/2005/01/wf/flow#Tracker"]?"tracker":null},mintClass:s.ns.wf("Tracker"),mintNew:async function(e,t){const n=e.session.store;let a;t.newInstance?a=n.sym(t.newInstance.doc().uri+"_state.ttl"):(t.newInstance=n.sym(t.newBase+"index.ttl#this"),a=n.sym(t.newBase+"state.ttl"));const i=t.newInstance,o=i.doc(),r=l.authn.currentUser();r&&n.add(i,s.ns.dc("author"),r,o),n.add(i,s.ns.rdf("type"),s.ns.wf("Tracker"),o),n.add(i,s.ns.dc("created"),new Date,o),n.add(i,s.ns.wf("issueClass"),s.ns.wf("Task"),o),n.add(i,s.ns.wf("initialState"),s.ns.wf("Open"),o),n.add(i,s.ns.wf("stateStore"),a,o),n.add(i,s.ns.wf("assigneeClass"),s.ns.foaf("Person"),o),n.add(i,s.ns.wf("stateStore"),a,a);const c=n.statementsMatching(void 0,void 0,void 0,o).concat(n.statementsMatching(void 0,void 0,void 0,a));try{await async function(e,t){const a=e.concat(t).map(e=>e.why),i=Array.from(new Set(a)).map(a=>n.updater.update(e.filter(e=>e.why.sameTerm(a)),t.filter(e=>e.why.sameTerm(a))));return Promise.all(i)}([],c)}catch(t){return s.widgets.complain(e,"Error writing tracker configuration: "+t)}const u=e.dom;return t.div.appendChild(u.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 `,t},render:function(e,t){const a=t.dom,i=a.createElement("div");function o(e){console.warn(e),i.appendChild(s.widgets.errorMessageBlock(a,e))}function r(e,t){e||o(t)}function g(e,n){const i=h.any(e,s.ns.wf("issueClass")),r=(n=n||i).sameTerm(i),l=h.any(n,s.ns.owl("disjointUnionOf"));if(!l)return o(`Configuration error: state ${i} does not have substates`);let d=l.elements;r&&d.length>2&&(d=d.filter(e=>h.holds(e,s.ns.rdfs("subClassOf"),s.ns.wf("Open"))||e.sameTerm(s.ns.wf("Open"))));const p={columnDropHandler:async function(e,a){const i=(0,u.getState)(e,n),o=h.the(e,s.ns.wf("tracker"),null,e.doc()),r=h.any(o,s.ns.wf("stateStore"));if(!a.sameTerm(i)){try{await h.updater.update([m.st(e,s.ns.rdf("type"),i,r)],[m.st(e,s.ns.rdf("type"),a,r)])}catch(e){s.widgets.complain(t,"Unable to change issue state: "+e)}f.refresh()}},filter:r?null:function(e){return!!h.findTypeURIs(e)[s.ns.wf("Open").uri]}};p.sortBy=s.ns.dct("created"),p.sortReverse=!0;const f=(0,c.board)(a,d,function(e){return(0,u.renderIssueCard)(e,t)},p);return f}function b(e){const n=a.createElement("div"),i=l.authn.currentUser(),o={div:n,dom:a,noun:"tracker",statusArea:n,me:i,refreshTarget:e},r=[t.session.paneRegistry.byName("issue")];return s.create.newThingUI(o,t,r),n}function v(){const n=h.any(E,s.ns.wf("issueClass")),i=[A,w,n].concat(h.each(E,s.ns.wf("issueCategory")));i.push(x);const o={renderMain:function(n,i){if(n.innerHTML="",i.sameTerm(y))n.appendChild(g(E));else if(i.sameTerm(w))n.appendChild(function(n){function i(){const e=new m.IndexedFormula;return c.pat.optional.push(e),e}const o=h.any(e,s.ns.wf("issueClass")),r=h.each(n,s.ns.wf("issueCategory")),l=["issue","state","created"],c=new m.Query(s.utils.label(e));for(let e=0;e<r.length;e++)l.push("_cat_"+e);const d={};l.forEach(function(e){c.vars.push(d[e]=m.variable(e))}),c.pat.add(d.issue,s.ns.wf("tracker"),n),c.pat.add(d.issue,s.ns.dct("created"),d.created),c.pat.add(d.issue,s.ns.rdf("type"),d.state),c.pat.add(d.state,s.ns.rdfs("subClassOf"),o),c.pat.optional=[];for(let e=0;e<r.length;e++){const t=i();t.add(d.issue,s.ns.rdf("type"),d["_cat_"+e]),t.add(d["_cat_"+e],s.ns.rdfs("subClassOf"),r[e])}const p=h.any(n,s.ns.wf("propertyList"));if(p){const e=p.elements;for(let t=0;t<e.length;t++){const n=e[t];let a="_prop_"+t;n.uri.indexOf("#")>=0&&(a=n.uri.split("#")[1]);const o=i();c.vars.push(d[a]=m.variable(a)),o.add(d.issue,n,d[a])}}const f={};h.each(void 0,s.ns.rdfs("subClassOf"),o).forEach(function(e){(h.holds(e,s.ns.rdfs("subClassOf"),s.ns.wf("Open"))||e.sameTerm(s.ns.wf("Open")))&&(f[e.uri]=!0)});const g=(0,s.table)(a,{query:c,keyVariable:"?issue",sortBy:"?created",sortReverse:!0,hints:{"?issue":{linkFunction:function(e){const n=m.sym(e);(0,u.exposeOverlay)(n,t)},label:"Title"},"?created":{cellFormat:"shortDate"},"?state":{initialSelection:f,label:"Status"}}}),b=h.any(e,s.ns.wf("stateStore"));return g.appendChild(function(e,t){return s.widgets.button(a,s.icons.iconBase+"noun_479395.svg","refresh table",async n=>{try{await h.fetcher.load(e,{force:!0,clearPreviousData:!0})}catch(e){return void alert(e)}s.widgets.refreshTree(t)})}(b,g)),g}(E));else if(i.sameTerm(x))n.appendChild(function(e){const t=a.createElement("div");t.appendChild((0,f.csvButton)(a,e));const n=h.any(e,s.ns.wf("issueClass")),i=[w,n].concat(h.each(e,s.ns.wf("issueCategory"))),o=t.appendChild(a.createElement("div"));s.widgets.renderNameValuePair(a,h,o,null,"Default view").appendChild(s.widgets.makeSelectForOptions(a,h,e,s.ns.wf("defaultView"),i,{},e.doc()));const l={dom:a,div:t,noun:"tracker"};return s.login.registrationControl(l,e,s.ns.wf("Tracker")).then(n=>{const i=s.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"),s.widgets.appendForm(a,t,{},e,i,e.doc(),r)}),t}(E));else if(i.sameTerm(A))n.appendChild(function(e){const t=a.createElement("div"),n={dom:a,div:t,noun:"tracker"};return s.login.registrationList(n,{public:!0,private:!0,type:e}).then(e=>{t.appendChild(b(t))}),t}(s.ns.wf("Tracker")));else{if(!h.holds(E,s.ns.wf("issueCategory"),i)&&!h.holds(E,s.ns.wf("issueClass"),i))throw new Error("Unexpected tab type: "+i);n.appendChild(g(E,i))}},items:i,selectedTab:h.any(E,s.ns.wf("defaultView"),null,E.doc())||w},l=A.doc();return h.add(A,s.ns.rdfs("label"),"My Trackers",l),h.add(x,s.ns.rdfs("label"),"Settings",l),h.add(n,s.ns.rdfs("label"),"By State",l),s.tabs.tabWidget(o)}t.paneDiv=i,i.setAttribute("class","issuePane");const y=s.ns.wf("BoardView"),w=s.ns.wf("TableView"),x=s.ns.wf("SettingsView"),A=s.ns.wf("InstancesView"),C=h.updater,k=h.findTypeURIs(e);let E;const T=s.ns.wf("").doc();h.holds(void 0,void 0,void 0,T)||m.parse(n(240),h,T.uri,"text/turtle");const S=s.ns.ui("").doc();let P;h.holds(void 0,void 0,void 0,S)||m.parse(n(197),h,S.uri,"text/turtle"),k["http://www.w3.org/2005/01/wf/flow#Task"]||h.holds(e,s.ns.wf("tracker"))?async function(){if(E=h.any(e,s.ns.wf("tracker")),!E)throw new Error("This issue "+e+"has no tracker");try{await t.session.store.fetcher.load(E.doc())}catch(e){return o("Failed to load tracker config "+E.doc()+": "+e)}const n=h.any(E,s.ns.wf("stateStore"));if(!n)return o("Tracker has no state store: "+E);try{await t.session.store.fetcher.load(e)}catch(e){return o("Failed to load issue state "+n+": "+e)}i.appendChild((0,u.renderIssue)(e,t)),C.addDownstreamChangeListener(n,function(){s.widgets.refreshTree(i)})}().then(()=>console.log("Single issue rendered")):k["http://www.w3.org/2005/01/wf/flow#Tracker"]?async function(){function n(e){s.widgets.refreshTree(i),(0,u.exposeOverlay)(e,t),f.disabled=!1}E=e;try{await async function(e,t){async function n(t){const n=e.any(t,s.ns.owl("disjointUnionOf"),null,a);if(!n)throw new Error(`Classification ${t} has no disjointUnionOf`);if(!n.elements)throw new Error(`Classification ${t} has no array`);const i=new Set(n.elements.map(e=>e.uri)),o=new Set(e.each(null,s.ns.rdfs("subClassOf"),t,a).map(e=>e.uri)),r=[...o].filter(e=>!i.has(e)).map(n=>({action:"delete",st:m.st(e.sym(n),s.ns.rdfs("subClassOf"),t,a)})),l=[...i].filter(e=>!o.has(e)).map(n=>({action:"insert",st:m.st(e.sym(n),s.ns.rdfs("subClassOf"),t,a)}));return r.concat(l)}const a=t.doc(),i=e.any(t,s.ns.wf("issueClass")),o=e.each(t,s.ns.wf("issueCategory")).concat([i]);let r=[];for(const e of o)r=r.concat(await n(e));if(r.length){const t=r.filter(e=>"insert"===e.action).map(e=>e.st),n=r.filter(e=>"delete"===e.action).map(e=>e.st);console.log("Damage:",r),confirm(`Fix ${r} inconsistent subclasses in tracker config?`)&&await e.updater.update(n,t)}}(h,E)}catch(e){console.log("@@@ Error fixing subclasses in config: "+e)}const o=h.any(e,s.ns.wf("issueClass"));if(!o)throw new Error("This tracker has no issueClass");const r=h.any(e,s.ns.wf("stateStore"));if(!r)throw new Error("This tracker has no stateStore");const l=a.createElement("h2");l.setAttribute("style","font-size: 150%"),i.appendChild(l);const c=s.utils.label(o);l.appendChild(a.createTextNode(c+" list"));const f=a.createElement("button"),g=a.createElement("div");f.setAttribute("type","button"),f.setAttribute("style","padding: 0.3em; font-size: 100%; margin: 0.5em;"),g.appendChild(f),i.appendChild(g);const b=a.createElement("img");b.setAttribute("src",s.icons.iconBase+"noun_19460_green.svg"),b.setAttribute("style","width: 1em; height: 1em; margin: 0.2em;"),f.appendChild(b);const y=a.createElement("span");y.innerHTML="New "+c,f.appendChild(y),f.addEventListener("click",function(e){f.disabled=!0,g.appendChild((0,p.newIssueForm)(a,h,E,null,n))},!1),t.session.store.fetcher.load([r]).then(function(n){const a=v();i.appendChild(a),a.refresh||console.log("No table refresh function?!"),i.appendChild((0,d.newTrackerButton)(e,t)),C.addDownstreamChangeListener(r,a.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 B=i.appendChild(a.createElement("div"));return t.overlay=B,B.style="position: fixed; z-index: 100; top: 1.51em; right: 2em; left: 2em; bottom:1.5em; border: 0.1em grey; overflow: scroll;",B.style.visibility="hidden",l.authn.checkUser().then(e=>{if(e)return console.log("Web ID set already: "+e),void(t.me=e);P=s.login.loginStatusBox(a,e=>{e?(t.me=h.sym(e),console.log("Web ID set from login button: "+e),i.removeChild(P)):t.me=null}),P.setAttribute("style","margin: 0.5em 1em;"),i.appendChild(P),t.statusArea||(t.statusArea=i.appendChild(a.createElement("div")))}),i}};return r})())},1927(e,t,n){var a;a=(e,t,n)=>(()=>{"use strict";var a={264(e){e.exports=t},426(t){t.exports=e},663(e){e.exports=n}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return a[e](n,n.exports,o),n.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};o.r(r),o.d(r,{default:()=>f});var s=o(426),l=o(264),c=o(663);const{typeIndex:u}=c.solidLogicSingleton,{loadTypeIndexesFor:d}=u,p=s.ns,f={icon:s.icons.iconBase+"noun_66617.svg",name:"meeting",audience:[p.solid("PowerUser")],label:function(e,t){const n=t.session.store,a=s.ns;return n.holds(e,a.rdf("type"),a.meeting("Meeting"))?"Meeting":null},mintClass:s.ns.meeting("Meeting"),mintNew:function(e,t){return new Promise(function(n,a){const i=e.session.store,o=s.ns;t.newInstance=t.newInstance||i.sym(t.newBase+"index.ttl#this");const r=t.newInstance,u=r.doc(),d=c.authn.currentUser();d&&i.add(r,o.dc("author"),d,u),i.add(r,o.rdf("type"),o.meeting("Meeting"),u),i.add(r,o.dc("created"),new Date,u),i.add(r,o.ui("backgroundColor"),new l.Literal("#ddddcc",void 0,o.xsd("color")),u);const p=new l.Collection;i.add(r,o.meeting("toolList"),p,u),p.elements.push(r),i.updater.put(u,i.statementsMatching(void 0,void 0,void 0,u),"text/turtle",function(e,i,o){i?n(t):a(new Error("Error writing meeting configuration: "+o))})})},render:function(e,t){const n=t.dom,a=t.session.store,i=s.ns,o=a.updater,r=this,u=function(e,t){console.log(e);const a=n.createElement("pre");a.setAttribute("style","background-color: "+t||0),g.appendChild(a),a.appendChild(n.createTextNode(e))},p=function(e,t){e||u(t)},f=e,m=e.doc(),h=e.dir().uri,g=n.createElement("div"),b=g.appendChild(n.createElement("table"));b.style="width: 100%; height: 100%; margin:0;";const v=b.appendChild(n.createElement("tr"));v.appendChild(n.createElement("div"));const y=b.appendChild(n.createElement("tr")),w=b.appendChild(n.createElement("td")).appendChild(n.createElement("table")).appendChild(n.createElement("tr"));v.setAttribute("style","height: 2em;");let x=null;const A=function(){o.put(m,a.statementsMatching(void 0,void 0,void 0,m),"text/turtle",function(e,t,n){t?(V.refresh(),H()):u(n="FAILED to save new thing at: "+m+" : "+n)})},C=function(e,t,n){const r=t.doc();n&&a.add(f,n,t,r),a.add(t,i.meeting("parentMeeting"),f,r),o.put(r,a.statementsMatching(void 0,void 0,void 0,r),"text/turtle",function(e,n,a){n?A():u("FAILED to save new tool at: "+t+" : "+a)})},k=function(e,t,n,o){t&&a.add(f,t,e,m);const r=s.widgets.newThing(m);return n&&a.add(r,i.rdfs("label"),n,m),o&&a.add(r,i.meeting("icon"),a.sym(o),m),a.add(r,i.rdf("type"),i.meeting("Tool"),m),a.add(r,i.meeting("target"),e,m),a.the(f,i.meeting("toolList")).elements.push(r),r};function E(e){const t=/https:\/\/www\.google\..*\/maps\//,n="https://www.google.com/maps/embed/v1/",a=e.uri;if(!a.match(t))return e;if(a.startsWith(n))return e;const i=a.replace(t,n)+"&key=AIzaSyB8aaT6bY9tcLCmc2oPCkdUYLmTOWM8R54";return console.log("Converted Google Map URI! "+i),l.sym(i)}const T=function(n){Promise.all(n.map(function(n){return function(n){return new Promise(function(o){console.log("Dropped on thing "+n);const r=n.uri;if(r.startsWith("http:")&&r.indexOf("#")<0)return function(n){const o=i.wf("attachment");a.add(e,o,n,e.doc()),I({icon:"noun_160581.svg",limit:1,shareTab:!0},{newInstance:e,pane:t.session.paneRegistry.byName("link"),predicate:i.meeting("attachmentTool"),tabTitle:"Links",view:"link",noIndexHTML:!0})}(n),o(n);a.fetcher.nowOrWhenFetched(n,function(e,t){function c(e){e=E(e),console.log("make web page attachement tab "+e);const t=k(e,s.ns.wf("attachment"),s.utils.label(e),null);return a.add(t,s.ns.meeting("view"),"iframe",m),o(e)}if(e){const e=n,t=a.findTypeURIs(e);for(const e in t)console.log(" drop object type includes: "+e);if(i.vcard("Individual").uri in t||i.foaf("Person").uri in t||i.foaf("Agent").uri in t)return function(e){const t=a.any(e,i.foaf("preferredURI")),n=t?a.sym(t):e,o=a.any(f,i.meeting("attendeeGroup")),r=function(e,t){const n=[l.st(t,s.ns.vcard("hasMember"),e,t.doc())],o=a.any(e,i.vcard("fn"))||a.any(e,i.foaf("name"));o&&n.push(l.st(e,s.ns.vcard("fn"),o,t.doc())),a.fetcher.nowOrWhenFetched(t.doc(),void 0,function(i,o){i?a.updater.update([],n,function(t,n,a){p(n,a),n&&console.log("Addded to particpants OK: "+e)}):u("Can't read group to add person"+t)})};o?r(n,o):N().then(function(e){const t=e.newInstance;r(n,t),a.fetcher.putBack(m,{contentType:"text/turtle"}).then(function(e){console.log("Particiants Group created: "+t)})}).catch(function(e){u(e)})}(n),o(n);if(r.startsWith("https:")&&r.indexOf("#")<0){const e=a.fetcher.getHeader(n,"x-frame-options");let t=!0;if(e)for(let n=0;n<e.length;n++)console.log("x-frame-options: "+e[n]),e[n].indexOf("sameorigin")<0&&(t=!1),e[n].indexOf("deny")<0&&(t=!1);if(t)return function(e){const t=k(e,s.ns.wf("attachment"),s.utils.label(e),null);a.add(t,s.ns.meeting("view"),"iframe",m)}(n=E(n)),o(n)}return console.log("Default: assume web page attachement "+n),c(n)}return console.log("Error looking up dropped thing, will just add it anyway. "+n+": "+t),c(n)})})}(l.sym(n))})).then(function(e){A()})},S=function(e){s.widgets.uploadFiles(a.fetcher,e,f.dir().uri+"Files",f.dir().uri+"Pictures",function(e,t){e.type.startsWith("image/")?P("Files"):B("Pictures")})},P=function(e){return I({icon:"noun_598334.svg",limit:1,shareTab:!0},{newInstance:a.sym(f.dir().uri+e+"/"),pane:t.session.paneRegistry.byName("folder"),predicate:i.meeting("pictures"),shareTab:!0,tabTitle:e,view:"slideshow",noIndexHTML:!0})},B=function(e){return I({icon:"noun_681601.svg",limit:1,shareTab:!0},{newInstance:a.sym(f.dir().uri+"Files/"),pane:t.session.paneRegistry.byName("folder"),predicate:i.meeting("materialsFolder"),tabTitle:"Materials",noIndexHTML:!0})},N=function(){return I({icon:"noun_339237.svg",limit:1,shareTab:!0},{newInstance:a.sym(f.dir().uri+"Attendees/index.ttl#this"),pane:t.session.paneRegistry.byName("contact"),predicate:i.meeting("attendeeGroup"),tabTitle:"Attendees",instanceClass:i.vcard("Group"),instanceName:s.utils.label(e)+" attendees",noIndexHTML:!0})};function I(e,n){return new Promise(function(a,i){const o=t.session.store;if(!n.useExisting){const t=o.any(f,n.predicate);if(t){if(e.limit&&1===e.limit&&!e.shareTab)return u("Already have "+t+" as "+s.utils.label(n.predicate)),u("Cant have two"),a(null);if(e.shareTab)return console.log("Using existing "+t+" as "+s.utils.label(n.predicate)),a({me:x,newInstance:t,instanceClass:n.instanceClass})}}x||n.me||i(new Error("Username not defined for new tool")),n.me=n.me||x,n.newInstance=n.useExisting||n.newInstance||o.sym(n.newBase+"index.ttl#this"),n.pane.mintNew(t,n).then(function(e){const t=k(e.newInstance,e.predicate,e.tabTitle,e.pane.icon);e.view&&o.add(t,s.ns.meeting("view"),e.view,m),A(),o.fetcher.putBack(m,{contentType:"text/turtle"}).then(function(t){a(e)}).catch(function(e){i(e)})}).catch(function(e){u(e),i(e)})})}const _=function(){const e=s.login.selectWorkspace(n,{noun:"meeting"},function(a,i){r.mintNew(t,{newBase:i}).then(function(t){const a=t.newInstance;M.removeChild(e);const i=M.appendChild(n.createElement("p"));i.setAttribute("style","font-size: 140%;"),i.innerHTML="Your <a target='_blank' href='"+a.uri+"'><b>new meeting</b></a> is ready to be set up. <br/><br/><a target='_blank' href='"+a.uri+"'>Go to your new meeting.</a>"}).catch(function(t){M.removeChild(e),M.appendChild(s.widgets.errorMessageBlock(n,t))})});M.appendChild(e)},O=[{icon:"noun_339237.svg",maker:function(e){const n=h+"Group/",a=t.session.store;let o=a.any(f,i.meeting("particpants"));o||(o=l.sym(n+"index.ttl#this")),console.log("Participant group: "+o);const r=k(o,i.meeting("particpants"),"Particpants",s.icons.iconBase+"noun_339237.svg");a.add(r,s.ns.meeting("view"),"peoplePicker",m),A()},hint:"Make a group of people",limit:1},{icon:"noun_346777.svg",maker:function(e){return I(e,{useExisting:f,pane:t.session.paneRegistry.byName("schedule"),view:"schedule",tabTitle:"Schedule poll",noIndexHTML:!0})},hint:"Make a poll to schedule the meeting"},{icon:"noun_48218.svg",maker:function(e){},limit:1,hint:"Add an agenda list",disabled:!0},{icon:"noun_79217.svg",maker:function(e){return I(e,{newBase:h+"SharedNotes/",predicate:s.ns.meeting("sharedNotes"),tabTitle:"Shared Notes",pane:t.session.paneRegistry.byName("pad")})},hint:"Add a shared notepad"},{icon:"noun_346319.svg",maker:function(e){const n=h+"Chat/",a=t.session.store;if(a.holds(f,i.meeting("chat")))return void console.log("Ignored - already have chat");const o=a.sym(n+"chat.ttl");a.add(o,i.rdf("type"),i.meeting("Chat"),o),k(o,i.meeting("chat"),"Chat",s.icons.iconBase+"noun_346319.svg"),C(0,o,i.meeting("chat"))},limit:1,hint:"Add a chat channel for the meeting"},{icon:"noun_17020.svg",maker:function(e){const n=h+"Actions/",a=t.session.store;if(a.holds(f,i.meeting("actions")))return void console.log("Ignored - already have actions");const o=a.sym(n+"config.ttl"),r=a.sym(n+"config.ttl#this"),l=a.sym(n+"state.ttl");a.add(r,i.dc("title"),(a.anyValue(f,i.cal("summary"))||"Meeting ")+" actions",o),a.add(r,i.wf("issueClass"),i.wf("Task"),o),a.add(r,i.wf("initialState"),i.wf("Open"),o),a.add(r,i.wf("stateStore"),l,o),a.add(r,i.wf("assigneeClass"),i.foaf("Person"),o),a.add(r,i.rdf("type"),i.wf("Tracker"),o),a.add(r,i.rdf("type"),i.wf("Tracker"),o),k(r,i.meeting("actions"),"Actions",s.icons.iconBase+"noun_17020.svg"),C(0,r,i.meeting("actions"))},limit:1,hint:"Add a list of action items"},{icon:"noun_260227.svg",maker:function(e){const n=t.session.store,a=l.sym("https://meet.jit.si/"+s.utils.genUuid());if(n.holds(f,i.meeting("videoCallPage")))return void console.log("Ignored - already have a videoCallPage");n.add(a,i.rdf("type"),i.meeting("VideoCallPage"),m);const o=k(a,i.meeting("videoCallPage"),"Video call",s.icons.iconBase+"noun_260227.svg");n.add(o,i.meeting("view"),"iframe",m),A()},limit:1,hint:"Add a video call for the meeting"},{icon:"noun_25830.svg",maker:function(e){s.widgets.askName(n,a,M,i.log("uri"),s.ns.rdf("Resource")).then(function(e){if(!e)return H();const n=t.session.store,a=s.ns,i=n.sym(e),o=k(i,a.wf("attachment"),s.utils.label(i),null);n.add(o,a.meeting("view"),"iframe",m),A()}).catch(function(e){u("Error making new sub-meeting: "+e)})},hint:"Attach meeting materials",disabled:!1},{icon:"noun_123691.svg",maker:function(e){const n=t.session.store,a=s.ns,i=f.dir();if(e.limit&&1===e.limit&&n.holds(f,a.wf("sharingControl")))return void u("Ignored - already have "+s.utils.label(G.predicate));const o=k(i,a.wf("sharingControl"),"Sharing",s.icons.iconBase+"noun_123691.svg");n.add(o,a.meeting("view"),"sharing",m),A()},limit:1,hint:"Control Sharing",disabled:!1},{icon:"noun_66617.svg",maker:function(e){s.widgets.askName(n,a,M,i.foaf("name"),s.ns.meeting("Meeting")).then(function(n){if(!n)return H();const a=encodeURIComponent(n),i={newBase:h+a+"/",predicate:s.ns.meeting("subMeeting"),tabTitle:n,pane:t.session.paneRegistry.byName("meeting")};return I(e,i)}).catch(function(e){u("Error making new sub-meeting: "+e)})},hint:"Make a sub meeting",disabled:!1}],L=l.sym("https://solid.github.io/solid-panes/meeting/meetingDetailsForm.ttl#settings");l.parse('@prefix : <http://www.w3.org/ns/ui#> .\n@prefix f: <#> .\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix cal: <http://www.w3.org/2002/12/cal/ical#>.\n@prefix meeting: <http://www.w3.org/ns/pim/meeting#>.\n@prefix ns: <http://www.w3.org/2006/vcard/ns#> .\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 te: <http://purl.org/dc/terms/> .\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n\n f:main a :Form;\n cal:summary "Meeting Details";\n :part f:titleField, f:locationField, f:startField,\n f:endField, f:eventComment, f:colorField .\n\n f:titleField a :SingleLineTextField;\n :maxLength 256;\n :property cal:summary;\n :label "Name of meeting";\n :size 80 .\n\n f:locationField a :SingleLineTextField;\n :maxLength 128;\n :property cal:location;\n :size 40 .\n\n f:startField a :DateField;\n :label "Start";\n :property cal:dtstart .\n\n f:endField a :DateField;\n :label "End";\n :property cal:dtend .\n\n f:colorField a :ColorField;\n :label "Tab color";\n # :default "#ddddcc"^^xsd:color;\n :property ui:backgroundColor .\n\n f:eventComment\n a ui:MultiLineTextField;\n # ui:maxLength\n # "1048";\n # ui:size\n # "40".\n ui:property\n cal:comment.\n\n###################################################\n\nf:settings a :Form;\n dc:title "Tab settings";\n :part f:labelField, f:targetField, f:viewField.\n\n f:labelField a :SingleLineTextField;\n :maxLength 128;\n :property rdfs:label;\n :label "Label on tab";\n :size 40 .\n\n f:targetField a :NamedNodeURIField;\n :maxLength 1024; # Longer?\n :property meeting:target;\n :label "URL of resource";\n :size 80 .\n\n f:colorField2 a :ColorField;\n :label "Tab color";\n # :default "#ddddcc"^^xsd:color;\n :property ui:backgroundColor .\n\n f:viewField a :SingleLineTextField;\n :maxLength 128;\n :property meeting:view;\n :label "View mode (experts only)";\n :size 40 .\n\n#\n',a,L.doc().uri,"text/turtle");const F="padding: 1em; width: 3em; height: 3em;",R=w.appendChild(n.createElement("td")),M=w.appendChild(n.createElement("td")),D=R.appendChild(n.createElement("img"));let j=!1;D.setAttribute("src",s.icons.iconBase+"noun_19460_green.svg"),D.setAttribute("style",F+"opacity: 50%;"),D.setAttribute("title","Add another tool to the meeting");const z=function(e){j=!j,D.setAttribute("style",F+(j?"background-color: yellow;":"")),q(j?"":"display: none;")};let U;c.authn.checkUser().then(e=>{if(e)return x=e,D.addEventListener("click",z),void D.setAttribute("style",F);U=s.login.loginStatusBox(n,e=>{e?(x=a.sym(e),M.removeChild(U),D.addEventListener("click",z),D.setAttribute("style",F)):(console.log("(Logged out)"),x=null)}),U.setAttribute("style","margin: 0.5em 1em;"),M.appendChild(U)});const $=[];for(let e=0;e<O.length;e++)(function(){const t=O[e],a=R.appendChild(n.createElement("img"));a.setAttribute("src",s.icons.iconBase+t.icon),a.setAttribute("style",F+"display: none;"),$.push(a),a.tool=t;const i=t.maker;t.disabled||a.addEventListener("click",function(e){W(a),i(t)})})();const q=function(e){for(let t=0;t<$.length;t++){let n=F+e;O[t].disabled&&(n+="opacity: 0.3;"),$[t].setAttribute("style",n)}},H=function(){q("display: none;"),D.setAttribute("style",F)},W=function(e){q("display: none;"),e.setAttribute("style",F+"background-color: yellow;")},G={dom:n};G.predicate=i.meeting("toolList"),G.subject=e,G.ordered=!0,G.orientation=1,G.renderMain=function(e,o){let r,p=null,h=null;e.innerHTML="";const g=function(t,n){t||(e.textContent=""+n)},b=function(){e.appendChild(n.createElement("h3")).textContent="Details of meeting";const t=l.sym("https://solid.github.io/solid-panes/meeting/meetingDetailsForm.ttl#main");s.widgets.appendForm(document,e,{},f,t,f.doc(),g),e.appendChild(function(){const e=n.createElement("div"),t=e.appendChild(n.createElement("p"));return t.setAttribute("style","margin: 0em; padding:3em; color: #888;"),t.textContent="Tip: Drag URL-bar icons of web pages into the tab bar on the left to add new meeting materials.",e}()),x=c.authn.currentUser(),x&&a.add(f,i.dc("author"),x,m);const o={noun:"meeting",me:x,statusArea:e,div:e,dom:n};s.login.registrationControl(o,f,i.meeting("Meeting")).then(function(e){console.log("Registration control finsished.")}),s.pad.manageParticipation(n,e,m,f,x,{});const r="height: 2em; width: 2em; margin:0.5em;",u=e.appendChild(n.createElement("div")),d=u.appendChild(n.createElement("img"));d.setAttribute("src",s.icons.iconBase+"noun_145978.svg"),d.setAttribute("title","Make a fresh new meeting"),d.addEventListener("click",_),d.setAttribute("style",r);const p=u.appendChild(n.createElement("a"));p.setAttribute("href","https://github.com/solid/solid-panes"),p.setAttribute("target","_blank");const h=p.appendChild(n.createElement("img"));h.setAttribute("src",s.icons.iconBase+"noun_368567.svg"),h.setAttribute("title","Fork me on github"),h.setAttribute("style",r+"opacity: 50%;")};if(a.holds(o,i.rdf("type"),i.meeting("Tool"))){const m=a.any(o,i.meeting("target"));if(m.sameTerm(f)&&!a.any(o,i.meeting("view")))b();else{let g=a.any(o,i.meeting("view"));g=g?g.value:null,"details"===g?b():"peoplePicker"===g?function(){const t={div:e,dom:n};e.appendChild(n.createElement("h4")).textContent="Meeting Participants";const o=function(e){const t=[l.st(f,i.meeting("particpantGroup"),e,f.doc())];a.updater.update([],t,function(t,n,a){n?h=e:u("Cant save participants group: "+a)})};h=a.any(f,i.meeting("particpantGroup")),c.authn.checkUser().then(e=>{e&&d(a.sym(e)).then(function(){const e={defaultNewGroupName:"Meeting Participants",selectedGroup:h};new s.widgets.PeoplePicker(t.div,t.index.private[0],o,e).render()})})}():"iframe"===g?function(t){const a=e.appendChild(n.createElement("iframe"));a.setAttribute("src",t.uri),a.setAttribute("style","border: none; margin: 0; padding: 0; height: 100%; width: 100%;"),a.setAttribute("allow","microphone camera"),a.setAttribute("name","disable-x-frame-options"),e.style.padding=0}(m):(p=g?t.session.paneRegistry.byName(g):null,r=e.appendChild(n.createElement("table")),r.style.width="100%",t.getOutliner(n).GotoSubject(m,!0,p,!1,void 0,r))}}else o.sameTerm(f)?b():(!o.sameTerm(o.doc())||a.holds(o,s.ns.rdf("type"),s.ns.meeting("Chat"))||a.holds(o,s.ns.rdf("type"),s.ns.meeting("PaneView")))&&(r=e.appendChild(n.createElement("table")),t.getOutliner(n).GotoSubject(o,!0,void 0,!1,void 0,r))},G.renderTab=function(e,t){if(a.holds(t,i.rdf("type"),i.meeting("Tool"))){const o=a.any(t,i.meeting("target"));let r=a.any(t,i.rdfs("label"));r=r?r.value:s.utils.label(o);const l=e.appendChild(n.createElement("div"));l.textContent=r,l.setAttribute("style","margin-left: 0.7em");const c=a.any(t,i.meeting("icon"));if(c){const t=e.appendChild(n.createElement("table")).appendChild(n.createElement("tr")),a=t.appendChild(n.createElement("td")),i=t.appendChild(n.createElement("td")),o=a.appendChild(n.createElement("img"));o.setAttribute("src",c.uri),o.setAttribute("style","width: 1.5em; height: 1.5em;"),o.setAttribute("title",r),i.appendChild(l)}else e.appendChild(l)}else e.textContent=s.utils.label(t)},G.renderTabSettings=function(e,t){if(e.innerHTML="",e.style+="border-color: #eed;",e.appendChild(n.createElement("h3")).textContent="Adjust this tab",a.holds(t,i.rdf("type"),i.meeting("Tool"))){const o=l.sym("https://solid.github.io/solid-panes/meeting/meetingDetailsForm.ttl#settings");s.widgets.appendForm(document,e,{},t,o,f.doc(),p),s.widgets.deleteButtonWithCheck(n,e,"tab",function(){const e=a.the(f,i.meeting("toolList"));for(let n=0;n<e.elements.length;n++)if(e.elements[n].sameTerm(t)){e.elements.splice(n,1);break}const n=a.any(t,i.meeting("target")),o=a.statementsMatching(t).concat(a.statementsMatching(void 0,void 0,t)).concat(a.statementsMatching(f,void 0,n));a.remove(o),A()}).setAttribute("style","width: 1.5em; height: 1.5em;")}else e.appendChild(n.createElement("h4")).textContent="(No adjustments available)"},G.backgroundColor=a.anyValue(e,i.ui("backgroundColor"))||"#ddddcc";const V=y.appendChild(s.tabs.tabWidget(G));return s.aclControl.preventBrowserDropEvents(n),s.widgets.makeDropTarget(V.tabContainer,T,S),s.widgets.makeDropTarget(R,T,S),g}};return r})(),e.exports=a(n(9426),n(5491),n(5663))},7598(e,t,n){e.exports=n(1813)},6049(e,t,n){"use strict";var a,i,o=n(7598),r=n(8466).extname,s=n(983),l=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function u(e){if(!e||"string"!=typeof e)return!1;var t=l.exec(e),n=t&&o[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!c.test(t[1]))&&"UTF-8"}function d(e){if(!e||"string"!=typeof e)return!1;var n=l.exec(e),a=n&&t.extensions[n[1].toLowerCase()];return!(!a||!a.length)&&a[0]}function p(e,t,n){return(t?s(t,o[t].source):0)>(n?s(n,o[n].source):0)?t:n}function f(e,n,a){var i=["nginx","apache",void 0,"iana"],r=n?i.indexOf(o[n].source):0,s=a?i.indexOf(o[a].source):0;return"application/octet-stream"!==t.types[d]&&(r>s||r===s&&"application/"===t.types[d]?.slice(0,12))||r>s?n:a}t.charset=u,t.charsets={lookup:u},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var n=-1===e.indexOf("/")?t.lookup(e):e;if(!n)return!1;if(-1===n.indexOf("charset")){var a=t.charset(n);a&&(n+="; charset="+a.toLowerCase())}return n},t.extension=d,t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=r("x."+e).toLowerCase().slice(1);if(!n)return!1;return t.types[n]||!1},t.types=Object.create(null),t._extensionConflicts=[],a=t.extensions,i=t.types,Object.keys(o).forEach(function(e){var n=o[e].extensions;if(n&&n.length){a[e]=n;for(var r=0;r<n.length;r++){var s=n[r];i[s]=p(s,i[s],e);const a=f(s,i[s],e);a!==i[s]&&t._extensionConflicts.push([s,a,i[s]])}}})},983(e){var t={"prs.":100,"x-":200,"x.":300,"vnd.":400,default:900},n={nginx:10,apache:20,iana:40,default:30},a={application:1,font:2,audio:2,video:3,default:0};e.exports=function(e,i="default"){if("application/octet-stream"===e)return 0;const[o,r]=e.split("/"),s=r.replace(/(\.|x-).*/,"$1");return(t[s]||t.default)+(n[i]||n.default)+(a[o]||a.default)+(1-e.length/100)}},4059(e){const t=e.exports={};t.list=[],t.paneForIcon=[],t.paneForPredicate=[],t.register=function(e,n){if(e.requireQueryButton=n,e.name)if(console.log(" registering pane: "+e.name),e.label){if(t.list.push(e),e.name in t||(t[e.name]=e),e.icon&&(t.paneForIcon[e.icon]=e),e.predicates)for(const n in e.predicates)t.paneForPredicate[n]={pred:n,code:e.predicates[n]}}else console.log("*** No label for pane!");else console.log("*** No name for pane!")},t.byName=function(e){for(let n=0;n<t.list.length;n++)if(t.list[n].name===e)return t.list[n];return console.warn(`No view with name ${e} found in the registry of views (aka paneRegistry)`),null}},5956(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CVCard=void 0;var a=n(6752);n(8481);function i(e,t=!1){return e&&e.length&&e[0]?a.html`${function(e,t=!1){return e&&t?a.html`
2
+ <li class="cvRole" role="listitem">
3
+ <strong class="cvOrg" aria-label="Organization">${e.orgName}</strong>
4
+ <span aria-label="Role title">${s(e.roleText)}</span>
5
+ <time aria-label="Employment period">${e.dates}</time>
6
+ </li>`:a.html``}(e[0],t)}${e.length>1?i(e.slice(1),t):a.html``}`:a.html``}function o(e,t=!1){return e&&e.length&&e[0]?a.html`${function(e,t=!1){return e&&t?a.html`<li class="cvSkill">${s(e)}</li>`:a.html``}(e[0],t)}${e.length>1?o(e.slice(1),t):a.html``}`:a.html``}function r(e,t=!1){return e&&e.length&&e[0]?a.html`${function(e,t=!1){return e&&t?a.html`<li class="cvLanguage">${e}</li>`:a.html``}(e[0],t)}${e.length>1?r(e.slice(1),t):a.html``}`:a.html``}function s(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=>{const{rolesByType:t,skills:n,languages:s}=e,l=t.FutureRole||[],c=t.CurrentRole||[],u=t.PastRole||[],d=n||[],p=s||[],f=Array.isArray(l)&&l.length>0,m=Array.isArray(c)&&c.length>0,h=Array.isArray(u)&&u.length>0,g=Array.isArray(d)&&d.length>0,b=Array.isArray(p)&&p.length>0;return f||m||h||g||b?a.html`
7
+ <article class="cvCard" aria-label="Resume" data-testid="curriculum-vitae">
8
+ ${f?a.html`
9
+ <section class="cvSection" aria-labelledby="cv-future-heading">
10
+ <h3 id="cv-future-heading">Future Roles</h3>
11
+ <ul role="list" aria-label="Upcoming work experience">
12
+ ${i(l,!0)}
13
+ </ul>
14
+ </section>
15
+ `:""}
16
+
17
+ ${m?a.html`
18
+ <section class="cvSection" aria-labelledby="cv-current-heading">
19
+ <h3 id="cv-current-heading">Current Roles</h3>
20
+ <ul role="list" aria-label="Current work experience">
21
+ ${i(c,!0)}
22
+ </ul>
23
+ </section>
24
+ `:""}
25
+
26
+ ${h?a.html`
27
+ <section class="cvSection" aria-labelledby="cv-past-heading">
28
+ <h3 id="cv-past-heading">Past Roles</h3>
29
+ <ul role="list" aria-label="Previous work experience">
30
+ ${i(u,!0)}
31
+ </ul>
32
+ </section>
33
+ `:""}
34
+
35
+ ${g?a.html`
36
+ <section class="cvSection" aria-labelledby="cv-skills-heading">
37
+ <h3 id="cv-skills-heading">Skills</h3>
38
+ <ul role="list" aria-label="Professional skills and competencies">
39
+ ${o(d,!0)}
40
+ </ul>
41
+ </section>
42
+ `:""}
43
+
44
+ ${b?a.html`
45
+ <section class="cvSection" aria-labelledby="cv-languages-heading">
46
+ <h3 id="cv-languages-heading">Languages</h3>
47
+ <ul role="list" aria-label="Known languages">
48
+ ${r(p,!0)}
49
+ </ul>
50
+ </section>
51
+ `:""}
52
+ </article>
53
+ `:a.html``}},7408(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.datesAsText=c,t.languageAsText=l,t.presentCV=function(e,t){const n=function(e,t){const n=e.each(null,o("member"),t,null),a={PastRole:[],CurrentRole:[],FutureRole:[]};for(const t of n){let n,s,l,u,d;const p=e.any(t,i.ns.schema("startDate")),f=e.any(t,i.ns.schema("endDate")),m=c(p,f),h=e.any(t,o("organization"));h&&(s=e.anyJS(h,i.ns.schema("name")),n=e.any(h,i.ns.schema("uri")),d=e.any(h,i.ns.solid("publicId"))),d&&(l=e.anyJS(d,i.ns.schema("name")));const g=l||s,b=e.any(t,o("role"));b&&(u=e.anyJS(b,i.ns.schema("name")));const v=e.anyJS(t,i.ns.vcard("role")),y={startDate:p,endDate:f,orgName:g,roleText:v&&u?u+" - "+v:v||u,dates:m,orgHomePage:n};for(const n of r)e.holds(t,i.ns.rdf("type"),i.ns.solid(n))&&a[n].push(y)}return a}(t,e);for(const e of r)n[e].sort(function(e,t){return e.endDate&&t.endDate?e.endDate>t.endDate?-1:1:e.startDate>t.startDate?-1:1});const a=t.each(e,i.ns.schema("skills")).map(e=>s(t,e)).filter(e=>""!==e),d=t.each(e,i.ns.schema("knowsLanguage")).flatMap(e=>u(t,e)).map(e=>l(t,e)),p=Array.from(new Set(d));return{rolesByType:n,skills:a,languages:p}},t.skillAsText=s,t.typesOfRole=void 0;var a=n(5491),i=n(9426);const o=(0,a.Namespace)("http://www.w3.org/ns/org#"),r=t.typesOfRole=["PastRole","CurrentRole","FutureRole"];function s(e,t){if("Literal"===t.termType)return t.value;const n=e.anyJS(t,i.ns.solid("publicId"));if(n){const t=e.anyJS(n,i.ns.schema("name"));if(t)return t}const a=e.anyJS(t,i.ns.vcard("role"));return a&&a[0]>""?a:""}function l(e,t){if("Literal"===t.termType)return t.value;const n=e.anyJS(t,i.ns.solid("publicId"));return n?i.utils.label(n,!0):""}function c(e,t){return e?"("+e.value.slice(0,10)+" to "+(t?t.value.slice(0,10):"")+")":""}function u(e,t){const n=t.elements;if(Array.isArray(n))return n.flatMap(t=>u(e,t));if(!e.any(t,i.ns.rdf("first")))return[t];const a=[];let o=t;for(;o;){const t=e.any(o,i.ns.rdf("first"));t&&a.push(...u(e,t));const n=e.any(o,i.ns.rdf("rest"));if(!n||"NamedNode"===n.termType&&n.value===i.ns.rdf("nil").value)break;o=n}return a}},4799(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChatWithMe=void 0;var a=n(6752),i=n(9426),o=n(5663),r=n(4697),s=n(1363),l=n(4198);n(2252);t.ChatWithMe=(e,t)=>{const n=t.session.logic,c=t.session.paneRegistry.byName("long chat");return a.html` ${(0,r.asyncReplace)(async function*(){const r=t.dom.createElement("section");r.setAttribute("class","chatSection section-centered"),r.setAttribute("aria-labelledby","chat-section-title"),r.setAttribute("role","region"),r.setAttribute("data-testid","chat");const u=t.dom.createElement("h3");let d;u.id="chat-section-title",u.className="sr-only",u.textContent="Communication",r.appendChild(u);try{yield a.html`
54
+ <div class="buttonSubSection">
55
+ <div class="actionButton loading-text center" role="status" aria-live="polite">
56
+ ${s.loadingMessage.toUpperCase()}
57
+ </div>
58
+ </div>
59
+ `,d=await n.chat.getChat(e,!1)}catch(p){d=!1}if(d){const f=t.dom.createElement("div");f.setAttribute("role","log"),f.setAttribute("aria-label","Chat conversation"),f.appendChild(c.render(d,t,{})),r.appendChild(f),yield r}else{const m=o.authn.currentUser();let h=(0,l.checkIfAnyUserLoggedIn)(m)?s.chatWithMeButtonText.toUpperCase():s.logInToChatWithMeButtonText.toUpperCase();const g=i.widgets.button(t.dom,void 0,h,b,{needsBorder:!0});async function b(a){a.preventDefault();try{const a=await n.chat.getChat(e,!0);r.innerHTML="",r.appendChild(c.render(a,t,{}))}catch(e){(0,l.complain)(r,t,e)}}function v(){const e=o.authn.currentUser();(0,l.checkIfAnyUserLoggedIn)(e)?g.innerHTML=s.chatWithMeButtonText.toUpperCase():g.innerHTML=s.logInToChatWithMeButtonText.toUpperCase()}g.refresh=v(),g.setAttribute("type","button"),g.setAttribute("aria-describedby","chat-button-description");const y=t.dom.createElement("span");y.id="chat-button-description",y.className="sr-only",y.textContent="Start a new conversation or sign in to continue existing chat",g.classList.add("actionButton","btn-primary","action-button-focus"),r.appendChild(g),r.appendChild(y),yield r}}())} `}},1119(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractFriends=t.FriendList=void 0;var a=n(9426),i=n(6752);n(9480);t.FriendList=(e,t)=>{const n=o(e,t);return n&&n.textContent?.trim()?i.html`
60
+ <section
61
+ class="friendListSection"
62
+ role="region"
63
+ aria-labelledby="friends-section-title"
64
+ data-testid="friend-list"
65
+ >
66
+ <nav aria-label="Friend profiles">
67
+ <ul class="list-reset zebra-stripe" role="list">
68
+ ${n}
69
+ </ul>
70
+ </nav>
71
+ </section>
72
+ `:null};const o=(e,{dom:t})=>{const n=t.createElement("div");return a.widgets.attachmentList(t,e,n,{doc:e.doc(),modify:!1,predicate:a.ns.foaf("knows"),noun:"friend"}),""===n.textContent?null:(n.querySelectorAll("li").forEach((e,t)=>{e.classList.add("friendItem");const n=e.querySelector("a");n&&n.textContent?e.setAttribute("aria-label",`Friend: ${n.textContent.trim()}`):e.textContent?e.setAttribute("aria-label",`Friend: ${e.textContent.trim()}`):e.setAttribute("aria-label",`Friend ${t+1}`)}),n)};t.extractFriends=o},8348(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProfileCard=void 0;var a=n(6752);n(519);var i=n(4695),o=n(7983);t.ProfileCard=({name:e,imageSrc:t,introduction:n,location:l,pronouns:c,highlightColor:u,backgroundColor:d},p,f)=>a.html`
73
+ <article class="profileCard" aria-labelledby="profile-name">
74
+ <h2 id="profile-name" class="sr-only">${e}</h2>
75
+ <header class="header flex-column-center mb-md" aria-label="Profile information">
76
+ ${s(t,e)}
77
+ </header>
78
+
79
+ <section class="intro text-center" aria-label="About">
80
+ ${r(n,"","About")}
81
+ ${r(l,"🌐","Location")}
82
+ ${r(c,"","Pronouns")}
83
+ </section>
84
+
85
+ <section class="buttonSection text-center" aria-label="Actions">
86
+ ${(0,i.addMeToYourFriendsDiv)(f,p)}
87
+ </section>
88
+
89
+ <div class="qrCodeSection section-centered">
90
+ ${(0,o.QRCodeCard)(u,d,f)}
91
+ </div>
92
+ </article>
93
+ `;const r=(e,t=a.nothing,n="")=>e?a.html`
94
+ <div class="details" role="text" ${n?`aria-label="${n}: ${e}"`:""}>
95
+ ${t} ${e}
96
+ </div>
97
+ `:a.nothing,s=(e,t)=>e?a.html`
98
+ <img
99
+ class="image"
100
+ src=${e}
101
+ alt="Profile photo of ${t}"
102
+ width="160"
103
+ height="160"
104
+ loading="eager"
105
+ />
106
+ `:a.html`
107
+ <div class="image-alt" role="img" aria-label="${t}" tabindex="0">
108
+ ${t}
109
+ </div>
110
+ `},3447(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProfileView=async function(e,t){const n=t.session.store,h=(0,r.presentProfile)(e,n),g=(0,s.presentCV)(e,n),b=(0,l.presentSocial)(e,n),v=await(0,c.presentStuff)(e);return a.html`
111
+ <main
112
+ id="main-content"
113
+ class="profile-grid"
114
+ style="--profile-grid-bg: radial-gradient(circle, ${h.backgroundColor} 80%, ${h.highlightColor} 100%)"
115
+ role="main"
116
+ aria-label="Profile for ${h.name}"
117
+ tabindex="-1"
118
+ >
119
+
120
+ <article
121
+ aria-labelledby="profile-card-heading"
122
+ class="profileSection section-bg"
123
+ role="region"
124
+ tabindex="-1"
125
+ >
126
+ <header class="text-center mb-md">
127
+ <h2 id="profile-card-heading" tabindex="-1">${h.name}</h2>
128
+ </header>
129
+ ${(0,u.ProfileCard)(h,t,e)}
130
+ </article>
131
+
132
+ ${(()=>{const e=(0,d.CVCard)(g);return e&&e.strings&&""!==e.strings.join("").trim()?a.html`
133
+ <section
134
+ aria-labelledby="cv-heading"
135
+ class="profileSection section-bg"
136
+ role="region"
137
+ tabindex="-1"
138
+ >
139
+ <header class="text-center mb-md">
140
+ <h2 id="cv-heading" tabindex="-1">${m.resumeHeadingText}</h2>
141
+ </header>
142
+ <div>
143
+ ${e}
144
+ </div>
145
+ </section>
146
+ `:""})()}
147
+
148
+ ${b.accounts&&b.accounts.length>0?a.html`
149
+ <aside
150
+ aria-labelledby="social-heading"
151
+ class="profileSection section-bg"
152
+ role="complementary"
153
+ tabindex="-1"
154
+ >
155
+ <header class="text-center mb-md">
156
+ <h2 id="social-heading" tabindex="-1">${m.socialAccountsHeadingText}</h2>
157
+ </header>
158
+ <nav aria-label="Social media links">
159
+ ${(0,p.SocialCard)(b)}
160
+ </nav>
161
+ </aside>
162
+ `:""}
163
+
164
+ ${v.stuff&&v.stuff.length>0?a.html`
165
+ <section
166
+ aria-labelledby="stuff-heading"
167
+ class="profileSection section-bg"
168
+ role="region"
169
+ tabindex="-1"
170
+ >
171
+ <header class="text-center mb-md">
172
+ <h2 id="stuff-heading" tabindex="-1">${m.sharedItemsHeadingText}</h2>
173
+ </header>
174
+ <div>
175
+ ${(0,f.StuffCard)(h,t,e,v)}
176
+ </div>
177
+ </section>
178
+ `:""}
179
+
180
+ ${(()=>{const n=(0,o.FriendList)(e,t);return n?a.html`
181
+ <aside
182
+ aria-labelledby="friends-heading"
183
+ class="profileSection section-bg"
184
+ role="complementary"
185
+ tabindex="-1"
186
+ >
187
+ <header class="text-center mb-md">
188
+ <h2 id="friends-heading" tabindex="-1">${m.friendsHeadingText}</h2>
189
+ </header>
190
+ <div role="list" aria-label="Friend connections">
191
+ ${n}
192
+ </div>
193
+ </aside>
194
+ `:""})()}
195
+
196
+ <section
197
+ aria-labelledby="chat-heading"
198
+ class="profileSection section-bg"
199
+ role="region"
200
+ tabindex="-1"
201
+ >
202
+ <header class="text-center mb-md">
203
+ <h2 id="chat-heading" tabindex="-1">${m.contactHeadingText}</h2>
204
+ </header>
205
+ <div>
206
+ ${(0,i.ChatWithMe)(e,t)}
207
+ </div>
208
+ </section>
209
+ </main>
210
+ `};var a=n(6752);n(1570);var i=n(4799),o=n(1119),r=n(4887),s=n(7408),l=n(6294),c=n(2865),u=n(8348),d=n(5956),p=n(1038),f=n(135),m=n(1363)},7983(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QRCodeCard=void 0;var a=n(6752),i=n(9426);n(2592);var o=n(1363);function r(e){if(3===(e=e.replace(/^#/,"")).length&&(e=e.split("").map(e=>e+e).join("")),6!==e.length)return null;const t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:255&t}}function s({r:e,g:t,b:n}){const a=[e,t,n].map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*a[0]+.7152*a[1]+.0722*a[2]}t.QRCodeCard=(e,t,n)=>{const l=e||"#000000",c=t||"#ffffff",u=i.utils.label(n),d=function(e,t){const n=r(e),a=r(t);if(!n||!a)return 1;const i=s(n),o=s(a);return(Math.max(i,o)+.05)/(Math.min(i,o)+.05)}(l,c);d<4.5&&console.warn(`QRCodeCard: The contrast ratio between highlightColor (${l}) and backgroundColor (${c}) is ${d.toFixed(2)}, which is below the WCAG 2.1 recommended minimum of 4.5:1 for normal text.`);const p="FN:"+u+"\r\n",f="URL:"+n.uri+"r\n";setTimeout(()=>{const e=document.querySelector('.QRCode [role="img"]');if(e){const t=e.hasAttribute("aria-label"),n=e.hasAttribute("alt");t||n||console.warn("QRCodeCard: The QR code element should have an accessible label (aria-label or alt attribute) for screen readers.")}else console.warn('QRCodeCard: No element with role="img" found for the QR code. Ensure the QR code is rendered as an <img> or <canvas> with proper ARIA attributes.')},0);const m="BEGIN:VCARD\r\n"+p+f+"END:VCARD\r\nVERSION:4.0\r\n";return a.html`
211
+ <figure
212
+ class="QRCode"
213
+ data-value="${m}"
214
+ highlightColor="${l}"
215
+ backgroundColor="${c}"
216
+ data-testid="qrcode-card"
217
+ aria-labelledby="qr-code-caption"
218
+ role="img"
219
+ aria-describedby="qr-code-description"
220
+ >
221
+ <div
222
+ aria-label="Static QR code containing contact information for ${u}"
223
+ role="img"
224
+ tabindex="0"
225
+ ></div>
226
+ <figcaption
227
+ id="qr-code-caption"
228
+ class="qrCaption"
229
+ >
230
+ ${o.scanQrToConnectText}
231
+ </figcaption>
232
+ <div
233
+ id="qr-code-description"
234
+ class="sr-only"
235
+ >
236
+ This is a static QR code containing vCard information for ${u}, including profile URL ${n.uri}. The QR code is not interactive.
237
+ </div>
238
+ </figure>
239
+ `}},1038(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SocialCard=void 0;var a=n(6752);n(2739);t.SocialCard=e=>{const{accounts:t}=e;if(t.length)return a.html`
240
+ <section
241
+ class="socialCard"
242
+ aria-labelledby="social-card-title"
243
+ data-testid="social-media"
244
+ >
245
+ <nav aria-label="Social media profiles">
246
+ <ul class="socialList list-reset" role="list">
247
+ ${t.map(e=>function(e){return e.homepage&&e.name&&e.icon?a.html`
248
+ <li class="socialItem" role="listitem">
249
+ <a
250
+ href="${e.homepage}"
251
+ target="_blank"
252
+ rel="noopener noreferrer"
253
+ aria-label="Visit ${e.name} profile (opens in new tab)"
254
+ >
255
+ <img
256
+ class="socialIcon"
257
+ src="${e.icon}"
258
+ alt="${e.name} icon"
259
+ width="40"
260
+ height="40"
261
+ loading="lazy"
262
+ />
263
+ <span class="text-wrap-anywhere">${e.name}</span>
264
+ </a>
265
+ </li>
266
+ `:a.html``}(e))}
267
+ </ul>
268
+ </nav>
269
+ </section>
270
+ `}},6294(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.presentSocial=function(e,t){function n(e){const n=t.any(e,a.ns.foaf("name"))||t.any(e,a.ns.rdfs("label"));if(n)return n.value;const i=t.each(e,a.ns.rdf("type"));for(const e of i){const n=t.any(e,a.ns.rdfs("label"));return n?n.value:a.utils.label(e)}return"Unknown Account"}function r(e){const n=t.any(e,a.ns.foaf("icon"));if(n)return n.value;const i=t.each(e,a.ns.rdf("type"));if(i.length>0)for(const e of i){const n=t.any(e,a.ns.foaf("icon"));if(null!==n)return n.value}return o}function s(e){const n=t.any(e,a.ns.foaf("homepage"));if(n)return n.value;const i=t.anyJS(e,a.ns.foaf("accountName"),null,e.doc())||"No_account_Name",o=t.each(e,a.ns.rdf("type"));for(const e of o)if("NamedNode"===e.termType){const n=t.any(e,a.ns.foaf("userProfilePrefix"));if(n)return n.value+i.trim()}return t.anyJS(e,a.ns.foaf("homepage"),null,e.doc())||""}function l(e){return{name:n(e),icon:r(e),homepage:s(e)}}(0,i.loadDocument)(t,'@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@prefix org: <http://www.w3.org/ns/org#>.\n@prefix : <#>.\n\n########### ATTENTION - we cannot rename this ontology file name without migrating existing data on existing accounts\n\n########### Social Media - other accounts\n#\n# Twitter, linked In, Orkid, Mastodon, Matrix, Bluesky, Instagram, Facebook, Github,\n# Snapchat, TikTok, etc\n\n:this\n <http://purl.org/dc/elements/1.1/title> "Social media form" ;\n a ui:Form ;\n ui:parts (\n :SocialsForm\n ).\n\n:SocialsForm a ui:Multiple;\n ui:label "online account";\n ui:property foaf:account; # the triple is created with the foaf:acccounts predicate\n ui:ordered true; # Allow user to order occounts most important first.\n ui:part :AccountsForm.\n\n:AccountsForm a ui:Group; \n ui:weight 1; \n ui:parts ( \n :AccountField \n :AccountIdField ).\n\n:AccountField a ui:Classifier; \n ui:label "Choose account"@en;\n ui:multiple false ; \n ui:category foaf:Account. # the accounts are described by the foaf:Account predicate\n\n# this is what is needed to make a dropdown box\nfoaf:Account a rdfs:Class;\n rdfs:label "Online Account Provider";\n owl:disjointUnionOf ( \n :BlueSkyAccount :DiggAccount :FacebookAccount :GithubAccount :InstagramAccount\n :LinkedInAccount :MastodonAccount :MatrixAccount :MediumAccount :NostrAccount \n :OrcidAccount :PinterestAccount :RedditAccount :SnapchatAccount :StravaAccount \n :TiktokAccount :TumblrAccount :TwitterAccount :OtherAccount) .\n\n:AccountIdField a ui:Options; \n ui:dependingOn rdf:type; \n ui:case\n [ ui:for :BlueSkyAccount; ui:use :BlueSkyIdField ],\n [ ui:for :DiggAccount; ui:use :DiggIdField],\n [ ui:for :FacebookAccount; ui:use :FacebookIdField ],\n [ ui:for :GithubAccount; ui:use :GithubIdField ],\n [ ui:for :InstagramAccount; ui:use :InstagramIdField ],\n [ ui:for :LinkedInAccount; ui:use :LinkedInIdField ],\n [ ui:for :MastodonAccount; ui:use :MastodonIdField ],\n [ ui:for :MatrixAccount; ui:use :MatrixIdField ],\n [ ui:for :MediumAccount; ui:use :MediumIdField ],\n [ ui:for :NostrAccount; ui:use :NostrIdField ],\n [ ui:for :OrcidAccount; ui:use :OrcidIdField ],\n [ ui:for :PinterestAccount; ui:use :PinterestIdField ],\n [ ui:for :RedditAccount; ui:use :RedditIdField ],\n [ ui:for :StravaAccount; ui:use :StravaIdField ],\n [ ui:for :SnapchatAccount; ui:use :SnapchatIdField ],\n [ ui:for :TiktokAccount; ui:use :TiktokIdField ],\n [ ui:for :TumblrAccount; ui:use :TumblrIdField ],\n [ ui:for :TwitterAccount; ui:use :TwitterIdField ],\n [ ui:for :OtherAccount; ui:use :OtherIdForm ] .\n\n:BlueSkyAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Bluesky";\n foaf:userProfilePrefix "https://bsky.app/profile/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/bluesky-1.svg>;\n foaf:homepage <https://bsky.app/> .\n\n:DiggAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Digg";\n foaf:userProfilePrefix "https://www.digg.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/digg-icon.svg>;\n foaf:homepage <https://www.digg.com/> .\n\n:FacebookAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Facebook";\n foaf:userProfilePrefix "https://www.facebook.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/facebook-2020-2-1.svg>;\n foaf:homepage <https://www.facebook.com/> .\n\n:GithubAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Github";\n foaf:userProfilePrefix "https://www.github.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/github-icon.svg>;\n foaf:homepage <https://github.com/> .\n\n:InstagramAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Instagram";\n foaf:userProfilePrefix "https://www.instagram.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/instagram-2016-5.svg>;\n foaf:homepage <https://www.instagram.com/> .\n\n:LinkedInAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "LinkedIn";\n foaf:userProfilePrefix "https://www.linkedin.com/in/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/linkedin-icon.svg>;\n foaf:homepage <https://linkedin.com/> .\n\n:MastodonAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Mastodon" ;\n foaf:userProfilePrefix "https://mastodon.social/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/mastodon-2.svg>;\n foaf:homepage <https://joinmastodon.org/> .\n\n:MatrixAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Matrix" ;\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/matrix-logo-black.svg> ;\n foaf:userProfilePrefix "https://matrix.to/#/" ;\n foaf:homepage <https://matrix.org/> .\n\n:MediumAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Medium";\n foaf:userProfilePrefix "https://medium.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/medium-logo-wordmark-black.svg>;\n foaf:homepage <https://medium.com/> .\n\n:NostrAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Nostr";\n foaf:userProfilePrefix "https://primal.net/p/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/nostr-icon-purple-on-white.svg>;\n foaf:homepage <https://nostr.net/> .\n\n:OrcidAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "ORCiD";\n foaf:userProfilePrefix "https://orcid.org/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/ORCID-1.svg>;\n foaf:homepage <https://orcid.org/> .\n\n:PinterestAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Pinterest";\n foaf:userProfilePrefix "https://pin.it/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/pinterest-2-1.svg>;\n foaf:homepage <https://pinterest.com/> .\n\n:RedditAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Reddit";\n foaf:userProfilePrefix "https://www.reddit.com/user/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/reddit-4.svg>;\n foaf:homepage <https://reddit.com/> .\n\n:SnapchatAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Snapchat";\n foaf:userProfilePrefix "https://www.snapchat.com/add/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/snapchat-1.svg>;\n foaf:homepage <https://www.snapchat.com/> .\n\n:StravaAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Strava";\n foaf:userProfilePrefix "https://www.strava.com/athletes/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/strava-2.svg>;\n foaf:homepage <https://strava.com/> .\n\n:TiktokAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "TikTok";\n foaf:userProfilePrefix "https://www.tiktok.com/@";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/tiktok-icon-2.svg>;\n foaf:homepage <https://www.tiktok.com/> .\n\n:TumblrAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Tumblr";\n foaf:userProfilePrefix "https://www.tumblr.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/tumblr-icon.svg>;\n foaf:homepage <https://www.tumblr.com/> .\n\n:TwitterAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "X";\n foaf:userProfilePrefix "https://x.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/x-2.svg>;\n foaf:homepage <https://x.com/> .\n\n:OtherAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Other" ;\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/noun_1689339.svg> .\n\n:BlueSkyIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-](.[a-z0-9A-Z_-])*".\n\n:DiggIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-](.[a-z0-9A-Z_-])*".\n\n:FacebookIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:GithubIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:InstagramIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:LinkedInIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:MastodonIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:MatrixIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:MediumIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:NostrIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:OrcidIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:PinterestIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:RedditIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:StravaIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:SnapchatIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*".\n\n:TiktokIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*".\n\n:TumblrIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*".\n\n:TwitterIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*".\n\n# an unknown online account needs more info\n\n:OtherIdForm a ui:Group; \n ui:weight 0; \n ui:parts ( \n :OtherIdField \n :OtherIconField \n :OtherLabelField ).\n\n:OtherIdField\n a ui:NamedNodeURIField ;\n ui:label "Account link";\n ui:maxLength "200" ;\n ui:property foaf:homepage.\n\n:OtherIconField\n a ui:NamedNodeURIField ;\n ui:label "Icon link";\n ui:maxLength "200" ;\n ui:property foaf:icon.\n\n:OtherLabelField\n a ui:SingleLineTextField ;\n ui:label "Name";\n ui:maxLength "200" ;\n ui:property rdfs:label.\n\n# ends\n',"socialMedia.ttl");let c=t.each(e,a.ns.foaf("account")).flatMap(e=>function(e,t){const n=new Set;function i(t){const o=`${t.termType||typeof t}:${t.value||String(t)}`;if(n.has(o))return[];n.add(o);const r=t.elements;if(Array.isArray(r))return r.flatMap(e=>i(e));if(!e.any(t,a.ns.rdf("first")))return[t];const s=[];let l=t;for(;l;){const t=e.any(l,a.ns.rdf("first"));t&&s.push(...i(t));const n=e.any(l,a.ns.rdf("rest"));if(!n||"NamedNode"===n.termType&&n.value===a.ns.rdf("nil").value)break;l=n}return s}return i(t)}(t,e));const u=new Set,d=[];for(const e of c)if("NamedNode"===e.termType){const n=t.any(e,a.ns.foaf("accountName")),i=n?n.value:"";u.has(i)||(u.add(i),d.push(l(e)))}return d.length?{accounts:d}:{accounts:[]}};var a=n(9426),i=n(7824);const o=a.icons.iconBase+"noun_10636_grey.svg"},135(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StuffCard=void 0,t.renderThing=r,t.renderThingAsDOM=o,t.renderThings=s;var a=n(6752),i=n(9426);n(2538);function o(e,t){return i.widgets.personTR(t,null,e.instance,{})}function r(e,t){return o(e,t)}function s(e,t){return 0===e.length?a.html``:a.html`${r(e[0],t)}${e.length>1?s(e.slice(1),t):a.html``}`}t.StuffCard=(e,t,n,i)=>{const{stuff:o}=i,r=t.dom||document;return a.html`
271
+ <section
272
+ class="stuffCard"
273
+ aria-labelledby="stuff-card-title"
274
+ role="region"
275
+ data-testid="stuff"
276
+ >
277
+ <header>
278
+ <h3 id="stuff-card-title" class="sr-only">Shared Resources</h3>
279
+ </header>
280
+ <div>
281
+ <table class="stuffTable" data-testid="stuffTable">
282
+ <caption class="sr-only">Files and resources shared by ${e.name}</caption>
283
+ <tbody class="zebra-stripe">
284
+ ${s(o,r)}
285
+ </tbody>
286
+ </table>
287
+ </div>
288
+ </section>
289
+ `}},2865(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIconForClass=u,t.iconForClassMap=void 0,t.presentStuff=async function(e){const t=await l(null,e);return{stuff:t.map(e=>{const t=u(e.type||i.ns.rdf("Resource"));return{href:e.instance.uri,name:i.utils.label(e.instance),icon:t,instance:e.instance}})}};var a=n(5491),i=n(9426),o=n(5663);const{iconForClass:r}=i.widgets,{typeIndex:s}=o.solidLogicSingleton,{getScopedAppInstances:l}=s,c=t.iconForClassMap={};for(const e in r){const t=e.split(":")[0],n=e.split(":")[1],o=i.ns[t](n);c[o.uri]=a.uri.join(r[e],i.icons.iconBase)}function u(e){return c[e.uri]||i.icons.iconBase+"noun_10636.svg"}},4695(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addMeToYourFriendsDiv=void 0,t.checkIfFriendExists=f,t.createAddMeToYourFriendsButton=void 0,t.saveNewFriend=d;var a=n(6752),i=n(5663),o=n(5491),r=n(9426),s=n(4198),l=n(1363);n(519);let c=document.createElement("section");t.addMeToYourFriendsDiv=(e,t)=>{c=t.dom.createElement("section"),c.setAttribute("class","buttonSubSection text-truncate text-center section-centered"),c.setAttribute("aria-labelledby","add-me-to-your-friends-button-section"),c.setAttribute("data-testid","button");const n=t.dom.createElement("h3");n.setAttribute("id","add-me-to-your-friends-button-section"),n.setAttribute("class","sr-only"),n.textContent="Add me to your friends actions",c.appendChild(n);const i=u(e,t);return i.classList.add("actionButton","btn-primary","action-button-focus"),c.appendChild(i),a.html`${c}`};const u=(e,t)=>{let n=p(i.authn.currentUser())?l.addMeToYourFriendsButtonText.toUpperCase():l.logInAddMeToYourFriendsButtonText.toUpperCase();const a=r.widgets.button(t.dom,void 0,n,function(n){n.preventDefault(),d(e,t).then(()=>{(0,s.clearPreviousMessage)(c),(0,s.mention)(c,l.friendWasAddedSuccesMessage),o()}).catch(e=>{(0,s.clearPreviousMessage)(c),(0,s.complain)(c,t,e)})},{needsBorder:!0});function o(){const n=i.authn.currentUser(),o=t.session.store;p(n)?f(o,n,e).then(e=>{a.innerHTML=e?l.friendExistsAlreadyButtonText.toUpperCase():l.addMeToYourFriendsButtonText.toUpperCase()}):a.innerHTML=l.logInAddMeToYourFriendsButtonText.toUpperCase()}return a.refresh=o(),a};async function d(e,t){const n=i.authn.currentUser(),a=t.session.store;if(!p(n))throw new Error(l.userNotLoggedInErrorMessage);if(await f(a,n,e))throw new Error(l.friendExistsMessage);{await a.fetcher.load(n);const t=a.updater,i=[(0,o.st)(n,r.ns.foaf("knows"),e,n.doc())];try{await t.update([],i)}catch(e){let t=e;throw t.toString().includes("Unauthenticated")&&(t=l.userNotLoggedInErrorMessage),new Error(t)}}}function p(e){return!!e}async function f(e,t,n){return await e.fetcher.load(t),0!==e.whether(t,r.ns.foaf("knows"),n,t.doc())}t.createAddMeToYourFriendsButton=u},4198(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkIfAnyUserLoggedIn=function(e){return!!e},t.clearPreviousMessage=function(e){for(;e.childNodes.length>2;)e.removeChild(e.lastChild)},t.complain=function(e,t,n){const i=a.widgets.errorMessageBlock(t.dom,n);i.setAttribute("role","alert"),i.setAttribute("aria-live","assertive"),i.setAttribute("tabindex","0"),setTimeout(()=>{i.focus()},100),e.appendChild(i)},t.mention=function(e,t){const n=document.createElement("div");n.setAttribute("role","status"),n.setAttribute("aria-live","polite"),n.setAttribute("tabindex","0"),n.classList.add("actionButton","licOkay"),n.innerHTML=t,setTimeout(()=>{n.focus()},100),e.appendChild(n)};var a=n(9426)},6016(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditCVSection=function(e,t,n,a){const r=e.dom.createElement("section");r.setAttribute("data-testid","edit-cv-section"),r.setAttribute("aria-labelledby","edit-profile-cv-heading"),r.classList.add("profileSection","section-bg","profile-form");const s=e.dom.createElement("header");s.classList.add("text-center","mb-md");const l=e.dom.createElement("h2");if(l.id="edit-profile-cv-heading",l.classList.add("section-title"),l.textContent=o.resumeHeadingText,s.appendChild(l),r.appendChild(s),n){const t=e.dom.createElement("p");t.classList.add("p-md"),t.textContent="Edit your resume. These will be publicly visible on your profile.",r.appendChild(t)}else{const t=e.dom.createElement("p");t.classList.add("p-md"),t.textContent="Login to add resume information to your profile.",r.appendChild(t)}return(0,i.default)(r,t,'@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@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 : <#>.\n\n:this\n <http://purl.org/dc/elements/1.1/title> "Resume form" ;\n a ui:Form ;\n ui:parts (\n :CVGroup\n :SkillsHeading :SkillsForm\n :LanguagesHeading :LanguagesForm\n ).\n\n# Curriculum Vitae: membership of organizations\n\n:CVGroup a ui:Group; \n ui:weight 1; \n ui:parts ( \n :CVPrompt \n :involvementWithOrganizationsForm \n ).\n\n:CVPrompt a ui:Comment; ui:contents "What organizations have you been involved with?" .\n\n:involvementWithOrganizationsForm a ui:Multiple;\n ui:label "Involvement with organization";\n ui:property org:member; \n 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\norg:member owl:inverse [ ui:label "Involvement with organization" ]. # timelimited involvement\n\n# This is a big important form for one of a series of roles in the list.\n\n:RoleMembershipForm a ui:Group; \n ui:weight 3; \n ui:parts ( \n :MembershipFormHeading \n :roleNameField\n :escoOccupationField \n :orgField \n :RoleClassifier \n :RoleDatesForm \n :RoleDescriptionForm).\n\n:MembershipFormHeading a ui:Heading; \n ui:contents "Details of the role"@en, "Détailes de ce rôle"@fr .\n\n:roleNameField a ui:SingleLineTextField; \n ui:property vcard:role .\n\n:escoOccupationField a ui:AutocompleteField;\n ui:label "Occupation";\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:orgField a ui:Choice; \n ui:label "Organization"@en, "Organization"@fr;\n ui:canMintNew true; \n ui:use :OrganizationCreationForm ;\n ui:property org:organization;\n ui:from vcard:Organization .\n\nvcard:Organization ui:creationForm :OrganizationCreationForm .\n\n###### eposodes in one\'s career - Roles\n\n:RoleClassifier a ui:Classifier; \n ui:label "What sort of role?"@en;\n ui:category solid:Role .\n\n:RoleDatesForm a ui:Options; \n ui:dependingOn rdf:type; \n 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 :TwoDateForm a ui:Group; \n ui:weight 0; \n ui:parts ( :StartDateForm :EndDateForm ) .\n :StartDateForm a ui:DateField; \n ui:label "Start"@en,"Début"@fr;\n ui:property schema:startDate .\n :EndDateForm a ui:DateField; \n ui:label "End"@en,"Fin"@fr;\n ui:property schema:endDate .\n\nsolid:Role a rdfs:Class;\n owl:disjointUnionOf ( solid:PastRole solid:CurrentRole solid:FutureRole ) ;\n owl:oneOf ( solid:CurrentRole solid:PastRole solid:FutureRole ). # Future Role too?\n\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:RoleDescriptionForm a ui:MultiLineTextField; \n ui:property schema:description;\n ui:label "Describe your role" .\n\n###### Organizations\n\n:OrganizationCreationForm a ui:Form; \n schema:name "Form for editing an organization using public data" ;\n ui:parts ( \n :OrgClassifier \n :OrgSwitch \n :OrganizationNameField \n :homePageURIField ) .\n\n:OrgClassifier a ui:Classifier; \n ui:label "Type of organization?"@en;\n ui:category solid:InterestingOrganization .\n\n:OrgSwitch a ui:Options; \n 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 schema:SportsOrganization; ui:use :SportsOrganizationForm ].\n\n:OrganizationNameField\n a ui:SingleLineTextField ;\n ui:label "Name";\n ui:maxLength "200" ;\n ui:property schema:name .\n\n:homePageURIField a ui:NamedNodeURIField;\n ui:label "Homepage"@en;\n ui:property schema:uri .\n\n# Ontology data to drive the :OrgClassifier classifier\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\n schema:PerformingGroup # a band\n schema:Project # like Solid\n schema:SportsOrganization) .\n\n# This until the schema.org ontology adopts it\nschema:ResearchOrganization a rdfs:Class; \n rdfs:label "Research Organization"@en, "Organization de Recherche"@fr ,"organización de investigación"@es, \n "منظمة البحث"@ar, "अनुसंधान संगठन"@hi, "Forschungsorganisation"@de, "shirika la utafiti"@sw .\n\n##### Depending on the type of org, chose a different form\n\n#### Corporation\n:CorporationForm a ui:Group; \n ui:weight 0; \n ui:parts ( \n :CorporationPrompt \n :CorporationAutocomplete ) .\n\n :CorporationPrompt a ui:Comment; ui:contents "Corporation details".\n\n :CorporationAutocomplete a ui:AutocompleteField; \n ui:label "Find in wikidata";\n ui:targetClass <http://www.wikidata.org/entity/Q6881511>; # Enterprise\n ui:property solid:publicId; \n 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#### Gouvernment\n:GovernmentOrganizationForm a ui:Group; \n ui:weight 0; \n ui:parts ( \n :GovernmentOrganizationPrompt \n :GovernmentOrganizationAutocomplete ) .\n\n :GovernmentOrganizationPrompt a ui:Comment; ui:contents "Government organization details".\n\n :GovernmentOrganizationAutocomplete\n a ui:AutocompleteField; ui:label "Find in wikidata";\n ui:targetClass <http://www.wikidata.org/entity/Q327333>; # GovernmentOrganization\n ui:property solid:publicId; \n ui:dataSource :WikidataInstancesByName.\n\n#### Educational\n:EducationalOrganizationForm a ui:Group; \n ui:weight 1; \n ui:parts ( \n :EducationalOrganizationPrompt \n :EducationalOrganizationAutocomplete ) .\n\n :EducationalOrganizationPrompt a ui:Comment; ui:contents "Educational organization details".\n\n :EducationalOrganizationAutocomplete\n a ui:AutocompleteField; ui:label "Find in wikidata";\n ui:targetClass <http://www.wikidata.org/entity/Q2385804>; # EducationalOrganization\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n#### Research Group\n:ResearchOrganizationForm a ui:Group; \n ui:weight 0; \n ui:parts ( \n :ResearchOrganizationPrompt \n :ResearchOrganizationAutocomplete ) .\n\n :ResearchOrganizationPrompt a ui:Comment; ui:contents "Research organizationd details".\n\n :ResearchOrganizationAutocomplete\n a ui:AutocompleteField; ui:label "Find in wikidata";\n ui:targetClass <http://www.wikidata.org/entity/Q31855>; # research institute\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n#### NGO\n:NGOForm a ui:Group; ui:weight 0; \n ui:parts ( \n :NGOPrompt \n :NGOAutocomplete ) .\n\n :NGOPrompt a ui:Comment; ui:contents "NGO details".\n\n :NGOAutocomplete\n a ui:AutocompleteField; ui:label "Find in wikidata";\n ui:targetClass <http://www.wikidata.org/entity/Q163740>; # Non-profit org\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n#### Performing group\n:PerformingGroupForm a ui:Group; \n ui:weight 0; \n ui:parts ( \n :PerformingGroupPrompt \n :PerformingGroupAutocomplete ) .\n\n :PerformingGroupPrompt a ui:Comment; ui:contents "Performing group details".\n\n :PerformingGroupAutocomplete\n a ui:AutocompleteField; ui:label "Find in wikidata";\n ui:targetClass <http://www.wikidata.org/entity/Q32178211>; # Music Org\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n#### Project\n:ProjectForm a ui:Group; \n ui:weight 0; \n ui:parts ( \n :ProjectPrompt \n :ProjectAutocomplete ) . # :ProjectAutocomplete - no: supress, as not in WD\n\n :ProjectPrompt a ui:Comment; ui:contents "Project details".\n\n :ProjectAutocomplete\n a ui:AutocompleteField; ui:label "Find in wikidata";\n ui:targetClass <http://www.wikidata.org/entity/Q170584>; # Project\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n#### Sports Organization\n:SportsOrganizationForm a ui:Group; \n ui:weight 0; \n ui:parts ( \n :SportsOrganizationPrompt \n :SportsOrganizationAutocomplete ) .\n\n:SportsOrganizationPrompt a ui:Comment; ui:contents "Sports organization details".\n\n:SportsOrganizationAutocomplete\n a ui:AutocompleteField; ui:label "Find in wikidata";\n ui:targetClass <http://www.wikidata.org/entity/Q4438121>; # SportsOrganization\n ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.\n\n#################### Skills\n\n:SkillsHeading a ui:Heading; \n ui:contents "Add your 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 :escoSkillField a ui:AutocompleteField;\n ui:label "Find in ESCO";\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#################### Languages\n\n:LanguagesHeading a ui:Heading; ui:contents "Add your 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";\n ui:property solid:publicId; \n ui:dataSource :WikidataLanguageDataSource;\n ui:targetClass schema:Language .\n\n :WikidataLanguageDataSource\n schema:name "Find in wikidata";\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 ui:searchByNameQuery """SELECT ?item ?subject ?name\n WHERE\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)". }',"resumeForm.ttl",a,e.dom,n),r};var a,i=(a=n(7824))&&a.__esModule?a:{default:a},o=n(1363)},8188(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditProfileCommunitiesSection=function(e,t,n,o){const r=e.dom.createElement("section");r.setAttribute("aria-labelledby","edit-profile-communities-heading"),r.classList.add("profileSection","section-bg");const s=e.dom.createElement("header");s.classList.add("text-center","mb-md");const l=e.dom.createElement("h2");l.id="edit-profile-communities-heading",l.classList.add("section-title"),l.textContent=i.communitiesHeadingText,s.appendChild(l),r.appendChild(s);const c=e.dom.createElement("p");c.id="edit-profile-communities-description",c.classList.add("p-md"),c.textContent="These are organizations and projects whose stuff you share",r.appendChild(c);let u=null;n&&(u=e.dom.createElement("p"),u.id="edit-profile-communities-help",u.classList.add("p-md"),u.textContent="Drag organizations onto the target below to add organizations.",r.appendChild(u));const d=a.widgets.attachmentList(e.dom,t,r,{doc:o,modify:!!n,predicate:a.ns.solid("community"),noun:"community"}),p=[c.id];u?.id&&p.push(u.id);return d.setAttribute("aria-describedby",p.join(" ")),r.appendChild(d),r};var a=n(9426),i=n(1363)},1344(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditContactsSection=function(e,t){const n=e.dom.createElement("section");n.setAttribute("aria-labelledby","edit-profile-contact-heading"),n.classList.add("profileSection","section-bg","profile-form");const i=e.dom.createElement("header");i.classList.add("text-center","mb-md");const o=e.dom.createElement("h2");return o.id="edit-profile-contact-heading",o.classList.add("section-title"),o.textContent=a.yourContactInformationHeading,i.appendChild(o),n.appendChild(i),n.appendChild(function(e,t,n){const a=e.session.paneRegistry.byName(n);if(!a){const t=e.dom.createElement("div");return t.innerText=`Unable to load view: ${n}`,t}const i=a.render(t,e);let o;i&&"function"==typeof i.setAttribute?o=i:i&&i.nodeType===Node.TEXT_NODE?(o=e.dom.createElement("section"),o.appendChild(i)):(o=e.dom.createElement("section"),o.innerText=`View render did not return a valid Node for: ${n}`);return o.setAttribute("role","region"),o.setAttribute("aria-label",`${n} section`),o}(e,t,"contact")),n};var a=n(1363)},8308(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditFriendsSection=function(e,t,n,o){const r=e.dom.createElement("section");r.setAttribute("aria-labelledby","edit-profile-friends-heading"),r.classList.add("profileSection","section-bg");const s=e.dom.createElement("header");s.classList.add("text-center","mb-md");const l=e.dom.createElement("h2");l.id="edit-profile-friends-heading",l.classList.add("section-title"),l.textContent=i.friendsHeadingText,s.appendChild(l),r.appendChild(s);const c=e.dom.createElement("p");c.id="edit-profile-friends-description",c.classList.add("p-md"),c.textContent="This is your public social network. Only put people here to whom you are happy to be publicly connected. (You can always keep private track of friends and family in your contacts.)",r.appendChild(c);let u=null;n&&(u=e.dom.createElement("p"),u.id="edit-profile-friends-help",u.classList.add("p-md"),u.textContent="Drag people onto the target below to add people.",r.appendChild(u));const d=a.widgets.attachmentList(e.dom,t,r,{doc:o,modify:!!n,predicate:a.ns.foaf("knows"),noun:"friend"}),p=[c.id];u?.id&&p.push(u.id);return d.setAttribute("aria-describedby",p.join(" ")),r.appendChild(d),r};var a=n(9426),i=n(1363)},7643(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditOtherPreferencesSection=function(e,t,n,a){const r=e.dom.createElement("section");r.setAttribute("data-testid","edit-other-preferences-section"),r.setAttribute("aria-labelledby","edit-profile-other-preferences-heading"),r.classList.add("profileSection","section-bg","profile-form");const s=e.dom.createElement("header");s.classList.add("text-center","mb-md");const l=e.dom.createElement("h2");return l.id="edit-profile-other-preferences-heading",l.classList.add("section-title"),l.textContent=o.otherPreferencesHeadingText,s.appendChild(l),r.appendChild(s),(0,i.default)(r,t,'@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\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 foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.\n@prefix wd: <http://www.wikidata.org/entity/>.\n@prefix wdt: <http://www.wikidata.org/prop/direct/>.\n\n@prefix : <#>.\n\n\n:this\n <http://purl.org/dc/elements/1.1/title> "Other preferences form" ;\n a ui:Form ;\n ui:parts (\n :styleGroup\n :nicknameGroup\n :pronounsGroup\n ).\n\n:styleGroup a ui:Group; ui:weight 0; \n ui:parts ( :styleHeading :backgroundColor :highlightColor ).\n\n:styleHeading a ui:Heading; ui:contents "The style of your public profile.".\n\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:nicknameGroup a ui:Group; ui:weight 0; \n ui:parts ( :nicknameHeading :nicknameField) .\n\n:nicknameHeading a ui:Heading; ui:contents "What is your nickname?" .\n\n:nicknameField a ui:SingleLineTextField; \n ui:property foaf:nick;\n ui:label "Nickname"@en, "Nom court"@fr.\n\n# Pronouns\n\n:pronounsGroup a ui:Group; ui:weight 0; \n ui:parts ( :pronounsHeading :subjectPronounForm :objectPronounForm :relativePronounForm) .\n\n:pronounsHeading a ui:Heading; 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..." .',"otherPreferencesForm.ttl",a,e.dom,n),r};var a,i=(a=n(7824))&&a.__esModule?a:{default:a},o=n(1363)},5011(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(9426),i=n(1344),o=n(8308),r=n(9410),s=n(8188);n(1930),n(855);var l=n(6016),c=n(7643);const u={global:!0,icon:a.icons.iconBase+"noun_492246.svg",name:"editProfile",label:()=>null,render:function(e,t){const n=t.dom,u=t.session.store,d=n.createElement("section");let p;d.setAttribute("data-testid","profile-editor"),d.setAttribute("role","region"),d.setAttribute("aria-label","Edit your profile");const f=n.createElement("main");f.setAttribute("id","profile-edit-main-content"),f.setAttribute("aria-busy","true"),f.setAttribute("tabindex","-1"),f.classList.add("profile-grid","no-focus-ring");const m=n.createElement("h1");m.classList.add("visually-hidden"),m.textContent="Edit Profile",f.appendChild(m),d.appendChild(f);const h=n.createElement("aside");h.classList.add("p-sm"),h.setAttribute("role","status"),h.setAttribute("aria-live","polite"),h.setAttribute("aria-atomic","true");const g=()=>{h.isConnected||d.appendChild(h)},b={dom:n,div:f,statusArea:h,me:null};return a.login.ensureLoadedProfile(b).then(e=>{const d=e.me,m=d.doc();if(!u.updater)throw new Error("Store has no updater");if(u.any(d,a.ns.solid("editableProfile")))p=u.any(d,a.ns.solid("editableProfile"));else{if(!u.updater.editable(m.uri,u))return g(),void h.appendChild(a.widgets.errorMessageBlock(n,`⚠️ Your profile ${m} is not editable, so we cannot do much here.`,"straw"));p=m}f.appendChild((0,i.EditContactsSection)(t,d)),f.appendChild((0,l.EditCVSection)(t,d,p,u)),f.appendChild((0,r.EditSocialSection)(t,d,p,u)),f.appendChild((0,c.EditOtherPreferencesSection)(t,d,p,u)),f.appendChild((0,o.EditFriendsSection)(t,d,p,m)),f.appendChild((0,s.EditProfileCommunitiesSection)(t,d,p,m)),f.setAttribute("aria-busy","false"),f.focus()}).catch(e=>{g(),h.appendChild(a.widgets.errorMessageBlock(n,e,"#fee")),f.setAttribute("aria-busy","false")}),d}};t.default=u},9410(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditSocialSection=function(e,t,n,a){const r=e.dom.createElement("section");r.setAttribute("data-testid","edit-social-section"),r.setAttribute("aria-labelledby","edit-profile-social-heading"),r.classList.add("profileSection","section-bg","profile-form");const s=e.dom.createElement("header");s.classList.add("text-center","mb-md");const l=e.dom.createElement("h2");if(l.id="edit-profile-social-heading",l.classList.add("section-title"),l.textContent=o.socialAccountsHeadingText,s.appendChild(l),r.appendChild(s),n){const t=e.dom.createElement("p");t.classList.add("p-md"),t.textContent="Add links to your social media accounts here. These will be publicly visible on your profile.",r.appendChild(t)}else{const t=e.dom.createElement("p");t.classList.add("p-md"),t.textContent="Login to add social media accounts to your profile.",r.appendChild(t)}return(0,i.default)(r,t,'@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@prefix org: <http://www.w3.org/ns/org#>.\n@prefix : <#>.\n\n########### ATTENTION - we cannot rename this ontology file name without migrating existing data on existing accounts\n\n########### Social Media - other accounts\n#\n# Twitter, linked In, Orkid, Mastodon, Matrix, Bluesky, Instagram, Facebook, Github,\n# Snapchat, TikTok, etc\n\n:this\n <http://purl.org/dc/elements/1.1/title> "Social media form" ;\n a ui:Form ;\n ui:parts (\n :SocialsForm\n ).\n\n:SocialsForm a ui:Multiple;\n ui:label "online account";\n ui:property foaf:account; # the triple is created with the foaf:acccounts predicate\n ui:ordered true; # Allow user to order occounts most important first.\n ui:part :AccountsForm.\n\n:AccountsForm a ui:Group; \n ui:weight 1; \n ui:parts ( \n :AccountField \n :AccountIdField ).\n\n:AccountField a ui:Classifier; \n ui:label "Choose account"@en;\n ui:multiple false ; \n ui:category foaf:Account. # the accounts are described by the foaf:Account predicate\n\n# this is what is needed to make a dropdown box\nfoaf:Account a rdfs:Class;\n rdfs:label "Online Account Provider";\n owl:disjointUnionOf ( \n :BlueSkyAccount :DiggAccount :FacebookAccount :GithubAccount :InstagramAccount\n :LinkedInAccount :MastodonAccount :MatrixAccount :MediumAccount :NostrAccount \n :OrcidAccount :PinterestAccount :RedditAccount :SnapchatAccount :StravaAccount \n :TiktokAccount :TumblrAccount :TwitterAccount :OtherAccount) .\n\n:AccountIdField a ui:Options; \n ui:dependingOn rdf:type; \n ui:case\n [ ui:for :BlueSkyAccount; ui:use :BlueSkyIdField ],\n [ ui:for :DiggAccount; ui:use :DiggIdField],\n [ ui:for :FacebookAccount; ui:use :FacebookIdField ],\n [ ui:for :GithubAccount; ui:use :GithubIdField ],\n [ ui:for :InstagramAccount; ui:use :InstagramIdField ],\n [ ui:for :LinkedInAccount; ui:use :LinkedInIdField ],\n [ ui:for :MastodonAccount; ui:use :MastodonIdField ],\n [ ui:for :MatrixAccount; ui:use :MatrixIdField ],\n [ ui:for :MediumAccount; ui:use :MediumIdField ],\n [ ui:for :NostrAccount; ui:use :NostrIdField ],\n [ ui:for :OrcidAccount; ui:use :OrcidIdField ],\n [ ui:for :PinterestAccount; ui:use :PinterestIdField ],\n [ ui:for :RedditAccount; ui:use :RedditIdField ],\n [ ui:for :StravaAccount; ui:use :StravaIdField ],\n [ ui:for :SnapchatAccount; ui:use :SnapchatIdField ],\n [ ui:for :TiktokAccount; ui:use :TiktokIdField ],\n [ ui:for :TumblrAccount; ui:use :TumblrIdField ],\n [ ui:for :TwitterAccount; ui:use :TwitterIdField ],\n [ ui:for :OtherAccount; ui:use :OtherIdForm ] .\n\n:BlueSkyAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Bluesky";\n foaf:userProfilePrefix "https://bsky.app/profile/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/bluesky-1.svg>;\n foaf:homepage <https://bsky.app/> .\n\n:DiggAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Digg";\n foaf:userProfilePrefix "https://www.digg.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/digg-icon.svg>;\n foaf:homepage <https://www.digg.com/> .\n\n:FacebookAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Facebook";\n foaf:userProfilePrefix "https://www.facebook.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/facebook-2020-2-1.svg>;\n foaf:homepage <https://www.facebook.com/> .\n\n:GithubAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Github";\n foaf:userProfilePrefix "https://www.github.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/github-icon.svg>;\n foaf:homepage <https://github.com/> .\n\n:InstagramAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Instagram";\n foaf:userProfilePrefix "https://www.instagram.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/instagram-2016-5.svg>;\n foaf:homepage <https://www.instagram.com/> .\n\n:LinkedInAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "LinkedIn";\n foaf:userProfilePrefix "https://www.linkedin.com/in/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/linkedin-icon.svg>;\n foaf:homepage <https://linkedin.com/> .\n\n:MastodonAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Mastodon" ;\n foaf:userProfilePrefix "https://mastodon.social/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/mastodon-2.svg>;\n foaf:homepage <https://joinmastodon.org/> .\n\n:MatrixAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Matrix" ;\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/matrix-logo-black.svg> ;\n foaf:userProfilePrefix "https://matrix.to/#/" ;\n foaf:homepage <https://matrix.org/> .\n\n:MediumAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Medium";\n foaf:userProfilePrefix "https://medium.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/medium-logo-wordmark-black.svg>;\n foaf:homepage <https://medium.com/> .\n\n:NostrAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Nostr";\n foaf:userProfilePrefix "https://primal.net/p/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/nostr-icon-purple-on-white.svg>;\n foaf:homepage <https://nostr.net/> .\n\n:OrcidAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "ORCiD";\n foaf:userProfilePrefix "https://orcid.org/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/ORCID-1.svg>;\n foaf:homepage <https://orcid.org/> .\n\n:PinterestAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Pinterest";\n foaf:userProfilePrefix "https://pin.it/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/pinterest-2-1.svg>;\n foaf:homepage <https://pinterest.com/> .\n\n:RedditAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Reddit";\n foaf:userProfilePrefix "https://www.reddit.com/user/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/reddit-4.svg>;\n foaf:homepage <https://reddit.com/> .\n\n:SnapchatAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Snapchat";\n foaf:userProfilePrefix "https://www.snapchat.com/add/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/snapchat-1.svg>;\n foaf:homepage <https://www.snapchat.com/> .\n\n:StravaAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Strava";\n foaf:userProfilePrefix "https://www.strava.com/athletes/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/strava-2.svg>;\n foaf:homepage <https://strava.com/> .\n\n:TiktokAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "TikTok";\n foaf:userProfilePrefix "https://www.tiktok.com/@";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/tiktok-icon-2.svg>;\n foaf:homepage <https://www.tiktok.com/> .\n\n:TumblrAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Tumblr";\n foaf:userProfilePrefix "https://www.tumblr.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/tumblr-icon.svg>;\n foaf:homepage <https://www.tumblr.com/> .\n\n:TwitterAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "X";\n foaf:userProfilePrefix "https://x.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/x-2.svg>;\n foaf:homepage <https://x.com/> .\n\n:OtherAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Other" ;\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/noun_1689339.svg> .\n\n:BlueSkyIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-](.[a-z0-9A-Z_-])*".\n\n:DiggIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-](.[a-z0-9A-Z_-])*".\n\n:FacebookIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:GithubIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:InstagramIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:LinkedInIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:MastodonIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:MatrixIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:MediumIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:NostrIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:OrcidIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:PinterestIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:RedditIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:StravaIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:SnapchatIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*".\n\n:TiktokIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*".\n\n:TumblrIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*".\n\n:TwitterIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*".\n\n# an unknown online account needs more info\n\n:OtherIdForm a ui:Group; \n ui:weight 0; \n ui:parts ( \n :OtherIdField \n :OtherIconField \n :OtherLabelField ).\n\n:OtherIdField\n a ui:NamedNodeURIField ;\n ui:label "Account link";\n ui:maxLength "200" ;\n ui:property foaf:homepage.\n\n:OtherIconField\n a ui:NamedNodeURIField ;\n ui:label "Icon link";\n ui:maxLength "200" ;\n ui:property foaf:icon.\n\n:OtherLabelField\n a ui:SingleLineTextField ;\n ui:label "Name";\n ui:maxLength "200" ;\n ui:property rdfs:label.\n\n# ends\n',"socialMedia.ttl",a,e.dom,n),r};var a,i=(a=n(7824))&&a.__esModule?a:{default:a},o=n(1363)},2643(e,t,n){"use strict";t.A=void 0,n(8481),n(2252),n(9480),n(519),n(1570),n(2592),n(2739),n(2538),n(1930);var a,i=n(6752),o=n(3447),r=(a=n(5011))&&a.__esModule?a:{default:a},s=n(9426),l=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,a=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=t?a:n){if(i.has(e))return i.get(e);i.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?i(r,t,o):r[t]=e[t]);return r}(e,t)}(n(7583));const c={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:r.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,i.render)(await(0,o.ProfileView)(e,t),n);const a=Array.from(n.getElementsByClassName("QRCode"));if(!a.length)return console.error("QRCode Ele missing");for(const e of a){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"}};l.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.A=c},4887(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.presentProfile=void 0,t.pronounsAsText=r;var a=n(9426),i=n(5663),o=n(6077);function r(e){let t=i.store.anyJS(e,a.ns.solid("preferredSubjectPronoun"))||"";if(t){const n=i.store.anyJS(e,a.ns.solid("preferredObjectPronoun"));if(n){t+="/"+n;const o=i.store.anyJS(e,a.ns.solid("preferredRelativePronoun"));o&&(t+="/"+o)}t=" ("+t+") "}return t||""}function s(e,t){return e&&t?`${t}, ${e}`:e||t||null}function l(e,t){return e&&t?`${e} at ${t}`:t||e||null}function c(e,t){return e&&(0,o.validateHTMLColorHex)(e)?e:t}t.presentProfile=(e,t)=>{const n=a.utils.label(e),i=a.widgets.findImage(e),o=t.anyValue(e,a.ns.vcard("role")),u=t.anyValue(e,a.ns.vcard("organization-name")),d=t.any(e,a.ns.vcard("hasAddress")),p=null!=d?t.anyValue(d,a.ns.vcard("country-name")):null,f=null!=d?t.anyValue(d,a.ns.vcard("locality")):null,{backgroundColor:m,highlightColor:h}=function(e,t){const n=t.anyValue(e,a.ns.solid("profileBackgroundColor"),null,e.doc()),i=t.anyValue(e,a.ns.solid("profileHighlightColor"),null,e.doc());return{backgroundColor:c(n,""),highlightColor:c(i,"")}}(e,t),g=r(e);return{name:n,imageSrc:i,introduction:l(o,u),location:s(p,f),backgroundColor:m,pronouns:g,highlightColor:h}}},7824(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,s,l,c,u,d){const p=o+s,f=d||"this",m=(0,a.Namespace)(p+"#")(f);r(l,n,s,p),i.widgets.appendForm(c,e,{},t,m,u,(e,t)=>{e||i.widgets.errorMessageBlock(c,t)})},t.loadDocument=r;var a=n(5491),i=n(9426);const o="https://solidos.github.io/profile-pane/src/ontology/";function r(e,t,n,i){const r=i||o+n,s=(0,a.sym)(r);e.holds(void 0,void 0,void 0,s)||(0,a.parse)(t,e,r,"text/turtle",()=>null)}},1363(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yourContactInformationHeading=t.userNotLoggedInErrorMessage=t.socialAccountsHeadingText=t.sharedItemsHeadingText=t.scanQrToConnectText=t.resumeHeadingText=t.otherPreferencesHeadingText=t.logInToChatWithMeButtonText=t.logInAddMeToYourFriendsButtonText=t.loadingMessage=t.internalErrorMessage=t.friendsHeadingText=t.friendWasAddedSuccesMessage=t.friendExistsMessage=t.friendExistsAlreadyButtonText=t.contactHeadingText=t.communitiesHeadingText=t.chatWithMeButtonText=t.addMeToYourFriendsButtonText=void 0;t.scanQrToConnectText="Scan the QR code to connect with me",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 friends",t.logInAddMeToYourFriendsButtonText="Login to add me to your friends",t.logInToChatWithMeButtonText="Login to chat with me",t.friendExistsAlreadyButtonText="Already part of friends",t.chatWithMeButtonText="Chat with me",t.yourContactInformationHeading="Contact Information",t.otherPreferencesHeadingText="Other Preferences",t.communitiesHeadingText="Communities You Participate In",t.resumeHeadingText="Resume",t.socialAccountsHeadingText="Social Accounts",t.sharedItemsHeadingText="Shared Items",t.friendsHeadingText="Friends",t.contactHeadingText="Contact"},7583(e,t,n){const a=n(1333),i=n(157),o=n(7899),r=n(6756);function s(e,t,n,o,r){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!a())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=t,t=o=void 0):2!==l||t.getContext||(o=n,n=t,t=void 0),new Promise(function(a,r){try{const r=i.create(n,o);a(e(r,t,o))}catch(e){r(e)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(r=n,n=t,t=o=void 0):3===l&&(t.getContext&&void 0===r?(r=o,o=void 0):(r=o,o=n,n=t,t=void 0));try{const a=i.create(n,o);r(null,e(a,t,o))}catch(e){r(e)}}t.create=i.create,t.toCanvas=s.bind(null,o.render),t.toDataURL=s.bind(null,o.renderToDataURL),t.toString=s.bind(null,function(e,t,n){return r.render(e,n)})},1333(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6421(e,t,n){const a=n(6886).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=a(e),i=145===n?26:2*Math.ceil((n-13)/(2*t-2)),o=[n-7];for(let e=1;e<t-1;e++)o[e]=o[e-1]-i;return o.push(6),o.reverse()},t.getPositions=function(e){const n=[],a=t.getRowColCoords(e),i=a.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)0===e&&0===t||0===e&&t===i-1||e===i-1&&0===t||n.push([a[e],a[t]]);return n}},1433(e,t,n){const a=n(208),i=["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 o(e){this.mode=a.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},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;for(t=0;t+2<=this.data.length;t+=2){let n=45*i.indexOf(this.data[t]);n+=i.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},e.exports=o},9899(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},8820(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,a){const i=e*this.size+t;this.data[i]=n,a&&(this.reservedBit[i]=!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},5822(e,t,n){const a=n(208);function i(e){this.mode=a.BYTE,this.data="string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=i},7518(e,t,n){const a=n(9953),i=[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],o=[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 a.L:return i[4*(e-1)+0];case a.M:return i[4*(e-1)+1];case a.Q:return i[4*(e-1)+2];case a.H:return i[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case a.L:return o[4*(e-1)+0];case a.M:return o[4*(e-1)+1];case a.Q:return o[4*(e-1)+2];case a.H:return o[4*(e-1)+3];default:return}}},9953(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}}},7756(e,t,n){const a=n(6886).getSymbolSize;t.getPositions=function(e){const t=a(e);return[[0,0],[t-7,0],[0,t-7]]}},4565(e,t,n){const a=n(6886),i=a.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let o=n<<10;for(;a.getBCHDigit(o)-i>=0;)o^=1335<<a.getBCHDigit(o)-i;return 21522^(n<<10|o)}},2731(e,t){const n=new Uint8Array(512),a=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,a[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 a[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[a[e]+a[t]]}},4861(e,t,n){const a=n(208),i=n(6886);function o(e){this.mode=a.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},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;for(t=0;t<this.data.length;t++){let n=i.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=o},1332(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n=3,a=3,i=40,o=10;function r(e,n,a){switch(e){case t.Patterns.PATTERN000:return(n+a)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return a%3==0;case t.Patterns.PATTERN011:return(n+a)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(a/3))%2==0;case t.Patterns.PATTERN101:return n*a%2+n*a%3==0;case t.Patterns.PATTERN110:return(n*a%2+n*a%3)%2==0;case t.Patterns.PATTERN111:return(n*a%3+(n+a)%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 a=0,i=0,o=0,r=null,s=null;for(let l=0;l<t;l++){i=o=0,r=s=null;for(let c=0;c<t;c++){let t=e.get(l,c);t===r?i++:(i>=5&&(a+=n+(i-5)),r=t,i=1),t=e.get(c,l),t===s?o++:(o>=5&&(a+=n+(o-5)),s=t,o=1)}i>=5&&(a+=n+(i-5)),o>=5&&(a+=n+(o-5))}return a},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let a=0;a<t-1;a++)for(let i=0;i<t-1;i++){const t=e.get(a,i)+e.get(a,i+1)+e.get(a+1,i)+e.get(a+1,i+1);4!==t&&0!==t||n++}return n*a},t.getPenaltyN3=function(e){const t=e.size;let n=0,a=0,o=0;for(let i=0;i<t;i++){a=o=0;for(let r=0;r<t;r++)a=a<<1&2047|e.get(i,r),r>=10&&(1488===a||93===a)&&n++,o=o<<1&2047|e.get(r,i),r>=10&&(1488===o||93===o)&&n++}return n*i},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let a=0;a<n;a++)t+=e.data[a];return Math.abs(Math.ceil(100*t/n/5)-10)*o},t.applyMask=function(e,t){const n=t.size;for(let a=0;a<n;a++)for(let i=0;i<n;i++)t.isReserved(i,a)||t.xor(i,a,r(e,i,a))},t.getBestMask=function(e,n){const a=Object.keys(t.Patterns).length;let i=0,o=1/0;for(let r=0;r<a;r++){n(r),t.applyMask(r,e);const a=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(r,e),a<o&&(o=a,i=r)}return i}},208(e,t,n){const a=n(1878),i=n(7044);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(!a.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 i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.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}}},4357(e,t,n){const a=n(208);function i(e){this.mode=a.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t,n,a;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),a=parseInt(n,10),e.put(a,10);const i=this.data.length-t;i>0&&(n=this.data.substr(t),a=parseInt(n,10),e.put(a,3*i+1))},e.exports=i},4713(e,t,n){const a=n(2731);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let i=0;i<e.length;i++)for(let o=0;o<t.length;o++)n[i+o]^=a.mul(e[i],t[o]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let i=0;i<t.length;i++)n[i]^=a.mul(t[i],e);let i=0;for(;i<n.length&&0===n[i];)i++;n=n.slice(i)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let i=0;i<e;i++)n=t.mul(n,new Uint8Array([1,a.exp(i)]));return n}},157(e,t,n){const a=n(6886),i=n(9953),o=n(9899),r=n(8820),s=n(6421),l=n(7756),c=n(1332),u=n(7518),d=n(4764),p=n(1427),f=n(4565),m=n(208),h=n(9801);function g(e,t,n){const a=e.size,i=f.getEncodedBits(t,n);let o,r;for(o=0;o<15;o++)r=1==(i>>o&1),o<6?e.set(o,8,r,!0):o<8?e.set(o+1,8,r,!0):e.set(a-15+o,8,r,!0),o<8?e.set(8,a-o-1,r,!0):o<9?e.set(8,15-o-1+1,r,!0):e.set(8,15-o-1,r,!0);e.set(a-8,8,1,!0)}function b(e,t,n){const i=new o;n.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),m.getCharCountIndicator(t.mode,e)),t.write(i)});const r=8*(a.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t));for(i.getLengthInBits()+4<=r&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const s=(r-i.getLengthInBits())/8;for(let e=0;e<s;e++)i.put(e%2?17:236,8);return function(e,t,n){const i=a.getSymbolTotalCodewords(t),o=u.getTotalCodewordsCount(t,n),r=i-o,s=u.getBlocksCount(t,n),l=i%s,c=s-l,p=Math.floor(i/s),f=Math.floor(r/s),m=f+1,h=p-f,g=new d(h);let b=0;const v=new Array(s),y=new Array(s);let w=0;const x=new Uint8Array(e.buffer);for(let e=0;e<s;e++){const t=e<c?f:m;v[e]=x.slice(b,b+t),y[e]=g.encode(v[e]),b+=t,w=Math.max(w,t)}const A=new Uint8Array(i);let C,k,E=0;for(C=0;C<w;C++)for(k=0;k<s;k++)C<v[k].length&&(A[E++]=v[k][C]);for(C=0;C<h;C++)for(k=0;k<s;k++)A[E++]=y[k][C];return A}(i,e,t)}function v(e,t,n,i){let o;if(Array.isArray(e))o=h.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let a=t;if(!a){const t=h.rawSplit(e);a=p.getBestVersionForData(t,n)}o=h.fromString(e,a||40)}}const u=p.getBestVersionForData(o,n);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<u)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+u+".\n")}else t=u;const d=b(t,n,o),f=a.getSymbolSize(t),m=new r(f);return function(e,t){const n=e.size,a=l.getPositions(t);for(let t=0;t<a.length;t++){const i=a[t][0],o=a[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||n<=i+t))for(let a=-1;a<=7;a++)o+a<=-1||n<=o+a||(t>=0&&t<=6&&(0===a||6===a)||a>=0&&a<=6&&(0===t||6===t)||t>=2&&t<=4&&a>=2&&a<=4?e.set(i+t,o+a,!0,!0):e.set(i+t,o+a,!1,!0))}}(m,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)}}(m),function(e,t){const n=s.getPositions(t);for(let t=0;t<n.length;t++){const a=n[t][0],i=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(a+t,i+n,!0,!0):e.set(a+t,i+n,!1,!0)}}(m,t),g(m,n,0),t>=7&&function(e,t){const n=e.size,a=p.getEncodedBits(t);let i,o,r;for(let t=0;t<18;t++)i=Math.floor(t/3),o=t%3+n-8-3,r=1==(a>>t&1),e.set(i,o,r,!0),e.set(o,i,r,!0)}(m,t),function(e,t){const n=e.size;let a=-1,i=n-1,o=7,r=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let a=!1;r<t.length&&(a=1==(t[r]>>>o&1)),e.set(i,s-n,a),o--,-1===o&&(r++,o=7)}if(i+=a,i<0||n<=i){i-=a,a=-a;break}}}(m,d),isNaN(i)&&(i=c.getBestMask(m,g.bind(null,m,n))),c.applyMask(i,m),g(m,n,i),{modules:m,version:t,errorCorrectionLevel:n,maskPattern:i,segments:o}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");let n,o,r=i.M;return void 0!==t&&(r=i.from(t.errorCorrectionLevel,i.M),n=p.from(t.version),o=c.from(t.maskPattern),t.toSJISFunc&&a.setToSJISFunction(t.toSJISFunc)),v(e,n,r,o)}},4764(e,t,n){const a=n(4713);function i(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(e){this.degree=e,this.genPoly=a.generateECPolynomial(this.degree)},i.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=a.mod(t,this.genPoly),i=this.degree-n.length;if(i>0){const e=new Uint8Array(this.degree);return e.set(n,i),e}return n},e.exports=i},7044(e,t){const n="[0-9]+";let a="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";a=a.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+a+")(?:.|[\r\n]))+";t.KANJI=new RegExp(a,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(i,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const o=new RegExp("^"+a+"$"),r=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return r.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},9801(e,t,n){const a=n(208),i=n(4357),o=n(1433),r=n(5822),s=n(4861),l=n(7044),c=n(6886),u=n(6320);function d(e){return unescape(encodeURIComponent(e)).length}function p(e,t,n){const a=[];let i;for(;null!==(i=e.exec(n));)a.push({data:i[0],index:i.index,mode:t,length:i[0].length});return a}function f(e){const t=p(l.NUMERIC,a.NUMERIC,e),n=p(l.ALPHANUMERIC,a.ALPHANUMERIC,e);let i,o;c.isKanjiModeEnabled()?(i=p(l.BYTE,a.BYTE,e),o=p(l.KANJI,a.KANJI,e)):(i=p(l.BYTE_KANJI,a.BYTE,e),o=[]);return t.concat(n,i,o).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function m(e,t){switch(t){case a.NUMERIC:return i.getBitsLength(e);case a.ALPHANUMERIC:return o.getBitsLength(e);case a.KANJI:return s.getBitsLength(e);case a.BYTE:return r.getBitsLength(e)}}function h(e,t){let n;const l=a.getBestModeForData(e);if(n=a.from(t,l),n!==a.BYTE&&n.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+a.toString(n)+".\n Suggested mode is: "+a.toString(l));switch(n!==a.KANJI||c.isKanjiModeEnabled()||(n=a.BYTE),n){case a.NUMERIC:return new i(e);case a.ALPHANUMERIC:return new o(e);case a.KANJI:return new s(e);case a.BYTE:return new r(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(h(t,null)):t.data&&e.push(h(t.data,t.mode)),e},[])},t.fromString=function(e,n){const i=function(e){const t=[];for(let n=0;n<e.length;n++){const i=e[n];switch(i.mode){case a.NUMERIC:t.push([i,{data:i.data,mode:a.ALPHANUMERIC,length:i.length},{data:i.data,mode:a.BYTE,length:i.length}]);break;case a.ALPHANUMERIC:t.push([i,{data:i.data,mode:a.BYTE,length:i.length}]);break;case a.KANJI:t.push([i,{data:i.data,mode:a.BYTE,length:d(i.data)}]);break;case a.BYTE:t.push([{data:i.data,mode:a.BYTE,length:d(i.data)}])}}return t}(f(e,c.isKanjiModeEnabled())),o=function(e,t){const n={},i={start:{}};let o=["start"];for(let r=0;r<e.length;r++){const s=e[r],l=[];for(let e=0;e<s.length;e++){const c=s[e],u=""+r+e;l.push(u),n[u]={node:c,lastCount:0},i[u]={};for(let e=0;e<o.length;e++){const r=o[e];n[r]&&n[r].node.mode===c.mode?(i[r][u]=m(n[r].lastCount+c.length,c.mode)-m(n[r].lastCount,c.mode),n[r].lastCount+=c.length):(n[r]&&(n[r].lastCount=c.length),i[r][u]=m(c.length,c.mode)+4+a.getCharCountIndicator(c.mode,t))}}o=l}for(let e=0;e<o.length;e++)i[o[e]].end=0;return{map:i,table:n}}(i,n),r=u.find_path(o.map,"start","end"),s=[];for(let e=1;e<r.length-1;e++)s.push(o.table[r[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(f(e,c.isKanjiModeEnabled()))}},6886(e,t){let n;const a=[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 a[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)}},1878(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},1427(e,t,n){const a=n(6886),i=n(7518),o=n(9953),r=n(208),s=n(1878),l=a.getBCHDigit(7973);function c(e,t){return r.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){const a=c(e.mode,t);n+=a+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=r.BYTE);const o=8*(a.getSymbolTotalCodewords(e)-i.getTotalCodewordsCount(e,t));if(n===r.MIXED)return o;const l=o-c(n,e);switch(n){case r.NUMERIC:return Math.floor(l/10*3);case r.ALPHANUMERIC:return Math.floor(l/11*2);case r.KANJI:return Math.floor(l/13);case r.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let a;const i=o.from(n,o.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let a=1;a<=40;a++)if(u(e,a)<=t.getCapacity(a,n,r.MIXED))return a}(e,i);if(0===e.length)return 1;a=e[0]}else a=e;return function(e,n,a){for(let i=1;i<=40;i++)if(n<=t.getCapacity(i,a,e))return i}(a.mode,a.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;a.getBCHDigit(t)-l>=0;)t^=7973<<a.getBCHDigit(t)-l;return e<<12|t}},7899(e,t,n){const a=n(2726);t.render=function(e,t,n){let i=n,o=t;void 0!==i||t&&t.getContext||(i=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),i=a.getOptions(i);const r=a.getImageWidth(e.modules.size,i),s=o.getContext("2d"),l=s.createImageData(r,r);return a.qrToImageData(l.data,e,i),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,o,r),s.putImageData(l,0,0),o},t.renderToDataURL=function(e,n,a){let i=a;void 0!==i||n&&n.getContext||(i=n,n=void 0),i||(i={});const o=t.render(e,n,i),r=i.type||"image/png",s=i.rendererOpts||{};return o.toDataURL(r,s.quality)}},6756(e,t,n){const a=n(2726);function i(e,t){const n=e.a/255,a=t+'="'+e.hex+'"';return n<1?a+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':a}function o(e,t,n){let a=e+t;return void 0!==n&&(a+=" "+n),a}t.render=function(e,t,n){const r=a.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*r.margin,u=r.color.light.a?"<path "+i(r.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+i(r.color.dark,"stroke")+' d="'+function(e,t,n){let a="",i=0,r=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);c||r||(r=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(a+=r?o("M",c+n,.5+u+n):o("m",i,0),i=0,r=!1),c+1<t&&e[l+1]||(a+=o("h",s),s=0)):i++}return a}(l,s,r.margin)+'"/>',p='viewBox="0 0 '+c+" "+c+'"',f='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+p+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof n&&n(null,f),f}},2726(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,a=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:a,scale:a?4:i,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 a=t.getScale(e,n);return Math.floor((e+2*n.margin)*a)},t.qrToImageData=function(e,n,a){const i=n.modules.size,o=n.modules.data,r=t.getScale(i,a),s=Math.floor((i+2*a.margin)*r),l=a.margin*r,c=[a.color.light,a.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let u=4*(t*s+n),d=a.color.light;if(t>=l&&n>=l&&t<s-l&&n<s-l){d=c[o[Math.floor((t-l)/r)*i+Math.floor((n-l)/r)]?1:0]}e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},3172(e,t){"use strict"},1247(e,t,n){"use strict";var a=n(9982),i=n(6540),o=n(961);function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function l(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function c(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function u(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function d(e){if(l(e)!==e)throw Error(r(188))}function p(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=p(e)))return t;e=e.sibling}return null}var f=Object.assign,m=Symbol.for("react.element"),h=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),x=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),T=Symbol.for("react.lazy");Symbol.for("react.scope");var S=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var P=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var B=Symbol.iterator;function N(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}var I=Symbol.for("react.client.reference");function _(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===I?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case b:return"Fragment";case y:return"Profiler";case v:return"StrictMode";case C:return"Suspense";case k:return"SuspenseList";case S:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case g:return"Portal";case x:return e.displayName||"Context";case w:return(e._context.displayName||"Context")+".Consumer";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case E:return null!==(t=e.displayName||null)?t:_(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return _(e(t))}catch(e){}}return null}var O=Array.isArray,L=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R={pending:!1,data:null,method:null,action:null},M=[],D=-1;function j(e){return{current:e}}function z(e){0>D||(e.current=M[D],M[D]=null,D--)}function U(e,t){D++,M[D]=e.current,e.current=t}var $,q,H=j(null),W=j(null),G=j(null),V=j(null);function Q(e,t){switch(U(G,t),U(W,e),U(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?bd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=vd(t=bd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}z(H),U(H,e)}function Y(){z(H),z(W),z(G)}function J(e){null!==e.memoizedState&&U(V,e);var t=H.current,n=vd(t,e.type);t!==n&&(U(W,e),U(H,n))}function K(e){W.current===e&&(z(H),z(W)),V.current===e&&(z(V),up._currentValue=R)}function Z(e){if(void 0===$)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||"",q=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+$+e+q}var X=!1;function ee(e,t){if(!e||X)return"";X=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var a=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){a=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){a=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&a&&"string"==typeof e.stack)return[e.stack,a.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),r=o[0],s=o[1];if(r&&s){var l=r.split("\n"),c=s.split("\n");for(i=a=0;a<l.length&&!l[a].includes("DetermineComponentFrameRoot");)a++;for(;i<c.length&&!c[i].includes("DetermineComponentFrameRoot");)i++;if(a===l.length||i===c.length)for(a=l.length-1,i=c.length-1;1<=a&&0<=i&&l[a]!==c[i];)i--;for(;1<=a&&0<=i;a--,i--)if(l[a]!==c[i]){if(1!==a||1!==i)do{if(a--,0>--i||l[a]!==c[i]){var u="\n"+l[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=i);break}}}finally{X=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Z(n):""}function te(e,t){switch(e.tag){case 26:case 27:case 5:return Z(e.type);case 16:return Z("Lazy");case 13:return e.child!==t&&null!==t?Z("Suspense Fallback"):Z("Suspense");case 19:return Z("SuspenseList");case 0:case 15:return ee(e.type,!1);case 11:return ee(e.type.render,!1);case 1:return ee(e.type,!0);case 31:return Z("Activity");default:return""}}function ne(e){try{var t="",n=null;do{t+=te(e,n),n=e,e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var ae=Object.prototype.hasOwnProperty,ie=a.unstable_scheduleCallback,oe=a.unstable_cancelCallback,re=a.unstable_shouldYield,se=a.unstable_requestPaint,le=a.unstable_now,ce=a.unstable_getCurrentPriorityLevel,ue=a.unstable_ImmediatePriority,de=a.unstable_UserBlockingPriority,pe=a.unstable_NormalPriority,fe=a.unstable_LowPriority,me=a.unstable_IdlePriority,he=a.log,ge=a.unstable_setDisableYieldValue,be=null,ve=null;function ye(e){if("function"==typeof he&&ge(e),ve&&"function"==typeof ve.setStrictMode)try{ve.setStrictMode(be,e)}catch(e){}}var we=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(xe(e)/Ae|0)|0},xe=Math.log,Ae=Math.LN2;var Ce=256,ke=262144,Ee=4194304;function Te(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Se(e,t,n){var a=e.pendingLanes;if(0===a)return 0;var i=0,o=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var s=134217727&a;return 0!==s?0!==(a=s&~o)?i=Te(a):0!==(r&=s)?i=Te(r):n||0!==(n=s&~e)&&(i=Te(n)):0!==(s=a&~o)?i=Te(s):0!==r?i=Te(r):n||0!==(n=a&~e)&&(i=Te(n)),0===i?0:0!==t&&t!==i&&0===(t&o)&&((o=i&-i)>=(n=t&-t)||32===o&&4194048&n)?t:i}function Pe(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Be(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Ne(){var e=Ee;return!(62914560&(Ee<<=1))&&(Ee=4194304),e}function Ie(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _e(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Oe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-we(t);e.entangledLanes|=t,e.entanglements[a]=1073741824|e.entanglements[a]|261930&n}function Le(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-we(n),i=1<<a;i&t|e[a]&t&&(e[a]|=t),n&=~i}}function Fe(e,t){var n=t&-t;return 0!==((n=42&n?1:Re(n))&(e.suspendedLanes|t))?0:n}function Re(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Me(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function De(){var e=F.p;return 0!==e?e:void 0===(e=window.event)?32:Tp(e.type)}function je(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var ze=Math.random().toString(36).slice(2),Ue="__reactFiber$"+ze,$e="__reactProps$"+ze,qe="__reactContainer$"+ze,He="__reactEvents$"+ze,We="__reactListeners$"+ze,Ge="__reactHandles$"+ze,Ve="__reactResources$"+ze,Qe="__reactMarker$"+ze;function Ye(e){delete e[Ue],delete e[$e],delete e[He],delete e[We],delete e[Ge]}function Je(e){var t=e[Ue];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qe]||n[Ue]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Rd(e);null!==e;){if(n=e[Ue])return n;e=Rd(e)}return t}n=(e=n).parentNode}return null}function Ke(e){if(e=e[Ue]||e[qe]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Ze(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function Xe(e){var t=e[Ve];return t||(t=e[Ve]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Qe]=!0}var tt=new Set,nt={};function at(e,t){it(e,t),it(e+"Capture",t)}function it(e,t){for(nt[e]=t,e=0;e<t.length;e++)tt.add(t[e])}var ot=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),rt={},st={};function lt(e,t,n){if(i=t,ae.call(st,i)||!ae.call(rt,i)&&(ot.test(i)?st[i]=!0:(rt[i]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var a=t.toLowerCase().slice(0,5);if("data-"!==a&&"aria-"!==a)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var i}function ct(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ut(e,t,n,a){if(null===a)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+a)}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function pt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ft(e){if(!e._valueTracker){var t=pt(e)?"checked":"value";e._valueTracker=function(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==a&&"function"==typeof a.get&&"function"==typeof a.set){var i=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=pt(e)?e.checked?"true":"false":e.value),(e=a)!==n&&(t.setValue(e),!0)}function ht(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var gt=/[\n"\\]/g;function bt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vt(e,t,n,a,i,o,r,s){e.name="",null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&"boolean"!=typeof r?e.type=r:e.removeAttribute("type"),null!=t?"number"===r?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==r&&"reset"!==r||e.removeAttribute("value"),null!=t?wt(e,r,dt(t)):null!=n?wt(e,r,dt(n)):null!=a&&e.removeAttribute("value"),null==i&&null!=o&&(e.defaultChecked=!!o),null!=i&&(e.checked=i&&"function"!=typeof i&&"symbol"!=typeof i),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+dt(s):e.removeAttribute("name")}function yt(e,t,n,a,i,o,r,s){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.type=o),null!=t||null!=n){if(("submit"===o||"reset"===o)&&null==t)return void ft(e);n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}a="function"!=typeof(a=null!=a?a:i)&&"symbol"!=typeof a&&!!a,e.checked=s?e.checked:!!a,e.defaultChecked=!!a,null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&"boolean"!=typeof r&&(e.name=r),ft(e)}function wt(e,t,n){"number"===t&&ht(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function xt(e,t,n,a){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&a&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(a&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function At(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function Ct(e,t,n,a){if(null==t){if(null!=a){if(null!=n)throw Error(r(92));if(O(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(a=e.textContent)===n&&""!==a&&null!==a&&(e.value=a),ft(e)}function kt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Et=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Tt(e,t,n){var a=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?a?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":a?e.setProperty(t,n):"number"!=typeof n||0===n||Et.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function St(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var a in n)!n.hasOwnProperty(a)||null!=t&&t.hasOwnProperty(a)||(0===a.indexOf("--")?e.setProperty(a,""):"float"===a?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&n[i]!==a&&Tt(e,i,a)}else for(var o in t)t.hasOwnProperty(o)&&Tt(e,o,t[o])}function Pt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Bt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Nt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function It(e){return Nt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function _t(){}var Ot=null;function Lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ft=null,Rt=null;function Mt(e){var t=Ke(e);if(t&&(e=t.stateNode)){var n=e[$e]||null;e:switch(e=t.stateNode,t.type){case"input":if(vt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+bt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var i=a[$e]||null;if(!i)throw Error(r(90));vt(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(a=n[t]).form===e.form&&mt(a)}break e;case"textarea":At(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&xt(e,!!n.multiple,t,!1)}}}var Dt=!1;function jt(e,t,n){if(Dt)return e(t,n);Dt=!0;try{return e(t)}finally{if(Dt=!1,(null!==Ft||null!==Rt)&&(Xc(),Ft&&(t=Ft,e=Rt,Rt=Ft=null,Mt(t),e)))for(t=0;t<e.length;t++)Mt(e[t])}}function zt(e,t){var n=e.stateNode;if(null===n)return null;var a=n[$e]||null;if(null===a)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var Ut=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),$t=!1;if(Ut)try{var qt={};Object.defineProperty(qt,"passive",{get:function(){$t=!0}}),window.addEventListener("test",qt,qt),window.removeEventListener("test",qt,qt)}catch(e){$t=!1}var Ht=null,Wt=null,Gt=null;function Vt(){if(Gt)return Gt;var e,t,n=Wt,a=n.length,i="value"in Ht?Ht.value:Ht.textContent,o=i.length;for(e=0;e<a&&n[e]===i[e];e++);var r=a-e;for(t=1;t<=r&&n[a-t]===i[o-t];t++);return Gt=i.slice(e,1<t?1-t:void 0)}function Qt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Yt(){return!0}function Jt(){return!1}function Kt(e){function t(t,n,a,i,o){for(var r in this._reactName=t,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(r)&&(t=e[r],this[r]=t?t(i):i[r]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?Yt:Jt,this.isPropagationStopped=Jt,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Yt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Yt)},persist:function(){},isPersistent:Yt}),t}var Zt,Xt,en,tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nn=Kt(tn),an=f({},tn,{view:0,detail:0}),on=Kt(an),rn=f({},an,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==en&&(en&&"mousemove"===e.type?(Zt=e.screenX-en.screenX,Xt=e.screenY-en.screenY):Xt=Zt=0,en=e),Zt)},movementY:function(e){return"movementY"in e?e.movementY:Xt}}),sn=Kt(rn),ln=Kt(f({},rn,{dataTransfer:0})),cn=Kt(f({},an,{relatedTarget:0})),un=Kt(f({},tn,{animationName:0,elapsedTime:0,pseudoElement:0})),dn=Kt(f({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),pn=Kt(f({},tn,{data:0})),fn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hn[e])&&!!t[e]}function bn(){return gn}var vn=Kt(f({},an,{key:function(e){if(e.key){var t=fn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Qt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?mn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bn,charCode:function(e){return"keypress"===e.type?Qt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Qt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),yn=Kt(f({},rn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),wn=Kt(f({},an,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bn})),xn=Kt(f({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=Kt(f({},rn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Cn=Kt(f({},tn,{newState:0,oldState:0})),kn=[9,13,27,32],En=Ut&&"CompositionEvent"in window,Tn=null;Ut&&"documentMode"in document&&(Tn=document.documentMode);var Sn=Ut&&"TextEvent"in window&&!Tn,Pn=Ut&&(!En||Tn&&8<Tn&&11>=Tn),Bn=String.fromCharCode(32),Nn=!1;function In(e,t){switch(e){case"keyup":return-1!==kn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var On=!1;var Ln={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ln[e.type]:"textarea"===t}function Rn(e,t,n,a){Ft?Rt?Rt.push(a):Rt=[a]:Ft=a,0<(t=ad(t,"onChange")).length&&(n=new nn("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Mn=null,Dn=null;function jn(e){Yu(e,0)}function zn(e){if(mt(Ze(e)))return e}function Un(e,t){if("change"===e)return t}var $n=!1;if(Ut){var qn;if(Ut){var Hn="oninput"in document;if(!Hn){var Wn=document.createElement("div");Wn.setAttribute("oninput","return;"),Hn="function"==typeof Wn.oninput}qn=Hn}else qn=!1;$n=qn&&(!document.documentMode||9<document.documentMode)}function Gn(){Mn&&(Mn.detachEvent("onpropertychange",Vn),Dn=Mn=null)}function Vn(e){if("value"===e.propertyName&&zn(Dn)){var t=[];Rn(t,Dn,e,Lt(e)),jt(jn,t)}}function Qn(e,t,n){"focusin"===e?(Gn(),Dn=n,(Mn=t).attachEvent("onpropertychange",Vn)):"focusout"===e&&Gn()}function Yn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return zn(Dn)}function Jn(e,t){if("click"===e)return zn(t)}function Kn(e,t){if("input"===e||"change"===e)return zn(t)}var Zn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Xn(e,t){if(Zn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!ae.call(t,i)||!Zn(e[i],t[i]))return!1}return!0}function ea(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ta(e,t){var n,a=ea(e);for(e=0;a;){if(3===a.nodeType){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ea(a)}}function na(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?na(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function aa(e){for(var t=ht((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ht((e=t.contentWindow).document)}return t}function ia(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var oa=Ut&&"documentMode"in document&&11>=document.documentMode,ra=null,sa=null,la=null,ca=!1;function ua(e,t,n){var a=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ca||null==ra||ra!==ht(a)||("selectionStart"in(a=ra)&&ia(a)?a={start:a.selectionStart,end:a.selectionEnd}:a={anchorNode:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset},la&&Xn(la,a)||(la=a,0<(a=ad(sa,"onSelect")).length&&(t=new nn("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ra)))}function da(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var pa={animationend:da("Animation","AnimationEnd"),animationiteration:da("Animation","AnimationIteration"),animationstart:da("Animation","AnimationStart"),transitionrun:da("Transition","TransitionRun"),transitionstart:da("Transition","TransitionStart"),transitioncancel:da("Transition","TransitionCancel"),transitionend:da("Transition","TransitionEnd")},fa={},ma={};function ha(e){if(fa[e])return fa[e];if(!pa[e])return e;var t,n=pa[e];for(t in n)if(n.hasOwnProperty(t)&&t in ma)return fa[e]=n[t];return e}Ut&&(ma=document.createElement("div").style,"AnimationEvent"in window||(delete pa.animationend.animation,delete pa.animationiteration.animation,delete pa.animationstart.animation),"TransitionEvent"in window||delete pa.transitionend.transition);var ga=ha("animationend"),ba=ha("animationiteration"),va=ha("animationstart"),ya=ha("transitionrun"),wa=ha("transitionstart"),xa=ha("transitioncancel"),Aa=ha("transitionend"),Ca=new Map,ka="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ea(e,t){Ca.set(e,t),at(t,[e])}ka.push("scrollEnd");var Ta="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Sa=[],Pa=0,Ba=0;function Na(){for(var e=Pa,t=Ba=Pa=0;t<e;){var n=Sa[t];Sa[t++]=null;var a=Sa[t];Sa[t++]=null;var i=Sa[t];Sa[t++]=null;var o=Sa[t];if(Sa[t++]=null,null!==a&&null!==i){var r=a.pending;null===r?i.next=i:(i.next=r.next,r.next=i),a.pending=i}0!==o&&La(n,i,o)}}function Ia(e,t,n,a){Sa[Pa++]=e,Sa[Pa++]=t,Sa[Pa++]=n,Sa[Pa++]=a,Ba|=a,e.lanes|=a,null!==(e=e.alternate)&&(e.lanes|=a)}function _a(e,t,n,a){return Ia(e,t,n,a),Fa(e)}function Oa(e,t){return Ia(e,null,null,t),Fa(e)}function La(e,t,n){e.lanes|=n;var a=e.alternate;null!==a&&(a.lanes|=n);for(var i=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(a=o.alternate)&&(a.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(i=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,i&&null!==t&&(i=31-we(n),null===(a=(e=o.hiddenUpdates)[i])?e[i]=[t]:a.push(t),t.lane=536870912|n),o):null}function Fa(e){if(50<Hc)throw Hc=0,Wc=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Ra={};function Ma(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Da(e,t,n,a){return new Ma(e,t,n,a)}function ja(e){return!(!(e=e.prototype)||!e.isReactComponent)}function za(e,t){var n=e.alternate;return null===n?((n=Da(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ua(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function $a(e,t,n,a,i,o){var s=0;if(a=e,"function"==typeof e)ja(e)&&(s=1);else if("string"==typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,H.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case S:return(e=Da(31,n,t,i)).elementType=S,e.lanes=o,e;case b:return qa(n.children,i,o,t);case v:s=8,i|=24;break;case y:return(e=Da(12,n,t,2|i)).elementType=y,e.lanes=o,e;case C:return(e=Da(13,n,t,i)).elementType=C,e.lanes=o,e;case k:return(e=Da(19,n,t,i)).elementType=k,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case x:s=10;break e;case w:s=9;break e;case A:s=11;break e;case E:s=14;break e;case T:s=16,a=null;break e}s=29,n=Error(r(130,null===e?"null":typeof e,"")),a=null}return(t=Da(s,n,t,i)).elementType=e,t.type=a,t.lanes=o,t}function qa(e,t,n,a){return(e=Da(7,e,a,t)).lanes=n,e}function Ha(e,t,n){return(e=Da(6,e,null,t)).lanes=n,e}function Wa(e){var t=Da(18,null,null,0);return t.stateNode=e,t}function Ga(e,t,n){return(t=Da(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Va=new WeakMap;function Qa(e,t){if("object"==typeof e&&null!==e){var n=Va.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ne(t)},Va.set(e,t),t)}return{value:e,source:t,stack:ne(t)}}var Ya=[],Ja=0,Ka=null,Za=0,Xa=[],ei=0,ti=null,ni=1,ai="";function ii(e,t){Ya[Ja++]=Za,Ya[Ja++]=Ka,Ka=e,Za=t}function oi(e,t,n){Xa[ei++]=ni,Xa[ei++]=ai,Xa[ei++]=ti,ti=e;var a=ni;e=ai;var i=32-we(a)-1;a&=~(1<<i),n+=1;var o=32-we(t)+i;if(30<o){var r=i-i%5;o=(a&(1<<r)-1).toString(32),a>>=r,i-=r,ni=1<<32-we(t)+i|n<<i|a,ai=o+e}else ni=1<<o|n<<i|a,ai=e}function ri(e){null!==e.return&&(ii(e,1),oi(e,1,0))}function si(e){for(;e===Ka;)Ka=Ya[--Ja],Ya[Ja]=null,Za=Ya[--Ja],Ya[Ja]=null;for(;e===ti;)ti=Xa[--ei],Xa[ei]=null,ai=Xa[--ei],Xa[ei]=null,ni=Xa[--ei],Xa[ei]=null}function li(e,t){Xa[ei++]=ni,Xa[ei++]=ai,Xa[ei++]=ti,ni=t.id,ai=t.overflow,ti=e}var ci=null,ui=null,di=!1,pi=null,fi=!1,mi=Error(r(519));function hi(e){throw xi(Qa(Error(r(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),mi}function gi(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Ue]=e,t[$e]=a,n){case"dialog":Ju("cancel",t),Ju("close",t);break;case"iframe":case"object":case"embed":Ju("load",t);break;case"video":case"audio":for(n=0;n<Vu.length;n++)Ju(Vu[n],t);break;case"source":Ju("error",t);break;case"img":case"image":case"link":Ju("error",t),Ju("load",t);break;case"details":Ju("toggle",t);break;case"input":Ju("invalid",t),yt(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ju("invalid",t);break;case"textarea":Ju("invalid",t),Ct(t,a.value,a.defaultValue,a.children)}"string"!=typeof(n=a.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===a.suppressHydrationWarning||cd(t.textContent,n)?(null!=a.popover&&(Ju("beforetoggle",t),Ju("toggle",t)),null!=a.onScroll&&Ju("scroll",t),null!=a.onScrollEnd&&Ju("scrollend",t),null!=a.onClick&&(t.onclick=_t),t=!0):t=!1,t||hi(e,!0)}function bi(e){for(ci=e.return;ci;)switch(ci.tag){case 5:case 31:case 13:return void(fi=!1);case 27:case 3:return void(fi=!0);default:ci=ci.return}}function vi(e){if(e!==ci)return!1;if(!di)return bi(e),di=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||yd(e.type,e.memoizedProps)),t=!t),t&&ui&&hi(e),bi(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));ui=Fd(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));ui=Fd(e)}else 27===n?(n=ui,Td(e.type)?(e=Ld,Ld=null,ui=e):ui=n):ui=ci?Od(e.stateNode.nextSibling):null;return!0}function yi(){ui=ci=null,di=!1}function wi(){var e=pi;return null!==e&&(null===Nc?Nc=e:Nc.push.apply(Nc,e),pi=null),e}function xi(e){null===pi?pi=[e]:pi.push(e)}var Ai=j(null),Ci=null,ki=null;function Ei(e,t,n){U(Ai,t._currentValue),t._currentValue=n}function Ti(e){e._currentValue=Ai.current,z(Ai)}function Si(e,t,n){for(;null!==e;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==a&&(a.childLanes|=t)):null!==a&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Pi(e,t,n,a){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var o=i.dependencies;if(null!==o){var s=i.child;o=o.firstContext;e:for(;null!==o;){var l=o;o=i;for(var c=0;c<t.length;c++)if(l.context===t[c]){o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),Si(o.return,n,e),a||(s=null);break e}o=l.next}}else if(18===i.tag){if(null===(s=i.return))throw Error(r(341));s.lanes|=n,null!==(o=s.alternate)&&(o.lanes|=n),Si(s,n,e),s=null}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===e){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}}function Bi(e,t,n,a){e=null;for(var i=t,o=!1;null!==i;){if(!o)if(524288&i.flags)o=!0;else if(262144&i.flags)break;if(10===i.tag){var s=i.alternate;if(null===s)throw Error(r(387));if(null!==(s=s.memoizedProps)){var l=i.type;Zn(i.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(i===V.current){if(null===(s=i.alternate))throw Error(r(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(up):e=[up])}i=i.return}null!==e&&Pi(t,e,n,a),t.flags|=262144}function Ni(e){for(e=e.firstContext;null!==e;){if(!Zn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ii(e){Ci=e,ki=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function _i(e){return Li(Ci,e)}function Oi(e,t){return null===Ci&&Ii(e),Li(e,t)}function Li(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===ki){if(null===e)throw Error(r(308));ki=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ki=ki.next=t;return n}var Fi="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Ri=a.unstable_scheduleCallback,Mi=a.unstable_NormalPriority,Di={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ji(){return{controller:new Fi,data:new Map,refCount:0}}function zi(e){e.refCount--,0===e.refCount&&Ri(Mi,function(){e.controller.abort()})}var Ui=null,$i=0,qi=0,Hi=null;function Wi(){if(0===--$i&&null!==Ui){null!==Hi&&(Hi.status="fulfilled");var e=Ui;Ui=null,qi=0,Hi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Gi=L.S;L.S=function(e,t){Oc=le(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Ui){var n=Ui=[];$i=0,qi=$u(),Hi={status:"pending",value:void 0,then:function(e){n.push(e)}}}$i++,t.then(Wi,Wi)}(0,t),null!==Gi&&Gi(e,t)};var Vi=j(null);function Qi(){var e=Vi.current;return null!==e?e:mc.pooledCache}function Yi(e,t){U(Vi,null===t?Vi.current:t.pool)}function Ji(){var e=Qi();return null===e?null:{parent:Di._currentValue,pool:e}}var Ki=Error(r(460)),Zi=Error(r(474)),Xi=Error(r(542)),eo={then:function(){}};function to(e){return"fulfilled"===(e=e.status)||"rejected"===e}function no(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(_t,_t),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ro(e=t.reason),e;default:if("string"==typeof t.status)t.then(_t,_t);else{if(null!==(e=mc)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ro(e=t.reason),e}throw io=t,Ki}}function ao(e){try{return(0,e._init)(e._payload)}catch(e){if(null!==e&&"object"==typeof e&&"function"==typeof e.then)throw io=e,Ki;throw e}}var io=null;function oo(){if(null===io)throw Error(r(459));var e=io;return io=null,e}function ro(e){if(e===Ki||e===Xi)throw Error(r(483))}var so=null,lo=0;function co(e){var t=lo;return lo+=1,null===so&&(so=[]),no(so,e,t)}function uo(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function po(e,t){if(t.$$typeof===m)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function fo(e){function t(t,n){if(e){var a=t.deletions;null===a?(t.deletions=[n],t.flags|=16):a.push(n)}}function n(n,a){if(!e)return null;for(;null!==a;)t(n,a),a=a.sibling;return null}function a(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(e,t){return(e=za(e,t)).index=0,e.sibling=null,e}function o(t,n,a){return t.index=a,e?null!==(a=t.alternate)?(a=a.index)<n?(t.flags|=67108866,n):a:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,a){return null===t||6!==t.tag?((t=Ha(n,e.mode,a)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,a){var o=n.type;return o===b?d(e,t,n.props.children,a,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===T&&ao(o)===t.type)?(uo(t=i(t,n.props),n),t.return=e,t):(uo(t=$a(n.type,n.key,n.props,null,e.mode,a),n),t.return=e,t)}function u(e,t,n,a){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ga(n,e.mode,a)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,a,o){return null===t||7!==t.tag?((t=qa(n,e.mode,a,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Ha(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case h:return uo(n=$a(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case g:return(t=Ga(t,e.mode,n)).return=e,t;case T:return p(e,t=ao(t),n)}if(O(t)||N(t))return(t=qa(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return p(e,co(t),n);if(t.$$typeof===x)return p(e,Oi(e,t),n);po(e,t)}return null}function f(e,t,n,a){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==i?null:l(e,t,""+n,a);if("object"==typeof n&&null!==n){switch(n.$$typeof){case h:return n.key===i?c(e,t,n,a):null;case g:return n.key===i?u(e,t,n,a):null;case T:return f(e,t,n=ao(n),a)}if(O(n)||N(n))return null!==i?null:d(e,t,n,a,null);if("function"==typeof n.then)return f(e,t,co(n),a);if(n.$$typeof===x)return f(e,t,Oi(e,n),a);po(e,n)}return null}function m(e,t,n,a,i){if("string"==typeof a&&""!==a||"number"==typeof a||"bigint"==typeof a)return l(t,e=e.get(n)||null,""+a,i);if("object"==typeof a&&null!==a){switch(a.$$typeof){case h:return c(t,e=e.get(null===a.key?n:a.key)||null,a,i);case g:return u(t,e=e.get(null===a.key?n:a.key)||null,a,i);case T:return m(e,t,n,a=ao(a),i)}if(O(a)||N(a))return d(t,e=e.get(n)||null,a,i,null);if("function"==typeof a.then)return m(e,t,n,co(a),i);if(a.$$typeof===x)return m(e,t,n,Oi(t,a),i);po(t,a)}return null}function v(l,c,u,d){if("object"==typeof u&&null!==u&&u.type===b&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case h:e:{for(var y=u.key;null!==c;){if(c.key===y){if((y=u.type)===b){if(7===c.tag){n(l,c.sibling),(d=i(c,u.props.children)).return=l,l=d;break e}}else if(c.elementType===y||"object"==typeof y&&null!==y&&y.$$typeof===T&&ao(y)===c.type){n(l,c.sibling),uo(d=i(c,u.props),u),d.return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}u.type===b?((d=qa(u.props.children,l.mode,d,u.key)).return=l,l=d):(uo(d=$a(u.type,u.key,u.props,null,l.mode,d),u),d.return=l,l=d)}return s(l);case g:e:{for(y=u.key;null!==c;){if(c.key===y){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(d=i(c,u.children||[])).return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}(d=Ga(u,l.mode,d)).return=l,l=d}return s(l);case T:return v(l,c,u=ao(u),d)}if(O(u))return function(i,r,s,l){for(var c=null,u=null,d=r,h=r=0,g=null;null!==d&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var b=f(i,d,s[h],l);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(i,d),r=o(b,r,h),null===u?c=b:u.sibling=b,u=b,d=g}if(h===s.length)return n(i,d),di&&ii(i,h),c;if(null===d){for(;h<s.length;h++)null!==(d=p(i,s[h],l))&&(r=o(d,r,h),null===u?c=d:u.sibling=d,u=d);return di&&ii(i,h),c}for(d=a(d);h<s.length;h++)null!==(g=m(d,i,h,s[h],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?h:g.key),r=o(g,r,h),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),di&&ii(i,h),c}(l,c,u,d);if(N(u)){if("function"!=typeof(y=N(u)))throw Error(r(150));return function(i,s,l,c){if(null==l)throw Error(r(151));for(var u=null,d=null,h=s,g=s=0,b=null,v=l.next();null!==h&&!v.done;g++,v=l.next()){h.index>g?(b=h,h=null):b=h.sibling;var y=f(i,h,v.value,c);if(null===y){null===h&&(h=b);break}e&&h&&null===y.alternate&&t(i,h),s=o(y,s,g),null===d?u=y:d.sibling=y,d=y,h=b}if(v.done)return n(i,h),di&&ii(i,g),u;if(null===h){for(;!v.done;g++,v=l.next())null!==(v=p(i,v.value,c))&&(s=o(v,s,g),null===d?u=v:d.sibling=v,d=v);return di&&ii(i,g),u}for(h=a(h);!v.done;g++,v=l.next())null!==(v=m(h,i,g,v.value,c))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),s=o(v,s,g),null===d?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),di&&ii(i,g),u}(l,c,u=y.call(u),d)}if("function"==typeof u.then)return v(l,c,co(u),d);if(u.$$typeof===x)return v(l,c,Oi(l,u),d);po(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(d=i(c,u)).return=l,l=d):(n(l,c),(d=Ha(u,l.mode,d)).return=l,l=d),s(l)):n(l,c)}return function(e,t,n,a){try{lo=0;var i=v(e,t,n,a);return so=null,i}catch(t){if(t===Ki||t===Xi)throw t;var o=Da(29,t,null,e.mode);return o.lanes=a,o.return=e,o}}}var mo=fo(!0),ho=fo(!1),go=!1;function bo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function yo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wo(e,t,n){var a=e.updateQueue;if(null===a)return null;if(a=a.shared,2&fc){var i=a.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=Fa(e),La(e,null,n),t}return Ia(e,a,t,n),Fa(e)}function xo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var a=t.lanes;n|=a&=e.pendingLanes,t.lanes=n,Le(e,n)}}function Ao(e,t){var n=e.updateQueue,a=e.alternate;if(null!==a&&n===(a=a.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var r={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?i=o=r:o=o.next=r,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Co=!1;function ko(){if(Co){if(null!==Hi)throw Hi}}function Eo(e,t,n,a){Co=!1;var i=e.updateQueue;go=!1;var o=i.firstBaseUpdate,r=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===r?o=c:r.next=c,r=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==r&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(r=0,u=c=l=null,s=o;;){var p=-536870913&s.lane,m=p!==s.lane;if(m?(gc&p)===p:(a&p)===p){0!==p&&p===qi&&(Co=!0),null!==u&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var h=e,g=s;p=t;var b=n;switch(g.tag){case 1:if("function"==typeof(h=g.payload)){d=h.call(b,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=g.payload)?h.call(b,d,p):h))break e;d=f({},d,p);break e;case 2:go=!0}}null!==(p=s.callback)&&(e.flags|=64,m&&(e.flags|=8192),null===(m=i.callbacks)?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=m,l=d):u=u.next=m,r|=p;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(m=s).next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null===o&&(i.shared.lanes=0),kc|=r,e.lanes=r,e.memoizedState=d}}function To(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function So(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)To(n[e],t)}var Po=j(null),Bo=j(0);function No(e,t){U(Bo,e=Ac),U(Po,t),Ac=e|t.baseLanes}function Io(){U(Bo,Ac),U(Po,Po.current)}function _o(){Ac=Bo.current,z(Po),z(Bo)}var Oo=j(null),Lo=null;function Fo(e){var t=e.alternate;U(zo,1&zo.current),U(Oo,e),null===Lo&&(null===t||null!==Po.current||null!==t.memoizedState)&&(Lo=e)}function Ro(e){U(zo,zo.current),U(Oo,e),null===Lo&&(Lo=e)}function Mo(e){22===e.tag?(U(zo,zo.current),U(Oo,e),null===Lo&&(Lo=e)):Do()}function Do(){U(zo,zo.current),U(Oo,Oo.current)}function jo(e){z(Oo),Lo===e&&(Lo=null),z(zo)}var zo=j(0);function Uo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Id(n)||_d(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $o=0,qo=null,Ho=null,Wo=null,Go=!1,Vo=!1,Qo=!1,Yo=0,Jo=0,Ko=null,Zo=0;function Xo(){throw Error(r(321))}function er(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Zn(e[n],t[n]))return!1;return!0}function tr(e,t,n,a,i,o){return $o=o,qo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=null===e||null===e.memoizedState?gs:bs,Qo=!1,o=n(a,i),Qo=!1,Vo&&(o=ar(t,n,a,i)),nr(e),o}function nr(e){L.H=hs;var t=null!==Ho&&null!==Ho.next;if($o=0,Wo=Ho=qo=null,Go=!1,Jo=0,Ko=null,t)throw Error(r(300));null===e||Os||null!==(e=e.dependencies)&&Ni(e)&&(Os=!0)}function ar(e,t,n,a){qo=e;var i=0;do{if(Vo&&(Ko=null),Jo=0,Vo=!1,25<=i)throw Error(r(301));if(i+=1,Wo=Ho=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}L.H=vs,o=t(n,a)}while(Vo);return o}function ir(){var e=L.H,t=e.useState()[0];return t="function"==typeof t.then?ur(t):t,e=e.useState()[0],(null!==Ho?Ho.memoizedState:null)!==e&&(qo.flags|=1024),t}function or(){var e=0!==Yo;return Yo=0,e}function rr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function sr(e){if(Go){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Go=!1}$o=0,Wo=Ho=qo=null,Vo=!1,Jo=Yo=0,Ko=null}function lr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Wo?qo.memoizedState=Wo=e:Wo=Wo.next=e,Wo}function cr(){if(null===Ho){var e=qo.alternate;e=null!==e?e.memoizedState:null}else e=Ho.next;var t=null===Wo?qo.memoizedState:Wo.next;if(null!==t)Wo=t,Ho=e;else{if(null===e){if(null===qo.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(Ho=e).memoizedState,baseState:Ho.baseState,baseQueue:Ho.baseQueue,queue:Ho.queue,next:null},null===Wo?qo.memoizedState=Wo=e:Wo=Wo.next=e}return Wo}function ur(e){var t=Jo;return Jo+=1,null===Ko&&(Ko=[]),e=no(Ko,e,t),t=qo,null===(null===Wo?t.memoizedState:Wo.next)&&(t=t.alternate,L.H=null===t||null===t.memoizedState?gs:bs),e}function dr(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return ur(e);if(e.$$typeof===x)return _i(e)}throw Error(r(438,String(e)))}function pr(e){var t=null,n=qo.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var a=qo.alternate;null!==a&&(null!==(a=a.updateQueue)&&(null!=(a=a.memoCache)&&(t={data:a.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},qo.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=P;return t.index++,n}function fr(e,t){return"function"==typeof t?t(e):t}function mr(e){return hr(cr(),Ho,e)}function hr(e,t,n){var a=e.queue;if(null===a)throw Error(r(311));a.lastRenderedReducer=n;var i=e.baseQueue,o=a.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}t.baseQueue=i=o,a.pending=null}if(o=e.baseState,null===i)e.memoizedState=o;else{var l=s=null,c=null,u=t=i.next,d=!1;do{var p=-536870913&u.lane;if(p!==u.lane?(gc&p)===p:($o&p)===p){var f=u.revertLane;if(0===f)null!==c&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),p===qi&&(d=!0);else{if(($o&f)===f){u=u.next,f===qi&&(d=!0);continue}p={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=p,s=o):c=c.next=p,qo.lanes|=f,kc|=f}p=u.action,Qo&&n(o,p),o=u.hasEagerState?u.eagerState:n(o,p)}else f={lane:p,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=f,s=o):c=c.next=f,qo.lanes|=p,kc|=p;u=u.next}while(null!==u&&u!==t);if(null===c?s=o:c.next=l,!Zn(o,e.memoizedState)&&(Os=!0,d&&null!==(n=Hi)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=c,a.lastRenderedState=o}return null===i&&(a.lanes=0),[e.memoizedState,a.dispatch]}function gr(e){var t=cr(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var a=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Zn(o,t.memoizedState)||(Os=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function br(e,t,n){var a=qo,i=cr(),o=di;if(o){if(void 0===n)throw Error(r(407));n=n()}else n=t();var s=!Zn((Ho||i).memoizedState,n);if(s&&(i.memoizedState=n,Os=!0),i=i.queue,$r(wr.bind(null,a,i,e),[e]),i.getSnapshot!==t||s||null!==Wo&&1&Wo.memoizedState.tag){if(a.flags|=2048,Mr(9,{destroy:void 0},yr.bind(null,a,i,n,t),null),null===mc)throw Error(r(349));o||127&$o||vr(a,t,n)}return n}function vr(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=qo.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},qo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function yr(e,t,n,a){t.value=n,t.getSnapshot=a,xr(t)&&Ar(e)}function wr(e,t,n){return n(function(){xr(t)&&Ar(e)})}function xr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zn(e,n)}catch(e){return!0}}function Ar(e){var t=Oa(e,2);null!==t&&Qc(t,e,2)}function Cr(e){var t=lr();if("function"==typeof e){var n=e;if(e=n(),Qo){ye(!0);try{n()}finally{ye(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fr,lastRenderedState:e},t}function kr(e,t,n,a){return e.baseState=n,hr(e,Ho,"function"==typeof a?a:fr)}function Er(e,t,n,a,i){if(ps(e))throw Error(r(485));if(null!==(e=t.action)){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};null!==L.T?n(!0):o.isTransition=!1,a(o),null===(n=t.pending)?(o.next=t.pending=o,Tr(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Tr(e,t){var n=t.action,a=t.payload,i=e.state;if(t.isTransition){var o=L.T,r={};L.T=r;try{var s=n(i,a),l=L.S;null!==l&&l(r,s),Sr(e,t,s)}catch(n){Br(e,t,n)}finally{null!==o&&null!==r.types&&(o.types=r.types),L.T=o}}else try{Sr(e,t,o=n(i,a))}catch(n){Br(e,t,n)}}function Sr(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Pr(e,t,n)},function(n){return Br(e,t,n)}):Pr(e,t,n)}function Pr(e,t,n){t.status="fulfilled",t.value=n,Nr(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Tr(e,n)))}function Br(e,t,n){var a=e.pending;if(e.pending=null,null!==a){a=a.next;do{t.status="rejected",t.reason=n,Nr(t),t=t.next}while(t!==a)}e.action=null}function Nr(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ir(e,t){return t}function _r(e,t){if(di){var n=mc.formState;if(null!==n){e:{var a=qo;if(di){if(ui){t:{for(var i=ui,o=fi;8!==i.nodeType;){if(!o){i=null;break t}if(null===(i=Od(i.nextSibling))){i=null;break t}}i="F!"===(o=i.data)||"F"===o?i:null}if(i){ui=Od(i.nextSibling),a="F!"===i.data;break e}}hi(a)}a=!1}a&&(t=n[0])}}return(n=lr()).memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ir,lastRenderedState:t},n.queue=a,n=cs.bind(null,qo,a),a.dispatch=n,a=Cr(!1),o=ds.bind(null,qo,!1,a.queue),i={state:t,dispatch:null,action:e,pending:null},(a=lr()).queue=i,n=Er.bind(null,qo,i,o,n),i.dispatch=n,a.memoizedState=e,[t,n,!1]}function Or(e){return Lr(cr(),Ho,e)}function Lr(e,t,n){if(t=hr(e,t,Ir)[0],e=mr(fr)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var a=ur(t)}catch(e){if(e===Ki)throw Xi;throw e}else a=t;var i=(t=cr()).queue,o=i.dispatch;return n!==t.memoizedState&&(qo.flags|=2048,Mr(9,{destroy:void 0},Fr.bind(null,i,n),null)),[a,o,e]}function Fr(e,t){e.action=t}function Rr(e){var t=cr(),n=Ho;if(null!==n)return Lr(t,n,e);cr(),t=t.memoizedState;var a=(n=cr()).queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Mr(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},null===(t=qo.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},qo.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Dr(){return cr().memoizedState}function jr(e,t,n,a){var i=lr();qo.flags|=e,i.memoizedState=Mr(1|t,{destroy:void 0},n,void 0===a?null:a)}function zr(e,t,n,a){var i=cr();a=void 0===a?null:a;var o=i.memoizedState.inst;null!==Ho&&null!==a&&er(a,Ho.memoizedState.deps)?i.memoizedState=Mr(t,o,n,a):(qo.flags|=e,i.memoizedState=Mr(1|t,o,n,a))}function Ur(e,t){jr(8390656,8,e,t)}function $r(e,t){zr(2048,8,e,t)}function qr(e){var t=cr().memoizedState;return function(e){qo.flags|=4;var t=qo.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},qo.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&fc)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Hr(e,t){return zr(4,2,e,t)}function Wr(e,t){return zr(4,4,e,t)}function Gr(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Vr(e,t,n){n=null!=n?n.concat([e]):null,zr(4,4,Gr.bind(null,t,e),n)}function Qr(){}function Yr(e,t){var n=cr();t=void 0===t?null:t;var a=n.memoizedState;return null!==t&&er(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Jr(e,t){var n=cr();t=void 0===t?null:t;var a=n.memoizedState;if(null!==t&&er(t,a[1]))return a[0];if(a=e(),Qo){ye(!0);try{e()}finally{ye(!1)}}return n.memoizedState=[a,t],a}function Kr(e,t,n){return void 0===n||1073741824&$o&&!(261930&gc)?e.memoizedState=t:(e.memoizedState=n,e=Vc(),qo.lanes|=e,kc|=e,n)}function Zr(e,t,n,a){return Zn(n,t)?n:null!==Po.current?(e=Kr(e,n,a),Zn(e,t)||(Os=!0),e):42&$o&&(!(1073741824&$o)||261930&gc)?(e=Vc(),qo.lanes|=e,kc|=e,t):(Os=!0,e.memoizedState=n)}function Xr(e,t,n,a,i){var o=F.p;F.p=0!==o&&8>o?o:8;var r,s,l,c=L.T,u={};L.T=u,ds(e,!1,t,n);try{var d=i(),p=L.S;if(null!==p&&p(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then)us(e,t,(r=a,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=r;for(var e=0;e<s.length;e++)(0,s[e])(r)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l),Gc());else us(e,t,a,Gc())}catch(n){us(e,t,{then:function(){},status:"rejected",reason:n},Gc())}finally{F.p=o,null!==c&&null!==u.types&&(c.types=u.types),L.T=c}}function es(){}function ts(e,t,n,a){if(5!==e.tag)throw Error(r(476));var i=ns(e).queue;Xr(e,i,t,R,null===n?es:function(){return as(e),n(a)})}function ns(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:R,baseState:R,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fr,lastRenderedState:R},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fr,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function as(e){var t=ns(e);null===t.next&&(t=e.alternate.memoizedState),us(e,t.next.queue,{},Gc())}function is(){return _i(up)}function os(){return cr().memoizedState}function rs(){return cr().memoizedState}function ss(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Gc(),a=wo(t,e=yo(n),n);return null!==a&&(Qc(a,t,n),xo(a,t,n)),t={cache:ji()},void(e.payload=t)}t=t.return}}function ls(e,t,n){var a=Gc();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ps(e)?fs(t,n):null!==(n=_a(e,t,n,a))&&(Qc(n,e,a),ms(n,t,a))}function cs(e,t,n){us(e,t,n,Gc())}function us(e,t,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ps(e))fs(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var r=t.lastRenderedState,s=o(r,n);if(i.hasEagerState=!0,i.eagerState=s,Zn(s,r))return Ia(e,t,i,0),null===mc&&Na(),!1}catch(e){}if(null!==(n=_a(e,t,i,a)))return Qc(n,e,a),ms(n,t,a),!0}return!1}function ds(e,t,n,a){if(a={lane:2,revertLane:$u(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ps(e)){if(t)throw Error(r(479))}else null!==(t=_a(e,n,a,2))&&Qc(t,e,2)}function ps(e){var t=e.alternate;return e===qo||null!==t&&t===qo}function fs(e,t){Vo=Go=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ms(e,t,n){if(4194048&n){var a=t.lanes;n|=a&=e.pendingLanes,t.lanes=n,Le(e,n)}}var hs={readContext:_i,use:dr,useCallback:Xo,useContext:Xo,useEffect:Xo,useImperativeHandle:Xo,useLayoutEffect:Xo,useInsertionEffect:Xo,useMemo:Xo,useReducer:Xo,useRef:Xo,useState:Xo,useDebugValue:Xo,useDeferredValue:Xo,useTransition:Xo,useSyncExternalStore:Xo,useId:Xo,useHostTransitionStatus:Xo,useFormState:Xo,useActionState:Xo,useOptimistic:Xo,useMemoCache:Xo,useCacheRefresh:Xo};hs.useEffectEvent=Xo;var gs={readContext:_i,use:dr,useCallback:function(e,t){return lr().memoizedState=[e,void 0===t?null:t],e},useContext:_i,useEffect:Ur,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,jr(4194308,4,Gr.bind(null,t,e),n)},useLayoutEffect:function(e,t){return jr(4194308,4,e,t)},useInsertionEffect:function(e,t){jr(4,2,e,t)},useMemo:function(e,t){var n=lr();t=void 0===t?null:t;var a=e();if(Qo){ye(!0);try{e()}finally{ye(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=lr();if(void 0!==n){var i=n(t);if(Qo){ye(!0);try{n(t)}finally{ye(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=ls.bind(null,qo,e),[a.memoizedState,e]},useRef:function(e){return e={current:e},lr().memoizedState=e},useState:function(e){var t=(e=Cr(e)).queue,n=cs.bind(null,qo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Qr,useDeferredValue:function(e,t){return Kr(lr(),e,t)},useTransition:function(){var e=Cr(!1);return e=Xr.bind(null,qo,e.queue,!0,!1),lr().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=qo,i=lr();if(di){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===mc)throw Error(r(349));127&gc||vr(a,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Ur(wr.bind(null,a,o,e),[e]),a.flags|=2048,Mr(9,{destroy:void 0},yr.bind(null,a,o,n,t),null),n},useId:function(){var e=lr(),t=mc.identifierPrefix;if(di){var n=ai;t="_"+t+"R_"+(n=(ni&~(1<<32-we(ni)-1)).toString(32)+n),0<(n=Yo++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=Zo++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:is,useFormState:_r,useActionState:_r,useOptimistic:function(e){var t=lr();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ds.bind(null,qo,!0,n),n.dispatch=t,[e,t]},useMemoCache:pr,useCacheRefresh:function(){return lr().memoizedState=ss.bind(null,qo)},useEffectEvent:function(e){var t=lr(),n={impl:e};return t.memoizedState=n,function(){if(2&fc)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},bs={readContext:_i,use:dr,useCallback:Yr,useContext:_i,useEffect:$r,useImperativeHandle:Vr,useInsertionEffect:Hr,useLayoutEffect:Wr,useMemo:Jr,useReducer:mr,useRef:Dr,useState:function(){return mr(fr)},useDebugValue:Qr,useDeferredValue:function(e,t){return Zr(cr(),Ho.memoizedState,e,t)},useTransition:function(){var e=mr(fr)[0],t=cr().memoizedState;return["boolean"==typeof e?e:ur(e),t]},useSyncExternalStore:br,useId:os,useHostTransitionStatus:is,useFormState:Or,useActionState:Or,useOptimistic:function(e,t){return kr(cr(),0,e,t)},useMemoCache:pr,useCacheRefresh:rs};bs.useEffectEvent=qr;var vs={readContext:_i,use:dr,useCallback:Yr,useContext:_i,useEffect:$r,useImperativeHandle:Vr,useInsertionEffect:Hr,useLayoutEffect:Wr,useMemo:Jr,useReducer:gr,useRef:Dr,useState:function(){return gr(fr)},useDebugValue:Qr,useDeferredValue:function(e,t){var n=cr();return null===Ho?Kr(n,e,t):Zr(n,Ho.memoizedState,e,t)},useTransition:function(){var e=gr(fr)[0],t=cr().memoizedState;return["boolean"==typeof e?e:ur(e),t]},useSyncExternalStore:br,useId:os,useHostTransitionStatus:is,useFormState:Rr,useActionState:Rr,useOptimistic:function(e,t){var n=cr();return null!==Ho?kr(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:pr,useCacheRefresh:rs};function ys(e,t,n,a){n=null==(n=n(a,t=e.memoizedState))?t:f({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}vs.useEffectEvent=qr;var ws={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Gc(),i=yo(a);i.payload=t,null!=n&&(i.callback=n),null!==(t=wo(e,i,a))&&(Qc(t,e,a),xo(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Gc(),i=yo(a);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=wo(e,i,a))&&(Qc(t,e,a),xo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gc(),a=yo(n);a.tag=2,null!=t&&(a.callback=t),null!==(t=wo(e,a,n))&&(Qc(t,e,n),xo(t,e,n))}};function xs(e,t,n,a,i,o,r){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(a,o,r):!t.prototype||!t.prototype.isPureReactComponent||(!Xn(n,a)||!Xn(i,o))}function As(e,t,n,a){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,a),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&ws.enqueueReplaceState(t,t.state,null)}function Cs(e,t){var n=t;if("ref"in t)for(var a in n={},t)"ref"!==a&&(n[a]=t[a]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)void 0===n[i]&&(n[i]=e[i]);return n}function ks(e){Ta(e)}function Es(e){console.error(e)}function Ts(e){Ta(e)}function Ss(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ps(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Bs(e,t,n){return(n=yo(n)).tag=3,n.payload={element:null},n.callback=function(){Ss(e,t)},n}function Ns(e){return(e=yo(e)).tag=3,e}function Is(e,t,n,a){var i=n.type.getDerivedStateFromError;if("function"==typeof i){var o=a.value;e.payload=function(){return i(o)},e.callback=function(){Ps(t,n,a)}}var r=n.stateNode;null!==r&&"function"==typeof r.componentDidCatch&&(e.callback=function(){Ps(t,n,a),"function"!=typeof i&&(null===Rc?Rc=new Set([this]):Rc.add(this));var e=a.stack;this.componentDidCatch(a.value,{componentStack:null!==e?e:""})})}var _s=Error(r(461)),Os=!1;function Ls(e,t,n,a){t.child=null===e?ho(t,null,n,a):mo(t,e.child,n,a)}function Fs(e,t,n,a,i){n=n.render;var o=t.ref;if("ref"in a){var r={};for(var s in a)"ref"!==s&&(r[s]=a[s])}else r=a;return Ii(t),a=tr(e,t,n,r,o,i),s=or(),null===e||Os?(di&&s&&ri(t),t.flags|=1,Ls(e,t,a,i),t.child):(rr(e,t,i),il(e,t,i))}function Rs(e,t,n,a,i){if(null===e){var o=n.type;return"function"!=typeof o||ja(o)||void 0!==o.defaultProps||null!==n.compare?((e=$a(n.type,null,a,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ms(e,t,o,a,i))}if(o=e.child,!ol(e,i)){var r=o.memoizedProps;if((n=null!==(n=n.compare)?n:Xn)(r,a)&&e.ref===t.ref)return il(e,t,i)}return t.flags|=1,(e=za(o,a)).ref=t.ref,e.return=t,t.child=e}function Ms(e,t,n,a,i){if(null!==e){var o=e.memoizedProps;if(Xn(o,a)&&e.ref===t.ref){if(Os=!1,t.pendingProps=a=o,!ol(e,i))return t.lanes=e.lanes,il(e,t,i);131072&e.flags&&(Os=!0)}}return Hs(e,t,n,a,i)}function Ds(e,t,n,a){var i=a.children,o=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===a.mode){if(128&t.flags){if(o=null!==o?o.baseLanes|n:n,null!==e){for(a=t.child=e.child,i=0;null!==a;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~o}else a=0,t.child=null;return zs(e,t,o,n,a)}if(!(536870912&n))return a=t.lanes=536870912,zs(e,t,null!==o?o.baseLanes|n:n,n,a);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Yi(0,null!==o?o.cachePool:null),null!==o?No(t,o):Io(),Mo(t)}else null!==o?(Yi(0,o.cachePool),No(t,o),Do(),t.memoizedState=null):(null!==e&&Yi(0,null),Io(),Do());return Ls(e,t,i,n),t.child}function js(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zs(e,t,n,a,i){var o=Qi();return o=null===o?null:{parent:Di._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&Yi(0,null),Io(),Mo(t),null!==e&&Bi(e,t,a,!0),t.childLanes=i,null}function Us(e,t){return(t=Xs({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function $s(e,t,n){return mo(t,e.child,null,n),(e=Us(t,t.pendingProps)).flags|=2,jo(t),t.memoizedState=null,e}function qs(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Hs(e,t,n,a,i){return Ii(t),n=tr(e,t,n,a,void 0,i),a=or(),null===e||Os?(di&&a&&ri(t),t.flags|=1,Ls(e,t,n,i),t.child):(rr(e,t,i),il(e,t,i))}function Ws(e,t,n,a,i,o){return Ii(t),t.updateQueue=null,n=ar(t,a,n,i),nr(e),a=or(),null===e||Os?(di&&a&&ri(t),t.flags|=1,Ls(e,t,n,o),t.child):(rr(e,t,o),il(e,t,o))}function Gs(e,t,n,a,i){if(Ii(t),null===t.stateNode){var o=Ra,r=n.contextType;"object"==typeof r&&null!==r&&(o=_i(r)),o=new n(a,o),t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=ws,t.stateNode=o,o._reactInternals=t,(o=t.stateNode).props=a,o.state=t.memoizedState,o.refs={},bo(t),r=n.contextType,o.context="object"==typeof r&&null!==r?_i(r):Ra,o.state=t.memoizedState,"function"==typeof(r=n.getDerivedStateFromProps)&&(ys(t,n,r,a),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(r=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),r!==o.state&&ws.enqueueReplaceState(o,o.state,null),Eo(t,a,o,i),ko(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),a=!0}else if(null===e){o=t.stateNode;var s=t.memoizedProps,l=Cs(n,s);o.props=l;var c=o.context,u=n.contextType;r=Ra,"object"==typeof u&&null!==u&&(r=_i(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof o.getSnapshotBeforeUpdate,s=t.pendingProps!==s,u||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s||c!==r)&&As(t,o,a,r),go=!1;var p=t.memoizedState;o.state=p,Eo(t,a,o,i),ko(),c=t.memoizedState,s||p!==c||go?("function"==typeof d&&(ys(t,n,d,a),c=t.memoizedState),(l=go||xs(t,n,l,a,p,c,r))?(u||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=c),o.props=a,o.state=c,o.context=r,a=l):("function"==typeof o.componentDidMount&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,vo(e,t),u=Cs(n,r=t.memoizedProps),o.props=u,d=t.pendingProps,p=o.context,c=n.contextType,l=Ra,"object"==typeof c&&null!==c&&(l=_i(c)),(c="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(r!==d||p!==l)&&As(t,o,a,l),go=!1,p=t.memoizedState,o.state=p,Eo(t,a,o,i),ko();var f=t.memoizedState;r!==d||p!==f||go||null!==e&&null!==e.dependencies&&Ni(e.dependencies)?("function"==typeof s&&(ys(t,n,s,a),f=t.memoizedState),(u=go||xs(t,n,u,a,p,f,l)||null!==e&&null!==e.dependencies&&Ni(e.dependencies))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(a,f,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(a,f,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||r===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||r===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=f),o.props=a,o.state=f,o.context=l,a=u):("function"!=typeof o.componentDidUpdate||r===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||r===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,qs(e,t),a=!!(128&t.flags),o||a?(o=t.stateNode,n=a&&"function"!=typeof n.getDerivedStateFromError?null:o.render(),t.flags|=1,null!==e&&a?(t.child=mo(t,e.child,null,i),t.child=mo(t,null,n,i)):Ls(e,t,n,i),t.memoizedState=o.state,e=t.child):e=il(e,t,i),e}function Vs(e,t,n,a){return yi(),t.flags|=256,Ls(e,t,n,a),t.child}var Qs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ys(e){return{baseLanes:e,cachePool:Ji()}}function Js(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Sc),e}function Ks(e,t,n){var a,i=t.pendingProps,o=!1,s=!!(128&t.flags);if((a=s)||(a=(null===e||null!==e.memoizedState)&&!!(2&zo.current)),a&&(o=!0,t.flags&=-129),a=!!(32&t.flags),t.flags&=-33,null===e){if(di){if(o?Fo(t):Do(),(e=ui)?null!==(e=null!==(e=Nd(e,fi))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ti?{id:ni,overflow:ai}:null,retryLane:536870912,hydrationErrors:null},(n=Wa(e)).return=t,t.child=n,ci=t,ui=null):e=null,null===e)throw hi(t);return _d(e)?t.lanes=32:t.lanes=536870912,null}var l=i.children;return i=i.fallback,o?(Do(),l=Xs({mode:"hidden",children:l},o=t.mode),i=qa(i,o,n,null),l.return=t,i.return=t,l.sibling=i,t.child=l,(i=t.child).memoizedState=Ys(n),i.childLanes=Js(e,a,n),t.memoizedState=Qs,js(null,i)):(Fo(t),Zs(t,l))}var c=e.memoizedState;if(null!==c&&null!==(l=c.dehydrated)){if(s)256&t.flags?(Fo(t),t.flags&=-257,t=el(e,t,n)):null!==t.memoizedState?(Do(),t.child=e.child,t.flags|=128,t=null):(Do(),l=i.fallback,o=t.mode,i=Xs({mode:"visible",children:i.children},o),(l=qa(l,o,n,null)).flags|=2,i.return=t,l.return=t,i.sibling=l,t.child=i,mo(t,e.child,null,n),(i=t.child).memoizedState=Ys(n),i.childLanes=Js(e,a,n),t.memoizedState=Qs,t=js(null,i));else if(Fo(t),_d(l)){if(a=l.nextSibling&&l.nextSibling.dataset)var u=a.dgst;a=u,(i=Error(r(419))).stack="",i.digest=a,xi({value:i,source:null,stack:null}),t=el(e,t,n)}else if(Os||Bi(e,t,n,!1),a=0!==(n&e.childLanes),Os||a){if(null!==(a=mc)&&(0!==(i=Fe(a,n))&&i!==c.retryLane))throw c.retryLane=i,Oa(e,i),Qc(a,e,i),_s;Id(l)||ru(),t=el(e,t,n)}else Id(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,ui=Od(l.nextSibling),ci=t,di=!0,pi=null,fi=!1,null!==e&&li(t,e),(t=Zs(t,i.children)).flags|=4096);return t}return o?(Do(),l=i.fallback,o=t.mode,u=(c=e.child).sibling,(i=za(c,{mode:"hidden",children:i.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?l=za(u,l):(l=qa(l,o,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,js(null,i),i=t.child,null===(l=e.child.memoizedState)?l=Ys(n):(null!==(o=l.cachePool)?(c=Di._currentValue,o=o.parent!==c?{parent:c,pool:c}:o):o=Ji(),l={baseLanes:l.baseLanes|n,cachePool:o}),i.memoizedState=l,i.childLanes=Js(e,a,n),t.memoizedState=Qs,js(e.child,i)):(Fo(t),e=(n=e.child).sibling,(n=za(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(a=t.deletions)?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function Zs(e,t){return(t=Xs({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Xs(e,t){return(e=Da(22,e,null,t)).lanes=0,e}function el(e,t,n){return mo(t,e.child,null,n),(e=Zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function tl(e,t,n){e.lanes|=t;var a=e.alternate;null!==a&&(a.lanes|=t),Si(e.return,t,n)}function nl(e,t,n,a,i,o){var r=e.memoizedState;null===r?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:o}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=a,r.tail=n,r.tailMode=i,r.treeForkCount=o)}function al(e,t,n){var a=t.pendingProps,i=a.revealOrder,o=a.tail;a=a.children;var r=zo.current,s=!!(2&r);if(s?(r=1&r|2,t.flags|=128):r&=1,U(zo,r),Ls(e,t,a,n),a=di?Za:0,!s&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&tl(e,n,t);else if(19===e.tag)tl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Uo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),nl(t,!1,i,n,o,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Uo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}nl(t,!0,n,null,o,a);break;case"together":nl(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function il(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),kc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Bi(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=za(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=za(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ol(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Ni(e))}function rl(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Os=!0;else{if(!(ol(e,n)||128&t.flags))return Os=!1,function(e,t,n){switch(t.tag){case 3:Q(t,t.stateNode.containerInfo),Ei(0,Di,e.memoizedState.cache),yi();break;case 27:case 5:J(t);break;case 4:Q(t,t.stateNode.containerInfo);break;case 10:Ei(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Ro(t),null;break;case 13:var a=t.memoizedState;if(null!==a)return null!==a.dehydrated?(Fo(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Ks(e,t,n):(Fo(t),null!==(e=il(e,t,n))?e.sibling:null);Fo(t);break;case 19:var i=!!(128&e.flags);if((a=0!==(n&t.childLanes))||(Bi(e,t,n,!1),a=0!==(n&t.childLanes)),i){if(a)return al(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),U(zo,zo.current),a)break;return null;case 22:return t.lanes=0,Ds(e,t,n,t.pendingProps);case 24:Ei(0,Di,e.memoizedState.cache)}return il(e,t,n)}(e,t,n);Os=!!(131072&e.flags)}else Os=!1,di&&1048576&t.flags&&oi(t,Za,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ao(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var i=e.$$typeof;if(i===A){t.tag=11,t=Fs(null,t,e,a,n);break e}if(i===E){t.tag=14,t=Rs(null,t,e,a,n);break e}}throw t=_(e)||e,Error(r(306,t,""))}ja(e)?(a=Cs(e,a),t.tag=1,t=Gs(null,t,e,a,n)):(t.tag=0,t=Hs(null,t,e,a,n))}return t;case 0:return Hs(e,t,t.type,t.pendingProps,n);case 1:return Gs(e,t,a=t.type,i=Cs(a,t.pendingProps),n);case 3:e:{if(Q(t,t.stateNode.containerInfo),null===e)throw Error(r(387));a=t.pendingProps;var o=t.memoizedState;i=o.element,vo(e,t),Eo(t,a,null,n);var s=t.memoizedState;if(a=s.cache,Ei(0,Di,a),a!==o.cache&&Pi(t,[Di],n,!0),ko(),a=s.element,o.isDehydrated){if(o={element:a,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Vs(e,t,a,n);break e}if(a!==i){xi(i=Qa(Error(r(424)),t)),t=Vs(e,t,a,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(ui=Od(e.firstChild),ci=t,di=!0,pi=null,fi=!0,n=ho(t,null,a,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(yi(),a===i){t=il(e,t,n);break e}Ls(e,t,a,n)}t=t.child}return t;case 26:return qs(e,t),null===e?(n=Wd(t.type,null,t.pendingProps,null))?t.memoizedState=n:di||(n=t.type,e=t.pendingProps,(a=gd(G.current).createElement(n))[Ue]=t,a[$e]=e,pd(a,n,e),et(a),t.stateNode=a):t.memoizedState=Wd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return J(t),null===e&&di&&(a=t.stateNode=Md(t.type,t.pendingProps,G.current),ci=t,fi=!0,i=ui,Td(t.type)?(Ld=i,ui=Od(a.firstChild)):ui=i),Ls(e,t,t.pendingProps.children,n),qs(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&di&&((i=a=ui)&&(null!==(a=function(e,t,n,a){for(;1===e.nodeType;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(a){if(!e[Qe])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(null==i.href||""===i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var o=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===o)return e}if(null===(e=Od(e.nextSibling)))break}return null}(a,t.type,t.pendingProps,fi))?(t.stateNode=a,ci=t,ui=Od(a.firstChild),fi=!1,i=!0):i=!1),i||hi(t)),J(t),i=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,a=o.children,yd(i,o)?a=null:null!==s&&yd(i,s)&&(t.flags|=32),null!==t.memoizedState&&(i=tr(e,t,ir,null,null,n),up._currentValue=i),qs(e,t),Ls(e,t,a,n),t.child;case 6:return null===e&&di&&((e=n=ui)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Od(e.nextSibling)))return null}return e}(n,t.pendingProps,fi))?(t.stateNode=n,ci=t,ui=null,e=!0):e=!1),e||hi(t)),null;case 13:return Ks(e,t,n);case 4:return Q(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=mo(t,null,a,n):Ls(e,t,a,n),t.child;case 11:return Fs(e,t,t.type,t.pendingProps,n);case 7:return Ls(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ls(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Ei(0,t.type,a.value),Ls(e,t,a.children,n),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,Ii(t),a=a(i=_i(i)),t.flags|=1,Ls(e,t,a,n),t.child;case 14:return Rs(e,t,t.type,t.pendingProps,n);case 15:return Ms(e,t,t.type,t.pendingProps,n);case 19:return al(e,t,n);case 31:return function(e,t,n){var a=t.pendingProps,i=!!(128&t.flags);if(t.flags&=-129,null===e){if(di){if("hidden"===a.mode)return e=Us(t,a),t.lanes=536870912,js(null,e);if(Ro(t),(e=ui)?null!==(e=null!==(e=Nd(e,fi))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ti?{id:ni,overflow:ai}:null,retryLane:536870912,hydrationErrors:null},(n=Wa(e)).return=t,t.child=n,ci=t,ui=null):e=null,null===e)throw hi(t);return t.lanes=536870912,null}return Us(t,a)}var o=e.memoizedState;if(null!==o){var s=o.dehydrated;if(Ro(t),i)if(256&t.flags)t.flags&=-257,t=$s(e,t,n);else{if(null===t.memoizedState)throw Error(r(558));t.child=e.child,t.flags|=128,t=null}else if(Os||Bi(e,t,n,!1),i=0!==(n&e.childLanes),Os||i){if(null!==(a=mc)&&0!==(s=Fe(a,n))&&s!==o.retryLane)throw o.retryLane=s,Oa(e,s),Qc(a,e,s),_s;ru(),t=$s(e,t,n)}else e=o.treeContext,ui=Od(s.nextSibling),ci=t,di=!0,pi=null,fi=!1,null!==e&&li(t,e),(t=Us(t,a)).flags|=4096;return t}return(e=za(e.child,{mode:a.mode,children:a.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return Ds(e,t,n,t.pendingProps);case 24:return Ii(t),a=_i(Di),null===e?(null===(i=Qi())&&(i=mc,o=ji(),i.pooledCache=o,o.refCount++,null!==o&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:a,cache:i},bo(t),Ei(0,Di,i)):(0!==(e.lanes&n)&&(vo(e,t),Eo(t,null,null,n),ko()),i=e.memoizedState,o=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),Ei(0,Di,a)):(a=o.cache,Ei(0,Di,a),a!==i.cache&&Pi(t,[Di],n,!0))),Ls(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function sl(e){e.flags|=4}function ll(e,t,n,a,i){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&i)===i)if(e.stateNode.complete)e.flags|=8192;else{if(!au())throw io=eo,Zi;e.flags|=8192}}else e.flags&=-16777217}function cl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!ip(t)){if(!au())throw io=eo,Zi;e.flags|=8192}}function ul(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Ne():536870912,e.lanes|=t,Pc|=t)}function dl(e,t){if(!di)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;null!==n;)null!==n.alternate&&(a=n),n=n.sibling;null===a?t||null===e.tail?e.tail=null:e.tail.sibling=null:a.sibling=null}}function pl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,a=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,a|=65011712&i.subtreeFlags,a|=65011712&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function fl(e,t,n){var a=t.pendingProps;switch(si(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return pl(t),null;case 3:return n=t.stateNode,a=null,null!==e&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ti(Di),Y(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(vi(t)?sl(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,wi())),pl(t),null;case 26:var i=t.type,o=t.memoizedState;return null===e?(sl(t),null!==o?(pl(t),cl(t,o)):(pl(t),ll(t,i,0,0,n))):o?o!==e.memoizedState?(sl(t),pl(t),cl(t,o)):(pl(t),t.flags&=-16777217):((e=e.memoizedProps)!==a&&sl(t),pl(t),ll(t,i,0,0,n)),null;case 27:if(K(t),n=G.current,i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==a&&sl(t);else{if(!a){if(null===t.stateNode)throw Error(r(166));return pl(t),null}e=H.current,vi(t)?gi(t):(e=Md(i,a,n),t.stateNode=e,sl(t))}return pl(t),null;case 5:if(K(t),i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==a&&sl(t);else{if(!a){if(null===t.stateNode)throw Error(r(166));return pl(t),null}if(o=H.current,vi(t))gi(t);else{var s=gd(G.current);switch(o){case 1:o=s.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=s.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(o=s.createElement("div")).innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o="string"==typeof a.is?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o="string"==typeof a.is?s.createElement(i,{is:a.is}):s.createElement(i)}}o[Ue]=t,o[$e]=a;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)o.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;e:switch(pd(o,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&sl(t)}}return pl(t),ll(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==a&&sl(t);else{if("string"!=typeof a&&null===t.stateNode)throw Error(r(166));if(e=G.current,vi(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,null!==(i=ci))switch(i.tag){case 27:case 5:a=i.memoizedProps}e[Ue]=t,(e=!!(e.nodeValue===n||null!==a&&!0===a.suppressHydrationWarning||cd(e.nodeValue,n)))||hi(t,!0)}else(e=gd(e).createTextNode(a))[Ue]=t,t.stateNode=e}return pl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(a=vi(t),null!==n){if(null===e){if(!a)throw Error(r(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(r(557));e[Ue]=t}else yi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;pl(t),e=!1}else n=wi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(jo(t),t):(jo(t),null);if(128&t.flags)throw Error(r(558))}return pl(t),null;case 13:if(a=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=vi(t),null!==a&&null!==a.dehydrated){if(null===e){if(!i)throw Error(r(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(r(317));i[Ue]=t}else yi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;pl(t),i=!1}else i=wi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&t.flags?(jo(t),t):(jo(t),null)}return jo(t),128&t.flags?(t.lanes=n,t):(n=null!==a,e=null!==e&&null!==e.memoizedState,n&&(i=null,null!==(a=t.child).alternate&&null!==a.alternate.memoizedState&&null!==a.alternate.memoizedState.cachePool&&(i=a.alternate.memoizedState.cachePool.pool),o=null,null!==a.memoizedState&&null!==a.memoizedState.cachePool&&(o=a.memoizedState.cachePool.pool),o!==i&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ul(t,t.updateQueue),pl(t),null);case 4:return Y(),null===e&&Xu(t.stateNode.containerInfo),pl(t),null;case 10:return Ti(t.type),pl(t),null;case 19:if(z(zo),null===(a=t.memoizedState))return pl(t),null;if(i=!!(128&t.flags),null===(o=a.rendering))if(i)dl(a,!1);else{if(0!==Cc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(o=Uo(e))){for(t.flags|=128,dl(a,!1),e=o.updateQueue,t.updateQueue=e,ul(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Ua(n,e),n=n.sibling;return U(zo,1&zo.current|2),di&&ii(t,a.treeForkCount),t.child}e=e.sibling}null!==a.tail&&le()>Lc&&(t.flags|=128,i=!0,dl(a,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=Uo(o))){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,ul(t,e),dl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!o.alternate&&!di)return pl(t),null}else 2*le()-a.renderingStartTime>Lc&&536870912!==n&&(t.flags|=128,i=!0,dl(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=a.last)?e.sibling=o:t.child=o,a.last=o)}return null!==a.tail?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=le(),e.sibling=null,n=zo.current,U(zo,i?1&n|2:1&n),di&&ii(t,a.treeForkCount),e):(pl(t),null);case 22:case 23:return jo(t),_o(),a=null!==t.memoizedState,null!==e?null!==e.memoizedState!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?!!(536870912&n)&&!(128&t.flags)&&(pl(t),6&t.subtreeFlags&&(t.flags|=8192)):pl(t),null!==(n=t.updateQueue)&&ul(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),a=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),null!==e&&z(Vi),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ti(Di),pl(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function ml(e,t){switch(si(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ti(Di),Y(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return K(t),null;case 31:if(null!==t.memoizedState){if(jo(t),null===t.alternate)throw Error(r(340));yi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(jo(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));yi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return z(zo),null;case 4:return Y(),null;case 10:return Ti(t.type),null;case 22:case 23:return jo(t),_o(),null!==e&&z(Vi),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ti(Di),null;default:return null}}function hl(e,t){switch(si(t),t.tag){case 3:Ti(Di),Y();break;case 26:case 27:case 5:K(t);break;case 4:Y();break;case 31:null!==t.memoizedState&&jo(t);break;case 13:jo(t);break;case 19:z(zo);break;case 10:Ti(t.type);break;case 22:case 23:jo(t),_o(),null!==e&&z(Vi);break;case 24:Ti(Di)}}function gl(e,t){try{var n=t.updateQueue,a=null!==n?n.lastEffect:null;if(null!==a){var i=a.next;n=i;do{if((n.tag&e)===e){a=void 0;var o=n.create,r=n.inst;a=o(),r.destroy=a}n=n.next}while(n!==i)}}catch(e){Cu(t,t.return,e)}}function bl(e,t,n){try{var a=t.updateQueue,i=null!==a?a.lastEffect:null;if(null!==i){var o=i.next;a=o;do{if((a.tag&e)===e){var r=a.inst,s=r.destroy;if(void 0!==s){r.destroy=void 0,i=t;var l=n,c=s;try{c()}catch(e){Cu(i,l,e)}}}a=a.next}while(a!==o)}}catch(e){Cu(t,t.return,e)}}function vl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{So(t,n)}catch(t){Cu(e,e.return,t)}}}function yl(e,t,n){n.props=Cs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Cu(e,t,n)}}function wl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;default:a=e.stateNode}"function"==typeof n?e.refCleanup=n(a):n.current=a}}catch(n){Cu(e,t,n)}}function xl(e,t){var n=e.ref,a=e.refCleanup;if(null!==n)if("function"==typeof a)try{a()}catch(n){Cu(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){Cu(e,t,n)}else n.current=null}function Al(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(t){Cu(e,e.return,t)}}function Cl(e,t,n){try{var a=e.stateNode;!function(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,s=null,l=null,c=null,u=null,d=null;for(m in n){var p=n[m];if(n.hasOwnProperty(m)&&null!=p)switch(m){case"checked":case"value":break;case"defaultValue":c=p;default:a.hasOwnProperty(m)||ud(e,t,m,null,a,p)}}for(var f in a){var m=a[f];if(p=n[f],a.hasOwnProperty(f)&&(null!=m||null!=p))switch(f){case"type":o=m;break;case"name":i=m;break;case"checked":u=m;break;case"defaultChecked":d=m;break;case"value":s=m;break;case"defaultValue":l=m;break;case"children":case"dangerouslySetInnerHTML":if(null!=m)throw Error(r(137,t));break;default:m!==p&&ud(e,t,f,m,a,p)}}return void vt(e,s,l,c,u,d,o,i);case"select":for(o in m=s=l=f=null,n)if(c=n[o],n.hasOwnProperty(o)&&null!=c)switch(o){case"value":break;case"multiple":m=c;default:a.hasOwnProperty(o)||ud(e,t,o,null,a,c)}for(i in a)if(o=a[i],c=n[i],a.hasOwnProperty(i)&&(null!=o||null!=c))switch(i){case"value":f=o;break;case"defaultValue":l=o;break;case"multiple":s=o;default:o!==c&&ud(e,t,i,o,a,c)}return t=l,n=s,a=m,void(null!=f?xt(e,!!n,f,!1):!!a!=!!n&&(null!=t?xt(e,!!n,t,!0):xt(e,!!n,n?[]:"",!1)));case"textarea":for(l in m=f=null,n)if(i=n[l],n.hasOwnProperty(l)&&null!=i&&!a.hasOwnProperty(l))switch(l){case"value":case"children":break;default:ud(e,t,l,null,a,i)}for(s in a)if(i=a[s],o=n[s],a.hasOwnProperty(s)&&(null!=i||null!=o))switch(s){case"value":f=i;break;case"defaultValue":m=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(r(91));break;default:i!==o&&ud(e,t,s,i,a,o)}return void At(e,f,m);case"option":for(var h in n)if(f=n[h],n.hasOwnProperty(h)&&null!=f&&!a.hasOwnProperty(h))if("selected"===h)e.selected=!1;else ud(e,t,h,null,a,f);for(c in a)if(f=a[c],m=n[c],a.hasOwnProperty(c)&&f!==m&&(null!=f||null!=m))if("selected"===c)e.selected=f&&"function"!=typeof f&&"symbol"!=typeof f;else ud(e,t,c,f,a,m);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)f=n[g],n.hasOwnProperty(g)&&null!=f&&!a.hasOwnProperty(g)&&ud(e,t,g,null,a,f);for(u in a)if(f=a[u],m=n[u],a.hasOwnProperty(u)&&f!==m&&(null!=f||null!=m))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(r(137,t));break;default:ud(e,t,u,f,a,m)}return;default:if(Pt(t)){for(var b in n)f=n[b],n.hasOwnProperty(b)&&void 0!==f&&!a.hasOwnProperty(b)&&dd(e,t,b,void 0,a,f);for(d in a)f=a[d],m=n[d],!a.hasOwnProperty(d)||f===m||void 0===f&&void 0===m||dd(e,t,d,f,a,m);return}}for(var v in n)f=n[v],n.hasOwnProperty(v)&&null!=f&&!a.hasOwnProperty(v)&&ud(e,t,v,null,a,f);for(p in a)f=a[p],m=n[p],!a.hasOwnProperty(p)||f===m||null==f&&null==m||ud(e,t,p,f,a,m)}(a,e.type,n,t),a[$e]=t}catch(t){Cu(e,e.return,t)}}function kl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Td(e.type)||4===e.tag}function El(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||kl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Td(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Tl(e,t,n){var a=e.tag;if(5===a||6===a)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=_t));else if(4!==a&&(27===a&&Td(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Tl(e,t,n),e=e.sibling;null!==e;)Tl(e,t,n),e=e.sibling}function Sl(e,t,n){var a=e.tag;if(5===a||6===a)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==a&&(27===a&&Td(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Sl(e,t,n),e=e.sibling;null!==e;)Sl(e,t,n),e=e.sibling}function Pl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);pd(t,a,n),t[Ue]=e,t[$e]=n}catch(t){Cu(e,e.return,t)}}var Bl=!1,Nl=!1,Il=!1,_l="function"==typeof WeakSet?WeakSet:Set,Ol=null;function Ll(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Ql(e,n),4&a&&gl(5,n);break;case 1:if(Ql(e,n),4&a)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){Cu(n,n.return,e)}else{var i=Cs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Cu(n,n.return,e)}}64&a&&vl(n),512&a&&wl(n,n.return);break;case 3:if(Ql(e,n),64&a&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{So(e,t)}catch(e){Cu(n,n.return,e)}}break;case 27:null===t&&4&a&&Pl(n);case 26:case 5:Ql(e,n),null===t&&4&a&&Al(n),512&a&&wl(n,n.return);break;case 12:Ql(e,n);break;case 31:Ql(e,n),4&a&&zl(e,n);break;case 13:Ql(e,n),4&a&&Ul(e,n),64&a&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}(e,n=Su.bind(null,n))));break;case 22:if(!(a=null!==n.memoizedState||Bl)){t=null!==t&&null!==t.memoizedState||Nl,i=Bl;var o=Nl;Bl=a,(Nl=t)&&!o?Jl(e,n,!!(8772&n.subtreeFlags)):Ql(e,n),Bl=i,Nl=o}break;case 30:break;default:Ql(e,n)}}function Fl(e){var t=e.alternate;null!==t&&(e.alternate=null,Fl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ye(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Rl=null,Ml=!1;function Dl(e,t,n){for(n=n.child;null!==n;)jl(e,t,n),n=n.sibling}function jl(e,t,n){if(ve&&"function"==typeof ve.onCommitFiberUnmount)try{ve.onCommitFiberUnmount(be,n)}catch(e){}switch(n.tag){case 26:Nl||xl(n,t),Dl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Nl||xl(n,t);var a=Rl,i=Ml;Td(n.type)&&(Rl=n.stateNode,Ml=!1),Dl(e,t,n),Dd(n.stateNode),Rl=a,Ml=i;break;case 5:Nl||xl(n,t);case 6:if(a=Rl,i=Ml,Rl=null,Dl(e,t,n),Ml=i,null!==(Rl=a))if(Ml)try{(9===Rl.nodeType?Rl.body:"HTML"===Rl.nodeName?Rl.ownerDocument.body:Rl).removeChild(n.stateNode)}catch(e){Cu(n,t,e)}else try{Rl.removeChild(n.stateNode)}catch(e){Cu(n,t,e)}break;case 18:null!==Rl&&(Ml?(Sd(9===(e=Rl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Hp(e)):Sd(Rl,n.stateNode));break;case 4:a=Rl,i=Ml,Rl=n.stateNode.containerInfo,Ml=!0,Dl(e,t,n),Rl=a,Ml=i;break;case 0:case 11:case 14:case 15:bl(2,n,t),Nl||bl(4,n,t),Dl(e,t,n);break;case 1:Nl||(xl(n,t),"function"==typeof(a=n.stateNode).componentWillUnmount&&yl(n,t,a)),Dl(e,t,n);break;case 21:Dl(e,t,n);break;case 22:Nl=(a=Nl)||null!==n.memoizedState,Dl(e,t,n),Nl=a;break;default:Dl(e,t,n)}}function zl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&null!==(e=e.memoizedState))){e=e.dehydrated;try{Hp(e)}catch(e){Cu(t,t.return,e)}}}function Ul(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Hp(e)}catch(e){Cu(t,t.return,e)}}function $l(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new _l),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new _l),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var a=Pu.bind(null,e,t);t.then(a,a)}})}function ql(e,t){var n=t.deletions;if(null!==n)for(var a=0;a<n.length;a++){var i=n[a],o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(Td(l.type)){Rl=l.stateNode,Ml=!1;break e}break;case 5:Rl=l.stateNode,Ml=!1;break e;case 3:case 4:Rl=l.stateNode.containerInfo,Ml=!0;break e}l=l.return}if(null===Rl)throw Error(r(160));jl(o,s,i),Rl=null,Ml=!1,null!==(o=i.alternate)&&(o.return=null),i.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Wl(t,e),t=t.sibling}var Hl=null;function Wl(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ql(t,e),Gl(e),4&a&&(bl(3,e,e.return),gl(3,e),bl(5,e,e.return));break;case 1:ql(t,e),Gl(e),512&a&&(Nl||null===n||xl(n,n.return)),64&a&&Bl&&(null!==(e=e.updateQueue)&&(null!==(a=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?a:n.concat(a))));break;case 26:var i=Hl;if(ql(t,e),Gl(e),512&a&&(Nl||null===n||xl(n,n.return)),4&a){var o=null!==n?n.memoizedState:null;if(a=e.memoizedState,null===n)if(null===a)if(null===e.stateNode){e:{a=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":(!(o=i.getElementsByTagName("title")[0])||o[Qe]||o[Ue]||"http://www.w3.org/2000/svg"===o.namespaceURI||o.hasAttribute("itemprop"))&&(o=i.createElement(a),i.head.insertBefore(o,i.querySelector("head > title"))),pd(o,a,n),o[Ue]=e,et(o),a=o;break e;case"link":var s=np("link","href",i).get(a+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((o=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&o.getAttribute("rel")===(null==n.rel?null:n.rel)&&o.getAttribute("title")===(null==n.title?null:n.title)&&o.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}pd(o=i.createElement(a),a,n),i.head.appendChild(o);break;case"meta":if(s=np("meta","content",i).get(a+(n.content||"")))for(l=0;l<s.length;l++)if((o=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&o.getAttribute("name")===(null==n.name?null:n.name)&&o.getAttribute("property")===(null==n.property?null:n.property)&&o.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&o.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}pd(o=i.createElement(a),a,n),i.head.appendChild(o);break;default:throw Error(r(468,a))}o[Ue]=e,et(o),a=o}e.stateNode=a}else ap(i,e.type,e.stateNode);else e.stateNode=Kd(i,a,e.memoizedProps);else o!==a?(null===o?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):o.count--,null===a?ap(i,e.type,e.stateNode):Kd(i,a,e.memoizedProps)):null===a&&null!==e.stateNode&&Cl(e,e.memoizedProps,n.memoizedProps)}break;case 27:ql(t,e),Gl(e),512&a&&(Nl||null===n||xl(n,n.return)),null!==n&&4&a&&Cl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ql(t,e),Gl(e),512&a&&(Nl||null===n||xl(n,n.return)),32&e.flags){i=e.stateNode;try{kt(i,"")}catch(t){Cu(e,e.return,t)}}4&a&&null!=e.stateNode&&Cl(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&a&&(Il=!0);break;case 6:if(ql(t,e),Gl(e),4&a){if(null===e.stateNode)throw Error(r(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(t){Cu(e,e.return,t)}}break;case 3:if(tp=null,i=Hl,Hl=Ud(t.containerInfo),ql(t,e),Hl=i,Gl(e),4&a&&null!==n&&n.memoizedState.isDehydrated)try{Hp(t.containerInfo)}catch(t){Cu(e,e.return,t)}Il&&(Il=!1,Vl(e));break;case 4:a=Hl,Hl=Ud(e.stateNode.containerInfo),ql(t,e),Gl(e),Hl=a;break;case 12:default:ql(t,e),Gl(e);break;case 31:case 19:ql(t,e),Gl(e),4&a&&(null!==(a=e.updateQueue)&&(e.updateQueue=null,$l(e,a)));break;case 13:ql(t,e),Gl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(_c=le()),4&a&&(null!==(a=e.updateQueue)&&(e.updateQueue=null,$l(e,a)));break;case 22:i=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=Bl,d=Nl;if(Bl=u||i,Nl=d||c,ql(t,e),Nl=d,Bl=u,Gl(e),8192&a)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||c||Bl||Nl||Yl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(o=c.stateNode,i)"function"==typeof(s=o.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=c.stateNode;var p=c.memoizedProps.style,f=null!=p&&p.hasOwnProperty("display")?p.display:null;l.style.display=null==f||"boolean"==typeof f?"":(""+f).trim()}}catch(e){Cu(c,c.return,e)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=i?"":c.memoizedProps}catch(e){Cu(c,c.return,e)}}}else if(18===t.tag){if(null===n){c=t;try{var m=c.stateNode;i?Pd(m,!0):Pd(c.stateNode,!1)}catch(e){Cu(c,c.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&a&&(null!==(a=e.updateQueue)&&(null!==(n=a.retryQueue)&&(a.retryQueue=null,$l(e,n))));case 30:case 21:}}function Gl(e){var t=e.flags;if(2&t){try{for(var n,a=e.return;null!==a;){if(kl(a)){n=a;break}a=a.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var i=n.stateNode;Sl(e,El(e),i);break;case 5:var o=n.stateNode;32&n.flags&&(kt(o,""),n.flags&=-33),Sl(e,El(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Tl(e,El(e),s);break;default:throw Error(r(161))}}catch(t){Cu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Vl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Vl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Ql(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Ll(e,t.alternate,t),t=t.sibling}function Yl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:bl(4,t,t.return),Yl(t);break;case 1:xl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&yl(t,t.return,n),Yl(t);break;case 27:Dd(t.stateNode);case 26:case 5:xl(t,t.return),Yl(t);break;case 22:null===t.memoizedState&&Yl(t);break;default:Yl(t)}e=e.sibling}}function Jl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var a=t.alternate,i=e,o=t,r=o.flags;switch(o.tag){case 0:case 11:case 15:Jl(i,o,n),gl(4,o);break;case 1:if(Jl(i,o,n),"function"==typeof(i=(a=o).stateNode).componentDidMount)try{i.componentDidMount()}catch(e){Cu(a,a.return,e)}if(null!==(i=(a=o).updateQueue)){var s=a.stateNode;try{var l=i.shared.hiddenCallbacks;if(null!==l)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)To(l[i],s)}catch(e){Cu(a,a.return,e)}}n&&64&r&&vl(o),wl(o,o.return);break;case 27:Pl(o);case 26:case 5:Jl(i,o,n),n&&null===a&&4&r&&Al(o),wl(o,o.return);break;case 12:Jl(i,o,n);break;case 31:Jl(i,o,n),n&&4&r&&zl(i,o);break;case 13:Jl(i,o,n),n&&4&r&&Ul(i,o);break;case 22:null===o.memoizedState&&Jl(i,o,n),wl(o,o.return);break;case 30:break;default:Jl(i,o,n)}t=t.sibling}}function Kl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&zi(n))}function Zl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&zi(e))}function Xl(e,t,n,a){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)ec(e,t,n,a),t=t.sibling}function ec(e,t,n,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Xl(e,t,n,a),2048&i&&gl(9,t);break;case 1:case 31:case 13:default:Xl(e,t,n,a);break;case 3:Xl(e,t,n,a),2048&i&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&zi(e)));break;case 12:if(2048&i){Xl(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,r=o.id,s=o.onPostCommit;"function"==typeof s&&s(r,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){Cu(t,t.return,e)}}else Xl(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,r=t.alternate,null!==t.memoizedState?2&o._visibility?Xl(e,t,n,a):nc(e,t):2&o._visibility?Xl(e,t,n,a):(o._visibility|=2,tc(e,t,n,a,!!(10256&t.subtreeFlags)||!1)),2048&i&&Kl(r,t);break;case 24:Xl(e,t,n,a),2048&i&&Zl(t.alternate,t)}}function tc(e,t,n,a,i){for(i=i&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var o=e,r=t,s=n,l=a,c=r.flags;switch(r.tag){case 0:case 11:case 15:tc(o,r,s,l,i),gl(8,r);break;case 23:break;case 22:var u=r.stateNode;null!==r.memoizedState?2&u._visibility?tc(o,r,s,l,i):nc(o,r):(u._visibility|=2,tc(o,r,s,l,i)),i&&2048&c&&Kl(r.alternate,r);break;case 24:tc(o,r,s,l,i),i&&2048&c&&Zl(r.alternate,r);break;default:tc(o,r,s,l,i)}t=t.sibling}}function nc(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,a=t,i=a.flags;switch(a.tag){case 22:nc(n,a),2048&i&&Kl(a.alternate,a);break;case 24:nc(n,a),2048&i&&Zl(a.alternate,a);break;default:nc(n,a)}t=t.sibling}}var ac=8192;function ic(e,t,n){if(e.subtreeFlags&ac)for(e=e.child;null!==e;)oc(e,t,n),e=e.sibling}function oc(e,t,n){switch(e.tag){case 26:ic(e,t,n),e.flags&ac&&null!==e.memoizedState&&function(e,t,n,a){if(!("stylesheet"!==n.type||"string"==typeof a.media&&!1===matchMedia(a.media).matches||4&n.state.loading)){if(null===n.instance){var i=Gd(a.href),o=t.querySelector(Vd(i));if(o)return null!==(t=o._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=rp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,void et(o);o=t.ownerDocument||t,a=Qd(a),(i=jd.get(i))&&Xd(a,i),et(o=o.createElement("link"));var r=o;r._p=new Promise(function(e,t){r.onload=e,r.onerror=t}),pd(o,"link",a),n.instance=o}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=rp.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Hl,e.memoizedState,e.memoizedProps);break;case 5:default:ic(e,t,n);break;case 3:case 4:var a=Hl;Hl=Ud(e.stateNode.containerInfo),ic(e,t,n),Hl=a;break;case 22:null===e.memoizedState&&(null!==(a=e.alternate)&&null!==a.memoizedState?(a=ac,ac=16777216,ic(e,t,n),ac=a):ic(e,t,n))}}function rc(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function sc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var a=t[n];Ol=a,uc(a,e)}rc(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)lc(e),e=e.sibling}function lc(e){switch(e.tag){case 0:case 11:case 15:sc(e),2048&e.flags&&bl(9,e,e.return);break;case 3:case 12:default:sc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,cc(e)):sc(e)}}function cc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var a=t[n];Ol=a,uc(a,e)}rc(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:bl(8,t,t.return),cc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,cc(t));break;default:cc(t)}e=e.sibling}}function uc(e,t){for(;null!==Ol;){var n=Ol;switch(n.tag){case 0:case 11:case 15:bl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var a=n.memoizedState.cachePool.pool;null!=a&&a.refCount++}break;case 24:zi(n.memoizedState.cache)}if(null!==(a=n.child))a.return=n,Ol=a;else e:for(n=e;null!==Ol;){var i=(a=Ol).sibling,o=a.return;if(Fl(a),a===n){Ol=null;break e}if(null!==i){i.return=o,Ol=i;break e}Ol=o}}}var dc={getCacheForType:function(e){var t=_i(Di),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return _i(Di).controller.signal}},pc="function"==typeof WeakMap?WeakMap:Map,fc=0,mc=null,hc=null,gc=0,bc=0,vc=null,yc=!1,wc=!1,xc=!1,Ac=0,Cc=0,kc=0,Ec=0,Tc=0,Sc=0,Pc=0,Bc=null,Nc=null,Ic=!1,_c=0,Oc=0,Lc=1/0,Fc=null,Rc=null,Mc=0,Dc=null,jc=null,zc=0,Uc=0,$c=null,qc=null,Hc=0,Wc=null;function Gc(){return 2&fc&&0!==gc?gc&-gc:null!==L.T?$u():De()}function Vc(){if(0===Sc)if(536870912&gc&&!di)Sc=536870912;else{var e=ke;!(3932160&(ke<<=1))&&(ke=262144),Sc=e}return null!==(e=Oo.current)&&(e.flags|=32),Sc}function Qc(e,t,n){(e!==mc||2!==bc&&9!==bc)&&null===e.cancelPendingCommit||(tu(e,0),Zc(e,gc,Sc,!1)),_e(e,n),2&fc&&e===mc||(e===mc&&(!(2&fc)&&(Ec|=n),4===Cc&&Zc(e,gc,Sc,!1)),Fu(e))}function Yc(e,t,n){if(6&fc)throw Error(r(327));for(var a=!n&&!(127&t)&&0===(t&e.expiredLanes)||Pe(e,t),i=a?function(e,t){var n=fc;fc|=2;var a=iu(),i=ou();mc!==e||gc!==t?(Fc=null,Lc=le()+500,tu(e,t)):wc=Pe(e,t);e:for(;;)try{if(0!==bc&&null!==hc){t=hc;var o=vc;t:switch(bc){case 1:bc=0,vc=null,pu(e,t,o,1);break;case 2:case 9:if(to(o)){bc=0,vc=null,du(t);break}t=function(){2!==bc&&9!==bc||mc!==e||(bc=7),Fu(e)},o.then(t,t);break e;case 3:bc=7;break e;case 4:bc=5;break e;case 7:to(o)?(bc=0,vc=null,du(t)):(bc=0,vc=null,pu(e,t,o,7));break;case 5:var s=null;switch(hc.tag){case 26:s=hc.memoizedState;case 5:case 27:var l=hc;if(s?ip(s):l.stateNode.complete){bc=0,vc=null;var c=l.sibling;if(null!==c)hc=c;else{var u=l.return;null!==u?(hc=u,fu(u)):hc=null}break t}}bc=0,vc=null,pu(e,t,o,5);break;case 6:bc=0,vc=null,pu(e,t,o,6);break;case 8:eu(),Cc=6;break e;default:throw Error(r(462))}}cu();break}catch(t){nu(e,t)}return ki=Ci=null,L.H=a,L.A=i,fc=n,null!==hc?0:(mc=null,gc=0,Na(),Cc)}(e,t):su(e,t,!0),o=a;;){if(0===i){wc&&!a&&Zc(e,t,0,!1);break}if(n=e.current.alternate,!o||Kc(n)){if(2===i){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;i=Bc;var c=l.current.memoizedState.isDehydrated;if(c&&(tu(l,s).flags|=256),2!==(s=su(l,s,!1))){if(xc&&!c){l.errorRecoveryDisabledLanes|=o,Ec|=o,i=4;break e}o=Nc,Nc=i,null!==o&&(null===Nc?Nc=o:Nc.push.apply(Nc,o))}i=s}if(o=!1,2!==i)continue}}if(1===i){tu(e,0),Zc(e,t,0,!0);break}e:{switch(a=e,o=i){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:Zc(a,t,Sc,!yc);break e;case 2:Nc=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(i=_c+300-le())){if(Zc(a,t,Sc,!yc),0!==Se(a,0,!0))break e;zc=t,a.timeoutHandle=xd(Jc.bind(null,a,n,Nc,Fc,Ic,t,Sc,Ec,Pc,yc,o,"Throttled",-0,0),i)}else Jc(a,n,Nc,Fc,Ic,t,Sc,Ec,Pc,yc,o,null,-0,0)}break}i=su(e,t,!1),o=!1}Fu(e)}function Jc(e,t,n,a,i,o,r,s,l,c,u,d,p,f){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){oc(t,o,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_t});var m=(62914560&o)===o?_c-le():(4194048&o)===o?Oc-le():0;if(null!==(m=function(e,t){return e.stylesheets&&0===e.count&&lp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&lp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===op&&(op=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var i=n[a],o=i.transferSize,r=i.initiatorType,s=i.duration;if(o&&s&&fd(r)){for(r=0,s=i.responseEnd,a+=1;a<n.length;a++){var l=n[a],c=l.startTime;if(c>s)break;var u=l.transferSize,d=l.initiatorType;u&&fd(d)&&(r+=u*((l=l.responseEnd)<s?1:(s-c)/(l-c)))}if(--a,t+=8*(o+r)/(i.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var i=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&lp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>op?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}(d,m)))return zc=o,e.cancelPendingCommit=m(hu.bind(null,e,t,o,n,a,i,r,s,l,u,d,null,p,f)),void Zc(e,o,r,!c)}hu(e,t,o,n,a,i,r,s,l)}function Kc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var a=0;a<n.length;a++){var i=n[a],o=i.getSnapshot;i=i.value;try{if(!Zn(o(),i))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Zc(e,t,n,a){t&=~Tc,t&=~Ec,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var o=31-we(i),r=1<<o;a[o]=-1,i&=~r}0!==n&&Oe(e,n,t)}function Xc(){return!!(6&fc)||(Ru(0,!1),!1)}function eu(){if(null!==hc){if(0===bc)var e=hc.return;else ki=Ci=null,sr(e=hc),so=null,lo=0,e=hc;for(;null!==e;)hl(e.alternate,e),e=e.return;hc=null}}function tu(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Ad(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),zc=0,eu(),mc=e,hc=n=za(e.current,null),gc=t,bc=0,vc=null,yc=!1,wc=Pe(e,t),xc=!1,Pc=Sc=Tc=Ec=kc=Cc=0,Nc=Bc=null,Ic=!1,8&t&&(t|=32&t);var a=e.entangledLanes;if(0!==a)for(e=e.entanglements,a&=t;0<a;){var i=31-we(a),o=1<<i;t|=e[i],a&=~o}return Ac=t,Na(),n}function nu(e,t){qo=null,L.H=hs,t===Ki||t===Xi?(t=oo(),bc=3):t===Zi?(t=oo(),bc=4):bc=t===_s?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,vc=t,null===hc&&(Cc=1,Ss(e,Qa(t,e.current)))}function au(){var e=Oo.current;return null===e||((4194048&gc)===gc?null===Lo:!!((62914560&gc)===gc||536870912&gc)&&e===Lo)}function iu(){var e=L.H;return L.H=hs,null===e?hs:e}function ou(){var e=L.A;return L.A=dc,e}function ru(){Cc=4,yc||(4194048&gc)!==gc&&null!==Oo.current||(wc=!0),!(134217727&kc)&&!(134217727&Ec)||null===mc||Zc(mc,gc,Sc,!1)}function su(e,t,n){var a=fc;fc|=2;var i=iu(),o=ou();mc===e&&gc===t||(Fc=null,tu(e,t)),t=!1;var r=Cc;e:for(;;)try{if(0!==bc&&null!==hc){var s=hc,l=vc;switch(bc){case 8:eu(),r=6;break e;case 3:case 2:case 9:case 6:null===Oo.current&&(t=!0);var c=bc;if(bc=0,vc=null,pu(e,s,l,c),n&&wc){r=0;break e}break;default:c=bc,bc=0,vc=null,pu(e,s,l,c)}}lu(),r=Cc;break}catch(t){nu(e,t)}return t&&e.shellSuspendCounter++,ki=Ci=null,fc=a,L.H=i,L.A=o,null===hc&&(mc=null,gc=0,Na()),r}function lu(){for(;null!==hc;)uu(hc)}function cu(){for(;null!==hc&&!re();)uu(hc)}function uu(e){var t=rl(e.alternate,e,Ac);e.memoizedProps=e.pendingProps,null===t?fu(e):hc=t}function du(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ws(n,t,t.pendingProps,t.type,void 0,gc);break;case 11:t=Ws(n,t,t.pendingProps,t.type.render,t.ref,gc);break;case 5:sr(t);default:hl(n,t),t=rl(n,t=hc=Ua(t,Ac),Ac)}e.memoizedProps=e.pendingProps,null===t?fu(e):hc=t}function pu(e,t,n,a){ki=Ci=null,sr(t),so=null,lo=0;var i=t.return;try{if(function(e,t,n,a,i){if(n.flags|=32768,null!==a&&"object"==typeof a&&"function"==typeof a.then){if(null!==(t=n.alternate)&&Bi(t,n,i,!0),null!==(n=Oo.current)){switch(n.tag){case 31:case 13:return null===Lo?ru():null===n.alternate&&0===Cc&&(Cc=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===eo?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([a]):t.add(a),ku(e,a,i)),!1;case 22:return n.flags|=65536,a===eo?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([a]):n.add(a),ku(e,a,i)),!1}throw Error(r(435,n.tag))}return ku(e,a,i),ru(),!1}if(di)return null!==(t=Oo.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==mi&&xi(Qa(e=Error(r(422),{cause:a}),n))):(a!==mi&&xi(Qa(t=Error(r(423),{cause:a}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,a=Qa(a,n),Ao(e,i=Bs(e.stateNode,a,i)),4!==Cc&&(Cc=2)),!1;var o=Error(r(520),{cause:a});if(o=Qa(o,n),null===Bc?Bc=[o]:Bc.push(o),4!==Cc&&(Cc=2),null===t)return!0;a=Qa(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,Ao(n,e=Bs(n.stateNode,a,e)),!1;case 1:if(t=n.type,o=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===o||"function"!=typeof o.componentDidCatch||null!==Rc&&Rc.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,Is(i=Ns(i),e,n,a),Ao(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,gc))return Cc=1,Ss(e,Qa(n,e.current)),void(hc=null)}catch(t){if(null!==i)throw hc=i,t;return Cc=1,Ss(e,Qa(n,e.current)),void(hc=null)}32768&t.flags?(di||1===a?e=!0:wc||536870912&gc?e=!1:(yc=e=!0,(2===a||9===a||3===a||6===a)&&(null!==(a=Oo.current)&&13===a.tag&&(a.flags|=16384))),mu(t,e)):fu(t)}function fu(e){var t=e;do{if(32768&t.flags)return void mu(t,yc);e=t.return;var n=fl(t.alternate,t,Ac);if(null!==n)return void(hc=n);if(null!==(t=t.sibling))return void(hc=t);hc=t=e}while(null!==t);0===Cc&&(Cc=5)}function mu(e,t){do{var n=ml(e.alternate,e);if(null!==n)return n.flags&=32767,void(hc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(hc=e);hc=e=n}while(null!==e);Cc=6,hc=null}function hu(e,t,n,a,i,o,s,l,c){e.cancelPendingCommit=null;do{wu()}while(0!==Mc);if(6&fc)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(o=t.lanes|t.childLanes,function(e,t,n,a,i,o){var r=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=r&~n;0<n;){var u=31-we(n),d=1<<u;s[u]=0,l[u]=-1;var p=c[u];if(null!==p)for(c[u]=null,u=0;u<p.length;u++){var f=p[u];null!==f&&(f.lane&=-536870913)}n&=~d}0!==a&&Oe(e,a,0),0!==o&&0===i&&0!==e.tag&&(e.suspendedLanes|=o&~(r&~t))}(e,n,o|=Ba,s,l,c),e===mc&&(hc=mc=null,gc=0),jc=t,Dc=e,zc=n,Uc=o,$c=i,qc=a,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,ie(pe,function(){return xu(),null})):(e.callbackNode=null,e.callbackPriority=0),a=!!(13878&t.flags),13878&t.subtreeFlags||a){a=L.T,L.T=null,i=F.p,F.p=2,s=fc,fc|=4;try{!function(e,t){if(e=e.containerInfo,md=yp,ia(e=aa(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(a&&0!==a.rangeCount){n=a.anchorNode;var i=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var m;p!==n||0!==i&&3!==p.nodeType||(l=s+i),p!==o||0!==a&&3!==p.nodeType||(c=s+a),3===p.nodeType&&(s+=p.nodeValue.length),null!==(m=p.firstChild);)f=p,p=m;for(;;){if(p===e)break t;if(f===n&&++u===i&&(l=s),f===o&&++d===a&&(c=s),null!==(m=p.nextSibling))break;f=(p=f).parentNode}p=m}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(hd={focusedElem:e,selectionRange:n},yp=!1,Ol=t;null!==Ol;)if(e=(t=Ol).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ol=e;else for(;null!==Ol;){switch(o=(t=Ol).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(i=e[n]).ref.impl=i.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==o){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var h=Cs(n.type,i);e=a.getSnapshotBeforeUpdate(h,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(e){Cu(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Bd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Bd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Ol=e;break}Ol=t.return}}(e,t)}finally{fc=s,F.p=i,L.T=a}}Mc=1,gu(),bu(),vu()}}function gu(){if(1===Mc){Mc=0;var e=Dc,t=jc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=L.T,L.T=null;var a=F.p;F.p=2;var i=fc;fc|=4;try{Wl(t,e);var o=hd,r=aa(e.containerInfo),s=o.focusedElem,l=o.selectionRange;if(r!==s&&s&&s.ownerDocument&&na(s.ownerDocument.documentElement,s)){if(null!==l&&ia(s)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var f=p.getSelection(),m=s.textContent.length,h=Math.min(l.start,m),g=void 0===l.end?h:Math.min(l.end,m);!f.extend&&h>g&&(r=g,g=h,h=r);var b=ta(s,h),v=ta(s,g);if(b&&v&&(1!==f.rangeCount||f.anchorNode!==b.node||f.anchorOffset!==b.offset||f.focusNode!==v.node||f.focusOffset!==v.offset)){var y=d.createRange();y.setStart(b.node,b.offset),f.removeAllRanges(),h>g?(f.addRange(y),f.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),f.addRange(y))}}}}for(d=[],f=s;f=f.parentNode;)1===f.nodeType&&d.push({element:f,left:f.scrollLeft,top:f.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var w=d[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}yp=!!md,hd=md=null}finally{fc=i,F.p=a,L.T=n}}e.current=t,Mc=2}}function bu(){if(2===Mc){Mc=0;var e=Dc,t=jc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=L.T,L.T=null;var a=F.p;F.p=2;var i=fc;fc|=4;try{Ll(e,t.alternate,t)}finally{fc=i,F.p=a,L.T=n}}Mc=3}}function vu(){if(4===Mc||3===Mc){Mc=0,se();var e=Dc,t=jc,n=zc,a=qc;10256&t.subtreeFlags||10256&t.flags?Mc=5:(Mc=0,jc=Dc=null,yu(e,e.pendingLanes));var i=e.pendingLanes;if(0===i&&(Rc=null),Me(n),t=t.stateNode,ve&&"function"==typeof ve.onCommitFiberRoot)try{ve.onCommitFiberRoot(be,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==a){t=L.T,i=F.p,F.p=2,L.T=null;try{for(var o=e.onRecoverableError,r=0;r<a.length;r++){var s=a[r];o(s.value,{componentStack:s.stack})}}finally{L.T=t,F.p=i}}3&zc&&wu(),Fu(e),i=e.pendingLanes,261930&n&&42&i?e===Wc?Hc++:(Hc=0,Wc=e):Hc=0,Ru(0,!1)}}function yu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,zi(t)))}function wu(){return gu(),bu(),vu(),xu()}function xu(){if(5!==Mc)return!1;var e=Dc,t=Uc;Uc=0;var n=Me(zc),a=L.T,i=F.p;try{F.p=32>n?32:n,L.T=null,n=$c,$c=null;var o=Dc,s=zc;if(Mc=0,jc=Dc=null,zc=0,6&fc)throw Error(r(331));var l=fc;if(fc|=4,lc(o.current),ec(o,o.current,s,n),fc=l,Ru(0,!1),ve&&"function"==typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(be,o)}catch(e){}return!0}finally{F.p=i,L.T=a,yu(e,t)}}function Au(e,t,n){t=Qa(n,t),null!==(e=wo(e,t=Bs(e.stateNode,t,2),2))&&(_e(e,2),Fu(e))}function Cu(e,t,n){if(3===e.tag)Au(e,e,n);else for(;null!==t;){if(3===t.tag){Au(t,e,n);break}if(1===t.tag){var a=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof a.componentDidCatch&&(null===Rc||!Rc.has(a))){e=Qa(n,e),null!==(a=wo(t,n=Ns(2),2))&&(Is(n,a,t,e),_e(a,2),Fu(a));break}}t=t.return}}function ku(e,t,n){var a=e.pingCache;if(null===a){a=e.pingCache=new pc;var i=new Set;a.set(t,i)}else void 0===(i=a.get(t))&&(i=new Set,a.set(t,i));i.has(n)||(xc=!0,i.add(n),e=Eu.bind(null,e,t,n),t.then(e,e))}function Eu(e,t,n){var a=e.pingCache;null!==a&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,mc===e&&(gc&n)===n&&(4===Cc||3===Cc&&(62914560&gc)===gc&&300>le()-_c?!(2&fc)&&tu(e,0):Tc|=n,Pc===gc&&(Pc=0)),Fu(e)}function Tu(e,t){0===t&&(t=Ne()),null!==(e=Oa(e,t))&&(_e(e,t),Fu(e))}function Su(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tu(e,n)}function Pu(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==a&&a.delete(t),Tu(e,n)}var Bu=null,Nu=null,Iu=!1,_u=!1,Ou=!1,Lu=0;function Fu(e){e!==Nu&&null===e.next&&(null===Nu?Bu=Nu=e:Nu=Nu.next=e),_u=!0,Iu||(Iu=!0,kd(function(){6&fc?ie(ue,Mu):Du()}))}function Ru(e,t){if(!Ou&&_u){Ou=!0;do{for(var n=!1,a=Bu;null!==a;){if(!t)if(0!==e){var i=a.pendingLanes;if(0===i)var o=0;else{var r=a.suspendedLanes,s=a.pingedLanes;o=(1<<31-we(42|e)+1)-1,o=201326741&(o&=i&~(r&~s))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,Uu(a,o))}else o=gc,!(3&(o=Se(a,a===mc?o:0,null!==a.cancelPendingCommit||-1!==a.timeoutHandle)))||Pe(a,o)||(n=!0,Uu(a,o));a=a.next}}while(n);Ou=!1}}function Mu(){Du()}function Du(){_u=Iu=!1;var e=0;0!==Lu&&function(){var e=window.event;if(e&&"popstate"===e.type)return e!==wd&&(wd=e,!0);return wd=null,!1}()&&(e=Lu);for(var t=le(),n=null,a=Bu;null!==a;){var i=a.next,o=ju(a,t);0===o?(a.next=null,null===n?Bu=i:n.next=i,null===i&&(Nu=n)):(n=a,(0!==e||3&o)&&(_u=!0)),a=i}0!==Mc&&5!==Mc||Ru(e,!1),0!==Lu&&(Lu=0)}function ju(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var r=31-we(o),s=1<<r,l=i[r];-1===l?0!==(s&n)&&0===(s&a)||(i[r]=Be(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}if(n=gc,n=Se(e,e===(t=mc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),a=e.callbackNode,0===n||e===t&&(2===bc||9===bc)||null!==e.cancelPendingCommit)return null!==a&&null!==a&&oe(a),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Pe(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==a&&oe(a),Me(n)){case 2:case 8:n=de;break;case 32:default:n=pe;break;case 268435456:n=me}return a=zu.bind(null,e),n=ie(n,a),e.callbackPriority=t,e.callbackNode=n,t}return null!==a&&null!==a&&oe(a),e.callbackPriority=2,e.callbackNode=null,2}function zu(e,t){if(0!==Mc&&5!==Mc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(wu()&&e.callbackNode!==n)return null;var a=gc;return 0===(a=Se(e,e===mc?a:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Yc(e,a,t),ju(e,le()),null!=e.callbackNode&&e.callbackNode===n?zu.bind(null,e):null)}function Uu(e,t){if(wu())return null;Yc(e,t,!0)}function $u(){if(0===Lu){var e=qi;0===e&&(e=Ce,!(261888&(Ce<<=1))&&(Ce=256)),Lu=e}return Lu}function qu(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:It(""+e)}function Hu(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Wu=0;Wu<ka.length;Wu++){var Gu=ka[Wu];Ea(Gu.toLowerCase(),"on"+(Gu[0].toUpperCase()+Gu.slice(1)))}Ea(ga,"onAnimationEnd"),Ea(ba,"onAnimationIteration"),Ea(va,"onAnimationStart"),Ea("dblclick","onDoubleClick"),Ea("focusin","onFocus"),Ea("focusout","onBlur"),Ea(ya,"onTransitionRun"),Ea(wa,"onTransitionStart"),Ea(xa,"onTransitionCancel"),Ea(Aa,"onTransitionEnd"),it("onMouseEnter",["mouseout","mouseover"]),it("onMouseLeave",["mouseout","mouseover"]),it("onPointerEnter",["pointerout","pointerover"]),it("onPointerLeave",["pointerout","pointerover"]),at("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),at("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),at("onBeforeInput",["compositionend","keypress","textInput","paste"]),at("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),at("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),at("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vu));function Yu(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var a=e[n],i=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var r=a.length-1;0<=r;r--){var s=a[r],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=c;try{o(i)}catch(e){Ta(e)}i.currentTarget=null,o=l}else for(r=0;r<a.length;r++){if(l=(s=a[r]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=c;try{o(i)}catch(e){Ta(e)}i.currentTarget=null,o=l}}}}function Ju(e,t){var n=t[He];void 0===n&&(n=t[He]=new Set);var a=e+"__bubble";n.has(a)||(ed(t,e,2,!1),n.add(a))}function Ku(e,t,n){var a=0;t&&(a|=4),ed(n,e,a,t)}var Zu="_reactListening"+Math.random().toString(36).slice(2);function Xu(e){if(!e[Zu]){e[Zu]=!0,tt.forEach(function(t){"selectionchange"!==t&&(Qu.has(t)||Ku(t,!1,e),Ku(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Zu]||(t[Zu]=!0,Ku("selectionchange",!1,t))}}function ed(e,t,n,a){switch(Tp(t)){case 2:var i=wp;break;case 8:i=xp;break;default:i=Ap}n=i.bind(null,t,n,e),i=void 0,!$t||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),a?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function td(e,t,n,a,i){var o=a;if(!(1&t||2&t||null===a))e:for(;;){if(null===a)return;var r=a.tag;if(3===r||4===r){var s=a.stateNode.containerInfo;if(s===i)break;if(4===r)for(r=a.return;null!==r;){var c=r.tag;if((3===c||4===c)&&r.stateNode.containerInfo===i)return;r=r.return}for(;null!==s;){if(null===(r=Je(s)))return;if(5===(c=r.tag)||6===c||26===c||27===c){a=o=r;continue e}s=s.parentNode}}a=a.return}jt(function(){var a=o,i=Lt(n),r=[];e:{var s=Ca.get(e);if(void 0!==s){var c=nn,u=e;switch(e){case"keypress":if(0===Qt(n))break e;case"keydown":case"keyup":c=vn;break;case"focusin":u="focus",c=cn;break;case"focusout":u="blur",c=cn;break;case"beforeblur":case"afterblur":c=cn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=sn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=ln;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=wn;break;case ga:case ba:case va:c=un;break;case Aa:c=xn;break;case"scroll":case"scrollend":c=on;break;case"wheel":c=An;break;case"copy":case"cut":case"paste":c=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=yn;break;case"toggle":case"beforetoggle":c=Cn}var d=!!(4&t),p=!d&&("scroll"===e||"scrollend"===e),f=d?null!==s?s+"Capture":null:s;d=[];for(var m,h=a;null!==h;){var g=h;if(m=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===m||null===f||null!=(g=zt(h,f))&&d.push(nd(h,g,m)),p)break;h=h.return}0<d.length&&(s=new c(s,u,null,n,i),r.push({event:s,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===Ot||!(u=n.relatedTarget||n.fromElement)||!Je(u)&&!u[qe])&&(c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=a,null!==(u=(u=n.relatedTarget||n.toElement)?Je(u):null)&&(p=l(u),d=u.tag,u!==p||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=a),c!==u)){if(d=sn,g="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(d=yn,g="onPointerLeave",f="onPointerEnter",h="pointer"),p=null==c?s:Ze(c),m=null==u?s:Ze(u),(s=new d(g,h+"leave",c,n,i)).target=p,s.relatedTarget=m,g=null,Je(i)===a&&((d=new d(f,h+"enter",u,n,i)).target=m,d.relatedTarget=p,g=d),p=g,c&&u)e:{for(d=id,h=u,m=0,g=f=c;g;g=d(g))m++;g=0;for(var b=h;b;b=d(b))g++;for(;0<m-g;)f=d(f),m--;for(;0<g-m;)h=d(h),g--;for(;m--;){if(f===h||null!==h&&f===h.alternate){d=f;break e}f=d(f),h=d(h)}d=null}else d=null;null!==c&&od(r,s,c,d,!1),null!==u&&null!==p&&od(r,p,u,d,!0)}if("select"===(c=(s=a?Ze(a):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var v=Un;else if(Fn(s))if($n)v=Kn;else{v=Yn;var y=Qn}else!(c=s.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?a&&Pt(a.elementType)&&(v=Un):v=Jn;switch(v&&(v=v(e,a))?Rn(r,v,n,i):(y&&y(e,s,a),"focusout"===e&&a&&"number"===s.type&&null!=a.memoizedProps.value&&wt(s,"number",s.value)),y=a?Ze(a):window,e){case"focusin":(Fn(y)||"true"===y.contentEditable)&&(ra=y,sa=a,la=null);break;case"focusout":la=sa=ra=null;break;case"mousedown":ca=!0;break;case"contextmenu":case"mouseup":case"dragend":ca=!1,ua(r,n,i);break;case"selectionchange":if(oa)break;case"keydown":case"keyup":ua(r,n,i)}var w;if(En)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else On?In(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(Pn&&"ko"!==n.locale&&(On||"onCompositionStart"!==x?"onCompositionEnd"===x&&On&&(w=Vt()):(Wt="value"in(Ht=i)?Ht.value:Ht.textContent,On=!0)),0<(y=ad(a,x)).length&&(x=new pn(x,e,null,n,i),r.push({event:x,listeners:y}),w?x.data=w:null!==(w=_n(n))&&(x.data=w))),(w=Sn?function(e,t){switch(e){case"compositionend":return _n(t);case"keypress":return 32!==t.which?null:(Nn=!0,Bn);case"textInput":return(e=t.data)===Bn&&Nn?null:e;default:return null}}(e,n):function(e,t){if(On)return"compositionend"===e||!En&&In(e,t)?(e=Vt(),Gt=Wt=Ht=null,On=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(x=ad(a,"onBeforeInput")).length&&(y=new pn("onBeforeInput","beforeinput",null,n,i),r.push({event:y,listeners:x}),y.data=w)),function(e,t,n,a,i){if("submit"===t&&n&&n.stateNode===i){var o=qu((i[$e]||null).action),r=a.submitter;r&&null!==(t=(t=r[$e]||null)?qu(t.formAction):r.getAttribute("formAction"))&&(o=t,r=null);var s=new nn("action","action",null,a,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(0!==Lu){var e=r?Hu(i,r):new FormData(i);ts(n,{pending:!0,data:e,method:i.method,action:o},null,e)}}else"function"==typeof o&&(s.preventDefault(),e=r?Hu(i,r):new FormData(i),ts(n,{pending:!0,data:e,method:i.method,action:o},o,e))},currentTarget:i}]})}}(r,e,a,n,i)}Yu(r,t)})}function nd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ad(e,t){for(var n=t+"Capture",a=[];null!==e;){var i=e,o=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===o||(null!=(i=zt(e,n))&&a.unshift(nd(e,i,o)),null!=(i=zt(e,t))&&a.push(nd(e,i,o))),3===e.tag)return a;e=e.return}return[]}function id(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function od(e,t,n,a,i){for(var o=t._reactName,r=[];null!==n&&n!==a;){var s=n,l=s.alternate,c=s.stateNode;if(s=s.tag,null!==l&&l===a)break;5!==s&&26!==s&&27!==s||null===c||(l=c,i?null!=(c=zt(n,o))&&r.unshift(nd(n,c,l)):i||null!=(c=zt(n,o))&&r.push(nd(n,c,l))),n=n.return}0!==r.length&&e.push({event:t,listeners:r})}var rd=/\r\n?/g,sd=/\u0000|\uFFFD/g;function ld(e){return("string"==typeof e?e:""+e).replace(rd,"\n").replace(sd,"")}function cd(e,t){return t=ld(t),ld(e)===t}function ud(e,t,n,a,i,o){switch(n){case"children":"string"==typeof a?"body"===t||"textarea"===t&&""===a||kt(e,a):("number"==typeof a||"bigint"==typeof a)&&"body"!==t&&kt(e,""+a);break;case"className":ct(e,"class",a);break;case"tabIndex":ct(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ct(e,n,a);break;case"style":St(e,a,o);break;case"data":if("object"!==t){ct(e,"data",a);break}case"src":case"href":if(""===a&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==a||"function"==typeof a||"symbol"==typeof a||"boolean"==typeof a){e.removeAttribute(n);break}a=It(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if("function"==typeof a){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof o&&("formAction"===n?("input"!==t&&ud(e,t,"name",i.name,i,null),ud(e,t,"formEncType",i.formEncType,i,null),ud(e,t,"formMethod",i.formMethod,i,null),ud(e,t,"formTarget",i.formTarget,i,null)):(ud(e,t,"encType",i.encType,i,null),ud(e,t,"method",i.method,i,null),ud(e,t,"target",i.target,i,null))),null==a||"symbol"==typeof a||"boolean"==typeof a){e.removeAttribute(n);break}a=It(""+a),e.setAttribute(n,a);break;case"onClick":null!=a&&(e.onclick=_t);break;case"onScroll":null!=a&&Ju("scroll",e);break;case"onScrollEnd":null!=a&&Ju("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=a){if("object"!=typeof a||!("__html"in a))throw Error(r(61));if(null!=(n=a.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&"function"!=typeof a&&"symbol"!=typeof a;break;case"muted":e.muted=a&&"function"!=typeof a&&"symbol"!=typeof a;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==a||"function"==typeof a||"boolean"==typeof a||"symbol"==typeof a){e.removeAttribute("xlink:href");break}n=It(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=a&&"function"!=typeof a&&"symbol"!=typeof a?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&"function"!=typeof a&&"symbol"!=typeof a?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===a?e.setAttribute(n,""):!1!==a&&null!=a&&"function"!=typeof a&&"symbol"!=typeof a?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":null==a||"function"==typeof a||"symbol"==typeof a||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Ju("beforetoggle",e),Ju("toggle",e),lt(e,"popover",a);break;case"xlinkActuate":ut(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ut(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ut(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ut(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ut(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ut(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ut(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ut(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ut(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":lt(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&lt(e,n=Bt.get(n)||n,a)}}function dd(e,t,n,a,i,o){switch(n){case"style":St(e,a,o);break;case"dangerouslySetInnerHTML":if(null!=a){if("object"!=typeof a||!("__html"in a))throw Error(r(61));if(null!=(n=a.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof a?kt(e,a):("number"==typeof a||"bigint"==typeof a)&&kt(e,""+a);break;case"onScroll":null!=a&&Ju("scroll",e);break;case"onScrollEnd":null!=a&&Ju("scrollend",e);break;case"onClick":null!=a&&(e.onclick=_t);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:nt.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"==typeof(o=null!=(o=e[$e]||null)?o[n]:null)&&e.removeEventListener(t,o,i),"function"!=typeof a)?n in e?e[n]=a:!0===a?e.setAttribute(n,""):lt(e,n,a):("function"!=typeof o&&null!==o&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,i)))}}function pd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ju("error",e),Ju("load",e);var a,i=!1,o=!1;for(a in n)if(n.hasOwnProperty(a)){var s=n[a];if(null!=s)switch(a){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ud(e,t,a,s,n,null)}}return o&&ud(e,t,"srcSet",n.srcSet,n,null),void(i&&ud(e,t,"src",n.src,n,null));case"input":Ju("invalid",e);var l=a=s=o=null,c=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(null!=d)switch(i){case"name":o=d;break;case"type":s=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":a=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:ud(e,t,i,d,n,null)}}return void yt(e,a,l,c,u,s,o,!1);case"select":for(o in Ju("invalid",e),i=s=a=null,n)if(n.hasOwnProperty(o)&&null!=(l=n[o]))switch(o){case"value":a=l;break;case"defaultValue":s=l;break;case"multiple":i=l;default:ud(e,t,o,l,n,null)}return t=a,n=s,e.multiple=!!i,void(null!=t?xt(e,!!i,t,!1):null!=n&&xt(e,!!i,n,!0));case"textarea":for(s in Ju("invalid",e),a=o=i=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":i=l;break;case"defaultValue":o=l;break;case"children":a=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(r(91));break;default:ud(e,t,s,l,n,null)}return void Ct(e,i,o,a);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))if("selected"===c)e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i;else ud(e,t,c,i,n,null);return;case"dialog":Ju("beforetoggle",e),Ju("toggle",e),Ju("cancel",e),Ju("close",e);break;case"iframe":case"object":Ju("load",e);break;case"video":case"audio":for(i=0;i<Vu.length;i++)Ju(Vu[i],e);break;case"image":Ju("error",e),Ju("load",e);break;case"details":Ju("toggle",e);break;case"embed":case"source":case"link":Ju("error",e),Ju("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(i=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ud(e,t,u,i,n,null)}return;default:if(Pt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(i=n[d])&&dd(e,t,d,i,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(i=n[l])&&ud(e,t,l,i,n,null))}function fd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var md=null,hd=null;function gd(e){return 9===e.nodeType?e:e.ownerDocument}function bd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function vd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function yd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var wd=null;var xd="function"==typeof setTimeout?setTimeout:void 0,Ad="function"==typeof clearTimeout?clearTimeout:void 0,Cd="function"==typeof Promise?Promise:void 0,kd="function"==typeof queueMicrotask?queueMicrotask:void 0!==Cd?function(e){return Cd.resolve(null).then(e).catch(Ed)}:xd;function Ed(e){setTimeout(function(){throw e})}function Td(e){return"head"===e}function Sd(e,t){var n=t,a=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)||"/&"===n){if(0===a)return e.removeChild(i),void Hp(t);a--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)a++;else if("html"===n)Dd(e.ownerDocument.documentElement);else if("head"===n){Dd(n=e.ownerDocument.head);for(var o=n.firstChild;o;){var r=o.nextSibling,s=o.nodeName;o[Qe]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===o.rel.toLowerCase()||n.removeChild(o),o=r}}else"body"===n&&Dd(e.ownerDocument.body);n=i}while(n);Hp(t)}function Pd(e,t){var n=e;e=0;do{var a=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=a}while(n)}function Bd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Bd(n),Ye(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Nd(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Od(e.nextSibling)))return null}return e}function Id(e){return"$?"===e.data||"$~"===e.data}function _d(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Od(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Ld=null;function Fd(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Od(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Rd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Md(e,t,n){switch(t=gd(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function Dd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ye(e)}var jd=new Map,zd=new Set;function Ud(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var $d=F.d;F.d={f:function(){var e=$d.f(),t=Xc();return e||t},r:function(e){var t=Ke(e);null!==t&&5===t.tag&&"form"===t.type?as(t):$d.r(e)},D:function(e){$d.D(e),Hd("dns-prefetch",e,null)},C:function(e,t){$d.C(e,t),Hd("preconnect",e,t)},L:function(e,t,n){$d.L(e,t,n);var a=qd;if(a&&e&&t){var i='link[rel="preload"][as="'+bt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(i+='[imagesrcset="'+bt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(i+='[imagesizes="'+bt(n.imageSizes)+'"]')):i+='[href="'+bt(e)+'"]';var o=i;switch(t){case"style":o=Gd(e);break;case"script":o=Yd(e)}jd.has(o)||(e=f({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),jd.set(o,e),null!==a.querySelector(i)||"style"===t&&a.querySelector(Vd(o))||"script"===t&&a.querySelector(Jd(o))||(pd(t=a.createElement("link"),"link",e),et(t),a.head.appendChild(t)))}},m:function(e,t){$d.m(e,t);var n=qd;if(n&&e){var a=t&&"string"==typeof t.as?t.as:"script",i='link[rel="modulepreload"][as="'+bt(a)+'"][href="'+bt(e)+'"]',o=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Yd(e)}if(!jd.has(o)&&(e=f({rel:"modulepreload",href:e},t),jd.set(o,e),null===n.querySelector(i))){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Jd(o)))return}pd(a=n.createElement("link"),"link",e),et(a),n.head.appendChild(a)}}},X:function(e,t){$d.X(e,t);var n=qd;if(n&&e){var a=Xe(n).hoistableScripts,i=Yd(e),o=a.get(i);o||((o=n.querySelector(Jd(i)))||(e=f({src:e,async:!0},t),(t=jd.get(i))&&ep(e,t),et(o=n.createElement("script")),pd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}},S:function(e,t,n){$d.S(e,t,n);var a=qd;if(a&&e){var i=Xe(a).hoistableStyles,o=Gd(e);t=t||"default";var r=i.get(o);if(!r){var s={loading:0,preload:null};if(r=a.querySelector(Vd(o)))s.loading=5;else{e=f({rel:"stylesheet",href:e,"data-precedence":t},n),(n=jd.get(o))&&Xd(e,n);var l=r=a.createElement("link");et(l),pd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Zd(r,t,a)}r={type:"stylesheet",instance:r,count:1,state:s},i.set(o,r)}}},M:function(e,t){$d.M(e,t);var n=qd;if(n&&e){var a=Xe(n).hoistableScripts,i=Yd(e),o=a.get(i);o||((o=n.querySelector(Jd(i)))||(e=f({src:e,async:!0,type:"module"},t),(t=jd.get(i))&&ep(e,t),et(o=n.createElement("script")),pd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}};var qd="undefined"==typeof document?null:document;function Hd(e,t,n){var a=qd;if(a&&"string"==typeof t&&t){var i=bt(t);i='link[rel="'+e+'"][href="'+i+'"]',"string"==typeof n&&(i+='[crossorigin="'+n+'"]'),zd.has(i)||(zd.add(i),e={rel:e,crossOrigin:n,href:t},null===a.querySelector(i)&&(pd(t=a.createElement("link"),"link",e),et(t),a.head.appendChild(t)))}}function Wd(e,t,n,a){var i,o,s,l,c=(c=G.current)?Ud(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Gd(n.href),(a=(n=Xe(c).hoistableStyles).get(t))||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Gd(n.href);var u=Xe(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Vd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),jd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},jd.set(e,n),u||(i=c,o=e,s=n,l=d.state,i.querySelector('link[rel="preload"][as="style"]['+o+"]")?l.loading=1:(o=i.createElement("link"),l.preload=o,o.addEventListener("load",function(){return l.loading|=1}),o.addEventListener("error",function(){return l.loading|=2}),pd(o,"link",s),et(o),i.head.appendChild(o))))),t&&null===a)throw Error(r(528,""));return d}if(t&&null!==a)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Yd(n),(a=(n=Xe(c).hoistableScripts).get(t))||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Gd(e){return'href="'+bt(e)+'"'}function Vd(e){return'link[rel="stylesheet"]['+e+"]"}function Qd(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Yd(e){return'[src="'+bt(e)+'"]'}function Jd(e){return"script[async]"+e}function Kd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+bt(n.href)+'"]');if(a)return t.instance=a,et(a),a;var i=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return et(a=(e.ownerDocument||e).createElement("style")),pd(a,"style",i),Zd(a,n.precedence,e),t.instance=a;case"stylesheet":i=Gd(n.href);var o=e.querySelector(Vd(i));if(o)return t.state.loading|=4,t.instance=o,et(o),o;a=Qd(n),(i=jd.get(i))&&Xd(a,i),et(o=(e.ownerDocument||e).createElement("link"));var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),pd(o,"link",a),t.state.loading|=4,Zd(o,n.precedence,e),t.instance=o;case"script":return o=Yd(n.src),(i=e.querySelector(Jd(o)))?(t.instance=i,et(i),i):(a=n,(i=jd.get(o))&&ep(a=f({},n),i),et(i=(e=e.ownerDocument||e).createElement("script")),pd(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(a=t.instance,t.state.loading|=4,Zd(a,n.precedence,e));return t.instance}function Zd(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,o=i,r=0;r<a.length;r++){var s=a[r];if(s.dataset.precedence===t)o=s;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Xd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function ep(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var tp=null;function np(e,t,n){if(null===tp){var a=new Map,i=tp=new Map;i.set(n,a)}else(a=(i=tp).get(n))||(a=new Map,i.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[Qe]||o[Ue]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var r=o.getAttribute(t)||"";r=e+r;var s=a.get(r);s?s.push(o):a.set(r,[o])}}return a}function ap(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function ip(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var op=0;function rp(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)lp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var sp=null;function lp(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,sp=new Map,t.forEach(cp,e),sp=null,rp.call(e))}function cp(e,t){if(!(4&t.state.loading)){var n=sp.get(e);if(n)var a=n.get(null);else{n=new Map,sp.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var r=i[o];"LINK"!==r.nodeName&&"not all"===r.getAttribute("media")||(n.set(r.dataset.precedence,r),a=r)}a&&n.set(null,a)}r=(i=t.instance).getAttribute("data-precedence"),(o=n.get(r)||a)===a&&n.set(null,i),n.set(r,i),this.count++,a=rp.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),o?o.parentNode.insertBefore(i,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),t.state.loading|=4}}var up={$$typeof:x,Provider:null,Consumer:null,_currentValue:R,_currentValue2:R,_threadCount:0};function dp(e,t,n,a,i,o,r,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ie(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ie(0),this.hiddenUpdates=Ie(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function pp(e,t,n,a,i,o,r,s,l,c,u,d){return e=new dp(e,t,n,r,l,c,u,d,s),t=1,!0===o&&(t|=24),o=Da(3,null,null,t),e.current=o,o.stateNode=e,(t=ji()).refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},bo(o),e}function fp(e){return e?e=Ra:Ra}function mp(e,t,n,a,i,o){i=fp(i),null===a.context?a.context=i:a.pendingContext=i,(a=yo(t)).payload={element:n},null!==(o=void 0===o?null:o)&&(a.callback=o),null!==(n=wo(e,a,t))&&(Qc(n,0,t),xo(n,e,t))}function hp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function gp(e,t){hp(e,t),(e=e.alternate)&&hp(e,t)}function bp(e){if(13===e.tag||31===e.tag){var t=Oa(e,67108864);null!==t&&Qc(t,0,67108864),gp(e,67108864)}}function vp(e){if(13===e.tag||31===e.tag){var t=Gc(),n=Oa(e,t=Re(t));null!==n&&Qc(n,0,t),gp(e,t)}}var yp=!0;function wp(e,t,n,a){var i=L.T;L.T=null;var o=F.p;try{F.p=2,Ap(e,t,n,a)}finally{F.p=o,L.T=i}}function xp(e,t,n,a){var i=L.T;L.T=null;var o=F.p;try{F.p=8,Ap(e,t,n,a)}finally{F.p=o,L.T=i}}function Ap(e,t,n,a){if(yp){var i=Cp(a);if(null===i)td(e,t,a,kp,n),Fp(e,a);else if(function(e,t,n,a,i){switch(t){case"focusin":return Pp=Rp(Pp,e,t,n,a,i),!0;case"dragenter":return Bp=Rp(Bp,e,t,n,a,i),!0;case"mouseover":return Np=Rp(Np,e,t,n,a,i),!0;case"pointerover":var o=i.pointerId;return Ip.set(o,Rp(Ip.get(o)||null,e,t,n,a,i)),!0;case"gotpointercapture":return o=i.pointerId,_p.set(o,Rp(_p.get(o)||null,e,t,n,a,i)),!0}return!1}(i,e,t,n,a))a.stopPropagation();else if(Fp(e,a),4&t&&-1<Lp.indexOf(e)){for(;null!==i;){var o=Ke(i);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var r=Te(o.pendingLanes);if(0!==r){var s=o;for(s.pendingLanes|=2,s.entangledLanes|=2;r;){var l=1<<31-we(r);s.entanglements[1]|=l,r&=~l}Fu(o),!(6&fc)&&(Lc=le()+500,Ru(0,!1))}}break;case 31:case 13:null!==(s=Oa(o,2))&&Qc(s,0,2),Xc(),gp(o,2)}if(null===(o=Cp(a))&&td(e,t,a,kp,n),o===i)break;i=o}null!==i&&a.stopPropagation()}else td(e,t,a,null,n)}}function Cp(e){return Ep(e=Lt(e))}var kp=null;function Ep(e){if(kp=null,null!==(e=Je(e))){var t=l(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=c(t)))return e;e=null}else if(31===n){if(null!==(e=u(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return kp=e,null}function Tp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ce()){case ue:return 2;case de:return 8;case pe:case fe:return 32;case me:return 268435456;default:return 32}default:return 32}}var Sp=!1,Pp=null,Bp=null,Np=null,Ip=new Map,_p=new Map,Op=[],Lp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Fp(e,t){switch(e){case"focusin":case"focusout":Pp=null;break;case"dragenter":case"dragleave":Bp=null;break;case"mouseover":case"mouseout":Np=null;break;case"pointerover":case"pointerout":Ip.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_p.delete(t.pointerId)}}function Rp(e,t,n,a,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=Ke(t))&&bp(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Mp(e){var t=Je(e.target);if(null!==t){var n=l(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=c(n)))return e.blockedOn=t,void je(e.priority,function(){vp(n)})}else if(31===t){if(null!==(t=u(n)))return e.blockedOn=t,void je(e.priority,function(){vp(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dp(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cp(e.nativeEvent);if(null!==n)return null!==(t=Ke(n))&&bp(t),e.blockedOn=n,!1;var a=new(n=e.nativeEvent).constructor(n.type,n);Ot=a,n.target.dispatchEvent(a),Ot=null,t.shift()}return!0}function jp(e,t,n){Dp(e)&&n.delete(t)}function zp(){Sp=!1,null!==Pp&&Dp(Pp)&&(Pp=null),null!==Bp&&Dp(Bp)&&(Bp=null),null!==Np&&Dp(Np)&&(Np=null),Ip.forEach(jp),_p.forEach(jp)}function Up(e,t){e.blockedOn===t&&(e.blockedOn=null,Sp||(Sp=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,zp)))}var $p=null;function qp(e){$p!==e&&($p=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){$p===e&&($p=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],i=e[t+2];if("function"!=typeof a){if(null===Ep(a||n))continue;break}var o=Ke(n);null!==o&&(e.splice(t,3),t-=3,ts(o,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function Hp(e){function t(t){return Up(t,e)}null!==Pp&&Up(Pp,e),null!==Bp&&Up(Bp,e),null!==Np&&Up(Np,e),Ip.forEach(t),_p.forEach(t);for(var n=0;n<Op.length;n++){var a=Op[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Op.length&&null===(n=Op[0]).blockedOn;)Mp(n),null===n.blockedOn&&Op.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(a=0;a<n.length;a+=3){var i=n[a],o=n[a+1],r=i[$e]||null;if("function"==typeof o)r||qp(n);else if(r){var s=null;if(o&&o.hasAttribute("formAction")){if(i=o,r=o[$e]||null)s=r.formAction;else if(null!==Ep(i))continue}else s=r.action;"function"==typeof s?n[a+1]=s:(n.splice(a,3),a-=3),qp(n)}}}function Wp(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==i&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==i&&(i(),i=null)}}}function Gp(e){this._internalRoot=e}function Vp(e){this._internalRoot=e}Vp.prototype.render=Gp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));mp(t.current,Gc(),e,t,null,null)},Vp.prototype.unmount=Gp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;mp(e.current,2,null,e,null,null),Xc(),t[qe]=null}},Vp.prototype.unstable_scheduleHydration=function(e){if(e){var t=De();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Op.length&&0!==t&&t<Op[n].priority;n++);Op.splice(n,0,e),0===n&&Mp(e)}};var Qp=i.version;if("19.2.4"!==Qp)throw Error(r(527,Qp,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=l(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(a=i.return)){n=a;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return d(i),e;if(o===a)return d(i),t;o=o.sibling}throw Error(r(188))}if(n.return!==a.return)n=i,a=o;else{for(var s=!1,c=i.child;c;){if(c===n){s=!0,n=i,a=o;break}if(c===a){s=!0,a=i,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,a=i;break}if(c===a){s=!0,a=o,n=i;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?p(e):null)?null:e.stateNode};var Yp={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Jp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jp.isDisabled&&Jp.supportsFiber)try{be=Jp.inject(Yp),ve=Jp}catch(e){}}t.createRoot=function(e,t){if(!s(e))throw Error(r(299));var n=!1,a="",i=ks,o=Es,l=Ts;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(o=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=pp(e,1,!1,null,0,n,a,null,i,o,l,Wp),e[qe]=t.current,Xu(e),new Gp(t)}},6221(e,t,n){"use strict";var a=n(6540);function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},s=Symbol.for("react.portal");var l=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(i(299));return function(e,t,n){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:s,key:null==a?null:""+a,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=l.T,n=r.p;try{if(l.T=null,r.p=2,e)return e()}finally{l.T=t,r.p=n,r.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,r.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,a=c(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:a,integrity:i,fetchPriority:o}):"script"===n&&r.d.X(e,{crossOrigin:a,integrity:i,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=c(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,a=c(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:a,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=c(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},t.requestFormReset=function(e){r.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.2.4"},5338(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(1247)},961(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(6221)},9869(e,t){"use strict";var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),m=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,b={};function v(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||h}function y(){}function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var x=w.prototype=new y;x.constructor=w,g(x,v.prototype),x.isPureReactComponent=!0;var A=Array.isArray;function C(){}var k={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function T(e,t,a){var i=a.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==i?i:null,props:a}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function B(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,a={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return a[e]})):t.toString(36);var n,a}function N(e,t,i,o,r){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,c,u=!1;if(null===e)u=!0;else switch(s){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case a:u=!0;break;case p:return N((u=e._init)(e._payload),t,i,o,r)}}if(u)return r=r(e),u=""===o?"."+B(e,0):o,A(r)?(i="",null!=u&&(i=u.replace(P,"$&/")+"/"),N(r,t,i,"",function(e){return e})):null!=r&&(S(r)&&(l=r,c=i+(null==r.key||e&&e.key===r.key?"":(""+r.key).replace(P,"$&/")+"/")+u,r=T(l.type,c,l.props)),t.push(r)),1;u=0;var d,f=""===o?".":o+":";if(A(e))for(var h=0;h<e.length;h++)u+=N(o=e[h],t,i,s=f+B(o,h),r);else if("function"==typeof(h=null===(d=e)||"object"!=typeof d?null:"function"==typeof(d=m&&d[m]||d["@@iterator"])?d:null))for(e=h.call(e),h=0;!(o=e.next()).done;)u+=N(o=o.value,t,i,s=f+B(o,h++),r);else if("object"===s){if("function"==typeof e.then)return N(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(C,C):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,i,o,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function I(e,t,n){if(null==e)return e;var a=[],i=0;return N(e,a,"","",function(e){return t.call(n,e,i++)}),a}function _(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},L={map:I,forEach:function(e,t,n){I(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return I(e,function(){t++}),t},toArray:function(e){return I(e,function(e){return e})||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Activity=f,t.Children=L,t.Component=v,t.Fragment=i,t.Profiler=r,t.PureComponent=w,t.StrictMode=o,t.Suspense=u,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return k.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var a=g({},e.props),i=e.key;if(null!=t)for(o in void 0!==t.key&&(i=""+t.key),t)!E.call(t,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===t.ref||(a[o]=t[o]);var o=arguments.length-2;if(1===o)a.children=n;else if(1<o){for(var r=Array(o),s=0;s<o;s++)r[s]=arguments[s+2];a.children=r}return T(e.type,i,a)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:s,_context:e},e},t.createElement=function(e,t,n){var a,i={},o=null;if(null!=t)for(a in void 0!==t.key&&(o=""+t.key),t)E.call(t,a)&&"key"!==a&&"__self"!==a&&"__source"!==a&&(i[a]=t[a]);var r=arguments.length-2;if(1===r)i.children=n;else if(1<r){for(var s=Array(r),l=0;l<r;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(a in r=e.defaultProps)void 0===i[a]&&(i[a]=r[a]);return T(e,o,i)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:_}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=k.T,n={};k.T=n;try{var a=e(),i=k.S;null!==i&&i(n,a),"object"==typeof a&&null!==a&&"function"==typeof a.then&&a.then(C,O)}catch(e){O(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),k.T=t}},t.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},t.use=function(e){return k.H.use(e)},t.useActionState=function(e,t,n){return k.H.useActionState(e,t,n)},t.useCallback=function(e,t){return k.H.useCallback(e,t)},t.useContext=function(e){return k.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return k.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return k.H.useEffect(e,t)},t.useEffectEvent=function(e){return k.H.useEffectEvent(e)},t.useId=function(){return k.H.useId()},t.useImperativeHandle=function(e,t,n){return k.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return k.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return k.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return k.H.useMemo(e,t)},t.useOptimistic=function(e,t){return k.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return k.H.useReducer(e,t,n)},t.useRef=function(e){return k.H.useRef(e)},t.useState=function(e){return k.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return k.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return k.H.useTransition()},t.version="19.2.4"},6540(e,t,n){"use strict";e.exports=n(9869)},4477(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var a=n-1>>>1,i=e[a];if(!(0<o(i,t)))break e;e[a]=t,e[n]=i,n=a}}function a(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,i=e.length,r=i>>>1;a<r;){var s=2*(a+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[a]=u,e[c]=n,a=c):(e[a]=l,e[s]=n,a=s);else{if(!(c<i&&0>o(u,n)))break e;e[a]=u,e[c]=n,a=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var r=performance;t.unstable_now=function(){return r.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,f=3,m=!1,h=!1,g=!1,b=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=a(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=a(u)}}function A(e){if(g=!1,x(e),!h)if(null!==a(c))h=!0,k||(k=!0,C());else{var t=a(u);null!==t&&_(A,t.startTime-e)}}var C,k=!1,E=-1,T=5,S=-1;function P(){return!!b||!(t.unstable_now()-S<T)}function B(){if(b=!1,k){var e=t.unstable_now();S=e;var n=!0;try{e:{h=!1,g&&(g=!1,y(E),E=-1),m=!0;var o=f;try{t:{for(x(e),p=a(c);null!==p&&!(p.expirationTime>e&&P());){var r=p.callback;if("function"==typeof r){p.callback=null,f=p.priorityLevel;var s=r(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof s){p.callback=s,x(e),n=!0;break t}p===a(c)&&i(c),x(e)}else i(c);p=a(c)}if(null!==p)n=!0;else{var l=a(u);null!==l&&_(A,l.startTime-e),n=!1}}break e}finally{p=null,f=o,m=!1}n=void 0}}finally{n?C():k=!1}}}if("function"==typeof w)C=function(){w(B)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,I=N.port2;N.port1.onmessage=B,C=function(){I.postMessage(null)}}else C=function(){v(B,0)};function _(e,n){E=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_requestPaint=function(){b=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,o){var r=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?r+o:r:o=r,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>r?(e.sortIndex=o,n(u,e),null===a(c)&&e===a(u)&&(g?(y(E),E=-1):g=!0,_(A,o-r))):(e.sortIndex=s,n(c,e),h||m||(h=!0,k||(k=!0,C()))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},9982(e,t,n){"use strict";e.exports=n(4477)},3385(e,t,n){const a=n(5491),i=n(9426),o=n(6049);e.exports={icon:i.icons.iconBase+"noun_109873.svg",name:"source",label:function(e,t){const n=t.session.store.findTypeURIs(e),i=a.Util.mediaTypeClass("text/*").uri.split("*")[0];for(const e in n){if(e.startsWith(i))return"Source";if(e.includes("xml"))return"XML Source";if(e.includes("json"))return"JSON Source";if(e.includes("javascript"))return"Javascript Source"}return null},mintNew:function(e,t){const n=e.session.store;let a=t.newInstance;if(!a){let e=t.newBase;e.endsWith("/")&&(e=e.slice(0,-1),t.newBase=e),a=n.sym(e),t.newInstance=a}const i=o.lookup(a.uri);if(!i||!(i.startsWith("text")||i.includes("xml")||i.includes("json")||i.includes("javascript"))){const e="A new text file has to have an file extension like .txt .ttl .json etc.";throw alert(e),new Error(e)}function r(e){let t="\n";return e.includes("json")?t="{}\n":e.includes("rdf+xml")&&(t='<rdf:RDF\n xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n\n</rdf:RDF>'),t}return new Promise(function(e,o){n.fetcher.webOperation("PUT",a.uri,{data:r(i),contentType:i}).then(function(n){console.log("New text file created: "+a.uri),t.newInstance=a,e(t)},e=>{alert("Cant make new file: "+e),o(e)})})},render:function(e,t){const n=t.dom,o=t.session.store,r=o.fetcher;let s,l,c,u=!0,d=!1,p=!1;const f=n.createElement("div");f.setAttribute("class","sourcePane");const m=f.appendChild(n.createElement("table")),h=m.appendChild(n.createElement("tr")),g=m.appendChild(n.createElement("tr")),b=m.appendChild(n.createElement("tr"));b.setAttribute("style","text-align: right;");const v=h.appendChild(n.createElement("textarea"));v.setAttribute("style","font-family: monospace; font-size: 100%; min-width:60em; margin: 1em 0.2em 1em 0.2em; padding: 1em; border: 0.1em solid #888; border-radius: 0.5em;");const y=b.appendChild(function(e){return i.widgets.button(e,void 0,"Compact",B,{needsBorder:!0})}(n)),w=b.appendChild(i.widgets.cancelButton(n)),x=b.appendChild(i.widgets.continueButton(n)),A=b.appendChild(function(e){return i.widgets.button(e,i.icons.iconBase+"noun_253504.svg","Edit")}(n));function C(){p||(d=!1,A.style.visibility=e.uri.endsWith("/")?"collapse":"visible",v.style.color="#888",w.style.visibility="visible",x.style.visibility="collapse",y.style="visibility: visible; width: 100px; padding: 10.2px; transform: translate(0, -30%)",P[s.split(";")]||(y.style.visibility="collapse"),v.setAttribute("readonly","true"))}function k(e){!p&&d&&(v.style.color="green",w.style.visibility="visible",x.style.visibility="visible",A.style.visibility="collapse",y.style.visibility="collapse",v.removeAttribute("readonly"))}const E={"text/n3":!0,"text/turtle":!0,"application/rdf+xml":!0,"application/xhtml+xml":!0,"text/html":!0,"application/json":!0,"application/ld+json":!0};function T(e,t){if(null!=e){-1===t.characterInFile&&t.lineNo&&(t.lineNo+=1);const n=(t.lineNo?e.value.split("\n",t.lineNo).join("\n").length:0)+t.characterInFile;if(e.createTextRange){const t=e.createTextRange();t.move("character",n),t.select()}else e.focus(),e.selectionStart&&e.setSelectionRange(n,n)}}function S(e,t){if(!e.ok){let a="HTTP error on "+t+"! Status: "+e.status;console.log(a),412===e.status&&(a="Error: File changed by someone else"),g.appendChild(i.widgets.errorMessageBlock(n,a))}return e.ok}const P={"text/n3":!0,"text/turtle":!0,"application/ld+json":!0};function B(t){if(P[s])try{a.parse(v.value,o,e.uri,s);Promise.resolve(a.serialize(o.sym(e.uri),o,e.uri,s)).then(e=>{v.value=e}),w.style.visibility="visible"}catch(e){g.appendChild(i.widgets.errorMessageBlock(n,e))}}function N(t){if(t.headers&&t.headers.get("content-type"))s=t.headers.get("content-type").split(";")[0],l=t.headers.get("allow"),c=t.headers.get("etag");else{o.each(null,o.sym("http://www.w3.org/2007/ont/link#requestedURI"),e.uri).forEach(e=>{const t=o.any(e,o.sym("http://www.w3.org/2007/ont/link#response"));t&&"NamedNode"===t.termType&&(s=o.anyValue(t,i.ns.httph("content-type")),l=o.anyValue(t,i.ns.httph("allow")),c=o.anyValue(t,i.ns.httph("etag")),c||console.log("sourcePane: No eTag on GET"))})}}function I(t){r.webOperation("GET",e.uri).then(function(e){if(!S(e,"GET"))return;const t=e.responseText;if(void 0===t){const e="source pane: No text in response object!!";return void g.appendChild(i.widgets.errorMessageBlock(n,e))}if(v.rows=t.split("\n").length+2,v.cols=80,v.value=t,N(e),!s)return u=!0,p=!0,void g.appendChild(i.widgets.errorMessageBlock(n,"Error: No content-type available!"));C(),l?u=l.indexOf("PUT")<0:(console.log("@@@@@@@@@@ No Allow: header from this server"),u=!1),v.readonly=u}).catch(e=>{f.appendChild(i.widgets.errorMessageBlock(n,"Error reading file: "+e))})}return v.addEventListener("keyup",k),y.addEventListener("click",B),A.addEventListener("click",function(){p||(d=!0,v.style.color="black",w.style.visibility="visible",x.style.visibility="collapse",A.style.visibility="collapse",y.style.visibility="collapse",v.removeAttribute("readonly"))}),w.addEventListener("click",I),x.addEventListener("click",async function(t){const l=v.value;if(!function(t,s,l){if(!E[s])return!0;let c;if("text/html"===s&&([t,s,c]=function(e){let t="",n="";const a=e.split("</script");if(a&&a.length)for(let e of a){e="<script"+e.split("<script")[1]+"<\/script>";const a=["text/turtle","text/n3","application/ld+json","application/rdf+xml"].find(t=>e.includes(`type="${t}"`));if(a){n=e.replace(/^<script(.*?)>/gm,"").replace(/<\/script>$/gm,""),t=a;break}}return[n,t,0]}(t),!s))return!0;try{if(g.innerHTML="","application/json"===s)return JSON.parse(t);try{o.removeDocument(e)}catch(e){if(!e.message.includes("Statement to be removed is not on store"))throw e;console.log(e)}return delete r.requested[e.value],"application/ld+json"===s?(JSON.parse(t),a.parse(t,o,l.uri,s,(e,o)=>{if(e)throw e;const r=a.serialize(l,o,l.uri,s);if(t.includes("@id")&&!r.includes("@id")){const e=new Error("Invalid jsonld : predicate do not expand to an absolute IRI");return g.appendChild(i.widgets.errorMessageBlock(n,e)),!1}return!0})):a.parse(t,o,l.uri,s),!0}catch(e){g.appendChild(i.widgets.errorMessageBlock(n,e));for(let t=e;t=t.cause;t)t.characterInFile&&T(v,t);return!1}}(l,s,e))return k(),void(v.style.color="red");const u={data:l,contentType:s};c&&(u.headers={"if-match":c});try{if(!S(await r.webOperation("PUT",e.uri,u),"PUT"))return;try{const t=await r.webOperation("HEAD",e.uri);if(!S(t,"HEAD"))return;N(t),C()}catch(e){throw e}}catch(e){f.appendChild(i.widgets.errorMessageBlock(n,"Error saving back: "+e))}}),I(),f}}},8481(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>b});var a=n(5072),i=n.n(a),o=n(7825),r=n.n(o),s=n(7659),l=n.n(s),c=n(5056),u=n.n(c),d=n(540),p=n.n(d),f=n(1113),m=n.n(f),h=n(566),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=p();i()(h.A,g);const b=h.A&&h.A.locals?h.A.locals:void 0},2252(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>b});var a=n(5072),i=n.n(a),o=n(7825),r=n.n(o),s=n(7659),l=n.n(s),c=n(5056),u=n.n(c),d=n(540),p=n.n(d),f=n(1113),m=n.n(f),h=n(5223),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=p();i()(h.A,g);const b=h.A&&h.A.locals?h.A.locals:void 0},9480(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>b});var a=n(5072),i=n.n(a),o=n(7825),r=n.n(o),s=n(7659),l=n.n(s),c=n(5056),u=n.n(c),d=n(540),p=n.n(d),f=n(1113),m=n.n(f),h=n(5191),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=p();i()(h.A,g);const b=h.A&&h.A.locals?h.A.locals:void 0},519(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>b});var a=n(5072),i=n.n(a),o=n(7825),r=n.n(o),s=n(7659),l=n.n(s),c=n(5056),u=n.n(c),d=n(540),p=n.n(d),f=n(1113),m=n.n(f),h=n(9662),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=p();i()(h.A,g);const b=h.A&&h.A.locals?h.A.locals:void 0},1570(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>b});var a=n(5072),i=n.n(a),o=n(7825),r=n.n(o),s=n(7659),l=n.n(s),c=n(5056),u=n.n(c),d=n(540),p=n.n(d),f=n(1113),m=n.n(f),h=n(2751),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=p();i()(h.A,g);const b=h.A&&h.A.locals?h.A.locals:void 0},2592(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>b});var a=n(5072),i=n.n(a),o=n(7825),r=n.n(o),s=n(7659),l=n.n(s),c=n(5056),u=n.n(c),d=n(540),p=n.n(d),f=n(1113),m=n.n(f),h=n(1783),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=p();i()(h.A,g);const b=h.A&&h.A.locals?h.A.locals:void 0},2739(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>b});var a=n(5072),i=n.n(a),o=n(7825),r=n.n(o),s=n(7659),l=n.n(s),c=n(5056),u=n.n(c),d=n(540),p=n.n(d),f=n(1113),m=n.n(f),h=n(8824),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=p();i()(h.A,g);const b=h.A&&h.A.locals?h.A.locals:void 0},2538(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>b});var a=n(5072),i=n.n(a),o=n(7825),r=n.n(o),s=n(7659),l=n.n(s),c=n(5056),u=n.n(c),d=n(540),p=n.n(d),f=n(1113),m=n.n(f),h=n(5295),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=p();i()(h.A,g);const b=h.A&&h.A.locals?h.A.locals:void 0},855(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>b});var a=n(5072),i=n.n(a),o=n(7825),r=n.n(o),s=n(7659),l=n.n(s),c=n(5056),u=n.n(c),d=n(540),p=n.n(d),f=n(1113),m=n.n(f),h=n(2024),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=p();i()(h.A,g);const b=h.A&&h.A.locals?h.A.locals:void 0},1930(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>b});var a=n(5072),i=n.n(a),o=n(7825),r=n.n(o),s=n(7659),l=n.n(s),c=n(5056),u=n.n(c),d=n(540),p=n.n(d),f=n(1113),m=n.n(f),h=n(6723),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=p();i()(h.A,g);const b=h.A&&h.A.locals?h.A.locals:void 0},5072(e){"use strict";var t=[];function n(e){for(var n=-1,a=0;a<t.length;a++)if(t[a].identifier===e){n=a;break}return n}function a(e,a){for(var o={},r=[],s=0;s<e.length;s++){var l=e[s],c=a.base?l[0]+a.base:l[0],u=o[c]||0,d="".concat(c," ").concat(u);o[c]=u+1;var p=n(d),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var m=i(f,a);a.byIndex=s,t.splice(s,0,{identifier:d,updater:m,references:1})}r.push(d)}return r}function i(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=a(e=e||[],i=i||{});return function(e){e=e||[];for(var r=0;r<o.length;r++){var s=n(o[r]);t[s].references--}for(var l=a(e,i),c=0;c<o.length;c++){var u=n(o[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=l}}},7659(e){"use strict";var t={};e.exports=function(e,n){var a=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},540(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var a="";n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,i&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},9423(e,t,n){"use strict";n.d(t,{A:()=>a}),e=n.hmd(e);const a=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e)},6077(e){e.exports=function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},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 r}),n.d(t,"validateHTMLColorSpecialName",function(){return s}),n.d(t,"validateHTMLColorHex",function(){return l}),n.d(t,"validateHTMLColorRgb",function(){return h}),n.d(t,"validateHTMLColorHsl",function(){return g}),n.d(t,"validateHTMLColorHwb",function(){return b}),n.d(t,"validateHTMLColorLab",function(){return v}),n.d(t,"validateHTMLColorLch",function(){return y}),n.d(t,"validateHTMLColor",function(){return w});const a=e=>e&&"string"==typeof e,i=["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"],o=["currentColor","inherit","transparent"],r=e=>{let t=!1;return a(e)&&i.map(n=>(e.toLowerCase()===n.toLowerCase()&&(t=!0),null)),t},s=e=>{let t=!1;return a(e)&&o.map(n=>(e.toLowerCase()===n.toLowerCase()&&(t=!0),null)),t},l=e=>{if(a(e)){return e&&/^#([\da-f]{3}){1,2}$|^#([\da-f]{4}){1,2}$/i.test(e)}return!1},c="(([\\d]{0,5})((\\.([\\d]{1,5}))?))",u=`(${c}%)`,d="(([0-9]|[1-9][0-9]|100)%)",p=`(${d}|(0?((\\.([\\d]{1,5}))?))|1)`,f=`([\\s]{0,5})\\)?)(([\\s]{0,5})(\\/?)([\\s]{1,5})(((${d}))|(0?((\\.([\\d]{1,5}))?))|1))?([\\s]{0,5})\\)`,m="(-?(([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)?)",h=e=>{if(a(e)){const t="([\\s]{0,5})([\\d]{1,5})%?([\\s]{0,5}),?",n="((([\\s]{0,5}),?([\\s]{0,5}))|(([\\s]{1,5})))",a=new RegExp(`^(rgb)a?\\(${t}${n}${t}${n}${t}${n}((\\/?([\\s]{0,5})(0?\\.?([\\d]{1,5})%?([\\s]{0,5}))?|1|0))?\\)$`);return e&&a.test(e)}return!1},g=e=>{if(a(e)){const t=new RegExp(`^(hsl)a?\\((([\\s]{0,5})(${m}|(([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},b=e=>{if(a(e)){const t=new RegExp(`^(hwb\\(([\\s]{0,5})${m}([\\s]{1,5}))((0|${d})([\\s]{1,5}))((0|${d})${f}$`);return e&&t.test(e)}return!1},v=e=>{if(a(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})${u}([\\s]{1,5})${t}([\\s]{1,5})${t}${f}$`);return e&&n.test(e)}return!1},y=e=>{if(a(e)){const t=new RegExp(`^lch\\((([\\s]{0,5})${"((([0-9]|[1-9][0-9])?((\\.([\\d]{1,5}))?)|100)(%)?)"}([\\s]{1,5})${""+c}([\\s]{1,5})${`((${m})|(0|${p})|(([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})${p})`})?)\\)$`);return e&&t.test(e)}return!1},w=e=>!!(e&&l(e)||h(e)||g(e)||b(e)||v(e)||y(e));t.default=e=>!!(e&&l(e)||r(e)||s(e)||h(e)||g(e)||b(e)||v(e)||y(e))}])},5663(e){"use strict";e.exports=t},9426(t){"use strict";t.exports=e},5491(e){"use strict";e.exports=n},8466(){},4697(e,t,n){"use strict";n.r(t),n.d(t,{AsyncReplaceDirective:()=>g,asyncReplace:()=>b});var a=n(6752);const{I:i}=a._$LH,o=2;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)}}const s=(e,t)=>{const n=e._$AN;if(void 0===n)return!1;for(const e of n)e._$AO?.(t,!1),s(e,t);return!0},l=e=>{let t,n;do{if(void 0===(t=e._$AM))break;n=t._$AN,n.delete(e),e=t}while(0===n?.size)},c=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),p(t)}};function u(e){void 0!==this._$AN?(l(this),this._$AM=e,c(this)):this._$AM=e}function d(e,t=!1,n=0){const a=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(t)if(Array.isArray(a))for(let e=n;e<a.length;e++)s(a[e],!1),l(a[e]);else null!=a&&(s(a,!1),l(a));else s(this,e)}const p=e=>{e.type==o&&(e._$AP??=d,e._$AQ??=u)};class f extends r{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),c(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(s(this,e),l(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 m{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}}class h{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}}class g extends f{constructor(){super(...arguments),this._$CK=new m(this),this._$CX=new h}render(e,t){return a.noChange}update(e,[t,n]){if(this.isConnected||this.disconnected(),t===this._$CJ)return a.noChange;this._$CJ=t;let i=0;const{_$CK:o,_$CX:r}=this;return(async(e,t)=>{for await(const n of e)if(!1===await t(n))return})(t,async e=>{for(;r.get();)await r.get();const a=o.deref();if(void 0!==a){if(a._$CJ!==t)return!1;void 0!==n&&(e=n(e,i)),a.commitValue(e,i),i++}return!0}),a.noChange}commitValue(e,t){this.setValue(e)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}}const b=(e=>(...t)=>({_$litDirective$:e,values:t}))(g)},6752(e,t,n){"use strict";n.r(t),n.d(t,{_$LH:()=>q,html:()=>E,mathml:()=>S,noChange:()=>P,nothing:()=>B,render:()=>W,svg:()=>T});const a=globalThis,i=e=>e,o=a.trustedTypes,r=o?o.createPolicy("lit-html",{createHTML:e=>e}):void 0,s="$lit$",l=`lit$${Math.random().toFixed(9).slice(2)}$`,c="?"+l,u=`<${c}>`,d=document,p=()=>d.createComment(""),f=e=>null===e||"object"!=typeof e&&"function"!=typeof e,m=Array.isArray,h=e=>m(e)||"function"==typeof e?.[Symbol.iterator],g="[ \t\n\f\r]",b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,y=/>/g,w=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),x=/'/g,A=/"/g,C=/^(?:script|style|textarea|title)$/i,k=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),E=k(1),T=k(2),S=k(3),P=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),N=new WeakMap,I=d.createTreeWalker(d,129);function _(e,t){if(!m(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==r?r.createHTML(t):t}const O=(e,t)=>{const n=e.length-1,a=[];let i,o=2===t?"<svg>":3===t?"<math>":"",r=b;for(let t=0;t<n;t++){const n=e[t];let c,d,p=-1,f=0;for(;f<n.length&&(r.lastIndex=f,d=r.exec(n),null!==d);)f=r.lastIndex,r===b?"!--"===d[1]?r=v:void 0!==d[1]?r=y:void 0!==d[2]?(C.test(d[2])&&(i=RegExp("</"+d[2],"g")),r=w):void 0!==d[3]&&(r=w):r===w?">"===d[0]?(r=i??b,p=-1):void 0===d[1]?p=-2:(p=r.lastIndex-d[2].length,c=d[1],r=void 0===d[3]?w:'"'===d[3]?A:x):r===A||r===x?r=w:r===v||r===y?r=b:(r=w,i=void 0);const m=r===w&&e[t+1].startsWith("/>")?" ":"";o+=r===b?n+u:p>=0?(a.push(c),n.slice(0,p)+s+n.slice(p)+l+m):n+l+(-2===p?t:m)}return[_(e,o+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),a]};class L{constructor({strings:e,_$litType$:t},n){let a;this.parts=[];let i=0,r=0;const u=e.length-1,d=this.parts,[f,m]=O(e,t);if(this.el=L.createElement(f,n),I.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(a=I.nextNode())&&d.length<u;){if(1===a.nodeType){if(a.hasAttributes())for(const e of a.getAttributeNames())if(e.endsWith(s)){const t=m[r++],n=a.getAttribute(e).split(l),o=/([.?@])?(.*)/.exec(t);d.push({type:1,index:i,name:o[2],strings:n,ctor:"."===o[1]?j:"?"===o[1]?z:"@"===o[1]?U:D}),a.removeAttribute(e)}else e.startsWith(l)&&(d.push({type:6,index:i}),a.removeAttribute(e));if(C.test(a.tagName)){const e=a.textContent.split(l),t=e.length-1;if(t>0){a.textContent=o?o.emptyScript:"";for(let n=0;n<t;n++)a.append(e[n],p()),I.nextNode(),d.push({type:2,index:++i});a.append(e[t],p())}}}else if(8===a.nodeType)if(a.data===c)d.push({type:2,index:i});else{let e=-1;for(;-1!==(e=a.data.indexOf(l,e+1));)d.push({type:7,index:i}),e+=l.length-1}i++}}static createElement(e,t){const n=d.createElement("template");return n.innerHTML=e,n}}function F(e,t,n=e,a){if(t===P)return t;let i=void 0!==a?n._$Co?.[a]:n._$Cl;const o=f(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),void 0===o?i=void 0:(i=new o(e),i._$AT(e,n,a)),void 0!==a?(n._$Co??=[])[a]=i:n._$Cl=i),void 0!==i&&(t=F(e,i._$AS(e,t.values),i,a)),t}class R{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,a=(e?.creationScope??d).importNode(t,!0);I.currentNode=a;let i=I.nextNode(),o=0,r=0,s=n[0];for(;void 0!==s;){if(o===s.index){let t;2===s.type?t=new M(i,i.nextSibling,this,e):1===s.type?t=new s.ctor(i,s.name,s.strings,this,e):6===s.type&&(t=new $(i,this,e)),this._$AV.push(t),s=n[++r]}o!==s?.index&&(i=I.nextNode(),o++)}return I.currentNode=d,a}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 M{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,a){this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=a,this._$Cv=a?.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=F(this,e,t),f(e)?e===B||null==e||""===e?(this._$AH!==B&&this._$AR(),this._$AH=B):e!==this._$AH&&e!==P&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):h(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==B&&f(this._$AH)?this._$AA.nextSibling.data=e:this.T(d.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,a="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=L.createElement(_(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(t);else{const e=new R(a,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=N.get(e.strings);return void 0===t&&N.set(e.strings,t=new L(e)),t}k(e){m(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,a=0;for(const i of e)a===t.length?t.push(n=new M(this.O(p()),this.O(p()),this,this.options)):n=t[a],n._$AI(i),a++;a<t.length&&(this._$AR(n&&n._$AB.nextSibling,a),t.length=a)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=i(e).nextSibling;i(e).remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class D{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,a,i){this.type=1,this._$AH=B,this._$AN=void 0,this.element=e,this.name=t,this._$AM=a,this.options=i,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=B}_$AI(e,t=this,n,a){const i=this.strings;let o=!1;if(void 0===i)e=F(this,e,t,0),o=!f(e)||e!==this._$AH&&e!==P,o&&(this._$AH=e);else{const a=e;let r,s;for(e=i[0],r=0;r<i.length-1;r++)s=F(this,a[n+r],t,r),s===P&&(s=this._$AH[r]),o||=!f(s)||s!==this._$AH[r],s===B?e=B:e!==B&&(e+=(s??"")+i[r+1]),this._$AH[r]=s}o&&!a&&this.j(e)}j(e){e===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class j extends D{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===B?void 0:e}}class z extends D{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==B)}}class U extends D{constructor(e,t,n,a,i){super(e,t,n,a,i),this.type=5}_$AI(e,t=this){if((e=F(this,e,t,0)??B)===P)return;const n=this._$AH,a=e===B&&n!==B||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==B&&(n===B||a);a&&this.element.removeEventListener(this.name,this,n),i&&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 ${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){F(this,e)}}const q={M:s,P:l,A:c,C:1,L:O,R,D:h,V:F,I:M,H:D,N:z,U,B:j,F:$},H=a.litHtmlPolyfillSupport;H?.(L,M),(a.litHtmlVersions??=[]).push("3.3.2");const W=(e,t,n)=>{const a=n?.renderBefore??t;let i=a._$litPart$;if(void 0===i){const e=n?.renderBefore??null;a._$litPart$=i=new M(t.insertBefore(p(),e),e,void 0,n??{})}return i._$AI(e),i}},1813(e){"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/ace+json":{"source":"iana","compressible":true},"application/ace-groupcomm+cbor":{"source":"iana"},"application/ace-trl+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/aif+cbor":{"source":"iana"},"application/aif+json":{"source":"iana","compressible":true},"application/alto-cdni+json":{"source":"iana","compressible":true},"application/alto-cdnifilter+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-propmap+json":{"source":"iana","compressible":true},"application/alto-propmapparams+json":{"source":"iana","compressible":true},"application/alto-tips+json":{"source":"iana","compressible":true},"application/alto-tipsparams+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/appinstaller":{"compressible":false,"extensions":["appinstaller"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/appx":{"compressible":false,"extensions":["appx"]},"application/appxbundle":{"compressible":false,"extensions":["appxbundle"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/automationml-aml+xml":{"source":"iana","compressible":true,"extensions":["aml"]},"application/automationml-amlx+zip":{"source":"iana","compressible":false,"extensions":["amlx"]},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/bufr":{"source":"iana"},"application/c2pa":{"source":"iana"},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/ce+cbor":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/cid-edhoc+cbor-seq":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/city+json-seq":{"source":"iana"},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-eap":{"source":"iana"},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/concise-problem-details+cbor":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cose-x509":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwl":{"source":"iana","extensions":["cwl"]},"application/cwl+json":{"source":"iana","compressible":true},"application/cwl+yaml":{"source":"iana"},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana","extensions":["dcm"]},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dpop+jwt":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/eat+cwt":{"source":"iana"},"application/eat+jwt":{"source":"iana"},"application/eat-bun+cbor":{"source":"iana"},"application/eat-bun+json":{"source":"iana","compressible":true},"application/eat-ucs+cbor":{"source":"iana"},"application/eat-ucs+json":{"source":"iana","compressible":true},"application/ecmascript":{"source":"apache","compressible":true,"extensions":["ecma"]},"application/edhoc+cbor-seq":{"source":"iana"},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.legacyesn+json":{"source":"iana","compressible":true},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/entity-statement+jwt":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdf":{"source":"iana","extensions":["fdf"]},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geopose+json":{"source":"iana","compressible":true},"application/geoxacml+json":{"source":"iana","compressible":true},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gnap-binding-jws":{"source":"iana"},"application/gnap-binding-jwsd":{"source":"iana"},"application/gnap-binding-rotation-jws":{"source":"iana"},"application/gnap-binding-rotation-jwsd":{"source":"iana"},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/grib":{"source":"iana"},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"iana","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"apache","charset":"UTF-8","compressible":true,"extensions":["js"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/jscontact+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jsonpath":{"source":"iana"},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwk-set+jwt":{"source":"iana"},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/linkset":{"source":"iana"},"application/linkset+json":{"source":"iana","compressible":true},"application/load-control+xml":{"source":"iana","compressible":true},"application/logout+jwt":{"source":"iana"},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4","mpg4","mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msix":{"compressible":false,"extensions":["msix"]},"application/msixbundle":{"compressible":false,"extensions":["msixbundle"]},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":true,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/ohttp-keys":{"source":"iana"},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg","one","onea"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["sig","asc"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/private-token-issuer-directory":{"source":"iana"},"application/private-token-request":{"source":"iana"},"application/private-token-response":{"source":"iana"},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/provided-claims+jwt":{"source":"iana"},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.implied-document+xml":{"source":"iana","compressible":true},"application/prs.implied-executable":{"source":"iana"},"application/prs.implied-object+json":{"source":"iana","compressible":true},"application/prs.implied-object+json-seq":{"source":"iana"},"application/prs.implied-object+yaml":{"source":"iana"},"application/prs.implied-structure":{"source":"iana"},"application/prs.mayfile":{"source":"iana"},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.vcfbzip2":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true,"extensions":["xsf"]},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"apache"},"application/reputon+json":{"source":"iana","compressible":true},"application/resolve-response+jwt":{"source":"iana"},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-checklist":{"source":"iana"},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-signed-tal":{"source":"iana"},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"apache"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana","extensions":["sql"]},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/sslkeylogfile":{"source":"iana"},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/st2110-41":{"source":"iana"},"application/stix+json":{"source":"iana","compressible":true},"application/stratum":{"source":"iana"},"application/swid+cbor":{"source":"iana"},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tm+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/toc+cbor":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"source":"iana","compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/trust-chain+json":{"source":"iana","compressible":true},"application/trust-mark+jwt":{"source":"iana"},"application/trust-mark-delegation+jwt":{"source":"iana"},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/uccs+cbor":{"source":"iana"},"application/ujcs+json":{"source":"iana","compressible":true},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vc":{"source":"iana"},"application/vc+cose":{"source":"iana"},"application/vc+jwt":{"source":"iana"},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.1ob":{"source":"iana"},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3a+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ach+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc8+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.5gsa2x":{"source":"iana"},"application/vnd.3gpp.5gsa2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gsv2x":{"source":"iana"},"application/vnd.3gpp.5gsv2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.crs+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.current-location-discovery+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-msgstore-ctrl-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.pinapp-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.seal-group-doc+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-network-qos-management-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-ue-config-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-unicast-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-user-profile-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.v2x":{"source":"iana"},"application/vnd.3gpp.vae-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acm.addressxfer+json":{"source":"iana","compressible":true},"application/vnd.acm.chatbot+json":{"source":"iana","compressible":true},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"apache","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"apache"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.parquet":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.apexlang":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"apache"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autodesk.fbx":{"extensions":["fbx"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.belightsoft.lhzd+zip":{"source":"iana","compressible":false},"application/vnd.belightsoft.lhzl+zip":{"source":"iana","compressible":false},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.bzip3":{"source":"iana"},"application/vnd.c3voc.schedule+xml":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.cncf.helm.chart.content.v1.tar+gzip":{"source":"iana"},"application/vnd.cncf.helm.chart.provenance.v1.prov":{"source":"iana"},"application/vnd.cncf.helm.config.v1+json":{"source":"iana","compressible":true},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datalog":{"source":"iana"},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.dcmp+xml":{"source":"iana","compressible":true,"extensions":["dcmp"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.eln+zip":{"source":"iana","compressible":false},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.erofs":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"apache","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.fdsn.stationxml+xml":{"source":"iana","charset":"XML-BASED","compressible":true},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.freelog.comic":{"source":"iana"},"application/vnd.frogans.fnc":{"source":"apache","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"apache","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.ga4gh.passport+jwt":{"source":"iana"},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.genozip":{"source":"iana"},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.gentoo.catmetadata+xml":{"source":"iana","compressible":true},"application/vnd.gentoo.ebuild":{"source":"iana"},"application/vnd.gentoo.eclass":{"source":"iana"},"application/vnd.gentoo.gpkg":{"source":"iana"},"application/vnd.gentoo.manifest":{"source":"iana"},"application/vnd.gentoo.pkgmetadata+xml":{"source":"iana","compressible":true},"application/vnd.gentoo.xpak":{"source":"iana"},"application/vnd.geo+json":{"source":"apache","compressible":true},"application/vnd.geocube+xml":{"source":"apache","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.pinboard":{"source":"iana"},"application/vnd.geogebra.slides":{"source":"iana","extensions":["ggs"]},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.gnu.taler.exchange+json":{"source":"iana","compressible":true},"application/vnd.gnu.taler.merchant+json":{"source":"iana","compressible":true},"application/vnd.google-apps.audio":{},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.drawing":{"compressible":false,"extensions":["gdraw"]},"application/vnd.google-apps.drive-sdk":{"compressible":false},"application/vnd.google-apps.file":{},"application/vnd.google-apps.folder":{"compressible":false},"application/vnd.google-apps.form":{"compressible":false,"extensions":["gform"]},"application/vnd.google-apps.fusiontable":{},"application/vnd.google-apps.jam":{"compressible":false,"extensions":["gjam"]},"application/vnd.google-apps.mail-layout":{},"application/vnd.google-apps.map":{"compressible":false,"extensions":["gmap"]},"application/vnd.google-apps.photo":{},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.script":{"compressible":false,"extensions":["gscript"]},"application/vnd.google-apps.shortcut":{},"application/vnd.google-apps.site":{"compressible":false,"extensions":["gsite"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-apps.unknown":{},"application/vnd.google-apps.video":{},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"apache","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true,"extensions":["xdcf"]},"application/vnd.gpxsee.map+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.hsl":{"source":"iana"},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"apache"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"apache","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"apache"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.ipfs.ipns-record":{"source":"iana"},"application/vnd.ipld.car":{"source":"iana"},"application/vnd.ipld.dag-cbor":{"source":"iana"},"application/vnd.ipld.dag-json":{"source":"iana"},"application/vnd.ipld.raw":{"source":"iana"},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kdl":{"source":"iana"},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.keyman.kmp+zip":{"source":"iana","compressible":false},"application/vnd.keyman.kmx":{"source":"iana"},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.ldev.productlicensing":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.mdl":{"source":"iana"},"application/vnd.mdl-mbsdf":{"source":"iana"},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.medicalholodeck.recordxr":{"source":"iana"},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mermaid":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.modl":{"source":"iana"},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-visio.viewer":{"extensions":["vdx"]},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msgpack":{"source":"iana"},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.nato.bindingdataobject+cbor":{"source":"iana"},"application/vnd.nato.bindingdataobject+json":{"source":"iana","compressible":true},"application/vnd.nato.bindingdataobject+xml":{"source":"iana","compressible":true,"extensions":["bdo"]},"application/vnd.nato.openxmlformats-package.iepd+zip":{"source":"iana","compressible":false},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"apache","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oai.workflows":{"source":"iana"},"application/vnd.oai.workflows+json":{"source":"iana","compressible":true},"application/vnd.oai.workflows+yaml":{"source":"iana"},"application/vnd.oasis.opendocument.base":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"apache","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-master-template":{"source":"iana"},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"apache","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"apache","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.onvif.metadata":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openvpi.dspx+json":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.procrate.brushset":{"extensions":["brushset"]},"application/vnd.procreate.brush":{"extensions":["brush"]},"application/vnd.procreate.dream":{"extensions":["drm"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.pt.mundusmundi":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true,"extensions":["xhtm"]},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.relpipe":{"source":"iana"},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.sketchometry":{"source":"iana"},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.smintio.portals.archive":{"source":"iana"},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sybyl.mol2":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uic.osdm+json":{"source":"iana","compressible":true},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml","uo"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.veraison.tsm-report+cbor":{"source":"iana"},"application/vnd.veraison.tsm-report+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw","vsdx","vtx"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vocalshaper.vsp4":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.wasmflow.wafl":{"source":"iana"},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordlift":{"source":"iana"},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xarin.cpj":{"source":"iana"},"application/vnd.xecrets-encrypted":{"source":"iana"},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/voucher-jws+json":{"source":"iana","compressible":true},"application/vp":{"source":"iana"},"application/vp+cose":{"source":"iana"},"application/vp+jwt":{"source":"iana"},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blender":{"extensions":["blend"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-compressed":{"extensions":["rar"]},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-ipynb+json":{"compressible":true,"extensions":["ipynb"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zip-compressed":{"extensions":["zip"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xfdf":{"source":"iana","extensions":["xfdf"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yaml":{"source":"iana"},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+cbor":{"source":"iana"},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yang-sid+json":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zip+dotlottie":{"extensions":["lottie"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana","extensions":["adts","aac"]},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flac":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/matroska":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/midi-clip":{"source":"iana"},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a","m4b"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"apache"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"source":"iana","compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp","dib"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/dpx":{"source":"iana","extensions":["dpx"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/j2c":{"source":"iana"},"image/jaii":{"source":"iana","extensions":["jaii"]},"image/jais":{"source":"iana","extensions":["jais"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpg","jpeg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm","jpgm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxl":{"source":"iana","extensions":["jxl"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false,"extensions":["jfif"]},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif","btf"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.clip":{"source":"iana"},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"iana","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-adobe-dng":{"extensions":["dng"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-emf":{"source":"iana"},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-wmf":{"source":"iana"},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/bhttp":{"source":"iana"},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/mls":{"source":"iana"},"message/news":{"source":"apache"},"message/ohttp-req":{"source":"iana"},"message/ohttp-res":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime","mht","mhtml"]},"message/s-http":{"source":"apache"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"apache"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/jt":{"source":"iana","extensions":["jt"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/prc":{"source":"iana","extensions":["prc"]},"model/step":{"source":"iana","extensions":["step","stp","stpnc","p21","210"]},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/u3d":{"source":"iana","extensions":["u3d"]},"model/vnd.bary":{"source":"iana","extensions":["bary"]},"model/vnd.cld":{"source":"iana","extensions":["cld"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana","extensions":["pyo","pyox"]},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usda":{"source":"iana","extensions":["usda"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"apache"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/hl7v2":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["md","markdown"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/prs.texi":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.exchangeable":{"source":"iana"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"apache"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.vcf":{"source":"iana"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vnd.zoo.kcl":{"source":"iana"},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/wgsl":{"source":"iana","extensions":["wgsl"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/evc":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/h266":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/lottie+json":{"source":"iana","compressible":true},"video/matroska":{"source":"iana"},"video/matroska-3d":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts","m2t","m2ts","mts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.planar":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"apache"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var r={};return(()=>{"use strict";o.d(r,{fo:()=>Qs});var e=o(9426),t=o(5663),n=o(4059),a=o(5072),i=o.n(a),s=o(7825),l=o.n(s),c=o(7659),u=o.n(c),d=o(5056),p=o.n(d),f=o(540),m=o.n(f),h=o(1113),g=o.n(h),b=o(9405),v={};v.styleTagTransform=g(),v.setAttributes=p(),v.insert=u().bind(null,"head"),v.domAPI=l(),v.insertStyleElement=m();i()(b.A,v);b.A&&b.A.locals&&b.A.locals;var y=o(5491);const w=t=>function(n){const a=e.utils.AJARImage(n.uri,e.utils.label(n),e.utils.label(n),t);return a.setAttribute("class","outlineImage"),a},x=e=>function(t){const n=e.createElement("a");let a="NamedNode"===t.termType?t.uri:t.value;const i=a.indexOf("mailto:");return a=i>=0?a.slice(i+7):a,n.setAttribute("href","mailto:"+a),n.appendChild(e.createTextNode(a)),n};function A(e,t,n,a){e.properties[t]||(e.properties[t]=[]),e.properties[t].push(n),a&&(e.defaults[t]=n)}const C={};let k,E;function T(a){const i=a.document;this.menuId="predicateMenu1";const o=function(e){console.log(e+"\n")},r=e.ns.rdf,s=y.Namespace("http://purl.org/ontology/bibo/"),l=y.Namespace("http://purl.org/dc/elements/1.1/");let c=!1;return k||(k=new y.Formula,k.superFormula=t.store),E||(E=new y.IndexedFormula),E.name="TempFormula",t.store.updater||(t.store.updater=new y.UpdateManager(t.store)),{sparqler:t.store.updater,lastModified:null,lastModifiedStat:null,statIsInverse:!1,addNewPredicateObject:function(n){if("bottom-border-active"!==e.utils.getTarget(n).className)return;const o=a.UserInput,r=e.utils.getTarget(n),s=i.createElement("tr");e.utils.ancestor(r,"DIV").insertBefore(s,e.utils.ancestor(r,"TR"));const l=i.createElement("tr"),c=o.generateRequest("(TBD)",l,!0);s.appendChild(l.firstChild);const u=o.generateRequest("(Enter text or drag an object onto this field)",l,!1);if(s.appendChild(l.firstChild),e.utils.ancestor(r,"TR").previousSibling&&e.utils.ancestor(r,"TR").previousSibling.AJAR_statement){const t=e.utils.ancestor(r,"TR").previousSibling.AJAR_statement;o.formUndetStat(s,t.subject,c,u,t.why,!1)}else{const n=e.utils.getAbout(t.store,e.utils.ancestor(r.parentNode.parentNode,"TD")),a=t.store.sym(y.Util.uri.docpart(n.uri));o.formUndetStat(s,n,c,u,a,!1)}a.walk("moveTo",s.firstChild),e.log.info("addNewPredicateObject: selection = "+a.getSelection().map(function(e){return e.textContent}).join(", ")),this.startFillInText(a.getSelection()[0])},addNewObject:function(t){const n=e.utils.getTarget(t).parentNode.parentNode,i=n.parentNode.AJAR_inverse;this.lastModifiedStat=n.parentNode.AJAR_statement;const o=this.appendToPredicate(n),r=this.generateRequest(" (Error) ",o,!1),s=o.previousSibling.AJAR_statement;i?this.formUndetStat(o,r,s.predicate,s.object,s.why,!0):this.formUndetStat(o,s.subject,s.predicate,r,s.why,!1),a.walk("moveTo",o.lastChild),this.startFillInText(o.lastChild)},Delete:function(e){this.deleteTriple(e,!1)},Enter:function(e){this.literalModification(e)},Click:function(t){const n=e.utils.getTarget(t);"Literal"===e.utils.getTerm(n).termType&&(this.literalModification(n),t.preventDefault(),t.stopPropagation())},pasteFromClipboard:function(t,n){function i(t){const n=a.clipboard[t].shift();if(null!==n){switch(t){case"predicates":case"objects":{const e=a.clipboard.all;for(let t=0;;t++)if(n.sameTerm(e[t])){e.splice(t,1);break}break}case"all":throw new Error("hostorical code not understood - what is theCollection?")}return n}e.log.warn("no more element in clipboard!")}let o;switch(n.className){case"undetermined selected":if(o=n.nextSibling?i("predicates"):i("objects"),!o)return;break;case"pred selected":if(o=i("objects"),!o)return;break;case"selected":{const e=i("all");if(!e)return;return o=e[0],void this.insertTermTo(n,o,e[1])}}this.insertTermTo(n,o)},startFillInText:function(t){switch(this.whatSortOfEditCell(t)){case"DatatypeProperty-like":e.utils.emptyNode(t),this.lastModified=this.createInputBoxIn(t," (Please Input) "),this.lastModified.isNew=!1,this.lastModified.select();break;case"predicate":this.performAutoCompleteEdit(t,"PredicateAutoComplete");break;case"ObjectProperty-like":case"no-idea":this.performAutoCompleteEdit(t,"GeneralAutoComplete")}},literalModification:function(n){if(e.log.debug("entering literal Modification with "+n+n.textContent),-1!==n.className.indexOf(" pendingedit"))return e.log.warn("The node you attempted to edit has a request still pending.\nPlease wait for the request to finish (the text will turn black)\nbefore editing this node again."),!0;const a=n;if(!this.getStatementAbout(a))return;let o,r,s;try{o=e.utils.getTerm(a),r=e.utils.ancestor(a,"TR")}catch(i){e.log.warn("userinput.js: "+i+e.utils.getAbout(t.store,n)),e.log.error(a+" getStatement Error:"+i)}try{s=r.lastChild}catch(t){e.log.error(t+"@"+a)}if("Literal"===o.termType){if(s.removeChild(s.firstChild),o.value.match("\n")){const e=i.createElement("textarea");e.appendChild(i.createTextNode(o.value)),e.setAttribute("rows",(o.value.match(/\n/g).length+1).toString()),e.setAttribute("cols","100"),e.setAttribute("class","textinput"),s.appendChild(e),this.lastModified=e}else this.lastModified=this.createInputBoxIn(s,o.value);this.lastModified.isNew=!1,this.lastModified.select()}return!0},performAutoCompleteEdit:function(t,n){e.utils.emptyNode(t),o("perform AutoCompleteEdit. THIS IS="+this),this.lastModified=this.createInputBoxIn(t,""),this.lastModified.select(),this.lastModified.addEventListener("keypress",this.getAutoCompleteHandler(n),!1),this.getAutoCompleteHandler(n)(1)},backOut:function(){this.deleteTriple(this.lastModified.parentNode,!0),this.lastModified=null},clearMenu:function(){const e=i.getElementById(this.menuID);e&&e.parentNode.removeChild(e)},clearInputAndSave:function(i){let o;if(!this.lastModified)return;if(!this.lastModified.isNew)try{o=this.getStatementAbout(this.lastModified).object}catch(i){return}let s,l,c,u,d=this.lastModifiedStat;if(this.lastModified.value!==this.lastModified.defaultValue){let l;if(""===this.lastModified.value)return this.lastModified.value=this.lastModified.defaultValue,void this.clearInputAndSave();if(this.lastModified.isNew){d=new y.Statement(d.subject,d.predicate,t.store.literal(this.lastModified.value),d.why),s=this.views.defaults[d.predicate.uri],l=e.utils.ancestor(this.lastModified,"TR");try{t.store.updater.update([],[d],function(t,n,i){n||(e.log.error("Error occurs while inserting "+d+"\n\n"+i+"\n"),a.UserInput.deleteTriple(l.lastChild,!0))})}catch(i){return void e.log.error("Error inserting fact "+d+":\n\t"+i+"\n")}d=t.store.add(d.subject,d.predicate,t.store.literal(this.lastModified.value),d.why)}else{if(this.statIsInverse)return e.log.error("Invalid Input: a literal can't be a subject in RDF/XML"),void this.backOut();let s,c,u;switch(o.termType){case"Literal":{const n=this.lastModified.value;l=e.utils.ancestor(this.lastModified,"TR");const a=this.lastModified.defaultValue;c=y.st(d.subject,d.predicate,t.store.literal(this.lastModified.value),d.why);try{t.store.updater.update([d],[c],function(t,i,r){i?o.value=n:(e.log.warn("Error occurs while editing "+d+"\n\n"+r),l.lastChild.textContent=a),l.lastChild.className=l.lastChild.className.replace(/ pendingedit/g,"")})}catch(i){return void e.log.warn("Error occurs while editing "+d+":\n\t"+i)}break}case"BlankNode":{const o=t.store.literal(this.lastModified.value,"");if("Collection"!==d.predicate.termType)return void this.fillInRequest("object",this.lastModified.parentNode,t.store.literal(this.lastModified.value));{const p=d.predicate.elements[0];if(t.store.any(void 0,p,o)){if(!i){const t=this.lastModified.parentNode;(i={}).pageX=e.utils.findPos(t)[0],i.pageY=e.utils.findPos(t)[1]+t.clientHeight}this.showMenu(i,"DidYouMeanDialog",void 0,{dialogTerm:t.store.any(void 0,p,o),bnodeTerm:d.subject})}else{s=e.utils.ancestor(e.utils.ancestor(this.lastModified,"TR").parentNode,"TR").AJAR_statement,c=y.st(d.subject,p,o,d.why);const n=t.store.the(d.subject,r("type"));u=t.store.anyStatementMatching(d.subject,r("type"),n,d.why),l=e.utils.ancestor(e.utils.ancestor(this.lastModified,"TR"),"TD").parentNode;try{t.store.updater.update([],[s,c,u],function(e,t,n){t||(console.log("Error occurs while editing "+s+"\n\n"+n),a.UserInput.deleteTriple(l.lastChild,!0))})}catch(i){return void console.log("Error occurs while editing "+s+":\n\t"+i)}t.store.remove(d),t.store.add(d.subject,p,o,d.why)}const f=e.utils.ancestor(this.lastModified.parentNode.parentNode,"TD"),m=n.byName("default");a.outlineExpand(f,d.subject,{pane:m,already:!0}),a.walk("right",a.focusTd)}break}}}}else{if(this.lastModified.isNew)return l=e.utils.ancestor(this.lastModified,"TR"),c=this.generateRequest("(To be determined. Re-type of drag an object onto this field)"),u=l.previousSibling.AJAR_statement,this.formUndetStat(l,u.subject,u.predicate,c,u.why,!1),void(this.lastModified=null);if("Collection"===d.predicate.termType){t.store.removeMany(d.subject);const n=e.utils.ancestor(e.utils.ancestor(this.lastModified,"TR").parentNode,"TR");return u=n.AJAR_statement,c=this.generateRequest("(To be determined. Re-type of drag an object onto this field)"),this.formUndetStat(n,u.subject,u.predicate,c,u.why,!1),a.replaceTD(a.outlineObjectTD(c,s),n.lastChild),void(this.lastModified=null)}if(this.statIsInverse){if("BlankNode"===d.subject.termType)return void this.backOut()}else if("BlankNode"===d.object.termType)return void this.backOut()}l=e.utils.ancestor(this.lastModified,"TR"),this.statIsInverse?a.replaceTD(a.outlineObjectTD(d.subject,s),l.lastChild):a.replaceTD(a.outlineObjectTD(t.store.literal(this.lastModified.value),s),l.lastChild),this.lastModified.value!==this.lastModified.defaultValue&&(l.lastChild.className+=" pendingedit"),this.lastModified=null},deleteTriple:function(n,i){if(e.log.debug("deleteTriple entered"),!i&&-1!==n.className.indexOf(" pendingedit"))return console.log("The node you attempted to edit has a request still pending.\nPlease wait for the request to finish (the text will turn black)\nbefore editing this node again."),void a.walk("up");const o=this.getStatementAbout(n);if(!(i||t.store.whether(o.object,r("type"),e.ns.link("Request"))||t.store.whether(o.predicate,r("type"),e.ns.link("Request"))||t.store.whether(o.subject,r("type"),e.ns.link("Request")))){e.log.debug("about to send SPARQLUpdate");try{t.store.updater.update([o],[],function(e,t,a){t?l():(console.log("Error occurs while deleting "+o+"\n\n"+a),n.className=n.className.replace(/ pendingedit/g,""))}),n.className+=" pendingedit"}catch(t){return e.log.error(t),void e.log.warn("Error deleting statement "+o+":\n\t"+t)}e.log.debug("SPARQLUpdate sent")}e.log.debug("about to remove "+o),e.log.debug("removed"),a.walk("up");const s=n.parentNode;function l(){let e,t;for(e=s;1===e.childNodes.length;e=e.previousSibling);if(e===s){const n=e.nextSibling;n.nextSibling&&1===n.childNodes.length&&(t=e.firstChild,t.setAttribute("rowspan",parseInt(t.getAttribute("rowspan"))-1),n.insertBefore(e.firstChild,n.firstChild)),s.parentNode.removeChild(s)}else t=e.firstChild,t.setAttribute("rowspan",parseInt(t.getAttribute("rowspan"))-1),s.parentNode.removeChild(s)}i&&l()},clipboardInit:function(){a.clipboard={},a.clipboard.objects=[],a.clipboard.predicates=[],a.clipboard.all=[]},copyToClipboard:function(t,n){const i=e.utils.getTerm(n);switch(n.className){case"selected":case"obj selected":a.clipboard.objects.unshift(i);break;case"pred selected":case"pred internal selected":a.clipboard.predicates.unshift(i)}a.clipboard.all.unshift(i)},insertTermTo:function(n,o,r){let s,l;switch(n.className){case"undetermined selected":s=this.views.defaults[n.parentNode.AJAR_statement.predicate.uri],this.fillInRequest(n.nextSibling?"predicate":"object",n,o);break;case"pred selected":{const i=this.appendToPredicate(n);l=n.parentNode.AJAR_statement,s=this.views.defaults[l.predicate.uri],i.appendChild(a.outlineObjectTD(o,s));const r=n.parentNode.AJAR_inverse;r?i.AJAR_statemnet=t.store.add(o,l.predicate,l.object,l.why):i.AJAR_statement=t.store.add(l.subject,l.predicate,o,l.why);try{t.store.updater.update([],[i.AJAR_statement],function(t,n,a){n||e.log.error("userinput.js (pred selected): Fail trying to insert statement "+i.AJAR_statement+": "+a)})}catch(t){return void e.log.error("Exception trying to insert statement "+i.AJAR_statement+": "+e.utils.stackString(t))}i.AJAR_inverse=r,k.statements.push(i.AJAR_statement);break}case"selected":{const t=e.utils.ancestor(n,"TABLE").lastChild,s=t.insertBefore(i.createElement("tr"),t.lastChild);if(l=s.previousSibling.AJAR_statement,void 0===r&&(r=!0),r)this.formUndetStat(s,l.subject,this.generateRequest("(TBD)",s,!0),o,l.why,!1),s.appendChild(a.outlineObjectTD(o)),a.walk("moveTo",s.firstChild),this.startFillInText(s.firstChild);else{const e=this.generateRequest("(To be determined. Re-type of drag an object onto this field)",s);this.formUndetStat(s,l.subject,o,e,l.why,!1),s.insertBefore(a.outlinePredicateTD(o,s,!1,!1),s.firstChild),a.walk("moveTo",s.lastChild),this.startFillInText(s.lastChild)}break}}},Refill:function(n,a){e.log.info("Refill"+a.textContent);const i=a.nextSibling;let o;if(i){let s,l,c;if("undetermined"===a.nextSibling.className){s=e.utils.getAbout(t.store,e.utils.ancestor(a,"TABLE").parentNode),l=t.store.any(s,r("type")),c=[];const n=".\n";c[0]="SELECT ?pred WHERE{\n?pred "+r("type")+r("Property")+".\n?pred "+e.ns.rdfs("domain")+l+".}",c[1]="SELECT ?pred ?class\nWHERE{\n?pred "+r("type")+r("Property")+".\n"+l+e.ns.rdfs("subClassOf")+" ?class.\n?pred "+e.ns.rdfs("domain")+" ?class.\n}",c[2]="SELECT ?pred WHERE{\n"+s+r("type")+t.store.variable("subjectClass")+n+t.store.variable("pred")+e.ns.rdfs("domain")+t.store.variable("subjectClass")+n+"}",o=c.map(y.SPARQLToQuery)}else{s=e.utils.getAbout(t.store,e.utils.ancestor(a,"TABLE").parentNode),l=t.store.any(s,r("type"));const n=a.parentNode.AJAR_statement.object;c="SELECT ?pred WHERE{"+s+r("type")+"?subjectClass.\n"+n+r("type")+"?objectClass.\n?pred "+e.ns.rdfs("domain")+"?subjectClass.\n?pred "+e.ns.rdfs("range")+"?objectClass.\n}",o=y.SPARQLToQuery(c)}this.showMenu(n,"GeneralPredicateChoice",o,{isPredicate:i,selectedTd:a})}else{const o=a.parentNode.AJAR_statement.predicate;if((t.store.whether(o,r("type"),e.ns.owl("DatatypeProperty"))||"Collection"===o.termType||t.store.whether(o,e.ns.rdfs("range"),e.ns.rdfs("Literal")))&&(a.className="",e.utils.emptyNode(a),this.lastModified=this.createInputBoxIn(a," (Please Input) "),this.lastModified.isNew=!1,this.lastModified.select()),a.parentNode.AJAR_statement.predicate.sameTerm(r("type"))){const t="SELECT ?class WHERE{?class "+r("type")+e.ns.rdfs("Class")+".}",o=y.SPARQLToQuery(t);this.showMenu(n,"TypeChoice",o,{isPredicate:i,selectedTd:a})}}},getAutoCompleteHandler:function(n){let r;return o("\n\n***** In getAutoCompleteHandler ****** mode = "+n),"PredicateAutoComplete"===n?n="predicate":"JournalTAC"!==n&&(n="all"),r="JournalTAC"===n?i.getElementById("inpid_journal_title"):this.lastModified||a.getSelection()[0].firstChild,o("InputBox="+r),o("InputBox.value="+r.value),function(s){o("ENTER EVENT="+s),o("1. outside (if eneterEvent)");const l={},u=r.parentNode;n||(n=u.nextSibling?"predicate":"all"),l.pageX=e.utils.findPos(u)[0],l.pageY=e.utils.findPos(u)[1]+u.clientHeight,o("epX="+l.pageX+", epY="+l.pageY+", mode="+n);let d=i.getElementById(a.UserInput.menuID);function p(n){n&&(d.lastHighlight&&(d.lastHighlight.className=""),d.lastHighlight=n,d.lastHighlight.className="activeItem",a.showURI(e.utils.getAbout(t.store,d.lastHighlight)))}if(s){o("2. in (if enterEvent). with type = "+typeof s);let f=r.value;if("object"==typeof s)switch(o("3. in typeof enterEvent is object, will switch to keys, arrows, etc. keycode = "+s.keyCode),s.stopPropagation(),d&&!d.lastHighlight&&p(d.firstChild.firstChild),s.keyCode){case 13:case 9:if(o("handler: Enter or Tab"),!d)return void a.UserInput.clearInputAndSave();if(!d.lastHighlight)return"JournalTAC"===n?(a.UserInput.clearMenu(),o("no lastH"),"no lastH"):void 0;if("INPUT"===d.lastHighlight.tagName)switch(d.lastHighlight.value){case"New...":o("subcase New"),a.UserInput.createNew();break;case"GiveURI":o("subcase GiveURI"),a.UserInput.inputURI()}else{if("JournalTAC"===n){if(o("movedArrow? "+c),c&&d.lastHighlight){const e=d.lastHighlight.firstChild.firstChild.innerHTML;let t=d.lastHighlight.firstChild.nextSibling.innerHTML;return t=t.slice(4,-4),["gotdptitle",e,t]}return"asGivenTxt"}const i=e.utils.getAbout(t.store,d.lastHighlight),s="predicate"===n?"predicate":"object";a.UserInput.clearMenu(),a.UserInput.fillInRequest(s,r.parentNode,i)}return void o("outside");case 38:return o("handler: Arrow UP"),c=!0,""!==f||"TR"!==d.lastHighlight.tagName||d.lastHighlight.previousSibling?p(d.lastHighlight.previousSibling):p(d.firstChild.firstChild),"I'm a little Arrow Up";case 40:return o("handler: Arrow Down"),c=!0,"INPUT"===d.lastHighlight.tagName?p(d.childNodes[1].firstChild):p(d.lastHighlight.nextSibling),"I'm a little Down Arrow";case 37:case 39:return o("handler: Arrow left, right"),void("INPUT"===d.lastHighlight.tagName&&(37===s.keyCode?p(d.lastHighlight.previousSibling):p(d.lastHighlight.nextSibling)));case 8:o("handler: Backspace"),f=f.slice(0,-1);break;case 27:return o("handler: Esc"),d?void a.UserInput.clearMenu():void a.UserInput.backOut();default:o("handler: Default"),c=!1,o("oldtext="+f),f+=String.fromCharCode(s.charCode),o("charcodent="+s.charCode),o("strcharcod="+String.fromCharCode(s.charCode)),console.log("DEFAULT txtstr="+f+"\n")}return"all"===n?(o("generalAC after switch, newText="+f+"mode is all"),a.UserInput.clearMenu(),a.UserInput.showMenu(l,"GeneralAutoComplete",void 0,{inputText:f,selectedTd:u}),0===f.length&&a.UserInput.WildCardButtons()):"predicate"===n?(o("predicateAC after switch, newText="+f+"mode is predicate"),a.UserInput.clearMenu(),a.UserInput.showMenu(l,"PredicateAutoComplete",void 0,{inputText:f,isPredicate:!0,selectedTd:u})):"JournalTAC"===n&&(o("JouralTAC after switch, newText="+f),a.UserInput.clearMenu(),a.UserInput.showMenu(l,"JournalTitleAutoComplete",void 0,{inputText:f},"orderisuseless")),d=i.getElementById(a.UserInput.menuID),d?(o("at end of handler\n^^^^^^^^^^^^^^^^^\n\n"),p(d.firstChild.firstChild),a.showURI(e.utils.getAbout(t.store,d.lastHighlight)),"nothing to return"):void o("No menu element. Do not show menu.")}}},WildCardButtons:function(){const t=i.getElementById(a.UserInput.menuID),n=t.insertBefore(i.createElement("div"),t.firstChild),o=n.appendChild(i.createElement("input")),r=n.appendChild(i.createElement("input"));o.type="button",o.value="New...",r.type="button",r.value="Know its URI",n.addEventListener("mouseover",function(t){const n=i.getElementById(a.UserInput.menuID);n.lastHighlight&&(n.lastHighlight.className=""),n.lastHighlight=e.utils.ancestor(e.utils.getTarget(t),"INPUT"),n.lastHighlight&&(n.lastHighlight.className="activeItem")},!1),o.addEventListener("click",this.createNew,!1),r.addEventListener("click",this.inputURI,!1)},Keypress:function(e){if(13===e.keyCode)if("TEXTAREA"!==a.targetOf(e).tagName)this.clearInputAndSave();else{const t=parseInt(this.lastModified.getAttribute("rows"));this.lastModified.setAttribute("rows",(t+1).toString()),e.stopPropagation()}},Mousedown:function(e){o("MOUSING DOWN"),window.addEventListener("keypress",function(e){!e.ctrlKey||115!==e.charCode&&113!==e.charCode||T.switchMode()},!1),window.addEventListener("mousedown",T.Mousedown,!1),document.getElementById("outline").oncontextmenu=function(){return!1},2===e.button&&(T.switchMode(),e&&(e.preventDefault(),e.stopPropagation()))},Mouseover:function(t){if(this.className="bottom-border-active",1===this._tabulatorMode)switch(e.utils.getTarget(t).tagName){case"TD":{const n=e.utils.getTarget(t);"pred"===n.className&&(n.style.cursor="copy");break}case"DIV":{const n=e.utils.getTarget(t);"bottom-border"===e.utils.getTarget(t).className&&(n.style.borderColor="rgb(100%,65%,0%)",n.style.cursor="copy");break}}},Mouseout:function(t){if(this.className="bottom-border",1===this._tabulatorMode){const n=e.utils.getTarget(t);"bottom-border"===e.utils.getTarget(t).className&&(n.style.borderColor="transparent",n.style.cursor="auto")}},whatSortOfEditCell:function(n){if(n.nextSibling)return"predicate";const a=this.getStatementAbout(n).predicate;return t.store.whether(a,e.ns.rdf("type"),e.ns.owl("DatatypeProperty"))||t.store.whether(a,e.ns.rdfs("range"),e.ns.rdfs("Literal"))||"Collection"===a.termType?"DatatypeProperty-like":t.store.whether(a,r("type"),e.ns.owl("ObjectProperty"))?"ObjectProperty-like":"no-idea"},getStatementAbout:function(t){const n=e.utils.ancestor(t,"TR");if(!n)throw new Error("No ancestor TR for the TD we clicked on:"+t);let a;try{a=n.AJAR_statement}catch(e){throw new Error("No AJAR_statement!"+t+t.textContent+" has ancestor "+n)}return this.lastModifiedStat=n.AJAR_statement,this.statIsInverse=n.AJAR_inverse,a},createInputBoxIn:function(t,n){e.log.info("myDocument in createInputBoxIn is now "+i.location),e.log.info("outline.document is now "+a.document.location);const o=i.createElement("input");return o.setAttribute("value",n),o.setAttribute("class","textinput"),"undetermined selected"!==t.className&&(o.setAttribute("size","100"),o.addEventListener("keypress",function(e){38!==e.keyCode&&40!==e.keyCode||(a.OutlinerKeypressPanel(e),a.UserInput.clearInputAndSave())},!1)),t.appendChild(o),o},createNew:function(e){a.UserInput.clearMenu();const n=a.getSelection()[0],i=n.parentNode.AJAR_statement.why,o=t.store.nextSymbol(i);a.UserInput.fillInRequest("object",n,o),a.outlineExpand(a.getSelection()[0],o)},inputURI:function(n){const i=a.UserInput;i.clearMenu();const o=a.getSelection()[0];e.utils.emptyNode(o);const r=" (Type a URI) ";i.lastModified=i.createInputBoxIn(o,r),i.lastModified.select(),i.lastModified.addEventListener("keypress",function(e){switch(e.stopPropagation(),e.keyCode){case 13:case 9:if(this.value!==r){const e=this.value;i.fillInRequest("object",o,t.store.sym(e))}}},!1)},appendToPredicate:function(e){let t,n=!1;try{for(t=e.parentNode.nextSibling;1===t.childNodes.length&&t.AJAR_statement;t=t.nextSibling);}catch(e){n=!0}const a=i.createElement("tr");if(a.style.colspan="1",a.style.display="block",a.style.display="",e.hasAttribute("rowspan")&&e.setAttribute("rowspan",parseInt(e.getAttribute("rowspan"))+1),e.hasAttribute("rowspan")||e.setAttribute("rowspan","2"),n){const t=e.parentNode.parentNode;"defaultPane"===t.className?t.insertBefore(a,t.lastChild):t.appendChild(a)}else t.parentNode.insertBefore(a,t);return a},bnode2symbol:function(e,n){t.store.copyTo(e,n,["two-direction","delete"])},generateRequest:function(t,n,i,o){let r;o||(r=n||e.utils.ancestor(this.lastModified,"TR"),e.utils.emptyNode(r));const s=E,l=s.bnode();if(s.add(l,e.ns.rdf("type"),e.ns.link("Request")),t.length,s.add(l,e.ns.link("message"),s.literal(t)),s.add(l,e.ns.link("to"),s.literal("The User")),s.add(l,e.ns.link("from"),s.literal("The User")),!o){let e;e=i?r.appendChild(a.outlinePredicateTD(l,r,!1,!1)):r.appendChild(a.outlineObjectTD(l)),e.className="undetermined",e.textContent=t}return l},showMenu:function(n,c,u,d,p){e.log.info("myDocument is now "+i.location),e.log.info("outline.doucment is now "+a.document.location);const f=this,m=i.createElement("div");if(o("\n**** In showMenu, menuType = "+c+"\n"),d)for(const e in d)console.log("\t extra "+e+": "+d[e]+"\n");console.log("CREATED MENU\n"),m.id=this.menuID,m.className="outlineMenu",m.style.top=n.pageY+"px",m.style.left=n.pageX+"px";if("JournalTitleAutoComplete"===c){const e=function(e){let t=0,n=0,a=0,i=0,o=0,r=0;for(;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)o=e.offsetLeft,r=e.offsetTop,o!==a&&(t+=e.offsetLeft-e.scrollLeft),r!==i&&(n+=e.offsetTop-e.scrollTop),a=o,i=r,e=e.parentNode;return{top:n+54,left:t-38}}(i.getElementById("inpid_journal_title"));e.left-=i.getElementById("inpid_journal_title").scrollTop,m.style.top=e.top+"px",m.style.left=e.left+"px"}console.log("menu at top="+m.style.top+" left="+m.style.left+"\n"),i.body.appendChild(m);const h=m.appendChild(i.createElement("table"));let g;switch(m.lastHighlight=null,h.addEventListener("mouseover",function(t){m.lastHighlight&&(m.lastHighlight.className=""),m.lastHighlight=e.utils.ancestor(e.utils.getTarget(t),"TR"),m.lastHighlight&&(m.lastHighlight.className="activeItem")},!1),c){case"DidYouMeanDialog":g=function(n){o("DID YOU MEAN SELECT ITEM!!!!!");const i=e.utils.ancestor(e.utils.getTarget(n),"TR");2===i.childNodes.length&&i.nextSibling?(t.store.add(A,undefined,undefined),a.UserInput.clearMenu()):2===i.childNodes.length&&a.UserInput.clearMenu()};break;case"LimitedPredicateChoice":{const n=d.clickedTd;g=function(i){o("LIMITED P SELECT ITEM!!!!");const r=e.utils.getAbout(t.store,e.utils.getTarget(i)),s=n.parentNode.AJAR_statement.predicate.elements;for(let e=0;e<s.length;e++)s[e].sameTerm(r)&&s.unshift(s.splice(e,1)[0]);a.UserInput.clearMenu();const l=n.parentNode,c=a.outlinePredicateTD(l.AJAR_statement.predicate,l);l.insertBefore(c,n),l.removeChild(n),f.lastModified.select()};break}case"PredicateAutoComplete":case"GeneralAutoComplete":case"GeneralPredicateChoice":case"JournalTitleAutoComplete":case"TypeChoice":{const n=d.isPredicate,i=d.selectedTd;g=function(r){o("WOOHOO");const s=e.utils.getAbout(t.store,e.utils.getTarget(r));o("GENERAL SELECT ITEM!!!!!!="+s),o("target="+e.utils.getTarget(r)),n?(o("1"),a.UserInput.fillInRequest("predicate",i,s)&&(o("2"),a.UserInput.clearMenu())):(o("3"),a.UserInput.fillInRequest("object",i,s)&&(o("4"),a.UserInput.clearMenu()))};break}default:throw new Error("userinput: unexpected mode")}h.addEventListener("click",g,!1);const b={};function v(t){h.firstChild&&"no-suggest"===h.firstChild.className&&h.removeChild(h.firstChild);const n=e.utils.predicateLabelForXML(t,!1);if(!t.uri)return;let a="??";for(const n in b)if(e.log.debug(b[n]),y.Util.string_startswith(t.uri,b[n])){a=n;break}const o=h.appendChild(i.createElement("tr"));o.setAttribute("about",t);o.appendChild(i.createElement("th")).appendChild(i.createElement("div")).appendChild(i.createTextNode(n)),o.appendChild(i.createElement("td")).appendChild(i.createTextNode(a.toUpperCase()))}function w(e){return function(t){v(t[e.vars[0]])}}let x,A,C,k;switch(t.store.each(void 0,e.ns.rdf("type"),e.ns.owl("Ontology")).forEach(function(t){const n=e.utils.label(t);if(!n)return;const a=n.value.match(/\((.+?)\)/);a?b[a[1]]=t.uri:b[n.value]=t.uri}),c){case"DidYouMeanDialog":{const n=d.dialogTerm;A=d.bnodeTerm,m.style.width="auto";const a=h.appendChild(i.createElement("tr")).appendChild(i.createElement("th"));a.appendChild(i.createTextNode("Did you mean..."));const o=t.store.statementsMatching(n);let s;for(s=0;s<o.length&&!t.store.whether(o[s].predicate,r("type"),e.ns.owl("InverseFunctionalProperty"));s++);const l=o[s].predicate,c=t.store.any(n,o[s].predicate),u=e.utils.label(n)+" who has "+e.utils.label(l)+" "+c+"?",p=h.appendChild(i.createElement("tr")).appendChild(i.createElement("th"));p.appendChild(i.createTextNode(u)),a.setAttribute("colspan","2"),p.setAttribute("colspan","2");const f=h.appendChild(i.createElement("tr"));f.appendChild(i.createElement("th")).appendChild(i.createTextNode("Yes")),f.appendChild(i.createElement("td")).appendChild(i.createTextNode("BOOLEAN"));const g=h.appendChild(i.createElement("tr"));g.appendChild(i.createElement("th")).appendChild(i.createTextNode("No")),g.appendChild(i.createElement("td")).appendChild(i.createTextNode("BOOLEAN"));break}case"PredicateAutoComplete":{x=d.inputText;const e=a.labeller.searchAdv(x,void 0,"predicate"),i=[];for(let a=0;a<e.length;a++){const i={vars:[]};i.vars.push("Kenny");const o={};o.Kenny=t.store.fromNT(e[a].NT);try{w(i)(o)}catch(n){throw new Error("I'll deal with bnodes later...[Kenny]"+n)}}const o=i[0];if(0===o.length)return console.log("cm length 0\n"),void this.clearMenu();for(let e=0;e<o.length&&e<10;e++)v(o[e][1]);break}case"GeneralAutoComplete":{let t;x=d.inputText;try{t=a.labeller.search(x)}catch(n){console.log("GeneralAutoComplete: debug me "+d.selectedTd.textContent+"\n"+n+"\n")}const o=t[0],r=t[1];if(0===o.length)return console.log("cm length 0\n"),void this.clearMenu();for(let t=0;t<o.length&&t<10;t++){const n=o[t][1].toNT();C=h.appendChild(i.createElement("tr")),C.setAttribute("about",n),k=C.appendChild(i.createElement("th")),k.appendChild(i.createElement("div")).appendChild(i.createTextNode(o[t][0]));const a=r[t],s=a?e.utils.label(a):"";C.appendChild(i.createElement("td")).appendChild(i.createTextNode(s))}break}case"JournalTitleAutoComplete":{x=d.inputText,console.log("testing searching text= "+x+" =====\n"),console.log("\n===start JournalTitleAutoComplete\n");const e=t.store.each(void 0,r("type"),s("Journal")),n=[];for(let a=0;a<e.length;a++){const r=e[a],s=t.store.each(r,l("title"),void 0),c=s+"",u=x.toLowerCase();if(-1!==c.toLowerCase().search(u)){o("FOUND A Journal Title Match!!!!!!"),n.push(s);const e=h.appendChild(i.createElement("tr"));e.setAttribute("about","journalTitle");e.appendChild(i.createElement("th")).appendChild(i.createElement("div")).appendChild(i.createTextNode(s)),e.appendChild(i.createElement("td")).appendChild(i.createTextNode(r))}}console.log("matched: "+n+"\n"),console.log("\\\\done showMenu's JTAutocomplete\n");break}case"LimitedPredicateChoice":{const n=e.utils.getAbout(t.store,d.clickedTd);n.termType="Collection";const a=t.store.each(n,e.ns.link("element"));for(let e=0;e<a.length;e++)v(a[e]);break}default:{C=h.appendChild(i.createElement("tr")),C.className="no-suggest",k=C.appendChild(i.createElement("th")),k.appendChild(i.createElement("div")).appendChild(i.createTextNode("No suggested choices. Try to type instead.")),C.appendChild(i.createElement("td")).appendChild(i.createTextNode("OK")),C.addEventListener("click",function(e){f.clearMenu(),e.stopPropagation()},"false");const e=function(){};switch(u.constructor.name){case"Array":for(let n=0;n<u.length;n++)t.store.query(u[n],w(u[n]),e);break;case"undefined":throw new Error("addPredicateChoice: query is not defined");default:t.store.query(u,w(u),e)}}}},fillInRequest:function(n,i,o){const r=i.parentNode,s=r.AJAR_statement,l=r.AJAR_inverse,c="object"===n?s.object:s.predicate;let u,d=!1;if(t.store.any(c,e.ns.link("onfillin")),"predicate"===n){const n=a.outlinePredicateTD(o,r,!1,!1);if("undetermined"!==i.nextSibling.className){const a=new y.Statement(s.subject,o,s.object,s.why);try{t.store.updater.update([],[a],function(a,i,l){i?(u=t.store.anyStatementMatching(s.subject,o,s.object,s.why),r.AJAR_statement=u,n.className=n.className.replace(/ pendingedit/g,"")):e.log.warn("Failure occurs (#2) while inserting "+r.AJAR_statement+"\n\n"+l)})}catch(t){return e.log.error(t),void e.log.warn("Error when insert (#2) of statement "+a+":\n\t"+t)}n.className+=" pendingedit",this.lastModified=null}else this.formUndetStat(r,s.subject,o,s.object,s.why,!1),a.walk("right"),d=!0;a.replaceTD(n,i),E.remove(s)}else if("object"===n){const n=a.outlineObjectTD(o);if(a.replaceTD(n,i),i.previousSibling&&"undetermined"===i.previousSibling.className)a.walk("left"),d=!0;else{let a;a=l?new y.Statement(o,s.predicate,s.object,s.why):new y.Statement(s.subject,s.predicate,o,s.why);try{t.store.updater.update([],[a],function(i,c,u){let d;e.log.info("@@ usinput.js (object) callback ok="+c+" for statement:"+a+"\n "),c?(n.className=n.className.replace(/ pendingedit/g,""),d=l?t.store.statementsMatching(o,s.predicate,s.object,s.why):t.store.statementsMatching(s.subject,s.predicate,o,s.why),d.length||e.log.error("userinput.js 1711: Can't find statememt!"),r.AJAR_statement=d[0]):e.log.warn("userinput.js (object): Fail trying to insert statement "+a)})}catch(t){return e.log.error("userinput.js (object): exception trying to insert statement "+a+": "+e.utils.stackString(t)),void e.log.warn("Error trying to insert statement "+a+":\n"+t)}this.lastModified=null,n.className+=" pendingedit"}E.remove(s)}if(k.statements.push(u),!d)return!0;this.startFillInText(a.getSelection()[0])},formUndetStat:function(e,t,n,a,i,o){return e.AJAR_inverse=o,e.AJAR_statement=E.add(t,n,a,i),e.AJAR_statement}}}C.src=[],C.tooltips=[],C.src.icon_expand=e.icons.originalIconBase+"tbl-expand-trans.png",C.src.icon_more=e.icons.originalIconBase+"tbl-more-trans.png",C.src.icon_collapse=e.icons.originalIconBase+"tbl-collapse.png",C.src.icon_internals=e.icons.originalIconBase+"tango/22-emblem-system.png",C.src.icon_instances=e.icons.originalIconBase+"tango/22-folder-open.png",C.src.icon_foaf=e.icons.originalIconBase+"foaf/foafTiny.gif",C.src.icon_social=e.icons.originalIconBase+"social/social.gif",C.src.icon_mb=e.icons.originalIconBase+"microblog/microblog.png",C.src.icon_shrink=e.icons.originalIconBase+"tbl-shrink.png",C.src.icon_rows=e.icons.originalIconBase+"tbl-rows.png",C.src.icon_unrequested=e.icons.originalIconBase+"16dot-blue.gif",C.src.icon_fetched=e.icons.originalIconBase+"16dot-green.gif",C.src.icon_failed=e.icons.originalIconBase+"16dot-red.gif",C.src.icon_requested=e.icons.originalIconBase+"16dot-yellow.gif",C.src.icon_CVPane=e.icons.originalIconBase+"CV.png",C.src.icon_defaultPane=e.icons.originalIconBase+"about.png",C.src.icon_visit=e.icons.originalIconBase+"tango/22-text-x-generic.png",C.src.icon_dataContents=e.icons.originalIconBase+"rdf_flyer.24.gif",C.src.icon_n3Pane=e.icons.originalIconBase+"w3c/n3_smaller.png",C.src.icon_RDFXMLPane=e.icons.originalIconBase+"22-text-xml4.png",C.src.icon_imageContents=e.icons.originalIconBase+"tango/22-image-x-generic.png",C.src.icon_airPane=e.icons.originalIconBase+"1pt5a.gif",C.src.icon_LawPane=e.icons.originalIconBase+"law.jpg",C.src.icon_pushbackPane=e.icons.originalIconBase+"pb-logo.png",C.src.icon_photoPane=e.icons.originalIconBase+"photo_small.png",C.src.icon_tagPane=e.icons.originalIconBase+"tag_small.png",C.src.icon_TinyTag=e.icons.originalIconBase+"tag_tiny.png",C.src.icon_photoBegin=e.icons.originalIconBase+"photo_begin.png",C.src.icon_photoNext=e.icons.originalIconBase+"photo_next.png",C.src.icon_photoBack=e.icons.originalIconBase+"photo_back.png",C.src.icon_photoEnd=e.icons.originalIconBase+"photo_end.png",C.src.icon_photoImportPane=e.icons.originalIconBase+"flickr_small.png",C.src.icon_retract=e.icons.originalIconBase+"retract.gif",C.src.icon_refresh=e.icons.originalIconBase+"refresh.gif",C.src.icon_optoff=e.icons.originalIconBase+"optional_off.PNG",C.src.icon_opton=e.icons.originalIconBase+"optional_on.PNG",C.src.icon_map=e.icons.originalIconBase+"compassrose.png",C.src.icon_retracted=C.src.icon_unrequested,C.src.icon_retracted=C.src.icon_unrequested,C.src.icon_time=e.icons.originalIconBase+"icons/Wclocksmall.png",C.src.icon_telephone=e.icons.originalIconBase+"silk/telephone.png",C.src.icon_time=e.icons.originalIconBase+"Wclocksmall.png",C.src.icon_remove_node=e.icons.originalIconBase+"tbl-x-small.png",C.src.icon_add_triple=e.icons.originalIconBase+"tango/22-list-add.png",C.src.icon_add_new_triple=e.icons.originalIconBase+"tango/22-list-add-new.png",C.src.icon_show_choices=e.icons.originalIconBase+"userinput_show_choices_temp.png",C.src.icon_display_reasons=e.icons.originalIconBase+"tango/22-help-browser.png",C.tooltips[C.src.icon_display_reasons]="Display explanations",C.tooltips[C.src.icon_add_triple]="Add more",C.tooltips[C.src.icon_add_new_triple]="Add one",C.tooltips[C.src.icon_remove_node]="Remove",C.tooltips[C.src.icon_expand]="View details.",C.tooltips[C.src.icon_collapse]="Hide details.",C.tooltips[C.src.icon_shrink]="Shrink list.",C.tooltips[C.src.icon_internals]="Under the hood",C.tooltips[C.src.icon_instances]="List",C.tooltips[C.src.icon_foaf]="Friends",C.tooltips[C.src.icon_rows]="Make a table of data like this",C.tooltips[C.src.icon_unrequested]="Fetch this.",C.tooltips[C.src.icon_fetched]="Fetched successfully.",C.tooltips[C.src.icon_failed]="Failed to load. Click to retry.",C.tooltips[C.src.icon_requested]="This is being fetched. Please wait...",C.tooltips[C.src.icon_visit]="View document",C.tooltips[C.src.icon_retract]="Remove this source and all its data from tabulator.",C.tooltips[C.src.icon_refresh]="Refresh this source and reload its triples.",C.OutlinerIcon=function(e,t,n,a,i){return this.src=e,this.alt=n,this.width=t,this.tooltip=a,this.filter=i,this},C.termWidgets={},C.termWidgets.optOn=new C.OutlinerIcon(C.src.icon_opton,20,"opt on","Make this branch of your query mandatory."),C.termWidgets.optOff=new C.OutlinerIcon(C.src.icon_optoff,20,"opt off","Make this branch of your query optional."),C.termWidgets.addTri=new C.OutlinerIcon(C.src.icon_add_triple,18,"add tri","Add one");function S(){this.queries=[],this.listeners=[],this.addQuery=function(e){let t;for(null!==e.name&&""!==e.name||(e.name="Query #"+(this.queries.length+1)),e.id=this.queries.length,this.queries.push(e),t=0;t<this.listeners.length;t++)null!==this.listeners[t]&&this.listeners[t].addQuery(e)},this.removeQuery=function(e){let t;for(t=0;t<this.listeners.length;t++)null!==this.listeners[t]&&this.listeners[t].removeQuery(e);null!==this.queries[e.id]&&delete this.queries[e.id]},this.addListener=function(e){let t;for(this.listeners.push(e),t=0;t<this.queries.length;t++)null!==this.queries[t]&&e.addQuery(this.queries[t])},this.removeListener=function(e){let t;for(t=0;t<this.queries.length;t++)null!==this.queries[t]&&e.removeQuery(this.queries[t]);for(t=0;t<this.listeners.length;t++)this.listeners[t]===e&&delete this.listeners[t]}}function P(a){const i=a.dom;this.document=a.dom,this.outlineIcons=C,this.labeller=this.labeller||{},this.labeller.LanguagePreference="";const r=this,s=this;let l=[];this.selection=l,this.ancestor=e.utils.ancestor,this.sparql=y.UpdateManager,this.kb=t.store;const c=t.store,u=t.store.fetcher;i.outline=this,this.qs=new S,this.UserInput=new T(this),this.clipboardAddress="tabulator:clipboard",this.UserInput.clipboardInit(this.clipboardAddress);const d=this.outlineElement;async function p(a={}){console.log("globalAppTabs @@");const o=i.createElement("div"),r=t.authn.currentUser();if(!r)throw alert("Must be logged in for this"),new Error("Not logged in");const l=await f();return o.appendChild(e.tabs.tabWidget({dom:i,subject:r,items:l,renderMain:function(e,a){const o=n.byName(a.paneName);e.innerHTML="";const r=e.appendChild(i.createElement("table")),l=t.authn.currentUser();s.GotoSubject(a.subject||l,!0,o,!1,void 0,r)},renderTab:function(e,t){e.dataset.globalPaneName=t.tabName||t.paneName,e.textContent=t.label},ordered:!0,orientation:0,backgroundColor:"#eeeeee",selectedTab:a.selectedTab,onClose:a.onClose})),o}async function f(){const n=t.authn.currentUser();if(!n)return[];i.createElement("div");const[a]=await Promise.all([async function(){async function t(e){return await g(e),!!c.holds(e,G.rdf("type"),G.space("Storage"),e.doc())&&(a.push(e),!0)}try{await c.fetcher.load(n.doc())}catch(e){return console.error("Unable to load profile",e),[]}let a=c.each(n,G.space("storage"),null,n.doc());a.map(async e=>{await g(e)});try{const e=new URL(window.location.href).searchParams.get("uri")||window.location.href;await async function(e){const n=new URL(e);let a=n.pathname;for(;a.length;)if(a=a.substring(0,a.lastIndexOf("/")),await t(c.sym(`${n.origin}${a}/`)))return}(e)}catch(e){console.error("cannot load container",e)}return a=function(e){const t=[];return e.forEach(e=>{t.find(t=>t.equals(e))||t.push(e)}),t}(a),a.length?a.map((t,a)=>{function i(e){return e.uri.split("//")[1].slice(0,-1)}return{paneName:"folder",tabName:`folder-${a}`,label:i(n).startsWith(i(t))?"Your storage":i(t),subject:t,icon:e.icons.iconBase+"noun_Cabinet_251723.svg"}}):[]}()]);return[{paneName:"home",label:"Your stuff",icon:e.icons.iconBase+"noun_547570.svg"},{paneName:"basicPreferences",label:"Preferences",icon:e.icons.iconBase+"noun_Sliders_341315_00000.svg"},{paneName:"profile",label:"Your Profile",icon:e.icons.iconBase+"noun_15059.svg"},{paneName:"editProfile",label:"Edit your Profile",icon:e.icons.iconBase+"noun_492246.svg"}].concat(a)}function m(){return h("outline")}function h(e){return document.getElementById(e)||(()=>{const t=document.createElement("div");t.id=e;return(document.querySelector('[role="main"]')||document.body).appendChild(t)})()}async function g(e){if(!c.any(e,G.ldp("contains"),void 0,e.doc())){const t=(await c.fetcher.webOperation("GET",e.uri,c.fetcher.initFetchOptions(e.uri,{headers:{accept:"text/turtle"}}))).responseText;y.parse(t,c,e.uri,"text/turtle")}}async function b(t,n,o){const r=i.createElement("tr");o.hover&&r.setAttribute("class","hoverControl");const s=r.appendChild(i.createElement("td"));s.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;display:flex; justify-content: space-between; flex-direction: row;"),s.setAttribute("notSelectable","true"),s.setAttribute("about",t.toNT()),s.setAttribute("colspan","2");const l=s.appendChild(i.createElement("div"));l.style="display:flex; justify-content: flex-start; align-items: center; flex-wrap: wrap;";const c=!!n;if(!o.solo&&!c){l.appendChild(e.utils.AJARImage(e.icons.originalIconBase+"tbl-collapse.png","collapse",void 0,i)).addEventListener("click",R);const n=l.appendChild(i.createElement("h1"));n.appendChild(i.createTextNode(e.utils.label(t))),n.style="font-size: 150%; margin: 0 0.6em 0 0; padding: 0.1em 0.4em;",e.widgets.makeDraggable(n,t)}return l.appendChild(await async function(o,s={}){const l="width: 24px; border-radius: 0.5em; border-top: solid #222 1px; border-left: solid #222 0.1em; border-bottom: solid #eee 0.1em; border-right: solid #eee 0.1em; margin-left: 1em; padding: 3px; background-color: #ffd;",c="width: 24px; border-radius: 0.5em; margin-left: 1em; padding: 3px",u=o.appendChild(i.createElement("nav"));u.style="display:flex; justify-content: flex-start; align-items: center;";const d=s.hideList?[]:await async function(t,n){t.uri.endsWith("/")&&await g(t);const a=n.session.paneRegistry,i=a.list.filter(e=>e.label(t,n)&&!e.global);if(0===i.length)return[a.byName("internal")];const o=await e.login.filterAvailablePanes(i);return 0===o.length?[i[0]]:a.list.indexOf(i[0])<a.list.indexOf(o[0])?[i[0]].concat(o):o}(t,a);r.firstPane=n||function(e,t){return e.find(e=>e.shouldGetFocus&&e.shouldGetFocus(t))||e[0]}(d,t);const p=d.indexOf(r.firstPane);return 1!==d.length&&d.forEach((n,d)=>{const f=n.label(t,a),m="function"==typeof n.icon?n.icon(t,a):n.icon,h=e.utils.AJARImage(m,f,f,i);m instanceof Promise&&m.then(e=>{h.setAttribute("src",e)}).catch(e=>{console.error("Error resolving async icon:",e)}),h.style=n===r.firstPane?l:c;!function(n,r){n.addEventListener("click",function(u){let d;for(d=o;d.parentNode&&"TABLE"!==d.nodeName;d=d.parentNode);if("TABLE"!==d.nodeName)throw new Error("outline: internal error.");const p=function(e){for(let t=d.firstChild;t;t=t.nextSibling)void 0!==t.pane&&(e&&t.pane!==e||(t.paneButton&&(t.paneButton.setAttribute("class","paneHidden"),t.paneButton.style=c),v(t),t.pane.requireQueryButton&&d.parentNode.className&&1===f&&i.getElementById("queryButton")&&i.getElementById("queryButton").setAttribute("style","display:none;")))};"paneHidden"===n.getAttribute("class")?(u.shiftKey||p(),function(o){let r;e.log.info("outline: Rendering pane (2): "+o.name);try{r=o.render(t,a,s)}catch(t){r=i.createElement("div"),r.setAttribute("class","exceptionPane");const n=i.createElement("pre");r.appendChild(n),n.appendChild(i.createTextNode(e.utils.stackString(t)))}o.requireQueryButton&&i.getElementById("queryButton")&&i.getElementById("queryButton").removeAttribute("style");const l=d.firstChild.nextSibling,c=i.createElement("tr");c.appendChild(i.createElement("td")).appendChild(r),l?d.insertBefore(c,l):d.appendChild(c),c.pane=o,c.paneButton=n}(r),n.setAttribute("class","paneShown"),n.style=l):(p(r),n.setAttribute("class","paneHidden"),n.style=c);let f=0;for(let e=d.firstChild;e;e=e.nextSibling)e.pane&&e.pane.requireQueryButton&&f++},!1)}(h,n),h.setAttribute("class",d!==p?"paneHidden":"paneShown"),d===p&&(r.paneButton=h),u.appendChild(h)}),u}(s,{hideList:c})),r.firstChild.tabulatorSelect=function(){O(this,!0)},r.firstChild.tabulatorDeselect=function(){O(this,!1)},r}function v(e){const t=e.parentNode,n=t.parentNode,a=i.createElement("table");a.classList.add("placeholderTable"),n.replaceChild(a,t),t.removeChild(e),n.replaceChild(t,a)}this.init=function(){m().outline=this},this.appendAccessIcons=function(e,t,n){if("NamedNode"!==n.termType)return;const a=e.uris(n);a.sort();let i=null;for(let e=0;e<a.length;e++)a[e]!==i&&(i=a[e],s.appendAccessIcon(t,i))},this.appendAccessIcon=function(t,n){if(!n)return"";const a=y.uri.docpart(n);if("http:"!==a.slice(0,5))return"";const o=u.getState(a);let s,l,c;switch(o){case"unrequested":s=C.src.icon_unrequested,l="fetch",c=j;break;case"requested":s=C.src.icon_requested,l="fetching",c=M;break;case"fetched":s=C.src.icon_fetched,c=D,l="loaded";break;case"failed":s=C.src.icon_failed,l="failed",c=M;break;case"unpermitted":s=C.src.icon_failed,c=M,l="no perm";break;case"unfetchable":s=C.src.icon_failed,c=M,l="cannot fetch";break;default:e.log.error("?? state = "+o)}const d=e.utils.AJARImage(s,l,C.tooltips[s].replace(/[Tt]his resource/,a),i);return d.setAttribute("uri",n),d.addEventListener("click",c),function(t,n){e.log.debug("Button callbacks for "+n+" added");const a=function(e){return function(a){return a.indexOf("#")>=0&&console.log("@@ makeIconCallback: Not expecting # in URI whose state changed: "+a),!!t&&(!!r.ancestor(t,"DIV")&&(a===n&&(t.src=e,t.title=C.tooltips[e]),!0))}};u.addCallback("request",a(C.src.icon_requested)),u.addCallback("done",a(C.src.icon_fetched)),u.addCallback("fail",a(C.src.icon_failed))}(d,a),t.appendChild(d),d},this.outlineObjectTD=function(t,n,a,o){const r=i.createElement("td");r.classList.add("obj"),r.setAttribute("notSelectable","false"),r.style.margin="0.2em",r.style.border="none",r.style.padding="0",r.style.verticalAlign="top";return("NamedNode"===t.termType||"BlankNode"===t.termType||"Literal"===t.termType&&t.value.slice&&("ftp://"===t.value.slice(0,6)||"https://"===t.value.slice(0,8)||"http://"===t.value.slice(0,7)))&&(r.setAttribute("about",t.toNT()),r.appendChild(e.utils.AJARImage(e.icons.originalIconBase+"tbl-expand-trans.png","expand",void 0,i)).addEventListener("click",F)),r.setAttribute("class","obj"),c.whether(t,e.ns.rdf("type"),e.ns.link("Request"))&&(r.className="undetermined"),n||(n=Q),r.appendChild(n(t)),a&&function(t,n,a){const o=e.utils.AJARImage(C.src.icon_remove_node,"remove",void 0,i);o.addEventListener("click",z),o.node=a,o.setAttribute("about",n.toNT()),o.style.marginLeft="5px",o.style.marginRight="10px",t.appendChild(o)}(r,t,a),r.tabulatorSelect=function(){O(this,!0)},r.tabulatorDeselect=function(){O(this,!1)},r.addEventListener("click",U),r},this.outlinePredicateTD=function(t,n,a,o){const r=i.createElement("TD");let s;switch(r.setAttribute("about",t.toNT()),r.setAttribute("class",o?"pred internal":"pred"),t.termType){case"BlankNode":r.className="undetermined";break;case"NamedNode":s=e.utils.predicateLabelForXML(t,a);break;case"Collection":s=e.utils.predicateLabelForXML(t.elements[0],a)}s=s?s.slice(0,1).toUpperCase()+s.slice(1):"...";const l=i.createElement("TD");l.classList.add("labelTD"),l.setAttribute("notSelectable","true"),l.appendChild(i.createTextNode(s)),r.appendChild(l),l.style.width="100%",r.appendChild(P.construct(i));for(const e in C.termWidgets){if(!n||!n.AJAR_statement)break;C.termWidgets[e].filter&&C.termWidgets[e].filter(n.AJAR_statement,"pred",a)&&P.addIcon(r,C.termWidgets[e])}return r.tabulatorSelect=function(){O(this,!0)},r.tabulatorDeselect=function(){O(this,!1)},r.addEventListener("click",U),r},this.getDashboard=p,this.getDashboardItems=f,this.showDashboard=async function(e={}){const n=h("GlobalDashboard"),a=m();if(n.childNodes.length>0&&e.pane){a.style.display="none",n.style.display="inherit";const t=n.querySelector(`[data-global-pane-name="${e.pane}"]`);if(t)return void t.click();console.warn("Did not find the referred tab in global dashboard, will open first one")}const i=await p({selectedTab:e.pane,onClose:r});t.authSession.events.on("logout",r),a.style.display="none",n.appendChild(i);const o=n.querySelector(`[data-global-pane-name="${e.pane}"]`);function r(){n.style.display="none",a.style.display="inherit"}o&&o.click()};const k=this.propertyTable=function(t,n,o,r){return e.log.debug("Property table for: "+t),t=c.canon(t),n?(e.log.info("Re-expand: "+n),n):((n=i.createElement("table")).classList.add("tableFullWidth"),b(t,o,r).then(o=>{if(n.appendChild(o),o.firstPane){let s;try{e.log.info("outline: Rendering pane (1): "+o.firstPane.name),s=o.firstPane.render(t,a,r)}catch(t){s=i.createElement("div"),s.setAttribute("class","exceptionPane");const n=i.createElement("pre");s.appendChild(n),n.appendChild(i.createTextNode(e.utils.stackString(t)))}const l=i.createElement("tr");l.appendChild(i.createElement("td")).appendChild(s),o.firstPane.requireQueryButton&&i.getElementById("queryButton")&&i.getElementById("queryButton").removeAttribute("style"),n.appendChild(l),l.pane=o.firstPane,l.paneButton=o.paneButton}}),n)};function E(e,t,n){const a=e.createElement("TR");a.AJAR_statement=t,a.AJAR_inverse=n,a.setAttribute("predTR","true");const i=s.outlinePredicateTD(t.predicate,a,n);return a.appendChild(i),a}this.propertyTR=E,this.appendPropertyTRs=function(t,n,a,o){if(e.log.debug("Property list length = "+n.length),0===n.length)return"";let l,u,d;a?(l=function(e){return e.subject},n=n.sort(e.utils.RDFComparePredicateSubject)):(l=function(e){return e.object},n=n.sort(e.utils.RDFComparePredicateObject));const p=n.length;for(u=0;u<p;u++){let f=n[u];if(o&&!o(f.predicate,a))continue;const m=E(i,f,a);t.appendChild(m);const h=m.firstChild;let g=V.defaults[f.predicate.uri],b=0,v=0,y=0;for(d=0;d+u<p&&n[u+d].predicate.sameTerm(f.predicate);d++)d>0&&l(n[u+d]).sameTerm(l(n[u+d-1]))&&b++,l(n[u+d]).lang&&r.labeller.LanguagePreference&&(v+=1,l(n[u+d]).lang.indexOf(r.labeller.LanguagePreference)>=0&&y++);if(y>0&&v===b+1){for(let e=u;e<=u+b;e++)if(r.labeller.LanguagePreference&&l(n[e]).lang.indexOf(r.labeller.LanguagePreference)>=0){m.appendChild(s.outlineObjectTD(l(n[e]),g,void 0,f));break}u+=b}else m.appendChild(s.outlineObjectTD(l(f),g,void 0,f)),m.showNobj=function(o){const r=d-b,p=2*o<r?o:r,m=[];if(1!==r){let b;h.setAttribute("rowspan",p===r?r:o+1),p<r&&1===p&&h.setAttribute("rowspan",2);let v=0;for(b=1;b<d;b++)if(c.canon(l(n[u+b])).sameTerm(c.canon(l(n[u+b-1]))))e.log.info("there are duplicates here: %s",n[u+b-1]);else{v++,f=n[u+b],g=V.defaults[f.predicate.uri];const e=i.createElement("tr");e.style.colspan="1",e.appendChild(s.outlineObjectTD(l(n[u+b]),g,void 0,f)),e.AJAR_statement=f,e.AJAR_inverse=a,t.appendChild(e),v>=p&&(e.style.display="none",m.push(e))}p===r&&h.setAttribute("rowspan",v+1)}if(p<r){const n=i.createElement("tr"),a=n.appendChild(i.createElement("td"));if(a.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;"),a.setAttribute("notSelectable","false"),r>o){const t=i.createElement("a");a.appendChild(t);const n=function(n,a,o,s){return function(a){t.innerHTML="","none"===a?(t.appendChild(e.utils.AJARImage(e.icons.originalIconBase+"tbl-more-trans.png","more","See all",i)),t.appendChild(i.createTextNode(r-s+" more...")),n.setAttribute("rowspan",s+1)):(t.appendChild(e.utils.AJARImage(e.icons.originalIconBase+"tbl-shrink.png","(less)",void 0,i)),n.setAttribute("rowspan",r+1));for(let e=0;e<m.length;e++)m[e].style.display=a}}(h,0,0,o);let s="none";const l=function(e){return n(s),s="none"===s?"":"none",e&&e.stopPropagation(),!1};l(),t.addEventListener("click",l,!1)}t.appendChild(n)}},m.showAllobj=function(){m.showNobj(d-b)},m.showNobj(10),u+=d-1}};const P={};o.g.termWidget=P,P.construct=function(e){const t=(e=e||document).createElement("TD");return t.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;"),t.setAttribute("class","iconTD"),t.setAttribute("notSelectable","true"),t.style.width="0px",t},P.addIcon=function(t,n,a){const o=t.childNodes[1];if(!o)return;let r=o.style.width;const s=e.utils.AJARImage(n.src,n.alt,n.tooltip,i);r=parseInt(r),r+=n.width,o.style.width=r+"px",o.appendChild(s),a&&s.addEventListener("click",a)},P.removeIcon=function(e,t){const n=e.childNodes[1];let a;if(!n)return;let o=n.style.width;o=parseInt(o),o-=t.width,n.style.width=o+"px";for(let e=0;e<n.childNodes.length;e++){const o=n.childNodes[e],r=o.src;try{a=i.location.href.split("?")[0]}catch(e){console.log(e),a=""}r===y.uri.join(t.src,a)&&n.removeChild(o)}},P.replaceIcon=function(e,t,n,a){P.removeIcon(e,t),P.addIcon(e,n,a)};function B(e){const t=e.getAttribute("class");return!!(t&&t.indexOf("selected")>=0)}function N(e){const t=s.targetOf(e).parentNode;P.replaceIcon(t.parentNode,C.termWidgets.optOn,C.termWidgets.optOff,I),t.parentNode.parentNode.removeAttribute("optional")}function I(e){const t=s.targetOf(e).parentNode;P.replaceIcon(t.parentNode,C.termWidgets.optOff,C.termWidgets.optOn,N),t.parentNode.parentNode.setAttribute("optional","true")}function _(e,t){const n=C.termWidgets.optOn,a=C.termWidgets.optOff;for(let i=e;i.parentNode;i=i.parentNode)for(;;){if(i.getAttribute("predTR")){let e=i.getAttribute("parentOfSelected");e=e?parseInt(e):0,0===e&&t>0&&P.addIcon(i.childNodes[0],i.getAttribute("optional")?n:a,i.getAttribute("optional")?N:I),e+=t,i.setAttribute("parentOfSelected",e),0===e&&(i.removeAttribute("parentOfSelected"),P.removeIcon(i.childNodes[0],i.getAttribute("optional")?n:a));break}if(!i.previousSibling||"TR"!==i.previousSibling.nodeName)break;i=i.previousSibling}}function O(n,a){if("TD"!==n.nodeName)throw e.log.debug("down"+n.nodeName),new Error("Expected TD in setSelected: "+n.nodeName+" : "+n.textContent);e.log.debug("pass");let i=n.getAttribute("class");if(i||(i=""),a){i+=" selected",(i.indexOf("pred")>=0||i.indexOf("obj")>=0)&&_(n,1),l.push(n);const a=e.utils.getTerm(n);s.showURI(a);let o=n.AJAR_statement;if(void 0===o&&n.parentNode&&(o=n.parentNode.AJAR_statement),o){const e=o.why,a=t.store.updater.editable(e.uri,c);a&&i.indexOf("pred")>=0&&P.addIcon(n,C.termWidgets.addTri)}}else e.log.debug("cla=$"+i+"$"),"selected"===i&&(i=""),i=i.replace(" selected",""),(i.indexOf("pred")>=0||i.indexOf("obj")>=0)&&_(n,-1),i.indexOf("pred")>=0&&P.removeIcon(n,C.termWidgets.addTri),l=l.filter(function(e){return e===n}),e.log.info("Deselecting "+n.textContent);"undefined"!=typeof sourceWidget&&s.showSource(),n.setAttribute("class",i)}function L(){for(let e=l.length-1;e>=0;e--)O(l[e],!1);l=[]}function F(t){const a=s.targetOf(t),i=a.parentNode,o=e.utils.getAbout(c,a);t.altKey&&n.byName("internal");t.shiftKey?W(i,o):t.altKey?q(i,o,{pane:n.byName("internal"),immediate:!0}):q(i,o)}function R(t){const a=s.targetOf(t),i=e.utils.getAbout(c,a);t.altKey&&n.byName("internal");H(a.parentNode.parentNode,i)}function M(e){const t=s.targetOf(e).getAttribute("uri");e.altKey?u.fetch(y.uri.docpart(t),{force:!0}):u.refresh(c.sym(y.uri.docpart(t)))}function D(e){const t=s.targetOf(e).getAttribute("uri");e.altKey?u.fetch(y.uri.docpart(t),{force:!0}):u.refresh(c.sym(y.uri.docpart(t)))}function j(e){const t=s.targetOf(e).getAttribute("uri");u.fetch(y.uri.docpart(t))}function z(e){const t=s.targetOf(e);let n=t.node;n.childNodes.length>1&&(n=t.parentNode),v(n)}function U(n){if(s.UserInput._tabulatorMode)return s.UserInput.Click(n);const a=s.targetOf(n);let i;for(i=e.utils.ancestor(a,"TD");i&&"false"!==i.getAttribute("notSelectable");i=e.utils.ancestor(i.parentNode,"TD"));if(!i)return;const o=B(i);if(e.log.debug("Was node selected before: "+o),n.altKey)O(i,!B(i));else if(n.shiftKey)O(i,!0);else{if(L(),s.UserInput.clearInputAndSave(n),O(i,!0),2===n.detail)return void n.stopPropagation();let e;if(i.parentNode&&(e=i.parentNode.AJAR_statement),!e)return;const a=e.why,r=t.store.updater.editable(a.uri,c);o&&r&&s.UserInput.Click(n,l[0])}e.log.debug("Was node selected after: "+B(i)+", count="+l.length),n.stopPropagation()}function $(t){i.title=e.utils.label(t),i.location.href.startsWith(t.site().uri)}function q(t,n,a){const o=(a=a||{}).pane;let r=!!a.already;const l=a.immediate;e.log.info("@outlineExpand, dom is now "+i.location),u.removeCallback("done","expand"),u.removeCallback("fail","expand");let p=c.canon(n);function f(){if(p=c.canon(p),!t||!t.parentNode||!t.parentNode.parentNode)return!1;let n;if(e.log.info("@@ REPAINTING "),r){for(e.log.info(" ... p is "+t),n=t.firstChild;n.nextSibling&&(e.log.info(" ... checking node "+n),"table"!==n.nodeName);n=n.nextSibling);n=k(p,n,o,a)}else n=k(p,void 0,o,a);r=!0,e.utils.ancestor(t,"TABLE")&&"white"===e.utils.ancestor(t,"TABLE").style.backgroundColor?n.style.backgroundColor="#eee":n.style.backgroundColor="white",e.utils.emptyNode(t).appendChild(n),s.focusTd=t,e.log.debug("expand: Node for "+p+" expanded");const i=c.each(p,e.ns.rdfs("seeAlso"));for(let t=0;t<i.length;t++)25===t&&e.log.warn("expand: Warning: many ("+i.length+") seeAlso links for "+p),u.lookUpThing(i[t],p)}function m(t){if(arguments[3])return!0;const n=c.canon(p);e.log.info("@@ expand: relevant subject="+n+", uri="+t+", already="+r);const a=c.sym(y.uri.docpart(t));if(t.indexOf("#")>=0)throw new Error("Internal error: hash in "+t);return!function(){if(!n.uri)return!0;const e=c.uris(n);if(!e)return!1;for(let n=0;n<e.length;n++)for(let a=y.uri.docpart(e[n]);a;a=c.HTTPRedirects[a])if(t===a)return!0;return!!c.anyStatementMatching(n,void 0,void 0,a)}()||(e.log.success("@@ expand OK: relevant subject="+n+", uri="+t+", source="+r),f(),!1)}a.solo&&$(p),e.log.debug("outlineExpand: dereferencing "+p);const h=i.createElement("span");t.appendChild(h),u.addCallback("done",m),u.addCallback("fail",m);const g=[];if(p.uri&&"rdf"===p.uri.split(":")[0])f();else{for(let t=0;t<g.length;t++){let n;if(n===g[t](p))return f(),e.log.debug("outline 1815"),void(n[1]&&d.removeChild(d.lastChild))}if(!p.uri||l||e.widgets.isAudio(p)||e.widgets.isVideo(p))f();else{const n=p.doc()&&p.doc().uri?p.doc().uri:""+p.doc(),o=function(a,o){if(t.querySelector&&n){if(t.querySelector('[data-outline-error-for="'+n+'"]'))return}const r=e.widgets.errorMessageBlock(i,a,"#fee",o instanceof Error?o:void 0);n&&r.setAttribute("data-outline-error-for",n),t.appendChild(r)};let r=!1;const s=u.nowOrWhenFetched(p.doc(),void 0,function(e,t){e?(u.lookUpThing(p),f(),a.solo&&$(p)):(r=!0,o(t,void 0))});s&&"function"==typeof s.catch&&s.catch(function(e){r||(r=!0,o(e,e))})}}}function H(t,n){let a,i,o,r,l=e.utils.ancestor(t,"TR");for(l=e.utils.ancestor(l.parentNode,"TR"),l&&(a=l.AJAR_statement),i=t.parentNode;"TD"!==i.tagName;i=i.parentNode)if(void 0===i)return void alert("Not enclosed in TD!");e.log.debug("Collapsing subject "+n),a&&(e.log.debug("looking up pred "+a.predicate.uri+"in defaults"),o=V.defaults[a.predicate.uri]),e.log.debug("view= "+o),"outline"===i.parentNode.parentNode.id&&(r=i.parentNode),s.replaceTD(s.outlineObjectTD(n,o,r,a),i)}function W(t,n){let a=null;for(let n=t.parentNode;n;n=n.parentNode)e.log.debug("level "+n.tagName),"TD"===n.tagName&&(a=n);e.utils.emptyNode(a).appendChild(k(n)),$(n),a.setAttribute("about",n.toNT())}new function(){this.pat=c.formula(),this.vars=[]},this.statusBarClick=function(t){const n=e.utils.getTarget(t);n.label&&(window.content.location=n.label)},this.showURI=function(e){e&&i.getElementById("UserURI")&&(i.getElementById("UserURI").value="NamedNode"===e.termType?e.uri:"")},this.showSource=function(){if("undefined"!=typeof sourceWidget){for(const e in sourceWidget.sources)sourceWidget.sources[e].setAttribute("class","");for(let e=0;e<l.length;e++){if(!l[e].parentNode){console.log("showSource: EH? no parentNode? "+l[e]+"\n");continue}const t=l[e].parentNode.AJAR_statement;if(!t)continue;const n=t.why;n&&n.uri&&sourceWidget.highlight(n,!0)}}},this.getSelection=function(){return l},this.targetOf=function(t){let n;if(t||(t=window.event),t.target)n=t.target;else{if(!t.srcElement)return e.log.error("can't get target for event "+t),!1;n=t.srcElement}return 3===n.nodeType&&(n=n.parentNode),n},this.walk=function(t,n){const a=n||l[0];let o;switch(t){case"down":try{o=a.parentNode.nextSibling.lastChild}catch(e){return void this.walk("up")}L(),O(o,!0);break;case"up":try{o=a.parentNode.previousSibling.lastChild}catch(e){return}L(),O(o,!0);break;case"right":if(L(),a.nextSibling||"strong"===a.lastChild.tagName)O(a.nextSibling,!0);else{O(i.evaluate("table/div/tr/td[2]",a,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,!0)}break;case"left":if(L(),a.previousSibling&&"undetermined"===a.previousSibling.className)return O(a.previousSibling,!0),!0;O(e.utils.ancestor(a.parentNode,"TD"),!0);break;case"moveTo":L(),O(n,!0)}"down"!==t&&"up"!==t||o.tabulatorSelect||this.walk(t)},this.OutlinerKeypressPanel=function(a){function o(e){e&&i.getElementById("UserURI")&&(i.getElementById("UserURI").value="NamedNode"===e.termType?e.uri:"")}function d(t){return arguments[3]||(h("right",m),o(e.utils.getAbout(c,l[0]))),!0}let p,f;if(e.log.info("Key "+a.keyCode+" pressed"),"TEXTAREA"===e.utils.getTarget(a).tagName)return;if("UserURI"===e.utils.getTarget(a).id)return;if(l.length>1)return;if(0===l.length)return void(13!==a.keyCode&&38!==a.keyCode&&40!==a.keyCode&&37!==a.keyCode&&39!==a.keyCode||(this.walk("right",s.focusTd),o(e.utils.getAbout(c,l[0]))));const m=l[0];switch(u.removeCallback("done","setSelectedAfterward"),u.removeCallback("fail","setSelectedAfterward"),a.keyCode){case 13:if("HTML"===e.utils.getTarget(a).tagName){const n=e.utils.getAbout(c,m);p=m.parentNode.AJAR_statement.why,f=t.store.updater.editable(p.uri,c),n?r.GotoSubject(n,!0):f&&s.UserInput.Enter(m)}else this.UserInput.Keypress(a),this.walk("down"),a.stopPropagation();return;case 38:this.walk("up"),a.stopPropagation(),a.preventDefault();break;case 40:this.walk("down"),a.stopPropagation(),a.preventDefault()}if("INPUT"===e.utils.getTarget(a).tagName)return;let h;switch(a.keyCode){case 46:case 8:p=m.parentNode.AJAR_statement.why,f=t.store.updater.editable(p.uri,c),f&&(a.preventDefault(),this.UserInput.Delete(m));break;case 37:{if(this.walk("left"))return;const t=e.utils.ancestor(m.parentNode,"TD");H(m,e.utils.getAbout(c,t));break}case 39:{const t=e.utils.getAbout(c,m);if(t){if(h=this.walk,m.nextSibling)return void this.walk("right");"TABLE"!==m.firstChild.tagName&&(u.addCallback("done",d),u.addCallback("fail",d),q(m,t,{pane:n.byName("defaultPane")})),d()}}break;case 38:case 40:break;default:switch(a.charCode){case 99:if(a.ctrlKey){s.UserInput.copyToClipboard(s.clipboardAddress,m);break}break;case 118:case 112:if(a.ctrlKey){s.UserInput.pasteFromClipboard(s.clipboardAddress,m);break}break;default:e.utils.getTarget(a).tagName}}if(o(e.utils.getAbout(c,l[0])),l[0]){const t=e.utils.findPos(l[0])[1];t+l[0].clientHeight>window.scrollY+window.innerHeight&&e.utils.getEyeFocus(l[0],!0,!0,window),t<window.scrollY+54&&e.utils.getEyeFocus(l[0],!0,void 0,window)}},this.OutlinerMouseclickPanel=function(t){switch(s.UserInput._tabulatorMode){case 0:!function(t){e.log.info("@TabulatorMousedown, dom.location is now "+i.location);const n=s.targetOf(t);if(!n)return;const a=n.tagName;if("INPUT"===a||"TEXTAREA"===a)return;s.UserInput.clearMenu(),s.UserInput.lastModified&&s.UserInput.lastModified.parentNode.nextSibling&&s.UserInput.backOut();(!n.src||n.src.slice(n.src.indexOf("/icons/")+1)!==C.src.icon_show_choices&&n.src.slice(n.src.indexOf("/icons/")+1)!==C.src.icon_add_triple)&&s.UserInput.clearInputAndSave(t);n.src&&n.src.slice(n.src.indexOf("/icons/")+1)===C.src.icon_show_choices||s.UserInput.clearMenu();t&&t.stopPropagation()}(t);break;case 1:s.UserInput.Click(t)}},this.replaceTD=function(e,t){let n;B(t)&&(n=!0);for(let e=l.length-1;e>-1;e--)for(let n=l[e];n.parentNode;n=n.parentNode)n===t&&O(l[e],!1);t.parentNode.replaceChild(e,t),n&&O(e,!0)},r.outlineRefocus=W,this.GotoFormURI_enterKey=function(e){13===e.keyCode&&r.GotoFormURI(e)},this.GotoFormURI=function(e){!function(e){const t=c.sym(e);this.GotoSubject(t,!0)}(i.getElementById("UserURI").value)},this.GotoURIinit=function(e){const t=c.sym(e);this.GotoSubject(t)},this.GotoSubject=function(t,n,a,o,r,l){l=l||i.getElementById("outline"),o&&(e.utils.emptyNode(l),l.style.width="100%");const c=function(){const e=i.createElement("TR");e.style.verticalAlign="top",l.appendChild(e);const n=s.outlineObjectTD(t,void 0,e);return e.appendChild(n),n}();if(o&&$(t),n){q(c,t,{pane:a,solo:o});const n=c.parentNode;e.utils.getEyeFocus(n,!1,void 0,window)}if(o&&i&&i.defaultView&&i.defaultView.history&&document.location.href!==t.uri){const e=a?{paneName:a.name}:{};try{i.defaultView.history.pushState(e,t.uri,t.uri)}catch(e){console.log(e)}}return t};const G=e.ns,V=function(t){const n={properties:[],defaults:[],classes:[]},a=w(t),i=x(t);return A(n,e.ns.foaf("depiction").uri,a,!0),A(n,e.ns.foaf("img").uri,a,!0),A(n,e.ns.foaf("thumbnail").uri,a,!0),A(n,e.ns.foaf("logo").uri,a,!0),A(n,e.ns.schema("image").uri,a,!0),A(n,e.ns.foaf("mbox").uri,i,!0),n}(i);function Q(t){let o;if("Literal"===t.termType){const n={integer:"text-align: right;",decimal:"text-align: '.';",double:"text-align: '.';"};o=i.createElement("span"),o.textContent=t.value;let a="";if(t.datatype&&t.datatype.uri){const i=e.ns.xsd("").uri;t.datatype.uri.slice(0,i.length)===i&&(a=n[t.datatype.uri.slice(i.length)])}o.setAttribute("style",a||"white-space: pre-wrap;")}else if("NamedNode"===t.termType||"BlankNode"===t.termType)if(o=i.createElement("span"),o.setAttribute("about",t.toNT()),s.appendAccessIcons(c,o,t),"NamedNode"===t.termType)if("tel:"===t.uri.slice(0,4)){const n=t.uri.slice(4),a=i.createElement("a");o.appendChild(i.createTextNode(n)),a.setAttribute("href",t.uri),a.appendChild(e.utils.AJARImage(C.src.icon_telephone,"phone","phone "+n,i)),o.appendChild(a),a.firstChild.setAttribute("class","phoneIcon")}else{o.appendChild(i.createTextNode(e.utils.label(t)));const n=e.widgets.linkIcon(i,t);o.appendChild(n),e.widgets.makeDraggable(o,t)}else o.appendChild(i.createTextNode(e.utils.label(t)));else if("Collection"===t.termType){o=i.createElement("table"),o.classList.add("tableFullWidth"),o.setAttribute("about",t.toNT());for(let e=0;e<t.elements.length;e++){const n=t.elements[e],a=o.appendChild(i.createElement("tr")),r=a.appendChild(i.createElement("td"));r.classList.add("obj"),r.setAttribute("notSelectable","false"),r.setAttribute("about",t.toNT()),r.innerHTML=e+1+")",a.appendChild(s.outlineObjectTD(n))}}else"Graph"===t.termType?(o=n.byName("dataContentPane").statementsAsTables(t.statements,a),o.setAttribute("class","nestedFormula")):(e.log.error("Object "+t+" has unknown term type: "+t.termType),o=i.createTextNode("[unknownTermType:"+t.termType+"]"));return e.log.debug("contents: "+o.innerHTML),o}return this.createTabURI=function(){i.getElementById("UserURI").value=i.URL+"?uri="+i.getElementById("UserURI").value},this.UserInput.setSelected=O,this.UserInput.deselectAll=L,this.UserInput.views=V,this.outlineExpand=q,this}var B=o(2643);function N(e,t,n,a){const i=n.statementsMatching(null,a.acl("origin"),e).reduce((e,i)=>e.concat(n.statementsMatching(t,a.acl("trustedApp"),i.subject)).concat(n.statementsMatching(i.subject)),[]);return i}function I(n){const a=O("table",{class:"results"}),i=L("tr",[F("th","Application URL"),F("th","Access modes"),F("th","Actions")]);return a.appendChild(i),t.store.each(n,e.ns.acl("trustedApp"),void 0,void 0).flatMap(n=>t.store.each(n,e.ns.acl("origin"),void 0,void 0).map(a=>({appModes:t.store.each(n,e.ns.acl("mode"),void 0,void 0),origin:a}))).sort((e,t)=>e.origin.value<t.origin.value?-1:1).forEach(({appModes:e,origin:t})=>a.appendChild(_(n,t,e,o))),a.appendChild(_(n,null,[e.ns.acl("Read")],o)),a;function o(){a.parentElement.replaceChild(I(n),a)}}function _(n,a,i,o){const r={origin:a,appModes:i,formElements:{modes:[],origin:void 0}};return L("tr",[L("td",[L("form",[O("input",{class:"textinput",placeholder:"Write new URL here",value:a?a.value:""},{},e=>{r.formElements.origin=e})],{},{submit:s})]),L("td",[L("form",R(r),{},{submit:s})]),L("td",[L("form",a?[F("button","Update",{class:"controlButton",style:"background: LightGreen;"}),F("button","Delete",{class:"controlButton",style:"background: LightCoral;"},{click:function(a){let i;a.preventDefault();try{i=(0,y.sym)(r.formElements.origin.value)}catch(e){return alert("Please provide an application URL you want to remove trust from")}const o=N(i,n,t.store,e.ns);if(!t.store.updater)throw new Error("Store has no updater");t.store.updater.update(o,[],l)}})]:[F("button","Add",{class:"controlButton",style:"background: LightGreen;"})],{},{submit:s})])]);function s(a){let i;a.preventDefault();try{i=(0,y.sym)(r.formElements.origin.value)}catch(e){return alert("Please provide an application URL you want to trust")}const o=r.formElements.modes.filter(e=>e.checked).map(e=>e.value),s=N(r.origin||i,n,t.store,e.ns),c=function(e,t,n,a,i){const o=new y.BlankNode(`bn_${t}`);return[(0,y.st)(a,i.acl("trustedApp"),o,a.doc()),(0,y.st)(o,i.acl("origin"),e,a.doc()),...n.map(e=>(0,y.sym)(e)).map(e=>(0,y.st)(o,i.acl("mode"),e,a.doc()))]}(i,Math.random().toString(36).substr(2,5),o,n,e.ns);if(!t.store.updater)throw new Error("Store has no updater");t.store.updater.update(s,c,l)}function l(e,t,n){if(t)return o()}}function O(e,t={},n={},a=null){const i=document.createElement(e);return a&&a(i),Object.keys(t).forEach(e=>{i.setAttribute(e,t[e])}),Object.keys(n).forEach(e=>{i.addEventListener(e,n[e])}),i}function L(e,t,n={},a={},i=null){const o=O(e,n,a,i);return t.forEach(e=>o.appendChild(e)),o}function F(e,t,n={},a={},i=null){const o=O(e,n,a,i);return o.textContent=t,o}function R({appModes:t,formElements:n}){return["Read","Write","Append","Control"].map(a=>L("label",[O("input",{type:"checkbox",...t.some(t=>t.value===e.ns.acl(a).value)?{checked:""}:{},value:e.ns.acl(a).uri},{},e=>n.modes.push(e)),F("span",a)]))}const M={global:!0,icon:`${e.icons.iconBase}noun_15177.svg`,name:"trustedApplications",label:()=>null,render:(n,a)=>{const i=a.dom,o=i.createElement("div");o.classList.add("trusted-applications-pane"),o.setAttribute("style","border: 0.3em solid #418d99; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;");const r=o.appendChild(i.createElement("table")),s=r.appendChild(i.createElement("tr")),l=r.appendChild(i.createElement("tr")).appendChild(i.createElement("div"));return l.setAttribute("style","padding: 0.7em;"),async function(n,a,i){const o=await e.login.ensureLoadedProfile({dom:n,div:a,statusArea:i,me:null}),r=o.me,s=r.doc();if(!t.store.updater)throw new Error("Store has no updater");const l=t.store.updater.editable(s.uri,t.store);if(a.appendChild(F("h3","Manage your trusted applications")),!l)return void a.appendChild(e.widgets.errorMessageBlock(n,`Your profile ${r.doc().uri} is not editable, so we cannot do much here.`));a.appendChild(F("p","Here you can manage the applications you trust."));const c=I(r);a.appendChild(c),a.appendChild(F("h4","Notes")),a.appendChild(L("ol",[a.appendChild(F("li","Trusted applications will get access to all resources that you have access to.")),a.appendChild(F("li","You can limit which modes they have by default.")),a.appendChild(F("li","They will not gain more access than you have."))])),a.appendChild(F("p","Application URLs must be valid URL. Examples are http://localhost:3000, https://trusted.app, and https://sub.trusted.app."))}(i,s,l).catch(t=>l.appendChild(e.widgets.errorMessageBlock(i,t))),o}};const D=M;async function j(t,n,a){const i=await async function(t,n,a){const i=t.site().uri,o=(0,y.sym)(`${i}profile/card#me`);try{return await a.load(o),o}catch(e){}try{await a.load(t)}catch(e){return t}const r=n.any(t,e.ns.foaf("primaryTopic"),null,t.doc());if(r&&"NamedNode"===r.termType)try{return await a.load(r),r}catch(e){return t}return t}(t,n,a),o=function(t,n){return t.anyValue(n,e.ns.vcard("fn"),null,n.doc())||t.anyValue(n,e.ns.foaf("name"),null,n.doc())||new URL(n.uri).host.split(".")[0]}(n,i),r=document.createElement("div");return r.classList.add("container"),r.appendChild(function(e,t){const n=document.createElement("a");n.href=e,n.innerText=t;const a=document.createElement("span");a.innerText="'s Pod";const i=document.createElement("h1");return i.appendChild(n),i.appendChild(a),i}(i.uri,o)),r.appendChild(function(e){const t=document.createElement("section"),n=document.createElement("h2");n.innerText="Data",t.appendChild(n);const a=document.createElement("div");a.classList.add("list-group"),t.appendChild(a);const i=document.createElement("a");return i.classList.add("list-group-item"),i.href=window.document.location.href+"public/",i.innerText=`View ${e}'s files`,a.appendChild(i),t}(o)),r}const z={icon:e.icons.iconBase+"noun_547570.svg",name:"dashboard",label:e=>"NamedNode"===e.termType&&e.uri===e.site().uri?"Dashboard":null,render:(e,n)=>{console.log("Dashboard Pane Render");const a=n.dom.createElement("div"),i=()=>{a.innerHTML="",function(e,n,a,i){const o=new URL(window.location.href).searchParams.get("uri");if(n&&(o||n.site().uri===i.site().uri))return function(e,t){const n=t.getOutliner(t.dom);n.getDashboard().then(t=>e.appendChild(t))}(e,a);(function(e,n){const a=document.createElement("div");e.appendChild(a);const i=a.attachShadow({mode:"open"}),o=document.createElement("link");o.rel="stylesheet",o.href="/common/css/bootstrap.min.css",i.appendChild(o),j(n,t.store,t.store.fetcher).then(e=>i.appendChild(e))})(e,i)}(a,t.authn.currentUser()||null,n,e)};return t.authSession.events.on("login",()=>{i()}),t.authSession.events.on("sessionRestore",()=>{i()}),i(),a}};const U=z,$={icon:e.icons.iconBase+"noun_Sliders_341315_000000.svg",name:"basicPreferences",label:e=>null,render:(t,n)=>{const a=n.dom,i=n.session.store;function o(t,n){t||r.appendChild(e.widgets.errorMessageBlock(a,n,"#fee"))}const r=a.createElement("div"),s=function(e,t){const n=H(e,t,"User types"),a=n.appendChild(t.createElement("p"));a.innerText="Here you can self-assign user types to help the data browser know which views you would like to access.";const i=n.appendChild(t.createElement("a"));i.href="https://github.com/solidos/userguide/#role",i.innerText="Read more";const o=n.appendChild(t.createElement("div"));return o}(r,a);function l(e,t){e=e.doc(),i.holds(void 0,void 0,void 0,e)||(0,y.parse)(t,i,e.uri,"text/turtle",null)}const c=i.sym("urn:uuid:93774ba1-d3b6-41f2-85b6-4ae27ffd2597#this");l(c,'@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix : <#>.\n\n:this <http://purl.org/dc/elements/1.1/title> "Basic preferences" ;\n a ui:Form ;\n ui:part :categorizeUser, :privateComment, :personalInformationHeading;\n ui:parts ( :personalInformationHeading :privateComment :categorizeUser ).\n\n:personalInformationHeading a ui:Heading;\n ui:contents "Personal information".\n\n:privateComment a ui:Comment;\n ui:contents "This information is private.".\n\n:categorizeUser a ui:Classifier;\n ui:label "Level of user"; ui:property rdf:type ; ui:category solid:User.\n');return l(i.sym("urn:uuid:93774ba1-d3b6-41f2-85b6-4ae27ffd2597-ONT"),'@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix schema: <http:/schema.org/>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.\n@prefix : <#>.\n\nsolid:User a rdfs:Class;\n rdfs:label "user"@en, "utilisateur"@fr;\n rdfs:comment """Any person who might use a Solid-based system""";\n rdfs:subClassOf foaf:Person, schema:Person, vcard:Individual.\n\n# Since these options are opt-in, it is a bit strange to have new users opt in\n# That they are new users - also we do not use this class for anything specific\n# yet\n# solid:NewUser a rdfs:Class;\n# rdfs:label "new user"@en;\n# rdfs:comment """A person who might use a Solid-based system who has a low\n# level of familiarity with technical details.""";\n# rdfs:subClassOf solid:User.\n\nsolid:PowerUser a rdfs:Class;\n rdfs:label "power user"@en;\n rdfs:comment """A person who might use a Solid-based system\n who is prepared to be given a more complex interface in order\n to be provided with more pwerful features.""";\n rdfs:subClassOf solid:User.\n\n solid:Developer a rdfs:Class;\n rdfs:label "Developer";\n rdfs:comment """Any person who might use a Solid-based system,\n who has software development skills.""";\n rdfs:subClassOf solid:User.\n'),async function(){const t=await e.login.ensureLoadedPreferences({dom:a,div:r});if(!t.preferencesFile)return void console.log("Not doing private class preferences as no access to preferences file. "+t.preferencesFileError);e.widgets.appendForm(a,s,{},t.me,c,t.preferencesFile,o).style.borderStyle="none";const l=n.session.paneRegistry.byName("trustedApplications");l&&r.appendChild(l.render(null,n)),function(t,n,a,i){const o=H(t,i,"Delete account"),r=n.each(a,e.ns.space("storage"),null,a.doc()),s=r.map(e=>e.value),l=o.appendChild(i.createElement("ul"));s.forEach(async e=>{const t=await async function(e,t){const n=t.createElement("a");n.textContent=`Delete your account at ${e}`;const a=await async function(e){const t=new URL(e),n=new URL(e);n.pathname=t.pathname="/account/delete";const a=n.hostname.split(".");n.hostname=a.slice(1).join(".");if((await fetch(n.href,{method:"HEAD"})).ok)return n.href;if((await fetch(t.href,{method:"HEAD"})).ok)return t.href;return null}(e);if("string"!=typeof a)return null;return n.href=a,n}(e,i);if(t){l.appendChild(i.createElement("li")).appendChild(t)}})}(r,i,t.me,a)}(),r}};const q=$;function H(e,t,n){const a=e.appendChild(t.createElement("div"));a.style.border="0.3em solid #418d99",a.style.borderRadius="0.5em",a.style.padding="0.7em",a.style.marginTop="0.7em";return a.appendChild(t.createElement("h3")).innerText=n,a}var W=o(3931),G=o.n(W),V=o(3955),Q=o(6540),Y=o(5338);function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},J.apply(null,arguments)}function K(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}var Z=o(4146),X=o.n(Z);o(3172);function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function te(){return te=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},te.apply(this,arguments)}function ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ae(e){var t=function(t){var n,a;function i(){for(var n,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return ee(ne(ne(n=t.call.apply(t,[this].concat(i))||this)),"cachedTheme",void 0),ee(ne(ne(n)),"lastOuterTheme",void 0),ee(ne(ne(n)),"lastTheme",void 0),ee(ne(ne(n)),"renderProvider",function(t){var a=n.props.children;return Q.createElement(e.Provider,{value:n.getTheme(t)},a)}),n}a=t,(n=i).prototype=Object.create(a.prototype),n.prototype.constructor=n,n.__proto__=a;var o=i.prototype;return o.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,"function"==typeof this.lastTheme){var t=this.props.theme;this.cachedTheme=t(e)}else{var n=this.props.theme;this.cachedTheme=e?te({},e,n):n}return this.cachedTheme},o.render=function(){return this.props.children?Q.createElement(e.Consumer,null,this.renderProvider):null},i}(Q.Component);return t}function ie(e){return function(t){var n=Q.forwardRef(function(n,a){return Q.createElement(e.Consumer,null,function(e){return Q.createElement(t,te({theme:e,ref:a},n))})});return X()(n,t),n}}function oe(e){return function(){return Q.useContext(e)}}var re,se=(0,Q.createContext)(),le=(re=se,ie(re),oe(re),ae(re),"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e});const ce="object"===("undefined"==typeof window?"undefined":le(window))&&"object"===("undefined"==typeof document?"undefined":le(document))&&9===document.nodeType;const ue=function(e,t){};function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}function pe(e){var t=function(e,t){if("object"!=de(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=de(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==de(t)?t:t+""}function fe(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,pe(a.key),a)}}function me(e,t,n){return t&&fe(e.prototype,t),n&&fe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function he(e,t){return he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},he(e,t)}function ge(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,he(e,t)}function be(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var ve={}.constructor;function ye(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(ye);if(e.constructor!==ve)return e;var t={};for(var n in e)t[n]=ye(e[n]);return t}function we(e,t,n){void 0===e&&(e="unnamed");var a=n.jss,i=ye(t),o=a.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var xe=function(e,t){for(var n="",a=0;a<e.length&&"!important"!==e[a];a++)n&&(n+=t),n+=e[a];return n},Ae=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=xe(e[n]," ");else t=xe(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Ce(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function ke(e,t){for(var n="",a=0;a<t;a++)n+=" ";return n+e}function Ee(e,t,n){void 0===n&&(n={});var a="";if(!t)return a;var i=n.indent,o=void 0===i?0:i,r=t.fallbacks;!1===n.format&&(o=-1/0);var s=Ce(n),l=s.linebreak,c=s.space;if(e&&o++,r)if(Array.isArray(r))for(var u=0;u<r.length;u++){var d=r[u];for(var p in d){var f=d[p];null!=f&&(a&&(a+=l),a+=ke(p+":"+c+Ae(f)+";",o))}}else for(var m in r){var h=r[m];null!=h&&(a&&(a+=l),a+=ke(m+":"+c+Ae(h)+";",o))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(a&&(a+=l),a+=ke(g+":"+c+Ae(b)+";",o))}return(a||n.allowEmpty)&&e?(a&&(a=""+l+a+l),ke(""+e+c+"{"+a,--o)+ke("}",o)):a}var Te=/([[\].#*$><+~=|^:(),"'`\s])/g,Se="undefined"!=typeof CSS&&CSS.escape,Pe=function(e){return Se?Se(e):e.replace(Te,"\\$1")},Be=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var a=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,a?this.renderer=a.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var a=!!n&&n.force;if(!a&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,r=e in this.style;if(o&&!r&&!a)return this;var s=o&&r;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Ne=function(e){function t(t,n,a){var i;i=e.call(this,t,n,a)||this;var o=a.selector,r=a.scoped,s=a.sheet,l=a.generateId;return o?i.selectorText=o:!1!==r&&(i.id=l(be(be(i)),s),i.selectorText="."+Pe(i.id)),i}ge(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var a in n)t.setProperty(e,a,n[a])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Ae(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?J({},e,{allowEmpty:!0}):e;return Ee(this.selectorText,this.style,n)},me(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Be),Ie={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Ne(e,t,n)}},_e={indent:1,children:!0},Oe=/@([\w-]+)/,Le=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var a=e.match(Oe);for(var i in this.at=a?a[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new it(J({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var a=this.rules.add(e,t,n);return a?(this.options.jss.plugins.onProcessRule(a),a):null},t.replaceRule=function(e,t,n){var a=this.rules.replace(e,t,n);return a&&this.options.jss.plugins.onProcessRule(a),a},t.toString=function(e){void 0===e&&(e=_e);var t=Ce(e).linebreak;if(null==e.indent&&(e.indent=_e.indent),null==e.children&&(e.children=_e.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Fe=/@container|@media|@supports\s+/,Re={onCreateRule:function(e,t,n){return Fe.test(e)?new Le(e,t,n):null}},Me={indent:1,children:!0},De=/@keyframes\s+([\w-]+)/,je=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var a=e.match(De);a&&a[1]?this.name=a[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,r=n.generateId;for(var s in this.id=!1===i?this.name:Pe(r(this,o)),this.rules=new it(J({},n,{parent:this})),t)this.rules.add(s,t[s],J({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Me);var t=Ce(e).linebreak;if(null==e.indent&&(e.indent=Me.indent),null==e.children&&(e.children=Me.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),ze=/@keyframes\s+/,Ue=/\$([\w-]+)/g,$e=function(e,t){return"string"==typeof e?e.replace(Ue,function(e,n){return n in t?t[n]:e}):e},qe=function(e,t,n){var a=e[t],i=$e(a,n);i!==a&&(e[t]=i)},He={onCreateRule:function(e,t,n){return"string"==typeof e&&ze.test(e)?new je(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&qe(e,"animation-name",n.keyframes),"animation"in e&&qe(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var a=n.options.sheet;if(!a)return e;switch(t){case"animation":case"animation-name":return $e(e,a.keyframes);default:return e}}},We=function(e){function t(){return e.apply(this,arguments)||this}return ge(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?J({},e,{allowEmpty:!0}):e;return Ee(this.key,this.style,n)},t}(Be),Ge={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new We(e,t,n):null}},Ve=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=Ce(e).linebreak;if(Array.isArray(this.style)){for(var n="",a=0;a<this.style.length;a++)n+=Ee(this.at,this.style[a]),this.style[a+1]&&(n+=t);return n}return Ee(this.at,this.style,e)},e}(),Qe=/@font-face/,Ye={onCreateRule:function(e,t,n){return Qe.test(e)?new Ve(e,t,n):null}},Je=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Ee(this.key,this.style,e)},e}(),Ke={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Je(e,t,n):null}},Ze=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Xe={"@charset":!0,"@import":!0,"@namespace":!0},et={onCreateRule:function(e,t,n){return e in Xe?new Ze(e,t,n):null}},tt=[Ie,Re,He,Ge,Ye,Ke,et],nt={process:!0},at={force:!0,process:!0},it=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var a=this.options,i=a.parent,o=a.sheet,r=a.jss,s=a.Renderer,l=a.generateId,c=a.scoped,u=J({classes:this.classes,parent:i,sheet:o,jss:r,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+Pe(this.classes[d]));var p=we(d,t,u);if(!p)return null;this.register(p);var f=void 0===u.index?this.index.length:u.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,n){var a=this.get(e),i=this.index.indexOf(a);a&&this.remove(a);var o=n;return-1!==i&&(o=J({},n,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Ne?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof je&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Ne?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof je&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],t,n)},t.updateOne=function(t,n,a){void 0===a&&(a=nt);var i=this.options,o=i.jss.plugins,r=i.sheet;if(t.rules instanceof e)t.rules.update(n,a);else{var s=t.style;if(o.onUpdate(n,t,r,a),a.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,r),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,at)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,at)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,a=!!n&&n.options.link,i=Ce(e).linebreak,o=0;o<this.index.length;o++){var r=this.index[o].toString(e);(r||a)&&(t&&(t+=i),t+=r)}return t},e}(),ot=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=J({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new it(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var a=this.queue;this.attached&&!a&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(a?a.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var a=this.rules.get(e);if(!a)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?a.renderable&&this.renderer.replaceRule(a.renderable,i):this.renderer.deleteRule(a)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var a in e){var i=this.addRule(a,e[a],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),rt=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var a=0;a<this.registry.onCreateRule.length;a++){var i=this.registry.onCreateRule[a](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var a=0;a<this.registry.onProcessStyle.length;a++)t.style=this.registry.onProcessStyle[a](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,a){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,a)},t.onChangeValue=function(e,t,n){for(var a=e,i=0;i<this.registry.onChangeValue.length;i++)a=this.registry.onChangeValue[i](a,t,n);return a},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),st=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var a=0;a<t.length;a++)if(t[a].options.index>n)return void t.splice(a,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,a=K(t,["attached"]),i=Ce(a).linebreak,o="",r=0;r<this.registry.length;r++){var s=this.registry[r];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(a))}return o},me(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),lt=new st,ct="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ut="2f1acc6c3a606b082e5eef5e54414ffb";null==ct[ut]&&(ct[ut]=0);var dt=ct[ut]++,pt=function(e){void 0===e&&(e={});var t=0;return function(n,a){t+=1;var i="",o="";return a&&(a.options.classNamePrefix&&(o=a.options.classNamePrefix),null!=a.options.jss.id&&(i=String(a.options.jss.id))),e.minify?""+(o||"c")+dt+i+t:o+n.key+"-"+dt+(i?"-"+i:"")+"-"+t}},ft=function(e){var t;return function(){return t||(t=e()),t}},mt=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ht=function(e,t,n){try{var a=n;if(Array.isArray(n)&&(a=Ae(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,a);else{var i=a?a.indexOf("!important"):-1,o=i>-1?a.substr(0,i-1):a;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},gt=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},bt=function(e,t){return e.selectorText=t,e.selectorText===t},vt=ft(function(){return document.querySelector("head")});function yt(e){var t=lt.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var a=e[n];if(a.attached&&a.options.index>t.index&&a.options.insertionPoint===t.insertionPoint)return a}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var a=e[n];if(a.attached&&a.options.insertionPoint===t.insertionPoint)return a}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var a=e.insertionPoint;if(a&&"string"==typeof a){var i=function(e){for(var t=vt(),n=0;n<t.childNodes.length;n++){var a=t.childNodes[n];if(8===a.nodeType&&a.nodeValue.trim()===e)return a}return null}(a);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var wt=ft(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),xt=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},At=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Ct=function(){function e(e){this.getPropertyValue=mt,this.setProperty=ht,this.removeProperty=gt,this.setSelector=bt,this.hasInsertedRules=!1,this.cssRules=[],e&&lt.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,a=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),a&&this.element.setAttribute("data-meta",a);var o=wt();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,a=yt(t);if(!1!==a&&a.parent)a.parent.insertBefore(e,a.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else vt().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var a=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=At(n,t);if(!1===(i=xt(n,a.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(a.rules,i),i}var r=e.toString();if(!r)return!1;var s=At(n,t),l=xt(n,r,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof ot&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),kt=0,Et=function(){function e(e){this.id=kt++,this.version="10.10.0",this.plugins=new rt,this.options={id:{minify:!1},createGenerateId:pt,Renderer:ce?Ct:null,plugins:[]},this.generateId=pt({minify:!1});for(var t=0;t<tt.length;t++)this.plugins.use(tt[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=J({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===lt.index?0:lt.index+1);var a=new ot(e,J({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(a),a},t.removeStyleSheet=function(e){return e.detach(),lt.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var a=J({},n,{name:e,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var i=we(e,t,a);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),Tt=function(e){return new Et(e)},St=function(){function e(){this.length=0,this.sheets=new WeakMap}var t=e.prototype;return t.get=function(e){var t=this.sheets.get(e);return t&&t.sheet},t.add=function(e,t){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:t,refs:0}))},t.manage=function(e){var t=this.sheets.get(e);if(t)return 0===t.refs&&t.sheet.attach(),t.refs++,t.sheet;ue(!1,"[JSS] SheetsManager: can't find sheet to manage")},t.unmanage=function(e){var t=this.sheets.get(e);t?t.refs>0&&(t.refs--,0===t.refs&&t.sheet.detach()):ue(!1,"SheetsManager: can't find sheet to unmanage")},me(e,[{key:"size",get:function(){return this.length}}]),e}(),Pt="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Bt(e){var t=null;for(var n in e){var a=e[n],i=typeof a;if("function"===i)t||(t={}),t[n]=a;else if("object"===i&&null!==a&&!Array.isArray(a)){var o=Bt(a);o&&(t||(t={}),t[n]=o)}}return t}Tt();var Nt=Date.now(),It="fnValues"+Nt,_t="fnStyle"+ ++Nt;const Ot=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var a=we(e,{},n);return a[_t]=t,a},onProcessStyle:function(e,t){if(It in t||_t in t)return e;var n={};for(var a in e){var i=e[a];"function"==typeof i&&(delete e[a],n[a]=i)}return t[It]=n,e},onUpdate:function(e,t,n,a){var i=t,o=i[_t];o&&(i.style=o(e)||{});var r=i[It];if(r)for(var s in r)i.prop(s,r[s](e),a)}}};var Lt=o(9423),Ft=function(e){return e&&e[Lt.A]&&e===e[Lt.A]()};const Rt=function(e){return{onCreateRule:function(t,n,a){if(!Ft(n))return null;var i=n,o=we(t,{},a);return i.subscribe(function(t){for(var n in t)o.prop(n,t[n],e)}),o},onProcessRule:function(t){if(!t||"style"===t.type){var n=t,a=n.style,i=function(t){var i=a[t];if(!Ft(i))return"continue";delete a[t],i.subscribe({next:function(a){n.prop(t,a,e)}})};for(var o in a)i(o)}}}};var Mt=/;\n/,Dt=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},n=e.split(Mt),a=0;a<n.length;a++){var i=(n[a]||"").trim();if(i){var o=i.indexOf(":");if(-1!==o){var r=i.substr(0,o).trim(),s=i.substr(o+1).trim();t[r]=s}}}return t}(e.style))};const jt=function(){return{onProcessRule:Dt}};var zt="@global",Ut="@global ",$t=function(){function e(e,t,n){for(var a in this.type="global",this.at=zt,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new it(J({},n,{parent:this})),t)this.rules.add(a,t[a]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var a=this.rules.add(e,t,n);return a&&this.options.jss.plugins.onProcessRule(a),a},t.replaceRule=function(e,t,n){var a=this.rules.replace(e,t,n);return a&&this.options.jss.plugins.onProcessRule(a),a},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),qt=function(){function e(e,t,n){this.type="global",this.at=zt,this.isProcessed=!1,this.key=e,this.options=n;var a=e.substr(8);this.rule=n.jss.createRule(a,t,J({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ht=/\s*,\s*/g;function Wt(e,t){for(var n=e.split(Ht),a="",i=0;i<n.length;i++)a+=t+" "+n[i].trim(),n[i+1]&&(a+=", ");return a}const Gt=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===zt)return new $t(e,t,n);if("@"===e[0]&&e.substr(0,8)===Ut)return new qt(e,t,n);var a=n.parent;return a&&("global"===a.type||a.options.parent&&"global"===a.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,a=e.style,i=a?a[zt]:null;if(i){for(var o in i)t.addRule(o,i[o],J({},n,{selector:Wt(o,e.selector)}));delete a[zt]}}(e,t),function(e,t){var n=e.options,a=e.style;for(var i in a)if("@"===i[0]&&i.substr(0,7)===zt){var o=Wt(i.substr(7),e.selector);t.addRule(o,a[i],J({},n,{selector:o})),delete a[i]}}(e,t))}}};var Vt=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},Qt="extendCurrValue"+Date.now();function Yt(e,t,n,a){return void 0===a&&(a={}),function(e,t,n,a){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var i=0;i<e.extend.length;i++){var o=e.extend[i];Yt("string"==typeof o?J({},e,{extend:o}):e.extend[i],t,n,a)}else for(var r in e.extend)"extend"!==r?Vt(e.extend[r])?(r in a||(a[r]={}),Yt(e.extend[r],t,n,a[r])):a[r]=e.extend[r]:Yt(e.extend.extend,t,n,a);else{if(!n)return;var s=n.getRule(e.extend);if(!s)return;if(s===t)return;var l=s.options.parent;l&&Yt(l.rules.raw[e.extend],t,n,a)}}(e,t,n,a),function(e,t,n,a){for(var i in e)"extend"!==i&&(Vt(a[i])&&Vt(e[i])?Yt(e[i],t,n,a[i]):Vt(e[i])?a[i]=Yt(e[i],t,n):a[i]=e[i])}(e,t,n,a),a}const Jt=function(){return{onProcessStyle:function(e,t,n){return"extend"in e?Yt(e,t,n):e},onChangeValue:function(e,t,n){if("extend"!==t)return e;if(null==e||!1===e){for(var a in n[Qt])n.prop(a,null);return n[Qt]=null,null}if("object"==typeof e){for(var i in e)n.prop(i,e[i]);n[Qt]=e}return null}}};var Kt=/\s*,\s*/g,Zt=/&/g,Xt=/\$([\w-]+)/g;const en=function(){function e(e,t){return function(n,a){var i=e.getRule(a)||t&&t.getRule(a);return i?i.selector:a}}function t(e,t){for(var n=t.split(Kt),a=e.split(Kt),i="",o=0;o<n.length;o++)for(var r=n[o],s=0;s<a.length;s++){var l=a[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Zt,r):r+" "+l}return i}function n(e,t,n){if(n)return J({},n,{index:n.index+1});var a=e.options.nestingLevel;a=void 0===a?1:a+1;var i=J({},e.options,{nestingLevel:a,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(a,i,o){if("style"!==i.type)return a;var r,s,l=i,c=l.options.parent;for(var u in a){var d=-1!==u.indexOf("&"),p="@"===u[0];if(d||p){if(r=n(l,c,r),d){var f=t(u,l.selector);s||(s=e(c,o)),f=f.replace(Xt,s);var m=l.key+"-"+u;"replaceRule"in c?c.replaceRule(m,a[u],J({},r,{selector:f})):c.addRule(m,a[u],J({},r,{selector:f}))}else p&&c.addRule(u,{},r).addRule(l.key,a[u],{selector:l.selector});delete a[u]}}return a}}};function tn(e,t){if(!t)return!0;if(Array.isArray(t)){for(var n=0;n<t.length;n++){if(!tn(e,t[n]))return!1}return!0}if(t.indexOf(" ")>-1)return tn(e,t.split(" "));var a=e.options.parent;if("$"===t[0]){var i=a.getRule(t.substr(1));return!!i&&(i!==e&&(a.classes[e.key]+=" "+a.classes[i.key],!0))}return a.classes[e.key]+=" "+t,!0}const nn=function(){return{onProcessStyle:function(e,t){return"composes"in e?(tn(t,e.composes),delete e.composes,e):e}}};var an=/[A-Z]/g,on=/^ms-/,rn={};function sn(e){return"-"+e.toLowerCase()}const ln=function(e){if(rn.hasOwnProperty(e))return rn[e];var t=e.replace(an,sn);return rn[e]=on.test(t)?"-"+t:t};function cn(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:ln(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(cn):t.fallbacks=cn(e.fallbacks)),t}const un=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=cn(e[t]);return e}return cn(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var a=ln(t);return t===a?e:(n.prop(a,e),null)}}};var dn=Pt&&CSS?CSS.px:"px",pn=Pt&&CSS?CSS.ms:"ms",fn=Pt&&CSS?CSS.percent:"%";function mn(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},a={};for(var i in e)a[i]=e[i],a[i.replace(t,n)]=e[i];return a}var hn=mn({"animation-delay":pn,"animation-duration":pn,"background-position":dn,"background-position-x":dn,"background-position-y":dn,"background-size":dn,border:dn,"border-bottom":dn,"border-bottom-left-radius":dn,"border-bottom-right-radius":dn,"border-bottom-width":dn,"border-left":dn,"border-left-width":dn,"border-radius":dn,"border-right":dn,"border-right-width":dn,"border-top":dn,"border-top-left-radius":dn,"border-top-right-radius":dn,"border-top-width":dn,"border-width":dn,"border-block":dn,"border-block-end":dn,"border-block-end-width":dn,"border-block-start":dn,"border-block-start-width":dn,"border-block-width":dn,"border-inline":dn,"border-inline-end":dn,"border-inline-end-width":dn,"border-inline-start":dn,"border-inline-start-width":dn,"border-inline-width":dn,"border-start-start-radius":dn,"border-start-end-radius":dn,"border-end-start-radius":dn,"border-end-end-radius":dn,margin:dn,"margin-bottom":dn,"margin-left":dn,"margin-right":dn,"margin-top":dn,"margin-block":dn,"margin-block-end":dn,"margin-block-start":dn,"margin-inline":dn,"margin-inline-end":dn,"margin-inline-start":dn,padding:dn,"padding-bottom":dn,"padding-left":dn,"padding-right":dn,"padding-top":dn,"padding-block":dn,"padding-block-end":dn,"padding-block-start":dn,"padding-inline":dn,"padding-inline-end":dn,"padding-inline-start":dn,"mask-position-x":dn,"mask-position-y":dn,"mask-size":dn,height:dn,width:dn,"min-height":dn,"max-height":dn,"min-width":dn,"max-width":dn,bottom:dn,left:dn,top:dn,right:dn,inset:dn,"inset-block":dn,"inset-block-end":dn,"inset-block-start":dn,"inset-inline":dn,"inset-inline-end":dn,"inset-inline-start":dn,"box-shadow":dn,"text-shadow":dn,"column-gap":dn,"column-rule":dn,"column-rule-width":dn,"column-width":dn,"font-size":dn,"font-size-delta":dn,"letter-spacing":dn,"text-decoration-thickness":dn,"text-indent":dn,"text-stroke":dn,"text-stroke-width":dn,"word-spacing":dn,motion:dn,"motion-offset":dn,outline:dn,"outline-offset":dn,"outline-width":dn,perspective:dn,"perspective-origin-x":fn,"perspective-origin-y":fn,"transform-origin":fn,"transform-origin-x":fn,"transform-origin-y":fn,"transform-origin-z":fn,"transition-delay":pn,"transition-duration":pn,"vertical-align":dn,"flex-basis":dn,"shape-margin":dn,size:dn,gap:dn,grid:dn,"grid-gap":dn,"row-gap":dn,"grid-row-gap":dn,"grid-column-gap":dn,"grid-template-rows":dn,"grid-template-columns":dn,"grid-auto-rows":dn,"grid-auto-columns":dn,"box-shadow-x":dn,"box-shadow-y":dn,"box-shadow-blur":dn,"box-shadow-spread":dn,"font-line-height":dn,"text-shadow-x":dn,"text-shadow-y":dn,"text-shadow-blur":dn});function gn(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var a=0;a<t.length;a++)t[a]=gn(e,t[a],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=gn(i,t[i],n);else for(var o in t)t[o]=gn(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var r=n[e]||hn[e];return!r||0===t&&r===dn?t.toString():"function"==typeof r?r(t).toString():""+t+r}return t}const bn=function(e){void 0===e&&(e={});var t=mn(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var a in e)e[a]=gn(a,e[a],t);return e},onChangeValue:function(e,n){return gn(n,e,t)}}};var vn={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},yn={position:!0,size:!0},wn={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},xn={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function An(e,t,n,a){return null==n[t]?e:0===e.length?[]:Array.isArray(e[0])?An(e[0],t,n,a):"object"==typeof e[0]?function(e,t,n){return e.map(function(e){return Cn(e,t,n,!1,!0)})}(e,t,a):[e]}function Cn(e,t,n,a,i){if(!wn[t]&&!xn[t])return[];var o=[];if(xn[t]&&(e=function(e,t,n,a){for(var i in n){var o=n[i];if(void 0!==e[i]&&(a||!t.prop(o))){var r,s=kn((r={},r[o]=e[i],r),t)[o];a?t.style.fallbacks[o]=s:t.style[o]=s}delete e[i]}return e}(e,n,xn[t],a)),Object.keys(e).length)for(var r in wn[t])e[r]?Array.isArray(e[r])?o.push(null===yn[r]?e[r]:e[r].join(" ")):o.push(e[r]):null!=wn[t][r]&&o.push(wn[t][r]);return!o.length||i?o:[o]}function kn(e,t,n){for(var a in e){var i=e[a];if(Array.isArray(i)){if(!Array.isArray(i[0])){if("fallbacks"===a){for(var o=0;o<e.fallbacks.length;o++)e.fallbacks[o]=kn(e.fallbacks[o],t,!0);continue}e[a]=An(i,a,vn,t),e[a].length||delete e[a]}}else if("object"==typeof i){if("fallbacks"===a){e.fallbacks=kn(e.fallbacks,t,!0);continue}e[a]=Cn(i,a,t,n),e[a].length||delete e[a]}else""===e[a]&&delete e[a]}return e}const En=function(){return{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var n=0;n<e.length;n++)e[n]=kn(e[n],t);return e}return kn(e,t)}}};function Tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function Sn(e){return function(e){if(Array.isArray(e))return Tn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Tn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Pn="",Bn="",Nn="",In="",_n=ce&&"ontouchstart"in document.documentElement;if(ce){var On={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Ln=document.createElement("p").style;for(var Fn in On)if(Fn+"Transform"in Ln){Pn=Fn,Bn=On[Fn];break}"Webkit"===Pn&&"msHyphens"in Ln&&(Pn="ms",Bn=On.ms,In="edge"),"Webkit"===Pn&&"-apple-trailing-word"in Ln&&(Nn="apple")}var Rn=Pn,Mn=Bn,Dn=Nn,jn=In,zn=_n;var Un={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Rn?"-webkit-"+e:Mn+e)}},$n={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Rn?Mn+"print-"+e:e)}},qn=/[-\s]+(.)?/g;function Hn(e,t){return t?t.toUpperCase():""}function Wn(e){return e.replace(qn,Hn)}function Gn(e){return Wn("-"+e)}var Vn,Qn={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Rn){var n="mask-image";if(Wn(n)in t)return e;if(Rn+Gn(n)in t)return Mn+e}return e}},Yn={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Dn||zn?e:Mn+e)}},Jn={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Mn+e)}},Kn={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Mn+e)}},Zn={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Rn||"ms"===Rn&&"edge"!==jn?Mn+e:e)}},Xn={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Rn||"ms"===Rn||"apple"===Dn?Mn+e:e)}},ea={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Rn?"WebkitColumn"+Gn(e)in t&&Mn+"column-"+e:"Moz"===Rn&&("page"+Gn(e)in t&&"page-"+e))}},ta={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Rn)return e;var n=e.replace("-inline","");return Rn+Gn(n)in t&&Mn+n}},na={supportedProperty:function(e,t){return Wn(e)in t&&e}},aa={supportedProperty:function(e,t){var n=Gn(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Rn+n in t?Mn+e:"Webkit"!==Rn&&"Webkit"+n in t&&"-webkit-"+e}},ia={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Rn?""+Mn+e:e)}},oa={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Rn?Mn+"scroll-chaining":e)}},ra={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},sa={supportedProperty:function(e,t){var n=ra[e];return!!n&&(Rn+Gn(n)in t&&Mn+n)}},la={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ca=Object.keys(la),ua=function(e){return Mn+e},da={supportedProperty:function(e,t,n){var a=n.multiple;if(ca.indexOf(e)>-1){var i=la[e];if(!Array.isArray(i))return Rn+Gn(i)in t&&Mn+i;if(!a)return!1;for(var o=0;o<i.length;o++)if(!(Rn+Gn(i[0])in t))return!1;return i.map(ua)}return!1}},pa=[Un,$n,Qn,Yn,Jn,Kn,Zn,Xn,ea,ta,na,aa,ia,oa,sa,da],fa=pa.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),ma=pa.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,Sn(t.noPrefill)),e},[]),ha={};if(ce){Vn=document.createElement("p");var ga=window.getComputedStyle(document.documentElement,"");for(var ba in ga)isNaN(ba)||(ha[ga[ba]]=ga[ba]);ma.forEach(function(e){return delete ha[e]})}function va(e,t){if(void 0===t&&(t={}),!Vn)return e;if(null!=ha[e])return ha[e];"transition"!==e&&"transform"!==e||(t[e]=e in Vn.style);for(var n=0;n<fa.length&&(ha[e]=fa[n](e,Vn.style,t),!ha[e]);n++);try{Vn.style[e]=""}catch(e){return!1}return ha[e]}var ya,wa={},xa={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Aa=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ca(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var a=t?va(t):", "+va(n);return a||(t||n)}function ka(e,t){var n=t;if(!ya||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var a=e+n;if(null!=wa[a])return wa[a];try{ya.style[e]=n}catch(e){return wa[a]=!1,!1}if(xa[e])n=n.replace(Aa,Ca);else if(""===ya.style[e]&&("-ms-flex"===(n=Mn+n)&&(ya.style[e]="-ms-flexbox"),ya.style[e]=n,""===ya.style[e]))return wa[a]=!1,!1;return ya.style[e]="",wa[a]=n,wa[a]}ce&&(ya=document.createElement("p"));const Ea=function(){function e(t){for(var n in t){var a=t[n];if("fallbacks"===n&&Array.isArray(a))t[n]=a.map(e);else{var i=!1,o=va(n);o&&o!==n&&(i=!0);var r=!1,s=ka(o,Ae(a));s&&s!==a&&(r=!0),(i||r)&&(i&&delete t[n],t[o||n]=s||a)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Rn?e:"@"+Mn+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return ka(t,Ae(e))||e}}};const Ta=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var a={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)a[i[o]]=t[i[o]];return a}}};const Sa=function(e){return void 0===e&&(e={}),{plugins:[Ot(),Rt(e.observable),jt(),Gt(),Jt(),en(),nn(),un(),bn(e.defaultUnit),En(),Ea(),Ta()]}};const Pa=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var Ba=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;Pa(function(e){return Ba.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91});var Na=Tt(Sa()),Ia=function(e){void 0===e&&(e=Na);var t,n=new Map,a=0,i=function(){return(!t||t.rules.index.length>1e4)&&(t=e.createStyleSheet().attach()),t};function o(){var e=arguments,t=JSON.stringify(e),o=n.get(t);if(o)return o.className;var r=[];for(var s in e){var l=e[s];if(Array.isArray(l))for(var c=0;c<l.length;c++)r.push(l[c]);else r.push(l)}for(var u={},d=[],p=0;p<r.length;p++){var f=r[p];if(f){var m=f;if("string"==typeof f){var h=n.get(f);h&&(h.labels.length&&d.push.apply(d,h.labels),m=h.style)}m.label&&-1===d.indexOf(m.label)&&d.push(m.label),Object.assign(u,m)}}delete u.label;var g=(0===d.length?"css":d.join("-"))+"-"+a++;i().addRule(g,u);var b=i().classes[g],v={style:u,labels:d,className:b};return n.set(t,v),n.set(b,v),b}return o.getSheet=i,o}();const _a=Ia;var Oa=Number.MIN_SAFE_INTEGER||-1e9,La=function(){return Oa++},Fa=(0,Q.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!ce}),Ra=new Map,Ma=function(e,t){var n=e.managers;if(n)return n[t]||(n[t]=new St),n[t];var a=Ra.get(t);return a||(a=new St,Ra.set(t,a)),a},Da=function(e){var t=e.sheet,n=e.context,a=e.index,i=e.theme;t&&(Ma(n,a).manage(i),n.registry&&n.registry.add(t))},ja=Tt(Sa()),za=new WeakMap,Ua=function(e){return za.get(e)};var $a=function(e){if(!e.context.disableStylesGeneration){var t=Ma(e.context,e.index),n=t.get(e.theme);if(n)return n;var a=e.context.jss||ja,i=function(e){var t=e.styles;return"function"!=typeof t?t:t(e.theme)}(e),o=Bt(i),r=a.createStyleSheet(i,function(e,t){var n;e.context.id&&null!=e.context.id.minify&&(n=e.context.id.minify);var a=e.context.classNamePrefix||"";e.name&&!n&&(a+=e.name.replace(/\s/g,"-")+"-");var i="";return e.name&&(i=e.name+", "),i+="function"==typeof e.styles?"Themed":"Unthemed",J({},e.sheetOptions,{index:e.index,meta:i,classNamePrefix:a,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}(e,null!==o));return function(e,t){za.set(e,t)}(r,{dynamicStyles:o,styles:i}),t.add(e.theme,r),r}},qa=function(e,t){var n=Ua(e);if(n){var a={};for(var i in n.dynamicStyles)for(var o=e.rules.index.length,r=e.addRule(i,n.dynamicStyles[i]),s=o;s<e.rules.index.length;s++){var l=e.rules.index[s];e.updateOne(l,t),a[r===l?i:l.key]=l}return a}};function Ha(e){return e?Q.useEffect:Q.useInsertionEffect||Q.useLayoutEffect}var Wa={},Ga=function(e,t){void 0===t&&(t={});var n=t,a=n.index,i=void 0===a?La():a,o=n.theming,r=n.name,s=K(n,["index","theming","name"]),l=o&&o.context||se,c={};return function(t){var n=(0,Q.useRef)(!0),a=(0,Q.useContext)(Fa),o=function(t){return"function"==typeof e&&(t||(0,Q.useContext)(l))||Wa}(t&&t.theme),u=(0,Q.useMemo)(function(){var n=$a({context:a,styles:e,name:r,theme:o,index:i,sheetOptions:s});return n&&a.isSSR&&Da({index:i,context:a,sheet:n,theme:o}),[n,n?qa(n,t):null]},[a,o]),d=u[0],p=u[1];Ha(a.isSSR)(function(){d&&p&&!n.current&&function(e,t,n){for(var a in n)t.updateOne(n[a],e)}(t,d,p)},[t]),Ha(a.isSSR)(function(){return d&&Da({index:i,context:a,sheet:d,theme:o}),function(){d&&(function(e){e.sheet&&Ma(e.context,e.index).unmanage(e.theme)}({index:i,context:a,sheet:d,theme:o}),p&&function(e,t){for(var n in t)e.deleteRule(t[n])}(d,p))}},[d]);var f=(0,Q.useMemo)(function(){return d&&p?function(e,t){if(!t)return e.classes;var n=Ua(e);if(!n)return e.classes;var a={};for(var i in n.styles)a[i]=e.classes[i],i in t&&(a[i]+=" "+e.classes[t[i].key]);return a}(d,p):c},[d,p]);return(0,Q.useDebugValue)(f),(0,Q.useDebugValue)(o===Wa?"No theme":o),(0,Q.useEffect)(function(){n.current=!1}),f}};Symbol("react-jss-styled"),function(e){void 0===e&&(e=_a)}();var Va=["second","minute","hour","day","week","month","year"];var Qa=["秒","分钟","小时","天","周","个月","年"];var Ya={},Ja=function(e,t){Ya[e]=t},Ka=[60,60,24,7,365/7/12,12];function Za(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}var Xa=function(e,t,n){var a=function(e,t){return(+(t?Za(t):new Date)-+Za(e))/1e3}(e,n&&n.relativeDate);return function(e,t){for(var n=e<0?1:0,a=e=Math.abs(e),i=0;e>=Ka[i]&&i<Ka.length;i++)e/=Ka[i];return(e=Math.floor(e))>(0==(i*=2)?9:1)&&(i+=1),t(e,i,a)[n].replace("%s",e.toString())}(a,function(e){return Ya[e]||Ya.en_US}(t))};Ja("en_US",function(e,t){if(0===t)return["just now","right now"];var n=Va[Math.floor(t/2)];return e>1&&(n+="s"),[e+" "+n+" ago","in "+e+" "+n]}),Ja("zh_CN",function(e,t){if(0===t)return["刚刚","片刻后"];var n=Qa[~~(t/2)];return[e+" "+n+"前",e+" "+n+"后"]});const ei={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"},ti=({value:e,className:t})=>{if(!e)return null;const n=e.toLocaleDateString(void 0,ei),a=Xa(e);return Q.createElement("p",{className:t},a," · ",n)};function ni(e){return"LinkAttribution"===e.discriminator}const ai=({to:e})=>ni(e)?Q.createElement("a",{href:e.uri},e.uri):"PersonAttribution"===e.discriminator?Q.createElement(ii,{...e}):null,ii=({webId:e,name:t,imageSrc:n})=>Q.createElement(Q.Fragment,null,n&&Q.createElement("img",{height:"47",width:"47",alt:t,src:n}),Q.createElement("a",{href:e},t)),oi=Ga({card:{fontFamily:"sans-serif",display:"flex",flexWrap:"wrap",borderRadius:"4px",flexDirection:"column",justifyContent:"center",padding:"1em",boxShadow:"0 1px 5px rgba(0,0,0,0.2)",transition:"all .25s ease-in-out",maxWidth:632},content:{fontSize:"larger"},date:{color:"rgb(0, 0, 0, 60%)"},attribution:{display:"flex",alignItems:"center",fontWeight:"bold","& a":{color:"black",textDecoration:"none"},"& a:hover":{textDecoration:"underline"},"& img":{marginRight:5,width:47,borderRadius:5}}}),ri=({content:e,published:t,attributedTo:n})=>{const a=oi();return Q.createElement("div",{className:a.card},Q.createElement("div",{className:a.attribution},Q.createElement(ai,{to:n})),Q.createElement("p",{className:a.content},e),Q.createElement(ti,{className:a.date,value:t}))};function si(t,n){if(t instanceof y.NamedNode){return function(t){const n=e.ns.as("Person").uri,a=e.ns.foaf("Person").uri,i=e.ns.vcard("Individual").uri,o=e.ns.schema("Person").uri;return t[n]||t[a]||t[i]||t[o]}(n.findTypeURIs(t))?function(t,n){const a=t.anyValue(n,e.ns.as("name"))||t.anyValue(n,e.ns.foaf("name"))||t.anyValue(n,e.ns.vcard("fn"))||t.anyValue(n,e.ns.schema("name"))||"",i=function(t,n){const a=t.anyValue(n,e.ns.as("image"));if(a)return t.anyValue((0,y.sym)(a),e.ns.as("url"))||void 0;return t.anyValue(n,e.ns.foaf("img"))||t.anyValue(n,e.ns.vcard("hasPhoto"))||void 0}(t,n);return{discriminator:"PersonAttribution",webId:n.uri,name:a,imageSrc:i}}(n,t):{discriminator:"LinkAttribution",uri:t.uri}}return{discriminator:"NoAttribution"}}function li(t,n){const a=n.any(t,e.ns.as("content")),i=n.any(t,e.ns.as("published")),o=function(t,n){return si(n.any(t,e.ns.as("attributedTo")),n)}(t,n);return a?{content:a.value,published:i&&new Date(i.value),attributedTo:o}:null}const ci=(e,t)=>{const[n,a]=(0,Q.useState)(li(e,t));return(0,Q.useEffect)(()=>{!async function(){if(ni(n.attributedTo)){const e=await async function(e,t){const n=(0,y.sym)(e.uri);return await t.fetcher.load(n),si(n,t)}(n.attributedTo,t);a({...n,attributedTo:e})}}()},[]),n},ui=({subject:e,context:t})=>{const n=t.session.store,a=ci(e,n);return Q.createElement(ri,{...a})},di={global:!1,icon:e.icons.iconBase+"noun_15695.svg",name:"activitystreams",label:function(t,n){return n.session.store.findTypeURIs(t)[e.ns.as("Note").uri]?"Note":null},render:(e,t)=>function(e){const t=document.createElement("div");return t.style.padding="1em",(0,Y.createRoot)(t).render(e),t}(Q.createElement(ui,{subject:e,context:t}))},pi=di;var fi=o(649),mi={};mi.styleTagTransform=g(),mi.setAttributes=p(),mi.insert=u().bind(null,"head"),mi.domAPI=l(),mi.insertStyleElement=m();i()(fi.A,mi);fi.A&&fi.A.locals&&fi.A.locals;const hi={icon:e.icons.iconBase+"noun_79217.svg",name:"pad",audience:[e.ns.solid("PowerUser")],label:function(e,t){return t.session.store.findTypeURIs(e)["http://www.w3.org/ns/pim/pad#Notepad"]?"pad":null},mintClass:e.ns.pad("Notepad"),mintNew:function(t,n){const a=t.session.store,i=a.updater;if(n.me&&!n.me.uri)throw new Error("notepad mintNew: Invalid userid");const o=n.newInstance=n.newInstance||a.sym(n.newBase+"index.ttl#this"),r=o.doc();a.add(o,e.ns.rdf("type"),e.ns.pad("Notepad"),r),a.add(o,e.ns.dc("title"),"Shared Notes",r),a.add(o,e.ns.dc("created"),new Date,r),n.me&&a.add(o,e.ns.dc("author"),n.me,r);const s=a.sym(o.uri+"_line0");return a.add(o,e.ns.pad("next"),s,r),a.add(s,e.ns.pad("next"),o,r),a.add(s,e.ns.dc("author"),n.me,r),a.add(s,e.ns.sioc("content"),"",r),new Promise(function(e,t){i?i.put(r,a.statementsMatching(void 0,void 0,void 0,r),"text/turtle",function(a,i,o){i?e(n):t(new Error("FAILED to save new tool at: "+a+" : "+o))}):t(new Error("Have no updater"))})},render:function(n,a,i){const o=a.dom,r=a.session.store,s=function(t,n){t||k.appendChild(e.widgets.errorMessageBlock(o,n,"pink"))},l=function(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e},c=function(t,n,a){const i=(0,y.graph)(),o=(0,y.Namespace)("http://www.w3.org/ns/auth/acl#");let r=i.sym(n+"#a1");const s=i.sym(n),l=i.sym(t);return i.add(r,e.ns.rdf("type"),o("Authorization"),s),i.add(r,o("accessTo"),l,s),i.add(r,o("agent"),v,s),i.add(r,o("mode"),o("Read"),s),i.add(r,o("mode"),o("Write"),s),i.add(r,o("mode"),o("Control"),s),r=i.sym(n+"#a2"),i.add(r,e.ns.rdf("type"),o("Authorization"),s),i.add(r,o("accessTo"),l,s),i.add(r,o("agentClass"),e.ns.foaf("Agent"),s),i.add(r,o("mode"),o("Read"),s),a&&i.add(r,o("mode"),o("Write"),s),(0,y.serialize)(s,i,n,"text/turtle")},u=function(e,t,n){const a=r.any((0,y.sym)(e),(0,y.sym)("http://www.iana.org/assignments/link-relations/acl"));if(!g)throw new Error("Have no fetcher");if(a){const i=c(e,a.uri,t);return g.webOperation("PUT",a.uri,{data:i,contentType:"text/turtle"}).then(()=>n(!0)).catch(e=>{n(!1,e.message)})}return g.load(e).catch(e=>{n(!1,"Getting headers for ACL: "+e)}).then(()=>{const n=r.any((0,y.sym)(e),(0,y.sym)("http://www.iana.org/assignments/link-relations/acl"));if(!n)throw new Error("No Link rel=ACL header for "+e);const a=c(e,n.uri,t);return g.webOperation("PUT",n.uri,{data:a,contentType:"text/turtle"})}).then(()=>n(!0)).catch(e=>{n(!1,e.message)})},d=function(t,n,a){const i=l(n);i.appendChild(e.login.newAppInstance(o,{noun:"notepad"},(e,t)=>p(new y.NamedNode(e||t)))),i.appendChild(o.createElement("hr"));i.appendChild(o.createElement("p")).textContent="Where would you like to store the data for the "+a+"? Give the URL of the directory where you would like the data stored.";const r=i.appendChild(o.createElement("input"));r.setAttribute("type","text"),r.size=80,r.label="base URL",r.autocomplete="on",i.appendChild(o.createElement("br"));const s=i.appendChild(o.createElement("button"));s.textContent="Start new "+a+" at this URI",s.addEventListener("click",function(e){let n=r.value;"/"!==n.slice(-1)&&(n+="/"),f(t,n)})},p=function(t){let n=r.any(t,e.ns.space("uriPrefix"));n=n?n.value:t.uri.split("#")[0],"/"!==n.slice(-1)&&(y.log.error(h+": No / at end of uriPrefix "+n),n+="/");const a=new Date;n+=h+"/id"+a.getTime()+"/",f(x,n)},f=function(n,a){const i=(0,y.sym)(n.uri.split("#")[0]),l=r.sym(a+"pad.ttl"),c=r.sym(a+"index.html"),d=[{local:"index.html",contentType:"text/html"}],p=r.sym(l.uri+"#thisPad"),f=[];let m;for(m=0;m<d.length;m++){const e=function(e){f.push(function(){const n=a+e.local;console.log("Copying "+i+e.local+" to "+n);if(!r.fetcher)throw new Error("Store has no fetcher");r.fetcher.webCopy(i+e.local,a+e.local,e.contentType).then(()=>t.authn.checkUser()).then(e=>{v=e,u(n,!1,function(e,t){e?f.shift()():(s(e,"FAILED to set ACL "+n+" : "+t),console.log("FAILED to set ACL "+n+" : "+t))})}).catch(t=>{console.log("FAILED to copy "+i+e.local+" : "+t.message),s(!1,"FAILED to copy "+i+e.local+" : "+t.message)})})};e(d[m])}f.push(function(){if(r.add(p,e.ns.rdf("type"),w("Notepad"),l),r.add(p,e.ns.dc("created"),new Date,l),v&&r.add(p,e.ns.dc("author"),v,l),r.add(p,w("next"),p,l),r.add(p,e.ns.space("inspiration"),n,A),r.add(p,e.ns.space("inspiration"),n,l),!b)throw new Error("Have no updater");b.put(l,r.statementsMatching(void 0,void 0,void 0,l),"text/turtle",function(e,t,n){t?f.shift()():(s(t,"FAILED to save new notepad at: "+l.uri+" : "+n),console.log("FAILED to save new notepad at: "+l.uri+" : "+n))})}),f.push(function(){u(l.uri,!0,function(e,t){s(e,"Failed to set Read-Write ACL on pad data file: "+t),e&&f.shift()()})}),f.push(function(){const e=k.appendChild(o.createElement("p"));e.classList.add("padPaneSuccess"),e.innerHTML="Your <a href='"+c.uri+"'><b>new notepad</b></a> is ready. <br/><br/><a href='"+c.uri+"'>Go to new pad</a>"}),f.shift()()},m=function(a){console.log("showResults()"),v=t.authn.currentUser(),t.authn.checkUser().then(e=>{v=e});const s=r.any(n,e.ns.dc("title"))||r.any(n,e.ns.vcard("fn"));(null==i?void 0:i.solo)&&"undefined"!=typeof window&&s&&(window.document.title=s.value),F.exists=a,C=e.pad.notepad(o,A,n,v,F),S.appendChild(C);const l=r.any(n,e.ns.meeting("parentMeeting"))||n;if(e.pad.manageParticipation(o,N,A,l,v,F),!r.updater)throw new Error("Store has no updater");r.updater.setRefreshHandler(A,C.reloadAndSync)},h="app-pad.timbl.com",g=r.fetcher,b=r.updater;let v;const w=(0,y.Namespace)("http://www.w3.org/ns/pim/pad#"),x=n,A=n.doc();let C;const k=o.createElement("div"),E=k.appendChild(o.createElement("table"));E.classList.add("padPaneTable");const T=E.appendChild(o.createElement("tr"));T.appendChild(o.createElement("td")),T.appendChild(o.createElement("td")),T.appendChild(o.createElement("td"));const S=E.appendChild(o.createElement("tr")).appendChild(o.createElement("td"));S.setAttribute("colspan","3");const P=E.appendChild(o.createElement("tr")),B=P.appendChild(o.createElement("td")),N=P.appendChild(o.createElement("td")),I=P.appendChild(o.createElement("td")),_=E.appendChild(o.createElement("tr")).appendChild(o.createElement("div")),O=E.appendChild(o.createElement("tr")).appendChild(o.createElement("div")),L=E.appendChild(o.createElement("tr"));L.classList.add("naviMenu"),L.appendChild(o.createElement("td")),L.appendChild(o.createElement("td")),L.appendChild(o.createElement("td"));const F={statusArea:_,timingArea:B};return function(){if(!g)throw new Error("Have no fetcher");g.nowOrWhenFetched(A.uri,void 0,function(t,a,i){if(t)l(S),r.holds(n,e.ns.rdf("type"),e.ns.wf("TemplateInstance"))&&d(n,S,"pad"),m(!0),I.appendChild(function(){const e=k.appendChild(o.createElement("button"));return e.textContent="Start another pad",e.addEventListener("click",function(){return d(n,O,"pad")}),e}());else if(404===i.status){if(console.log("Initializing results file "+A),!b)throw new Error("Have no updater");b.put(A,[],"text/turtle",function(e,t,n){t?(l(S),m(!1)):(s(t,"FAILED to create results file at: "+A.uri+" : "+n),console.log("FAILED to craete results file at: "+A.uri+" : "+n))})}else s(t,"FAILED to read results file: "+a)})}(),k}},gi=hi,bi=e.ns,vi={icon:e.icons.iconBase+"noun_106746.svg",name:"transaction",audience:[bi.solid("PowerUser")],label:function(t,n){const a=n.session.store,i=a.findTypeURIs(t);return i["http://www.w3.org/2000/10/swap/pim/qif#Transaction"]?"$$":a.any(t,e.ns.qu("amount"))?"$$$":i["http://www.w3.org/ns/pim/trip#Trip"]?"Trip $":null},render:function(t,n){const a=n.dom,i=n.session.store,o=i.fetcher,r=y.Namespace("http://www.w3.org/2000/10/swap/pim/qif#"),s=y.Namespace("http://www.w3.org/ns/pim/trip#"),l=a.createElement("div");l.setAttribute("class","transactionPane");const c=function(e){return function(e,t){void 0===t&&(t="color: grey");const n=a.createElement("pre");n.setAttribute("style",t),l.appendChild(n),n.appendChild(a.createTextNode(e))}(e,"color: #100; background-color: #fee")},u=i.statementsMatching(t),d=i.statementsMatching(void 0,void 0,t),p=i.findTypeURIs(t),f={},m=function(e){f[e.uri]=!0},h=function(e){if(void 0===e)return"";const t=""+e;return t.indexOf(".")>=0?t.split(".")[0]+"."+(t.split(".")[1]+"00").slice(0,2):t+".00"},g=function(e,t){const n=a.createElement("td");return 0+e===0&&t||(n.textContent=h(e)),n.setAttribute("style","width: 6em; text-align: right; "),n},b=function(e){const t=a.createElement("th");return t.textContent=e,t.setAttribute("style","text-align: right; "),t},v=function(e,t){const n=i.any(e,bi.qu("date")),a=i.any(t,bi.qu("date"));if(void 0!==n&&void 0!==a){if(n.value<a.value)return-1;if(n.value>a.value)return 1}return e.uri<t.uri?-1:e.uri>t.uri?1:0},w=function(e,t,a,i,o){t.expanded?(t.parentNode.removeChild(t.expanded),t.expanded=!1):function(e,t,a,i,o){const r=t.parentNode.children;if(o)for(let e=r.length-1;e>=0;e--)r[e].expanded&&(r[e].parentNode.removeChild(r[e].expanded),r[e].expanded=!1);const s=e.createElement("tr"),l=s.appendChild(e.createElement("td"));l.setAttribute("style","width: 98%; padding: 1em; border: 0.1em solid grey;");const c=t.children.length;t.nextSibling?t.parentNode.insertBefore(s,t.nextSibling):t.parentNode.appendChild(s),t.expanded=s,l.setAttribute("colspan",""+c),l.appendChild(function(e,t,n){const a=e.session.paneRegistry.byName(n).render(t,e);return a.setAttribute("style","border: 0.1em solid green;"),a}(n,a,i))}(e,t,a,i,o)};if(p["http://www.w3.org/2000/10/swap/pim/qif#Transaction"]||i.any(t,bi.qu("toAccount"))){m(bi.rdf("type"));const p=i.any(t,e.ns.qu("toAccount"));!function(t){let n="padding: 0.5em 1.5em 1em 1.5em; ";if(t){const a=i.any(t,e.ns.ui("backgroundColor"));a&&(n+="background-color: "+a.value+"; ")}l.setAttribute("style",n)}(p),p||c("(Error: There is no bank account known for this transaction <"+t.uri+">,\n -- every transaction needs one.)");let h=null;const g=i.any(t,e.ns.qu("accordingTo"));void 0===g?c("(Error: There is no back link to the original data source foir this transaction <"+t.uri+">,\nso I can't tell how to annotate it.)"):(h=void 0!==g?i.any(g,e.ns.qu("annotationStore")):null,void 0===h&&c("(There is no annotation document for this statement\n<"+g.uri+">,\nso you cannot classify this transaction.)"));const b=a.createElement("div");b.setAttribute("style","float:right"),l.appendChild(b);const v=function(n,o){m(n);const r=i.any(t,n);if(!r)return;const s=a.createElement("a");s.setAttribute("href",r.uri),s.setAttribute("style","float:right"),b.appendChild(s).textContent=o||e.utils.label(r),b.appendChild(a.createElement("br"))};v(e.ns.qu("toAccount")),v(e.ns.qu("accordingTo"),"Statement"),v(s("trip"));const w=a.createElement("table");l.appendChild(w);const x=["date","payee","amount","in_USD","currency"].map(r).map(function(n){m(n);const a=i.any(t,n),o=a?e.utils.labelForXML(a):"";return'<tr><td style="text-align: right; padding-right: 0.6em">'+e.utils.labelForXML(n)+'</td><td style="font-weight: bold;">'+o+"</td></tr>"}).join("\n");w.innerHTML=x;const A=function(e,t){e||c("Sorry, failed to save your change:\n"+t)};h&&i.fetcher.nowOrWhenFetched(h.uri,t,function(r,p){r||c("Cannot load store "+h+" "+p);const g=i.any(h,bi.qu("calendarYear")),b=function(){l.insertBefore(e.widgets.makeSelectForNestedCategory(a,i,t,e.ns.qu("Classified"),h,A),w.nextSibling)};i.any(void 0,bi.rdfs("subClassOf"),bi.qu.Classified)?b():g?o.load(g).then(function(e){o.load(i.each(g,bi.rdfs("seeAlso"))).then(function(){b()}).catch(function(e){console.log("Error loading background data: "+e)})}).catch(function(e){console.log("Error loading calendarYear: "+e)}):console.log("Can't get categories, because no calendarYear"),l.appendChild(e.widgets.makeDescription(a,i,t,e.ns.rdfs("comment"),h,A));let v=i.statementsMatching(void 0,s("trip"),void 0,h).map(function(e){return e.object});const x=i.each(void 0,e.ns.rdf("type"),s("Trip"));v=v.concat(x).sort();v=function(e,t,n,a){const i=t.map(function(t){let a=e.any(t,n);return a=a?a.value:"9999-12-31",[a,t]});return i.sort(),a&&i.reverse(),i.map(function(e){return e[1]})}(i,v,e.ns.cal("dtstart"),!0),v.length>1&&l.appendChild(e.widgets.makeSelectForOptions(a,i,t,s("trip"),v,{multiple:!1,nullLabel:"-- what trip? --",mint:"New Trip *",mintClass:s("Trip"),mintStatementsFun:function(t){const n=[];return n.push(y.st(t,e.ns.rdf("type"),s("Trip"),t.doc())),n}},h,A)),l.appendChild(a.createElement("br"));const C=n.getOutliner(a);m(bi.rdfs("comment")),e.widgets.attachmentList(a,t,l),m(bi.wf("attachment")),l.appendChild(a.createElement("tr")).setAttribute("style","height: 1em"),C.appendPropertyTRs(l,u,!1,function(e,t){return!(e.uri in f)}),C.appendPropertyTRs(l,d,!0,function(e,t){return!(e.uri in f)})})}else if(p["http://www.w3.org/ns/pim/trip#Trip"]){const n=function(){const n={},o={},r={},u=i.each(void 0,s("trip"),t),d=u.map(function(e){return e.doc()});i.fetcher.load(d).then(function(){u.forEach(function(t){const a=i.the(t,bi.qu("date")),s=a?(""+a.value).slice(0,4):"????";let l=i.the(t,bi.rdf("type"));if(l||(l=e.ns.qu("ErrorNoType")),l&&l.uri){const a=l.uri;o[s]||(o[s]=0),r[s]||(r[s]={}),n[a]||(n[a]=0),r[s][a]||(r[s][a]=0);const u=i.any(t,e.ns.qu("in_USD"));if(u||c("@@ No amount in USD: "+u+" for "+t),u){const e=parseFloat(u.value);n[a]+=e,r[s][a]+=e,o[s]+=e}}});const s=[];let d=0;const p=[];let f;for(const e in r)Object.prototype.hasOwnProperty.call(r,e)&&p.push(e);p.sort();const m=p.length;let y;const x=l.appendChild(a.createElement("table"));if(x.setAttribute("style","font-size: 120%; margin-left:auto; margin-right:1em; margin-top: 1em; border: 0.05em solid gray; padding: 1em;"),m>1){const e=x.appendChild(a.createElement("tr"));for(e.appendChild(b("")),f=0;f<m;f++)e.appendChild(b(p[f]));e.appendChild(b("total"))}for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(s.push(e),d+=n[e]);let A,C,k;s.sort();for(let t=0;t<s.length;t++){const o=i.sym(s[t]);if(A=x.appendChild(a.createElement("tr")),C=A.appendChild(a.createElement("td")),C.textContent=e.utils.label(o),m>1)for(f=0;f<m;f++)k=r[p[f]][s[t]],y=A.appendChild(g(k,!0));A.appendChild(g(n[s[t]],!0))}if(s.length>1){if(A=x.appendChild(a.createElement("tr")),A.appendChild(b("total")),m>1)for(f=0;f<m;f++)k=o[p[f]],y=A.appendChild(g(k?h(k):""));y=A.appendChild(g(d)),y.setAttribute("style","font-weight: bold; text-align: right;")}const E=function(t,n,a){const o=t.createElement("table");o.setAttribute("style","padding-left: 0.5em; padding-right: 0.5em; font-size: 9pt; width: 85%;");const r=function(t,n){const a=t.createElement("tr"),o=i.any(n,bi.qu("toAccount"));!function(t,n){let a="'padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.1em;";if(n){const t=i.any(n,e.ns.ui("backgroundColor"));t&&(a+="background-color: "+t.value+"; ")}t.setAttribute("style",a)}(a,o);const r=a.appendChild(t.createElement("td")),s=i.any(n,bi.qu("date"));r.textContent=s?s.value.slice(0,10):"???",r.setAttribute("style","width: 7em;");const l=a.appendChild(t.createElement("td"));l.setAttribute("style","width: 36em;");const c=i.any(n,bi.qu("payee"));l.textContent=c?c.value:"???";const u=l.appendChild(t.createElement("a"));u.textContent=" ➜",u.setAttribute("href",n.uri);const d=a.appendChild(t.createElement("td")),p=i.any(n,bi.qu("in_USD"));return d.textContent=p?h(p.value):"???",d.setAttribute("style","width: 6em; text-align: right; "),a.addEventListener("click",function(e){w(t,a,n,"transaction",!e.shiftKey)},!1),a},s=a?n.filter(a):n.slice();s.sort(v);for(let e=0;e<s.length;e++)o.appendChild(r(t,s[e]));return o}(a,u);E.setAttribute("style","margin-left:auto; margin-right:1em; margin-top: 1em; border: padding: 1em;"),l.appendChild(E),e.widgets.attachmentList(a,t,l)}).catch(function(e){c("Error loading transactions: "+e)})};n()}return l}},yi=e.ns,wi={icon:e.icons.iconBase+"noun_142708.svg",name:"period",audience:[yi.solid("PowerUser")],label:function(e,t){return t.session.store.findTypeURIs(e)["http://www.w3.org/2000/10/swap/pim/qif#Period"]?"period":null},render:function(t,n){const a=n.dom,i=n.session.store,o=e.ns,r=a.createElement("div");r.setAttribute("class","periodPane");const s=function(e,t){t||(t="color: grey;");const n=a.createElement("pre");n.setAttribute("style",t),r.appendChild(n),n.appendChild(a.createTextNode(e))},l=function(e){return s("✓ "+e,"color: #010; background-color: #efe")},c=function(e){return s(e,"color: #100; background-color: #fee")},u=function(){const s=i.any(t,o.cal("dtstart"));void 0===s&&c("(Error: There is no start date known for this period <"+t.uri+">,\n -- every period needs one.)");const u=i.any(t,o.cal("dtend"));void 0===u&&c("(Error: There is no end date known for this period <"+t.uri+">,\n -- every period needs one.)");const d={};var p;p=o.rdf("type"),d[p.uri]=!0;const f=function(e){return!!((t=i.any(e,o.qu("date")))&&t>=s&&t<u);var t},m=function(e,t){const n=i.any(e,o.qu("date")),a=i.any(t,o.qu("date"));if(void 0!==n&&void 0!==a){if(n.value<a.value)return-1;if(n.value>a.value)return 1}return e.uri<t.uri?-1:e.uri>t.uri?1:0};r.appendChild(a.createElement("h2")).textContent="Period "+s.value.slice(0,10)+" - "+u.value.slice(0,10);const h=function(e,t,a,i,o){t.expanded?(t.parentNode.removeChild(t.expanded),t.expanded=!1):function(e,t,a,i,o){const r=t.parentNode.children;if(o)for(let e=r.length-1;e>=0;e--)r[e].expanded&&(r[e].parentNode.removeChild(r[e].expanded),r[e].expanded=!1);const s=e.createElement("tr"),l=s.appendChild(e.createElement("td"));l.setAttribute("style","width: 98%; padding: 1em; border: 0.1em solid grey;");const c=t.children.length;t.nextSibling?t.parentNode.insertBefore(s,t.nextSibling):t.parentNode.appendChild(s),t.expanded=s,l.setAttribute("colspan",""+c),l.appendChild(function(e,t,n){const a=e.session.paneRegistry.byName(n).render(t,e);return a.setAttribute("style","border: 0.1em solid green;"),a}(n,a,i))}(e,t,a,i,o)},g=function(t,n){const a=t.createElement("table");a.setAttribute("style","margin-left: 100; font-size: 9pt; width: 85%;");const r=function(t,n){const a=t.createElement("tr"),r=i.any(n,o.qu("toAccount"));!function(t,n){let a="margin-left: 8em; padding-left: 5em;";if(n){const t=i.any(n,e.ns.ui("backgroundColor"));t&&(a+="background-color: "+t.value+"; ")}t.setAttribute("style",a)}(a,r);const s=a.appendChild(t.createElement("td")),l=i.any(n,o.qu("date"));s.textContent=l?l.value.slice(0,10):"???",s.setAttribute("style","width: 7em;");const c=a.appendChild(t.createElement("td"));c.setAttribute("style","width: 36em;");const u=i.any(n,o.qu("payee"));c.textContent=u?u.value:"???";const d=c.appendChild(t.createElement("a"));d.textContent=" ➜",d.setAttribute("href",n.uri);const p=a.appendChild(t.createElement("td")),f=i.any(n,o.qu("in_USD"));return p.textContent=f?function(e){const t=""+e;return t.indexOf(".")>=0?t.split(".")[0]+"."+(t.split(".")[1]+"00").slice(0,2):t+".00"}(f.value):"???",p.setAttribute("style","width: 6em; text-align: right; "),a.addEventListener("click",function(e){h(t,a,n,"transaction",!e.shiftKey)},!1),a},s=n.filter(f);s.sort(m);for(let e=0;e<s.length;e++)a.appendChild(r(t,s[e]));return a},b={"http://www.w3.org/2000/10/swap/pim/qif#Transaction":!0,"http://www.w3.org/2000/10/swap/pim/qif#Unclassified":!0,"http://www.w3.org/2000/10/swap/pim/qif#UnclassifiedOutgoing":!0,"http://www.w3.org/2000/10/swap/pim/qif#UnclassifiedIncome":!0},v=i.findMemberURIs(o.qu("Transaction")),y=[],w=[];let x,A,C,k;for(const e in v)if(Object.prototype.hasOwnProperty.call(v,e)){A=i.sym(e);const t=i.each(A,o.rdf("type"));let n=!1;for(let e=0;e<t.length;e++){void 0===b[t[e].uri]&&(n=!0)}n||(x=i.any(A,o.qu("in_USD")),void 0===x&&(x=i.any(A,o.qu("amount"))),x&&(""+x.value).indexOf("-")>=0?w.push(i.sym(e)):y.push(i.sym(e)))}y.length?(C=g(a,y),k=C.children.length,r.appendChild(a.createElement("h3")).textContent="Unclassified Income"+(k<4?"":" ("+k+")"),r.appendChild(C)):l("No unclassified income"),w.length?(C=g(a,w),k=C.children.length,r.appendChild(a.createElement("h3")).textContent="Unclassified Outgoings"+(k<4?"":" ("+k+")"),r.appendChild(C)):l("No unclassified outgoings ");const E=function(t,n){const s=function(e){const t=i.findSubClassesNT(o.qu("Transaction"));for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&n.slice(1,-1).split("#")[1]===e)return i.sym(n.slice(1,-1));return null}(t);let l;const u=[];let d=0;if(!s)return c("Error: No category correspnding to "+t),null;const p=i.each(void 0,o.rdf("type"),s);for(let e=0;e<p.length;e++)i.any(p[e],n)||u.push(p[e]);return u.length&&(l=g(a,u),d=l.children.length,r.appendChild(a.createElement("h3")).textContent=e.utils.label(s)+" with no "+e.utils.label(n)+(d<4?"":" ("+d+")"),r.appendChild(l)),d};0===E("Reimbursables",o.trip("trip"))&&l("Reimbursables all have trips"),0===E("Other_Inc_Speaking",o.trip("trip"))&&l("Speaking income all has trips")};if(i.findTypeURIs(t)["http://www.w3.org/2000/10/swap/pim/qif#Period"]){const e=i.each(t,o.rdfs("seeAlso"));console.log("Loading before render: "+e.length),i.fetcher.load(e).then(function(){u()})}return r}};var xi=o(1927),Ai=o.n(xi);const Ci={icon:e.icons.iconBase+"noun_688606.svg",name:"tabbed",audience:[e.ns.solid("PowerUser")],label:(t,n)=>{const a=n.session.store.findTypeURIs(t);return e.ns.meeting("Cluster").uri in a?"Tabbed":null},render:(t,n)=>{const a=n.dom,i=n.session.store,o=a.createElement("div");return(async()=>{if(!i.fetcher)throw new Error("Store has no fetcher");await i.fetcher.load(t),o.appendChild(e.tabs.tabWidget({dom:a,subject:t,predicate:i.any(t,e.ns.meeting("predicate"))||e.ns.meeting("toolList"),ordered:!0,orientation:i.anyValue(t,e.ns.meeting("orientation"))||"0",renderMain:(e,t)=>{e.innerHTML="";const a=e.appendChild(n.dom.createElement("table"));n.getOutliner(n.dom).GotoSubject(t,!0,null,!1,void 0,a)},renderTab:(a,o)=>{const r=i.the(t,e.ns.meeting("predicate"));a.appendChild(e.widgets.personTR(n.dom,r,o,{}))},backgroundColor:i.anyValue(t,e.ns.ui("backgroundColor"))||"#ddddcc"}))})(),o}},ki=Ci;var Ei=o(7052);const Ti=e.ns,Si=[Ti.sched("No"),Ti.sched("Maybe"),Ti.sched("Yes")],Pi={icon:e.icons.iconBase+"noun_346777.svg",name:"schedule",audience:[Ti.solid("PowerUser")],label:function(e,t){return t.session.store.findTypeURIs(e)["http://www.w3.org/ns/pim/schedule#SchedulableEvent"]?"Scheduling poll":null},mintClass:Ti.sched("SchedulableEvent"),mintNew:function(n,a){return new Promise(function(i,o){const r=e.ns,s=n.session.store;let l=a.newBase;const c=a.useExisting||y.sym(a.newBase+"index.ttl#this"),u=function(e,t){e||(console.log("Error in Schedule Pane: Error constructing new scheduler: "+t),o(new Error(t)))},d=function(t,n,a){const i=y.graph(),o=y.Namespace("http://www.w3.org/ns/auth/acl#");let s=i.sym(n+"#a1");const l=i.sym(n),c=i.sym(t);return i.add(s,e.ns.rdf("type"),o("Authorization"),l),i.add(s,o("accessTo"),c,l),i.add(s,o("agent"),h,l),i.add(s,o("mode"),o("Read"),l),i.add(s,o("mode"),o("Write"),l),i.add(s,o("mode"),o("Control"),l),s=i.sym(n+"#a2"),i.add(s,e.ns.rdf("type"),o("Authorization"),l),i.add(s,o("accessTo"),c,l),i.add(s,o("agentClass"),r.foaf("Agent"),l),i.add(s,o("mode"),o("Read"),l),a&&i.add(s,o("mode"),o("Write"),l),y.serialize(l,i,n,"text/turtle")},p=function(e,t,n){const a=s.any(s.sym(e),s.sym("http://www.iana.org/assignments/link-relations/acl"));if(a){const i=d(e,a.uri,t);return f.webOperation("PUT",a.uri,{data:i,contentType:"text/turtle"}).then(e=>n(!0)).catch(e=>{n(!1,e.message)})}return f.load(e).catch(e=>{n(!1,"Getting headers for ACL: "+e)}).then(()=>{const n=s.any(s.sym(e),s.sym("http://www.iana.org/assignments/link-relations/acl"));if(!n)throw new Error("No Link rel=ACL header for "+e);const a=d(e,n.uri,t);return f.webOperation("PUT",n.uri,{data:a,contentType:"text/turtle"})}).then(e=>n(!0)).catch(e=>{n(!1,e.message)})},f=s.fetcher,m=s.updater;let h=a.me||t.authn.currentUser();if(!h)return console.log("MUST BE LOGGED IN"),void alert("NOT LOGGED IN");const g=c.dir().uri;let b,v;if(a.useExisting){if(v=a.useExisting,l=c.dir().uri,b=v.doc(),a.newBase)throw new Error("mint new scheduler: Illegal - have both new base and existing event")}else b=s.sym(l+"details.ttl"),v=s.sym(b.uri+"#event");const w=s.sym(l+"results.ttl"),x=a.noIndexHTML?{}:[{local:"index.html",contentType:"text/html"}],A=[];for(let e=0;e<x.length;e++){const n=function(e){A.push(function(){const n=l+e.local;console.log("Copying "+g+e.local+" to "+n);s.fetcher.webCopy(g+e.local,l+e.local,e.contentType).then(()=>t.authn.checkUser()).then(e=>{h=e,p(n,!1,function(e,t){e?A.shift()():(u(e,"FAILED to set ACL "+n+" : "+t),console.log("FAILED to set ACL "+n+" : "+t))})}).catch(t=>{console.log("FAILED to copy "+g+e.local+" : "+t.message),u(!1,"FAILED to copy "+g+e.local+" : "+t.message)})})};n(x[e])}A.push(function(){s.add(v,r.rdf("type"),r.sched("SchedulableEvent"),b),h&&(s.add(v,r.dc("author"),h,b),s.add(v,r.foaf("maker"),h,b)),s.add(v,r.dc("created"),new Date,b),s.add(v,r.sched("resultsDocument"),b),m.put(b,s.statementsMatching(void 0,void 0,void 0,b),"text/turtle",function(e,t,n){t?A.shift()():(u(t,"FAILED to save new scheduler at: "+b+" : "+n),console.log("FAILED to save new scheduler at: "+b+" : "+n))})}),A.push(function(){s.fetcher.webOperation("PUT",w.uri,{data:"",contentType:"text/turtle"}).then(()=>{A.shift()()}).catch(e=>{u(!1,"Failed to initialize empty results file: "+e.message)})}),A.push(function(){p(w.uri,!0,function(e,t){u(e,"Failed to set Read-Write ACL on results file: "+t),e&&A.shift()()})}),A.push(function(){p(b.uri,!1,function(e,t){u(e,"Failed to set read ACL on configuration file: "+t),e&&A.shift()()})}),A.push(function(){console.log("Finished minting new scheduler"),a.newInstance=v,i(a)}),A.shift()()})},render:function(n,a){const i=a.dom,o=a.session.store,r=e.ns,s=n,l="app-when-can-we.w3.org",c=o.fetcher,u=o.updater;let d=!1;const p=n,f=n.doc(),m=f.dir().uri,h=y.sym(m+"results.ttl"),g="https://solidos.github.io/solid-panes/schedule/formsForSchedule.ttl",b=o.sym(g+"#form1"),v=o.sym(g+"#form2"),w=o.sym(g+"#form3");y.parse('@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix cal: <http://www.w3.org/2002/12/cal/ical#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix sched: <http://www.w3.org/ns/pim/schedule#>.\n\n cal:Vevent ui:annotationForm <#form2>, <#form3>; ui:creationForm <#form1> .\n\n<#bigForm>\n dc:title\n "Schedule event (single form).";\n a ui:Group;\n ui:parts ( <#form1> <#form2> <#form3> ).\n\n<#form1>\n dc:title\n "Schedule an event (wizard)";\n a ui:Form;\n ui:parts (\n <#form1header>\n <#eventTitle>\n <#eventLocation>\n <#eventType>\n <#eventSwitch>\n <#eventComment>\n <#eventAuthor> ).\n\n<#form1header> a ui:Heading; ui:contents "Schedule an event" .\n\n<#eventTitle>\n a ui:SingleLineTextField;\n ui:maxLength\n "128";\n ui:property\n cal:summary;\n ui:size\n "40".\n\n<#eventLocation>\n a ui:SingleLineTextField;\n ui:maxLength\n "512";\n ui:property\n cal:location;\n ui:size\n "40".\n\n<#eventType> a ui:BooleanField;\n ui:property sched:allDay;\n ui:default true . # Used to be the only way\n\n<#eventSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm> ].\n\n <#AllDayForm> a ui:IntegerField ;\n ui:property sched:durationInDays;\n ui:label "How many days?";\n ui:min 1;\n ui:default 1 .\n\n <#NotAllDayForm> a ui:IntegerField ;\n ui:property sched:durationInMinutes;\n ui:label "Duration (mins)";\n ui:min 5;\n ui:default 55 .\n\n<#eventComment>\n a ui:MultiLineTextField;\n# ui:maxLength\n# "1048";\n# ui:size\n# "40".\n ui:property\n cal:comment.\n\n<#eventAuthor>\n a ui:Multiple; ui:min 1; ui:part <#eventAuthorGroup>; ui:property dc:author.\n\n <#eventAuthorGroup> a ui:Group; ui:parts ( <#authorName> <#authorEmail> ) .\n <#authorName> a ui:SingleLineTextField; ui:property foaf:name .\n <#authorEmail> a ui:EmailField; ui:label "email"; ui:property foaf:mbox .\n\n\n#####################\n\n<#form2> dc:title "Select possible days or times"; a ui:Form;\n ui:parts ( <#id1118132113134> <#possibleSwitch> ).\n\n <#id1118132113134> a ui:Heading; ui:contents "Time proposals" .\n\n <#possibleSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm2> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm2> ].\n\n <#AllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleDate>; ui:property sched:option.\n <#posssibleDate> a ui:DateField; ui:property cal:dtstart; ui:label "date".\n\n <#NotAllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleTime>; ui:property sched:option.\n <#posssibleTime> a ui:DateTimeField; ui:property cal:dtstart; ui:label "date and time".\n\n ##################################\n\n <#form3> dc:title "Select invited people"; a ui:Form; ui:parts ( <#id1118132113135> <#id1417314641301b> ) .\n<#id1417314641301b>\n a ui:Multiple; ui:min 1; ui:part <#id1417314674292b>; ui:property sched:invitee.\n <#id1417314674292b> a ui:EmailField; ui:label "email"; ui:property foaf:mbox .\n <#id1118132113135> a ui:Heading; ui:contents "Who to invite" .\n\n# ENDS\n',o,g,"text/turtle");const x="background-color: #eef; padding: 0.5em; border: .5em solid white; font-size: 100%",A="width: 1.8em; height: 1.8em;",C=function(t,n){t||M.appendChild(e.widgets.errorMessageBlock(i,n,"pink"))},k=function(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e},E=function(t,n){const a=o.any(n,e.ns.ui("backgroundColor"));a&&t.setAttribute("style","padding: 0.3em; text-align: center; background-color: "+a+";")};let T;t.authn.checkUser().then(e=>{T=e,z&&z.refresh(),e&&d&&(d=!1,N())}),console.log("me: "+T);const S=function(e){let t=o.any(e,r.space("uriPrefix"));t=t?t.value:e.uri.split("#")[0],"/"!==t.slice(-1)&&(y.log.error(l+": No / at end of uriPrefix "+t),t+="/");const n=new Date;t+=l+"/id"+n.getTime()+"/",P(p,t)},P=function(e,t){const n={thisInstance:e,newBase:t};this.mintNew(a,n).then(function(e){const t=M.appendChild(i.createElement("p"));t.setAttribute("style","font-size: 140%;"),t.innerHTML="Your <a href='"+e.newInstance.uri+"'><b>new scheduler</b></a> is ready to be set up. <br/><br/><a href='"+e.newInstance.uri+"'>Say when you what days work for you.</a>"}).catch(function(e){C(!1,"Error createing new scheduler at "+n.newInstance+": "+e)})},B=function(){console.log("getDetails()"),c.nowOrWhenFetched(f.uri,void 0,function(e,t){if(console.log("getDetails() ok? "+e),!e)return C(e,t);N()})},N=function(){console.log("showAppropriateDisplay()"),t.authn.checkUser().then(e=>{if(!e)return I();if(!o.updater.editable(f.uri,o)||o.holds(n,r.rdf("type"),r.wf("TemplateInstance")))return void _(M);o.any(n,r.sched("ready"))?F():L()})},I=function(){k(U);const t={div:M,dom:i};e.login.ensureLoggedIn(t).then(e=>{T=e.me,d=!1,N()})},_=function(){const t=k(U);t.appendChild(e.login.newAppInstance(i,{noun:"poll"},S)),t.appendChild(i.createElement("hr"));t.appendChild(i.createElement("p")).textContent="Where would you like to store the data for the poll? Give the URL of the directory where you would like the data stored.";const n=t.appendChild(i.createElement("input"));n.setAttribute("type","text"),n.size=80,n.label="base URL",n.autocomplete="on",t.appendChild(i.createElement("br"));const a=t.appendChild(i.createElement("button"));a.setAttribute("style",x),a.textContent="Start new poll at this URI",a.addEventListener("click",function(e){let t=n.value;"/"!==t.slice(-1)&&(t+="/"),P(p,t)})},O=i.createElement("button"),L=function(){k(H);o.any(n,r.sched("allDay"))||o.add(n,r.sched("allDay"),y.literal("true",void 0,y.sym("http://www.w3.org/2001/XMLSchema#boolean")),f);let t=0,a=!1;const s=function(e){return!!e.querySelector("input, select, textarea, button")},l=function(t){const a=function(e,t){if(!e)return t;const n=(e.value||"").toLowerCase();return"true"===n||"1"===n||"false"!==n&&"0"!==n&&t}(o.any(n,r.sched("allDay")),!0),i=o.sym(g+(a?"#AllDayForm2":"#NotAllDayForm2"));e.widgets.appendForm(document,t,{},n,i,f,C)};{const o=[b,v,w],r=[];t=0;for(let t=0;t<o.length;t++){const a=i.createElement("div");e.widgets.appendForm(document,a,{},n,o[t],f,C),1!==t||s(a)||l(a),r.push(a)}const c=function(){k(U).appendChild(r[t]),0===t?d.setAttribute("disabled",""):d.removeAttribute("disabled"),t===r.length-1?(p.setAttribute("disabled",""),a||(H.appendChild(u),H.appendChild(O),a=!0)):p.removeAttribute("disabled")},d=k(q).appendChild(i.createElement("button"));d.setAttribute("style",x),d.textContent="<- go back",d.addEventListener("click",function(e){t>0&&(t-=1,c())},!1);const p=k(W).appendChild(i.createElement("button"));p.setAttribute("style",x),p.textContent="continue ->",p.addEventListener("click",function(e){t<r.length-1&&(t+=1,c())},!1),c()}const c=[];c.push(y.st(n,r.sched("availabilityOptions"),r.sched("YesNoMaybe"),f)),c.push(y.st(n,r.sched("ready"),new Date,f)),c.push(y.st(n,r.sched("results"),h,f)),O.setAttribute("style",x),O.textContent="Go to poll",O.addEventListener("click",function(e){o.any(n,r.sched("ready"))?(F(),W.appendChild(u)):(W.appendChild(u),o.updater.update([],c,function(e,t,n){t?F():C(t,n)}))},!1);const u=i.createElement("button");u.setAttribute("style",x);const d=u.appendChild(i.createElement("img"));d.setAttribute("src",e.icons.iconBase+"noun_480183.svg"),d.setAttribute("style",A),u.addEventListener("click",function(e){const t=o.anyValue(n,r.cal("summary"))||o.anyValue(n,r.dc("title"))||"",a="mailto:"+o.each(n,r.sched("invitee")).map(function(e){const t=o.any(e,r.foaf("mbox"));return t?t.uri.replace("mailto:",""):""}).join(",")+"?subject="+encodeURIComponent(t+"-- When can we meet?")+"&body="+encodeURIComponent(t+"\n\nWhen can you?\n\nSee "+n+"\n");console.log("Mail: "+a),window.location.href=a},!1)};function F(){c.nowOrWhenFetched(h.uri,void 0,(e,t,n)=>{e?(k(U),R()):404===n.status?(console.log("Initializing details file "+h),u.put(h,[],"text/turtle",function(e,t,n){t?(k(U),R()):(C(t,"FAILED to create results file at: "+h.uri+" : "+n),console.log("FAILED to craete results file at: "+h.uri+" : "+n))})):C(e,"FAILED to read results file: "+t)})}function R(){const t=o.any(s,r.cal("summary")),a=o.any(s,r.cal("comment")),l=o.any(s,r.cal("location")),c=U;t&&(c.appendChild(i.createElement("h3")).textContent=t),l&&(c.appendChild(i.createElement("address")).textContent=l.value),a&&(c.appendChild(i.createElement("p")).textContent=a.value);const u=o.any(s,r.dc("author"));if(u){const e=o.any(u,r.foaf("name"));e&&(c.appendChild(i.createElement("p")).textContent=e)}const d=new y.Query("Responses"),p={};["time","author","value","resp","cell"].forEach(function(e){d.vars.push(p[e]=y.variable(e))}),d.pat.add(s,r.sched("response"),p.resp),d.pat.add(p.resp,r.dc("author"),p.author),d.pat.add(p.resp,r.sched("cell"),p.cell),d.pat.add(p.cell,r.sched("availabilty"),p.value),d.pat.add(p.cell,r.cal("dtstart"),p.time);const f={};f.set_x=o.each(n,r.sched("option")),f.set_x=f.set_x.map(function(e){return o.any(e,r.cal("dtstart"))}),f.set_y=o.each(n,r.sched("response")),f.set_y=f.set_y.map(function(e){return o.any(e,r.dc("author"))});const m=o.each(s,r.sched("option")).map(function(e){return o.any(e,r.cal("dtstart"))}),g=function(){const t=c.appendChild(e.matrix.matrixForQuery(i,d,p.time,p.author,p.value,f,function(){}));t.setAttribute("class","matrix");const n=i.createElement("button");n.setAttribute("style",x);const a=i.createElement("img");a.setAttribute("src",e.icons.iconBase+"noun_479395.svg"),a.setAttribute("style",A),n.appendChild(a),n.addEventListener("click",function(e){n.disabled=!0,o.fetcher.refresh(h,function(e,a){e?(t.refresh(),n.disabled=!1):console.log("Cant refresh matrix"+a)})},!1),k(H),H.appendChild(n)},b=[],v={div:H,dom:i};e.login.ensureLoggedIn(v).then(t=>{const n=t.me,a=h;f.set_y=f.set_y.filter(function(e){return!e.sameTerm(n)}),f.set_y.push(n),f.cellFunction=function(t,a,s,l){if(null!==l&&o.fetcher.nowOrWhenFetched(l.uri.split("#")[0],void 0,function(e,n){e&&E(t,l)}),s.sameTerm(n)){const n=function(){E(t,l)},s={},c=r.sched("availabilty"),u=b[a.toNT()],d=e.widgets.makeSelectForOptions(i,o,u,c,Si,s,h,n);t.appendChild(d)}else null!==l&&(t.textContent=e.utils.label(l))};const l=o.each(s,r.sched("response"));let c=null;l.forEach(function(e){o.holds(e,r.dc("author"),n)&&(c=e)});const u=[],d=e.widgets.newThing(a).uri;if(null===c)c=y.sym(d+"_response"),u.push(y.st(s,r.sched("response"),c,a)),u.push(y.st(c,r.dc("author"),n,a));else{o.each(c,r.sched("cell")).forEach(function(e){const t=o.any(e,r.cal("dtstart"));b[t.toNT()]=e})}for(let e=0;e<m.length;e++){if(b[m[e].toNT()])continue;const t=y.sym(d+"_"+e);u.push(y.st(c,r.sched("cell"),t,a)),u.push(y.st(t,r.cal("dtstart"),m[e],a)),b[m[e].toNT()]=t}u.length?o.updater.update([],u,function(e,t,n){t?g():C(t,n)}):g()});const w=o.any(n,r.foaf("maker"));if(!w||w.sameTerm(T)){const t=i.createElement("button");t.setAttribute("style",x);const n=i.createElement("img");n.setAttribute("src",e.icons.iconBase+"noun_344563.svg"),n.setAttribute("style",A),t.appendChild(n),t.addEventListener("click",function(e){k(c),L()},!1),k(q),q.appendChild(t)}k(W),W.appendChild(function(){const t=e.login.newAppInstance(i,{noun:"scheduler"},S);return t.firstChild.setAttribute("style",x),t}())}const M=i.createElement("div"),D=M.appendChild(i.createElement("table"));D.setAttribute("style","background-color: white; min-width: 40em; min-height: 13em;");const j=D.appendChild(i.createElement("tr"));j.appendChild(i.createElement("td")),j.appendChild(i.createElement("td")),j.appendChild(i.createElement("td"));const z=null,U=D.appendChild(i.createElement("tr")).appendChild(i.createElement("td"));U.setAttribute("colspan","3");const $=D.appendChild(i.createElement("tr"));$.setAttribute("class","naviMenu"),$.setAttribute("style"," text-align: middle; vertical-align: middle; padding-top: 4em; ");const q=$.appendChild(i.createElement("td")),H=$.appendChild(i.createElement("td")),W=$.appendChild(i.createElement("td"));return console.log("getforms()"),B(),M}},Bi=e.ns,Ni={icon:e.icons.iconBase+"noun_62007.svg",name:"travel expenses",audience:[Bi.solid("PowerUser")],label:function(t,n){const a=n.session.store,i=a.findTypeURIs(t);return e.ns.qu("Transaction")in a.findSuperClassesNT(t)?"by Trip":i["http://www.w3.org/ns/pim/trip#Trip"]?"Trip $":null},render:function(t,n){const a=n.dom,i=n.store,o=e.ns,r=y.Namespace("http://www.w3.org/2002/12/cal/ical#"),s=y.Namespace("http://www.w3.org/ns/pim/trip#"),l=a.createElement("div");l.setAttribute("class","transactionPane"),l.innerHTML="<h2>Trip transactions</h2>";const c=function(e,t){void 0===t&&(t="color: grey");const n=a.createElement("pre");n.setAttribute("style",t),l.appendChild(n),n.appendChild(a.createTextNode(e))},u=i.findTypeURIs(t),d=function(t,n){const r=new y.Query(e.utils.label(t)),l={};["date","transaction","comment","type","in_USD"].forEach(function(e){r.vars.push(l[e]=y.variable(e))}),r.pat.add(l.transaction,s("trip"),t);const u=i.formula();u.add(l.transaction,o.rdf("type"),l.type),r.pat.optional.push(u),r.pat.add(l.transaction,e.ns.qu("date"),l.date),u.add(l.transaction,o.rdfs("comment"),l.comment),r.pat.optional.push(u),r.pat.add(l.transaction,e.ns.qu("in_USD"),l.in_USD);const d=e.table(a,{query:r,onDone:function(){const n={},a=i.each(void 0,s("trip"),t);a.forEach(function(t){let a=i.the(t,o.rdf("type"));if(a||(a=e.ns.qu("ErrorNoType")),a&&a.uri){const o=a.uri;n[o]||(n[o]=0);const r=i.any(t,e.ns.qu("in_USD"));r||c(" @@ No amount in USD: "+r+" for "+t),r&&(n[o]=n[o]+parseFloat(r.value))}});let r="",l=0,u=0;for(const t in n)r+=e.utils.label(i.sym(t))+": "+n[t]+"; ",l++,u+=n[t];c("Totals of "+a.length+" transactions: "+r,""),l>1&&c("Overall net: "+u,"text-treatment: bold;")}});n.appendChild(d)};if(e.ns.qu("Transaction")in i.findSuperClassesNT(t)){const n=i.each(void 0,o.rdf("type"),t),a=[],c=[];for(let t=0;t<n.length;t++){const o=n[t],r=i.any(o,s("trip"));if(r){o in c||(c[r]={total:0,transactions:[]});const t=i.any(o,e.ns.qu("in_USD"));t&&(c[r].total+=t);const n=i.any(o,e.ns.qu("date"));c[r.toNT()].transactions.push([n,o])}else a.push(o)}const u=[];for(const e in c){const t=i.fromNT(e);u.push([i.any(t,r("dtstart")),t])}u.sort();for(let e=0;e<u.length;e++){d(u[e][1],l)}}else u["http://www.w3.org/ns/pim/trip#Trip"]&&d(t,l);return l}},Ii={icon:e.icons.originalIconBase+"tango/22-image-x-generic.png",name:"image",label:function(t,n){const a=n.session.store;if(!a.anyStatementMatching(t,e.ns.rdf("type"),a.sym("http://purl.org/dc/terms/Image")))return null;return function(e,t,n){const a=e.fetcher.getHeader(t,"content-type");if(a)for(let e=0;e<a.length;e++)for(let t=0;t<n.length;t++)if(a[e].indexOf(n[t])>=0)return!0;return!1}(a,t,["application/pdf"])?null:"view"},render:function(e,t){const n=t.dom,a=t.session.store,i=n.createElement("div");i.setAttribute("class","imageView");const o=n.createElement("IMG");a.fetcher._fetch(e.uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);o.setAttribute("src",t)}),o.setAttribute("style","max-width: 100%; max-height: 100%;");const r=n.createElement("TR");return r.appendChild(o),i.appendChild(r),i}},_i=e.ns,Oi={icon:e.icons.iconBase+"noun_1619.svg",name:"playlistSlot",audience:[_i.solid("PowerUser")],label:function(t,n){const a=n.session.store;return a.anyStatementMatching(t,e.ns.rdf("type"),a.sym("http://purl.org/ontology/pbo/core#PlaylistSlot"))?"playlist slot":null},render:function(t,n){const a=n.dom;const i=function(t,n){if(!n)return t;const i=a.createElement("a");return i.setAttribute("href",n),i.appendChild(t),i.addEventListener("click",e.widgets.openHrefInOutlineMode,!0),i},o=function(e){return a.createTextNode(e)},r=n.session.store,s=r.any(t,y.sym("http://purl.org/ontology/pbo/core#playlist_item"));let l=r.any(t,y.sym("http://purl.org/ontology/olo/core#index")),c=s.uri;const u=function(e){if(!e)return{html5:!0};const t=e.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-_%]+)/i),n=e.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i),a=e.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i),i=e.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);return t?{youtube:t}:n?{vimeo:n}:a?{dailymotion:a}:i?{vk:i}:void 0}(c),d=a.createElement("div");let p,f;if(u&&u.youtube?(c=c.replace("watch?v=","embed/"),d.setAttribute("class","imageView"),p=a.createElement("IFRAME"),p.setAttribute("src",c),p.setAttribute("width",560),p.setAttribute("height",315),p.setAttribute("frameborder",0),p.setAttribute("style","max-width: 850px; max-height: 100%;"),p.setAttribute("allowfullscreen","true")):(d.setAttribute("class","imageView"),p=a.createElement("IMG"),p.setAttribute("src",s.value),p.setAttribute("width",560),p.setAttribute("height",315),p.setAttribute("style","max-width: 560; max-height: 315;")),l){const e=r.statementsMatching(null,y.sym("http://purl.org/ontology/olo/core#index")),n=[];for(let t=0;t<e.length;t++)e[t]&&n.push(parseInt(e[t].object.value,10));l=parseInt(l.value,10),f=a.createElement("div");const s=n[(n.indexOf(l)-1+n.length)%n.length],c=n[(n.indexOf(l)+1+n.length)%n.length],u=i(o("<<"),t.uri.split("#")[0]+"#"+s);f.appendChild(u);const d=a.createElement("span");d.innerHTML=" Playlist slot : "+l+" ",f.appendChild(d);const p=i(o(">>"),t.uri.split("#")[0]+"#"+c);f.appendChild(p)}const m=a.createElement("TR");return m.appendChild(p),f&&m.appendChild(f),d.appendChild(m),d}},Li={icon:e.icons.iconBase+"noun_1619.svg",name:"video",label:function(e,t){const n=t.session.store.findTypeURIs(e),a=y.Util.mediaTypeClass("video/*").uri.split("*")[0];for(const e in n)if(e.startsWith(a))return"Play video";return null},render:function(e,t){const n=t.session.store,a=t.dom,i=a.createElement("div"),o=i.appendChild(a.createElement("video"));return o.setAttribute("controls","yes"),n.fetcher._fetch(e.uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);o.setAttribute("src",t)}),o.setAttribute("width","100%"),i}},Fi=e.ns,Ri={icon:e.icons.iconBase+"noun_534313.svg",name:"audio",label:function(e,t){const n=t.session.store.findTypeURIs(e),a=y.Util.mediaTypeClass("audio/*").uri.split("*")[0];for(const e in n)if(e.startsWith(a))return"Play audio";return null},render:function(e,t){const n=t.session.store,a=t.dom,i=!1,o=!0,r=!0,s=!1,l=function(e){const t=e.lastIndexOf(".");if(t<0)return e;return t<e.lastIndexOf("/")?e:e.slice(0,t)},c=function(e){const t=e.uri.split("/").slice(-3),n=function(e){try{return decodeURIComponent(e)}catch(t){return e}};g.textContent=n(t[0]),b.textContent=n(t[1]),v.textContent=n(l(t[2]))},u=function(e,t){return new Promise(function(a){if(t=t||0,!o)return a(null);const i=n.any(void 0,Fi.ldp("contains"),e)||e.dir();if(!i)return a(null);n.fetcher.load(i).then(function(o){const l=n.each(i,Fi.ldp("contains"));let c;l.sort();for(let o=0;o<l.length;o++)if(e.uri===l[o].uri){if(c=(o+1)%l.length,0!==c)return a(l[c]);if(!r)return a(s?l[c]:null);if(1===t||!r)return a(null);u(i,t+1).then(function(e){e&&n.fetcher.load(e).then(function(t){const i=n.each(e,Fi.ldp("contains"));return 0===i.length?a(null):(i.sort(),console.log("New Album: "+e),a(i[0]))})})}})})},d=function(e){const t=n.sym(e.target.getAttribute("src"));if(!o)return;const a=function(t){const i=t;u(i).then(function(t){t?!function(e){const t=n.any(void 0,Fi.ldp("contains"),e);if(!t)return!1;const a=n.each(t,Fi.ldp("contains"));if(a.length<2)return!1;const i=e.uri;for(let e=0;e<a.length;e++){const t=a[e].uri;if(i.length>t.length&&i.startsWith(l(t)))return!0;if(i.endsWith(".m4a")&&t.endsWith(".mp3")&&l(i)===l(t))return!0}return!1}(t)?(console.log("Moving on to "+t),c(t),y.appendChild(p(t,!0)),y.removeChild(e.target)):(console.log("Ignoring redundant "+t),a(t)):console.log("No successor to "+i)})};a(t)},p=function(e,t){const i=a.createElement("audio");return i.setAttribute("controls","yes"),n.fetcher._fetch(e.uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);i.setAttribute("src",t)}),t&&i.setAttribute("autoplay","autoplay"),i.addEventListener("ended",d,!1),i},f=a.createElement("div"),m=f.appendChild(a.createElement("table")),h="padding: 0.3em; color:white; background-color: black;",g=m.appendChild(a.createElement("tr"));g.style.cssText=h;const b=m.appendChild(a.createElement("tr"));b.style.cssText=h;const v=m.appendChild(a.createElement("tr"));v.style.cssText=h;const y=m.appendChild(a.createElement("tr"));return c(e),y.appendChild(p(e,i)),!n.holds(void 0,Fi.ldp("contains"),e)&&e.dir()&&n.fetcher.load(e.dir()),f}};var Mi=o(6049);const Di={icon:e.icons.iconBase+"dokieli-logo.png",name:"Dokieli",mintClass:e.ns.solid("DokieliDocument"),label:function(e,t){return null},mintNew:function(e,t){const n=e.session.store;let a=t.newInstance;if(!a){let e=t.newBase;e.endsWith("/")&&(e=e.slice(0,-1),t.newBase=e),a=n.sym(e)}const i=Mi.lookup(a.uri);i&&i.includes("html")||(a=y.sym(a.uri+".html")),t.newInstance=a;let o='<!DOCTYPE html>\n<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">\n <head>\n <meta charset="utf-8" />\n <title></title>\n <meta content="width=device-width, initial-scale=1" name="viewport" />\n <link href="https://dokie.li/media/css/basic.css" media="all" rel="stylesheet" title="Basic" />\n <link href="https://dokie.li/media/css/dokieli.css" media="all" rel="stylesheet" />\n <script src="https://dokie.li/scripts/dokieli.js"><\/script>\n </head>\n\n <body about="" prefix="rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# rdfs: http://www.w3.org/2000/01/rdf-schema# owl: http://www.w3.org/2002/07/owl# xsd: http://www.w3.org/2001/XMLSchema# rdfa: http://www.w3.org/ns/rdfa# dcterms: http://purl.org/dc/terms/ dctypes: http://purl.org/dc/dcmitype/ foaf: http://xmlns.com/foaf/0.1/ pimspace: http://www.w3.org/ns/pim/space# skos: http://www.w3.org/2004/02/skos/core# prov: http://www.w3.org/ns/prov# mem: http://mementoweb.org/ns# qb: http://purl.org/linked-data/cube# schema: http://schema.org/ void: http://rdfs.org/ns/void# rsa: http://www.w3.org/ns/auth/rsa# cert: http://www.w3.org/ns/auth/cert# wgs: http://www.w3.org/2003/01/geo/wgs84_pos# bibo: http://purl.org/ontology/bibo/ sioc: http://rdfs.org/sioc/ns# doap: http://usefulinc.com/ns/doap# dbr: http://dbpedia.org/resource/ dbp: http://dbpedia.org/property/ sio: http://semanticscience.org/resource/ opmw: http://www.opmw.org/ontology/ deo: http://purl.org/spar/deo/ doco: http://purl.org/spar/doco/ cito: http://purl.org/spar/cito/ fabio: http://purl.org/spar/fabio/ oa: http://www.w3.org/ns/oa# as: https://www.w3.org/ns/activitystreams# ldp: http://www.w3.org/ns/ldp# solid: http://www.w3.org/ns/solid/terms# acl: http://www.w3.org/ns/auth/acl# earl: http://www.w3.org/ns/earl# spec: http://www.w3.org/ns/spec# odrl: http://www.w3.org/ns/odrl/2/ dio: https://w3id.org/dio# rel: https://www.w3.org/ns/iana/link-relations/relation#" typeof="schema:CreativeWork prov:Entity">\n <main>\n <article about="" typeof="schema:Article">\n\n </article>\n </main>\n </body>\n</html>\n',r=a.uri.split("/").slice(-1)[0];r=decodeURIComponent(r.split(".")[0]);const s=r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");return o=o.replace("<title>","<title>"+s),o=o.replace("</article>","<h1>"+s+"</h1></article>"),new Promise(function(e){n.fetcher.webOperation("PUT",a.uri,{data:o,contentType:"text/html"}).then(function(){console.log("new Dokieli document created at "+t.newInstance),e(t)}).catch(function(e){console.log("Error creating dokieli doc at "+t.newInstance+": "+e)})})}},ji={icon:e.icons.iconBase+"noun_973694_expanded.svg",name:"folder",mintNew:function(e,t){const n=e.session.store,a=t.newInstance||n.sym(t.newBase);let i=a.uri;return i.endsWith("/")&&(i=i.slice(0,-1)),t.newInstance=n.sym(i+"/"),n.fetcher.webOperation("PUT",a.uri).then(function(){return console.log("New container created: "+a.uri),t})},label:function(t,n){const a=n.session.store,i=a.each(t,e.ns.ldp("contains")).length;return i>0?"Contents ("+i+")":a.holds(t,e.ns.rdf("type"),e.ns.ldp("Container"))?"Container (0)":null},render:function(n,a){function i(e){const t=e.uri.slice(e.dir().uri.length);return!(t.startsWith(".")||t.endsWith(".acl")||t.endsWith("~"))}function o(){let t=l.each(n,e.ns.ldp("contains")).filter(i);t=t.map(t=>[e.utils.label(t).toLowerCase(),t]),t.sort(),t=t.map(e=>e[1]),e.utils.syncTableToArray(c,t,function(t){const a=l.statementsMatching(n,e.ns.ldp("contains"),t)[0],i=s.VIEWAS_boring_default,o=s.propertyTR(r,a,!1);return o.firstChild.textContent="",o.firstChild.style.cssText+="min-width: 3em;",o.appendChild(s.outlineObjectTD(t,i,void 0,a)),o})}const r=a.dom,s=a.getOutliner(r),l=a.session.store;let c;const u=r.createElement("div");u.setAttribute("class","instancePane");const d=e.style.folderPaneStyle||"border-top: solid 1px #777; border-bottom: solid 1px #777; margin-top: 0.5em; margin-bottom: 0.5em;";u.setAttribute("style",d);const p=n.uri.endsWith("/")?n.uri:n.uri+"/",f=l.sym(p+"index.ttl#this");if(l.holds(n,e.ns.ldp("contains"),f.doc())){console.log("View of folder will be view of indexThing. Loading "+f);const e=u.appendChild(r.createElement("div"));return e.style.cssText="border-top: 0.2em solid #ccc;",l.fetcher.load(f.doc()).then(function(){c=e.appendChild(r.createElement("table")),a.getOutliner(r).GotoSubject(f,!0,void 0,!1,void 0,c)}),u}c=u.appendChild(r.createElement("table")),c.refresh=o,o(),l.updater.addDownstreamChangeListener(n,o);const m=u.appendChild(r.createElement("div")),h=t.authn.currentUser();if(!h)return u;const g={folder:n,div:m,dom:r,statusArea:m,me:h};return g.refreshTarget=c,e.login.filterAvailablePanes(a.session.paneRegistry.list).then(function(t){e.create.newThingUI(g,a,t),e.aclControl.preventBrowserDropEvents(r);let n;n=m.firstChild,e.widgets.makeDropTarget(n,null,b)}),u;function b(t){e.widgets.uploadFiles(l.fetcher,t,n.uri,n.uri,function(t,a){const i=l.sym(a);console.log(" Upload: put OK: "+i),l.add(n,e.ns.ldp("contains"),i,n.doc()),c.refresh()})}}},zi=e.ns,Ui={icon:e.icons.originalIconBase+"tango/22-folder-open.png",name:"classInstance",audience:[zi.solid("PowerUser")],label:function(e,t){const n=t.session.store.each(void 0,zi.rdf("type"),e).length;return n>0?"List ("+n+")":null},render:function(t,n){const a=n.dom,i=n.getOutliner(a),o=n.session.store,r=function(e,t){const n=a.createElement("pre");n.setAttribute("style","background-color: "+t||0),s.appendChild(n),n.appendChild(a.createTextNode(e))},s=a.createElement("div");s.setAttribute("class","instancePane"),s.setAttribute("style"," border-top: solid 1px #777; border-bottom: solid 1px #777; margin-top: 0.5em; margin-bottom: 0.5em ");const l=o.statementsMatching(void 0,zi.rdf("type"),t);if(l.length>0){const n={},c=[];l.forEach(e=>{n[e.subject.toNT()]=e});for(const e in o.findMembersNT(t))n[e]||c.push(y.st(o.fromNT(e),zi.rdf("type"),t));if(c.length&&r("There are "+l.length+" explicit and "+c.length+" implicit members of "+e.utils.label(t)),t.sameTerm(zi.rdf("Property")));else if(t.sameTerm(zi.rdfs("Class"))){const e=o.statementsMatching(void 0,zi.rdf("type"),void 0),t={};e.forEach(function(e){t[e.object]=e});const n=[];for(const e in t)n.push(y.st(y.sym(e),zi.rdf("type"),zi.rdfs("Class")));r("Total of "+e.length+" type statements and "+n.length+" unique types.")}if(l.length>10){const e=a.createElement("TR");e.appendChild(a.createTextNode(""+l.length)),s.appendChild(e)}i.appendPropertyTRs(s,l,!0,function(e){return!0}),c.length&&(r("Implicit:"),i.appendPropertyTRs(s,c,!0,function(e){return!0}))}return s}};var $i=o(6305),qi=o.n($i);const Hi=e.ns,Wi={icon:e.icons.iconBase+"noun_138712.svg",name:"slideshow",audience:[Hi.solid("PowerUser")],label:function(t,n){const a=n.session.store,i=e.ns,o=a.findTypeURIs(t);if(o[i.ldp("Container").uri]||o[i.ldp("BasicContainer").uri]){const n=a.each(t,i.ldp("contains"));let o=0;return n.forEach(function(t){e.widgets.isImage(t)&&o++}),o>0?"Slideshow":null}return null},render:function(t,n){const a=n.dom;e.widgets.addStyleSheet(a,"https://leemark.github.io/better-simple-slideshow/css/simple-slideshow-styles.css");const i=n.session.store,o=e.ns,r=a.createElement("div");r.setAttribute("class","bss-slides");const s=i.findTypeURIs(t);let l;(s[o.ldp("BasicContainer").uri]||s[o.ldp("Container").uri])&&(l=o.ldp("contains"));const c=i.each(t,l);c.sort();for(let t=0;t<c.length;t++){if(!e.widgets.isImage(c[t]))continue;const n=r.appendChild(a.createElement("figure")),o=n.appendChild(a.createElement("img"));i.fetcher._fetch(c[t].uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);o.setAttribute("src",t)}),o.setAttribute("width","100%"),n.appendChild(a.createElement("figcaption"))}const u={dom:a};return setTimeout(function(){qi()(".bss-slides",u)},1e3),r}},Gi={icon:e.icons.originalIconBase+"foaf/foafTiny.gif",name:"social",label:function(t,n){const a=n.session.store.findTypeURIs(t);return a[e.ns.foaf("Person").uri]||a[e.ns.vcard("Individual").uri]?"Friends":null},render:function(n,a){const i=a.dom,o=function(e){console.log(e);const t=i.createElement("p");t.textContent=e,x.appendChild(t)},r=function(e,t){if(!t)return e;const n=i.createElement("a");return n.setAttribute("href",t),n.appendChild(e),n},s=function(e){return i.createTextNode(e)},l=a.getOutliner(i),c=a.session.store,u=i.createElement("div");u.setAttribute("class","socialPane");const d=e.ns.foaf,p=e.ns.vcard,f="background-color: #eee; width: 25%; border: 0; padding: 0.5em; margin: 0;",m=u.appendChild(i.createElement("table")).appendChild(i.createElement("tr")),h=m.appendChild(i.createElement("td")),g=m.appendChild(i.createElement("td")),b=m.appendChild(i.createElement("td")),v=h;v.style.cssText=f;const w=g.appendChild(i.createElement("table"));w.style.cssText="background-color: #fff; color: #000; width: 46%; margin: 0; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; padding: 0;";const x=b;x.style.cssText=f;const A=c.any(n,d("img"))||c.any(n,d("depiction"));if(A){const e=i.createElement("IMG");e.setAttribute("src",A.uri),e.style.cssText=" width: 100% ; border: none; margin: 0; padding: 0;",v.appendChild(e)}const C=c.anyValue(n,d("name"))||"???";let k=i.createElement("H3");k.appendChild(i.createTextNode(C));let E=t.authn.currentUser();const T=E?E.uri:null,S=e.login.loginStatusBox(i,t=>{E=c.sym(t),e.widgets.refreshTree(u)});x.appendChild(S);const P=E&&c.sameThings(E,n),B=d("knows"),N=c.anyValue(n,d("givenname"))||c.anyValue(n,d("firstName"))||c.anyValue(n,d("nick"))||c.anyValue(n,d("name"))||c.anyValue(n,p("fn")),I=c.each(n,B);let _,O,L=null,F=!1;if(E){const t=c.each(void 0,d("primaryTopic"),E);let a="";for(let n=0;n<t.length;n++)if(c.whether(t[n],e.ns.rdf("type"),d("PersonalProfileDocument"))){if(F=l.UserInput.sparqler.editable(t[n].uri,c),F){L=t[n];break}a+="Your profile <"+e.utils.escapeForXML(t[n].uri)+"> is not remotely editable."}if(L?(o("Editing your profile "+L+"."),F=l.UserInput.sparqler.editable(L.uri,c)):o(a+"\nI couldn't find your editable personal profile document."),P);else{k=i.createElement("h3"),k.appendChild(i.createTextNode("You and "+N)),v.appendChild(k);const t=c.canon(E);_=c.whether(n,B,t),O=!1;const a=c.statementsMatching(t,B,n);a.length&&(O=!0,L||(L=a[0].why));const o=i.createElement("tr");v.appendChild(o);const u=function(){o.appendChild(r(s("You"),T)),o.appendChild(s(" and ")),o.appendChild(r(s(N),n.uri))};if(_?O?(u(),o.appendChild(s(" say you know each other."))):(o.appendChild(r(s(N),n.uri)),o.appendChild(s(" knows ")),o.appendChild(r(s("you"),T)),o.appendChild(s(" (unconfirmed).")),o.appendChild(s(" confirm you know ")),o.appendChild(r(s(N),n.uri)),o.appendChild(s("."))):O?(o.appendChild(r(s("You"),T)),o.appendChild(s(" know ")),o.appendChild(r(s(N),n.uri)),o.appendChild(s(" (unconfirmed)"))):(u(),o.appendChild(s(" have not said you know each other."))),F){const t=function(t,n,a){const o=i.createElement("form"),r=i.createElement("input");o.appendChild(r);const s=i.createTextNode(t);return s.className="question",o.appendChild(s),r.setAttribute("type","checkbox"),r.checked=a,r.addEventListener("click",function(t){if(s.className="pendingedit",this.checked)try{l.UserInput.sparqler.insert_statement(n,function(t,a,i){if(s.className="question",!a)return e.log.alert(null,"Message","Error occurs while inserting "+n+"\n\n"+i),void(r.checked=!1);c.add(n.subject,n.predicate,n.object,n.why)})}catch(t){e.log.error("Data write fails:"+t),e.log.alert("Data write fails:"+t),r.checked=!1,s.className="question"}else try{l.UserInput.sparqler.delete_statement(n,function(t,a,i){s.className="question",a?c.removeMany(n.subject,n.predicate,n.object,n.why):(e.log.alert("Error occurs while deleting "+n+"\n\n"+i),this.checked=!0)})}catch(t){e.log.alert("Delete fails:"+t),this.checked=!0}},!1),o}("You know "+N,new y.Statement(E,B,n,L),O);v.appendChild(t)}if(I){const t=c.each(E,d("knows"));if(t.length){const n=function(e,t){const n=[];for(let a=0;a<e.length;a++)for(let i=0;i<t.length;i++)if(t[i].sameTerm(e[a])){n.push(t[i]);break}return n}(I,t),a=i.createElement("tr");if(v.appendChild(a),a.appendChild(i.createTextNode("You"+(N?" and "+N:"")+" know"+function(e){let t=" ";return t+=e||"no",1===e?t+" person":t+" people"}(n.length)+" found in common")),n)for(let t=0;t<n.length;t++)a.appendChild(i.createTextNode(", "+e.utils.label(n[t])))}const n=i.createElement("tr");v.appendChild(n)}}}e.widgets.attachmentList(i,n,w,{doc:L,modify:!!F,predicate:d("knows"),noun:"friend"}),k=i.createElement("h3"),k.appendChild(i.createTextNode("Basic Information")),v.appendChild(k);const R=[e.ns.foaf("homepage"),e.ns.foaf("weblog"),e.ns.foaf("workplaceHomepage"),e.ns.foaf("schoolHomepage")];for(let t=0;t<R.length;t++){const a=R[t],o=c.statementsMatching(n,a);if(0===o.length);else{const t=[];for(let e=0;e<o.length;e++){const n=o[e];n.object.uri&&t.push(n.object.uri)}t.sort();let n,r="";for(let o=0;o<t.length;o++){const s=t[o];if(s===r)continue;r=s;let l="";if(n=e.utils.label(a),t.length>1){const e=s.indexOf("//");if(e>0){let t=s.indexOf("/",e+2);const n=s.lastIndexOf(".",t);n>0&&(t=n),l=s.slice(e+2,t)}}l&&(n=l+" "+n);const c=i.createTextNode(n),u=i.createElement("a");u.appendChild(c),u.setAttribute("href",s);const d=i.createElement("div");d.style.cssText="width: 80%; background-color: #fff; border: solid 0.05em #ccc; margin-top: 0.1em; margin-bottom: 0.1em; padding: 0.1em; text-align: center;",d.appendChild(u),v.appendChild(d)}}}const M=[e.ns.foaf("openid"),e.ns.foaf("nick")];for(let e=0;e<M.length;e++){const t=M[e],a=c.statementsMatching(n,t);0===a.length||l.appendPropertyTRs(v,a,!1,function(e){return!0})}return u}};function Vi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Qi={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function Yi(e){Qi=e}var Ji={exec:()=>null};function Ki(e,t=""){let n="string"==typeof e?e:e.source,a={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(Xi.caret,"$1"),n=n.replace(e,i),a},getRegex:()=>new RegExp(n,t)};return a}var Zi=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Xi={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},eo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,to=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,no=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ao=Ki(no).replace(/bull/g,to).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),io=Ki(no).replace(/bull/g,to).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),oo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ro=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,so=Ki(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ro).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),lo=Ki(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,to).getRegex(),co="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",uo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,po=Ki("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",uo).replace("tag",co).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),fo=Ki(oo).replace("hr",eo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",co).getRegex(),mo={blockquote:Ki(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",fo).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:so,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:eo,html:po,lheading:ao,list:lo,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:fo,table:Ji,text:/^[^\n]+/},ho=Ki("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",eo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",co).getRegex(),go={...mo,lheading:io,table:ho,paragraph:Ki(oo).replace("hr",eo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ho).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",co).getRegex()},bo={...mo,html:Ki("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",uo).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ji,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ki(oo).replace("hr",eo).replace("heading"," *#{1,6} *[^\n]").replace("lheading",ao).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},vo=/^( {2,}|\\)\n(?!\s*$)/,yo=/[\p{P}\p{S}]/u,wo=/[\s\p{P}\p{S}]/u,xo=/[^\s\p{P}\p{S}]/u,Ao=Ki(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,wo).getRegex(),Co=/(?!~)[\p{P}\p{S}]/u,ko=/(?![*_])[\p{P}\p{S}]/u,Eo=Ki(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Zi?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),To=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,So=Ki(To,"u").replace(/punct/g,yo).getRegex(),Po=Ki(To,"u").replace(/punct/g,Co).getRegex(),Bo="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",No=Ki(Bo,"gu").replace(/notPunctSpace/g,xo).replace(/punctSpace/g,wo).replace(/punct/g,yo).getRegex(),Io=Ki(Bo,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,Co).getRegex(),_o=Ki("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,xo).replace(/punctSpace/g,wo).replace(/punct/g,yo).getRegex(),Oo=Ki(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ko).getRegex(),Lo=Ki("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|[*_])/u).replace(/punctSpace/g,/(?![*_])[\s\p{P}\p{S}]/u).replace(/punct/g,ko).getRegex(),Fo=Ki(/\\(punct)/,"gu").replace(/punct/g,yo).getRegex(),Ro=Ki(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Mo=Ki(uo).replace("(?:--\x3e|$)","--\x3e").getRegex(),Do=Ki("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Mo).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),jo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,zo=Ki(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",jo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Uo=Ki(/^!?\[(label)\]\[(ref)\]/).replace("label",jo).replace("ref",ro).getRegex(),$o=Ki(/^!?\[(ref)\](?:\[\])?/).replace("ref",ro).getRegex(),qo=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ho={_backpedal:Ji,anyPunctuation:Fo,autolink:Ro,blockSkip:Eo,br:vo,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Ji,delLDelim:Ji,delRDelim:Ji,emStrongLDelim:So,emStrongRDelimAst:No,emStrongRDelimUnd:_o,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:zo,nolink:$o,punctuation:Ao,reflink:Uo,reflinkSearch:Ki("reflink|nolink(?!\\()","g").replace("reflink",Uo).replace("nolink",$o).getRegex(),tag:Do,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Ji},Wo={...Ho,link:Ki(/^!?\[(label)\]\((.*?)\)/).replace("label",jo).getRegex(),reflink:Ki(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",jo).getRegex()},Go={...Ho,emStrongRDelimAst:Io,emStrongLDelim:Po,delLDelim:Oo,delRDelim:Lo,url:Ki(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",qo).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ki(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",qo).getRegex()},Vo={...Go,br:Ki(vo).replace("{2,}","*").getRegex(),text:Ki(Go.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Qo={normal:mo,gfm:go,pedantic:bo},Yo={normal:Ho,gfm:Go,breaks:Vo,pedantic:Wo},Jo={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ko=e=>Jo[e];function Zo(e,t){if(t){if(Xi.escapeTest.test(e))return e.replace(Xi.escapeReplace,Ko)}else if(Xi.escapeTestNoEncode.test(e))return e.replace(Xi.escapeReplaceNoEncode,Ko);return e}function Xo(e){try{e=encodeURI(e).replace(Xi.percentDecode,"%")}catch{return null}return e}function er(e,t){let n=e.replace(Xi.findPipe,(e,t,n)=>{let a=!1,i=t;for(;--i>=0&&"\\"===n[i];)a=!a;return a?"|":" |"}).split(Xi.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(Xi.slashPipe,"|");return n}function tr(e,t,n){let a=e.length;if(0===a)return"";let i=0;for(;i<a;){let o=e.charAt(a-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.slice(0,a-i)}function nr(e,t=0){let n=t,a="";for(let t of e)if("\t"===t){let e=4-n%4;a+=" ".repeat(e),n+=e}else a+=t,n++;return a}function ar(e,t,n,a,i){let o=t.href,r=t.title||null,s=e[1].replace(i.other.outputLinkReplace,"$1");a.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:o,title:r,text:s,tokens:a.inlineTokens(s)};return a.state.inLink=!1,l}var ir=class{options;rules;lexer;constructor(e){this.options=e||Qi}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:tr(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let a=e.match(n.other.indentCodeCompensation);if(null===a)return t;let i=a[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[a]=t;return a.length>=i.length?e.slice(i.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=tr(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:tr(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=tr(t[0],"\n").split("\n"),n="",a="",i=[];for(;e.length>0;){let t,o=!1,r=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))r.push(e[t]),o=!0;else{if(o)break;r.push(e[t])}e=e.slice(t);let s=r.join("\n"),l=s.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${s}`:s,a=a?`${a}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){let t=u,o=t.raw+"\n"+e.join("\n"),r=this.blockquote(o);i[i.length-1]=r,n=n.substring(0,n.length-t.raw.length)+r.raw,a=a.substring(0,a.length-t.text.length)+r.text;break}if("list"===u?.type){let t=u,o=t.raw+"\n"+e.join("\n"),r=this.list(o);i[i.length-1]=r,n=n.substring(0,n.length-u.raw.length)+r.raw,a=a.substring(0,a.length-t.raw.length)+r.raw,e=o.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:i,text:a}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),a=n.length>1,i={type:"list",raw:"",ordered:a,start:a?+n.slice(0,-1):"",loose:!1,items:[]};n=a?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=a?n:"[*+-]");let o=this.rules.other.listItemRegex(n),r=!1;for(;e;){let n=!1,a="",s="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;a=t[0],e=e.substring(a.length);let l=nr(t[2].split("\n",1)[0],t[1].length),c=e.split("\n",1)[0],u=!l.trim(),d=0;if(this.options.pedantic?(d=2,s=l.trimStart()):u?d=t[1].length+1:(d=l.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=l.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(a+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),o=this.rules.other.headingBeginRegex(d),r=this.rules.other.htmlBeginRegex(d),p=this.rules.other.blockquoteBeginRegex(d);for(;e;){let f,m=e.split("\n",1)[0];if(c=m,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),f=c):f=c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||o.test(c)||r.test(c)||p.test(c)||t.test(c)||n.test(c))break;if(f.search(this.rules.other.nonSpaceChar)>=d||!c.trim())s+="\n"+f.slice(d);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||o.test(l)||n.test(l))break;s+="\n"+c}u=!c.trim(),a+=m+"\n",e=e.substring(m.length+1),l=f.slice(d)}}i.loose||(r?i.loose=!0:this.rules.other.doubleBlankLine.test(a)&&(r=!0)),i.items.push({type:"list_item",raw:a,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=a}let s=i.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e of i.items){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),"text"===e.tokens[0]?.type||"paragraph"===e.tokens[0]?.type){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=n.checked,i.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:"paragraph",raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=n}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)"text"===t.type&&(t.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:a}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=er(t[1]),a=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===a.length){for(let e of a)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<n.length;e++)o.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:o.align[e]});for(let e of i)o.rows.push(er(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=tr(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let a=0;a<e.length;a++)if("\\"===e[a])a++;else if(e[a]===t[0])n++;else if(e[a]===t[1]&&(n--,n<0))return a;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],a="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],a=e[3])}else a=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),ar(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ar(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!(!a||a[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!a[1]&&!a[2]||!n||this.rules.inline.punctuation.exec(n))){let n,i,o=[...a[0]].length-1,r=o,s=0,l="*"===a[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+o);null!=(a=l.exec(t));){if(n=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!n)continue;if(i=[...n].length,a[3]||a[4]){r+=i;continue}if((a[5]||a[6])&&o%3&&!((o+i)%3)){s+=i;continue}if(r-=i,r>0)continue;i=Math.min(i,i+r+s);let t=[...a[0]][0].length,l=e.slice(0,o+a.index+t+i);if(Math.min(o,i)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),a=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&a&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let a=this.rules.inline.delLDelim.exec(e);if(a&&(!a[1]||!n||this.rules.inline.punctuation.exec(n))){let n,i,o=[...a[0]].length-1,r=o,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+o);null!=(a=s.exec(t));){if(n=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!n||(i=[...n].length,i!==o))continue;if(a[3]||a[4]){r+=i;continue}if(r-=i,r>0)continue;i=Math.min(i,i+r);let t=[...a[0]][0].length,s=e.slice(0,o+a.index+t+i),l=s.slice(o,-o);return{type:"del",raw:s,text:l,tokens:this.lexer.inlineTokens(l)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let a;do{a=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(a!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},or=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Qi,this.options.tokenizer=this.options.tokenizer||new ir,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:Xi,block:Qo.normal,inline:Yo.normal};this.options.pedantic?(t.block=Qo.pedantic,t.inline=Yo.pedantic):this.options.gfm&&(t.block=Qo.gfm,this.options.breaks?t.inline=Yo.breaks:t.inline=Yo.gfm),this.tokenizer.rules=t}static get rules(){return{block:Qo,inline:Yo}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(Xi.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(Xi.tabCharGlobal," ").replace(Xi.spaceLine,""));e;){let a;if(this.options.extensions?.block?.some(n=>!!(a=n.call({lexer:this},e,t))&&(e=e.substring(a.raw.length),t.push(a),!0)))continue;if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length);let n=t.at(-1);1===a.raw.length&&void 0!==n?n.raw+="\n":t.push(a);continue}if(a=this.tokenizer.code(e)){e=e.substring(a.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+a.raw,n.text+="\n"+a.text,this.inlineQueue.at(-1).src=n.text):t.push(a);continue}if(a=this.tokenizer.fences(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.heading(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.hr(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.blockquote(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.list(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.html(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.def(e)){e=e.substring(a.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+a.raw,n.text+="\n"+a.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},t.push(a));continue}if(a=this.tokenizer.table(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.lheading(e)){e=e.substring(a.raw.length),t.push(a);continue}let i=e;if(this.options.extensions?.startBlock){let t,n=1/0,a=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},a),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(this.state.top&&(a=this.tokenizer.paragraph(i))){let o=t.at(-1);n&&"paragraph"===o?.type?(o.raw+=(o.raw.endsWith("\n")?"":"\n")+a.raw,o.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):t.push(a),n=i.length!==e.length,e=e.substring(a.raw.length);continue}if(a=this.tokenizer.text(e)){e=e.substring(a.raw.length);let n=t.at(-1);"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+a.raw,n.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(a);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,a=e,i=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(a));)a=a.slice(0,i.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(a));)n=i[2]?i[2].length:0,a=a.slice(0,i.index+n)+"["+"a".repeat(i[0].length-n-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);a=this.options.hooks?.emStrongMask?.call({lexer:this},a)??a;let o=!1,r="";for(;e;){let n;if(o||(r=""),o=!1,this.options.extensions?.inline?.some(a=>!!(n=a.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let a=t.at(-1);"text"===n.type&&"text"===a?.type?(a.raw+=n.raw,a.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,a,r)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e,a,r)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(this.options.extensions?.startInline){let t,n=1/0,a=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},a),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(r=n.raw.slice(-1)),o=!0;let a=t.at(-1);"text"===a?.type?(a.raw+=n.raw,a.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},rr=class{options;parser;constructor(e){this.options=e||Qi}space(e){return""}code({text:e,lang:t,escaped:n}){let a=(t||"").match(Xi.notSpaceStart)?.[0],i=e.replace(Xi.endingNewline,"")+"\n";return a?'<pre><code class="language-'+Zo(a)+'">'+(n?i:Zo(i,!0))+"</code></pre>\n":"<pre><code>"+(n?i:Zo(i,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,a="";for(let t=0;t<e.items.length;t++){let n=e.items[t];a+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+a+"</"+i+">\n"}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let a="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);a+=this.tablerow({text:n})}return a&&(a=`<tbody>${a}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+a+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Zo(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let a=this.parser.parseInline(n),i=Xo(e);if(null===i)return a;let o='<a href="'+(e=i)+'"';return t&&(o+=' title="'+Zo(t)+'"'),o+=">"+a+"</a>",o}image({href:e,title:t,text:n,tokens:a}){a&&(n=this.parser.parseInline(a,this.parser.textRenderer));let i=Xo(e);if(null===i)return Zo(n);let o=`<img src="${e=i}" alt="${Zo(n)}"`;return t&&(o+=` title="${Zo(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Zo(e.text)}},sr=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},lr=class e{options;renderer;textRenderer;constructor(e){this.options=e||Qi,this.options.renderer=this.options.renderer||new rr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new sr}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){let t="";for(let n=0;n<e.length;n++){let a=e[n];if(this.options.extensions?.renderers?.[a.type]){let e=a,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==n||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){t+=n||"";continue}}let i=a;switch(i.type){case"space":t+=this.renderer.space(i);break;case"hr":t+=this.renderer.hr(i);break;case"heading":t+=this.renderer.heading(i);break;case"code":t+=this.renderer.code(i);break;case"table":t+=this.renderer.table(i);break;case"blockquote":t+=this.renderer.blockquote(i);break;case"list":t+=this.renderer.list(i);break;case"checkbox":t+=this.renderer.checkbox(i);break;case"html":t+=this.renderer.html(i);break;case"def":t+=this.renderer.def(i);break;case"paragraph":t+=this.renderer.paragraph(i);break;case"text":t+=this.renderer.text(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return t}parseInline(e,t=this.renderer){let n="";for(let a=0;a<e.length;a++){let i=e[a];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}let o=i;switch(o.type){case"escape":case"text":n+=t.text(o);break;case"html":n+=t.html(o);break;case"link":n+=t.link(o);break;case"image":n+=t.image(o);break;case"checkbox":n+=t.checkbox(o);break;case"strong":n+=t.strong(o);break;case"em":n+=t.em(o);break;case"codespan":n+=t.codespan(o);break;case"br":n+=t.br(o);break;case"del":n+=t.del(o);break;default:{let e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}},cr=class{options;block;constructor(e){this.options=e||Qi}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?or.lex:or.lexInline}provideParser(){return this.block?lr.parse:lr.parseInline}},ur=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=lr;Renderer=rr;TextRenderer=sr;Lexer=or;Tokenizer=ir;Hooks=cr;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let a of e)switch(n=n.concat(t.call(this,a)),a.type){case"table":{let e=a;for(let a of e.header)n=n.concat(this.walkTokens(a.tokens,t));for(let a of e.rows)for(let e of a)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=a;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=a;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(a=>{let i=e[a].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let a=e.renderer.apply(this,t);return!1===a&&(a=n.apply(this,t)),a}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new rr(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let a=n,i=e.renderer[a],o=t[a];t[a]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=o.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new ir(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let a=n,i=e.tokenizer[a],o=t[a];t[a]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new cr;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let a=n,i=e.hooks[a],o=t[a];cr.passThroughHooks.has(n)?t[a]=e=>{if(this.defaults.async&&cr.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return o.call(t,n)})();let a=i.call(t,e);return o.call(t,a)}:t[a]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return!1===n&&(n=await o.apply(t,e)),n})();let n=i.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,a=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(a.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return or.lex(e,t??this.defaults)}parser(e,t){return lr.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let a={...n},i={...this.defaults,...a},o=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===a.async)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,a=await(i.hooks?await i.hooks.provideLexer():e?or.lex:or.lexInline)(n,i),o=i.hooks?await i.hooks.processAllTokens(a):a;i.walkTokens&&await Promise.all(this.walkTokens(o,i.walkTokens));let r=await(i.hooks?await i.hooks.provideParser():e?lr.parse:lr.parseInline)(o,i);return i.hooks?await i.hooks.postprocess(r):r})().catch(o);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?or.lex:or.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let a=(i.hooks?i.hooks.provideParser():e?lr.parse:lr.parseInline)(n,i);return i.hooks&&(a=i.hooks.postprocess(a)),a}catch(e){return o(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+Zo(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function dr(e,t){return ur.parse(e,t)}dr.options=dr.setOptions=function(e){return ur.setOptions(e),dr.defaults=ur.defaults,Yi(dr.defaults),dr},dr.getDefaults=Vi,dr.defaults=Qi,dr.use=function(...e){return ur.use(...e),dr.defaults=ur.defaults,Yi(dr.defaults),dr},dr.walkTokens=function(e,t){return ur.walkTokens(e,t)},dr.parseInline=ur.parseInline,dr.Parser=lr,dr.parser=lr.parse,dr.Renderer=rr,dr.TextRenderer=sr,dr.Lexer=or,dr.lexer=or.lex,dr.Tokenizer=ir,dr.Hooks=cr,dr.parse=dr;dr.options,dr.setOptions,dr.use,dr.walkTokens,dr.parseInline,lr.parse,or.lex;const{entries:pr,setPrototypeOf:fr,isFrozen:mr,getPrototypeOf:hr,getOwnPropertyDescriptor:gr}=Object;let{freeze:br,seal:vr,create:yr}=Object,{apply:wr,construct:xr}="undefined"!=typeof Reflect&&Reflect;br||(br=function(e){return e}),vr||(vr=function(e){return e}),wr||(wr=function(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];return e.apply(t,a)}),xr||(xr=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return new e(...n)});const Ar=Mr(Array.prototype.forEach),Cr=Mr(Array.prototype.lastIndexOf),kr=Mr(Array.prototype.pop),Er=Mr(Array.prototype.push),Tr=Mr(Array.prototype.splice),Sr=Mr(String.prototype.toLowerCase),Pr=Mr(String.prototype.toString),Br=Mr(String.prototype.match),Nr=Mr(String.prototype.replace),Ir=Mr(String.prototype.indexOf),_r=Mr(String.prototype.trim),Or=Mr(Object.prototype.hasOwnProperty),Lr=Mr(RegExp.prototype.test),Fr=(Rr=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xr(Rr,t)});var Rr;function Mr(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];return wr(e,t,a)}}function Dr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Sr;fr&&fr(e,null);let a=t.length;for(;a--;){let i=t[a];if("string"==typeof i){const e=n(i);e!==i&&(mr(t)||(t[a]=e),i=e)}e[i]=!0}return e}function jr(e){for(let t=0;t<e.length;t++){Or(e,t)||(e[t]=null)}return e}function zr(e){const t=yr(null);for(const[n,a]of pr(e)){Or(e,n)&&(Array.isArray(a)?t[n]=jr(a):a&&"object"==typeof a&&a.constructor===Object?t[n]=zr(a):t[n]=a)}return t}function Ur(e,t){for(;null!==e;){const n=gr(e,t);if(n){if(n.get)return Mr(n.get);if("function"==typeof n.value)return Mr(n.value)}e=hr(e)}return function(){return null}}const $r=br(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),qr=br(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Hr=br(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Wr=br(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Gr=br(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Vr=br(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Qr=br(["#text"]),Yr=br(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Jr=br(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Kr=br(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Zr=br(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Xr=vr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),es=vr(/<%[\w\W]*|[\w\W]*%>/gm),ts=vr(/\$\{[\w\W]*/gm),ns=vr(/^data-[\-\w.\u00B7-\uFFFF]+$/),as=vr(/^aria-[\-\w]+$/),is=vr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),os=vr(/^(?:\w+script|data):/i),rs=vr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ss=vr(/^html$/i),ls=vr(/^[a-z][.\w]*(-[.\w]+)+$/i);var cs=Object.freeze({__proto__:null,ARIA_ATTR:as,ATTR_WHITESPACE:rs,CUSTOM_ELEMENT:ls,DATA_ATTR:ns,DOCTYPE_NAME:ss,ERB_EXPR:es,IS_ALLOWED_URI:is,IS_SCRIPT_OR_DATA:os,MUSTACHE_EXPR:Xr,TMPLIT_EXPR:ts});const us=1,ds=3,ps=7,fs=8,ms=9,hs=function(){return"undefined"==typeof window?null:window};var gs=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hs();const n=t=>e(t);if(n.version="3.3.1",n.removed=[],!t||!t.document||t.document.nodeType!==ms||!t.Element)return n.isSupported=!1,n;let{document:a}=t;const i=a,o=i.currentScript,{DocumentFragment:r,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:m}=t,h=c.prototype,g=Ur(h,"cloneNode"),b=Ur(h,"remove"),v=Ur(h,"nextSibling"),y=Ur(h,"childNodes"),w=Ur(h,"parentNode");if("function"==typeof s){const e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let x,A="";const{implementation:C,createNodeIterator:k,createDocumentFragment:E,getElementsByTagName:T}=a,{importNode:S}=i;let P={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof pr&&"function"==typeof w&&C&&void 0!==C.createHTMLDocument;const{MUSTACHE_EXPR:B,ERB_EXPR:N,TMPLIT_EXPR:I,DATA_ATTR:_,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:F,CUSTOM_ELEMENT:R}=cs;let{IS_ALLOWED_URI:M}=cs,D=null;const j=Dr({},[...$r,...qr,...Hr,...Gr,...Qr]);let z=null;const U=Dr({},[...Yr,...Jr,...Kr,...Zr]);let $=Object.seal(yr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,H=null;const W=Object.seal(yr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let G=!0,V=!0,Q=!1,Y=!0,J=!1,K=!0,Z=!1,X=!1,ee=!1,te=!1,ne=!1,ae=!1,ie=!0,oe=!1,re=!0,se=!1,le={},ce=null;const ue=Dr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const pe=Dr({},["audio","video","img","source","image","track"]);let fe=null;const me=Dr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml";let ve=be,ye=!1,we=null;const xe=Dr({},[he,ge,be],Pr);let Ae=Dr({},["mi","mo","mn","ms","mtext"]),Ce=Dr({},["annotation-xml"]);const ke=Dr({},["title","style","font","a","script"]);let Ee=null;const Te=["application/xhtml+xml","text/html"];let Se=null,Pe=null;const Be=a.createElement("form"),Ne=function(e){return e instanceof RegExp||e instanceof Function},Ie=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Pe||Pe!==e){if(e&&"object"==typeof e||(e={}),e=zr(e),Ee=-1===Te.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Se="application/xhtml+xml"===Ee?Pr:Sr,D=Or(e,"ALLOWED_TAGS")?Dr({},e.ALLOWED_TAGS,Se):j,z=Or(e,"ALLOWED_ATTR")?Dr({},e.ALLOWED_ATTR,Se):U,we=Or(e,"ALLOWED_NAMESPACES")?Dr({},e.ALLOWED_NAMESPACES,Pr):xe,fe=Or(e,"ADD_URI_SAFE_ATTR")?Dr(zr(me),e.ADD_URI_SAFE_ATTR,Se):me,de=Or(e,"ADD_DATA_URI_TAGS")?Dr(zr(pe),e.ADD_DATA_URI_TAGS,Se):pe,ce=Or(e,"FORBID_CONTENTS")?Dr({},e.FORBID_CONTENTS,Se):ue,q=Or(e,"FORBID_TAGS")?Dr({},e.FORBID_TAGS,Se):zr({}),H=Or(e,"FORBID_ATTR")?Dr({},e.FORBID_ATTR,Se):zr({}),le=!!Or(e,"USE_PROFILES")&&e.USE_PROFILES,G=!1!==e.ALLOW_ARIA_ATTR,V=!1!==e.ALLOW_DATA_ATTR,Q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,J=e.SAFE_FOR_TEMPLATES||!1,K=!1!==e.SAFE_FOR_XML,Z=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,ae=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,re=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,M=e.ALLOWED_URI_REGEXP||is,ve=e.NAMESPACE||be,Ae=e.MATHML_TEXT_INTEGRATION_POINTS||Ae,Ce=e.HTML_INTEGRATION_POINTS||Ce,$=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ne(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ne(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&($.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),J&&(V=!1),ne&&(te=!0),le&&(D=Dr({},Qr),z=[],!0===le.html&&(Dr(D,$r),Dr(z,Yr)),!0===le.svg&&(Dr(D,qr),Dr(z,Jr),Dr(z,Zr)),!0===le.svgFilters&&(Dr(D,Hr),Dr(z,Jr),Dr(z,Zr)),!0===le.mathMl&&(Dr(D,Gr),Dr(z,Kr),Dr(z,Zr))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?W.tagCheck=e.ADD_TAGS:(D===j&&(D=zr(D)),Dr(D,e.ADD_TAGS,Se))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?W.attributeCheck=e.ADD_ATTR:(z===U&&(z=zr(z)),Dr(z,e.ADD_ATTR,Se))),e.ADD_URI_SAFE_ATTR&&Dr(fe,e.ADD_URI_SAFE_ATTR,Se),e.FORBID_CONTENTS&&(ce===ue&&(ce=zr(ce)),Dr(ce,e.FORBID_CONTENTS,Se)),e.ADD_FORBID_CONTENTS&&(ce===ue&&(ce=zr(ce)),Dr(ce,e.ADD_FORBID_CONTENTS,Se)),re&&(D["#text"]=!0),Z&&Dr(D,["html","head","body"]),D.table&&(Dr(D,["tbody"]),delete q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Fr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Fr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=e.TRUSTED_TYPES_POLICY,A=x.createHTML("")}else void 0===x&&(x=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(m,o)),null!==x&&"string"==typeof A&&(A=x.createHTML(""));br&&br(e),Pe=e}},_e=Dr({},[...qr,...Hr,...Wr]),Oe=Dr({},[...Gr,...Vr]),Le=function(e){Er(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){b(e)}},Fe=function(e,t){try{Er(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Er(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{Le(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Re=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=Br(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ee&&ve===be&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=x?x.createHTML(e):e;if(ve===be)try{t=(new f).parseFromString(i,Ee)}catch(e){}if(!t||!t.documentElement){t=C.createDocument(ve,"template",null);try{t.documentElement.innerHTML=ye?A:i}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),ve===be?T.call(t,Z?"html":"body")[0]:Z?t.documentElement:o},Me=function(e){return k.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},De=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof l&&e instanceof l};function ze(e,t,a){Ar(e,e=>{e.call(n,t,a,Pe)})}const Ue=function(e){let t=null;if(ze(P.beforeSanitizeElements,e,null),De(e))return Le(e),!0;const a=Se(e.nodeName);if(ze(P.uponSanitizeElement,e,{tagName:a,allowedTags:D}),K&&e.hasChildNodes()&&!je(e.firstElementChild)&&Lr(/<[/\w!]/g,e.innerHTML)&&Lr(/<[/\w!]/g,e.textContent))return Le(e),!0;if(e.nodeType===ps)return Le(e),!0;if(K&&e.nodeType===fs&&Lr(/<[/\w]/g,e.data))return Le(e),!0;if(!(W.tagCheck instanceof Function&&W.tagCheck(a))&&(!D[a]||q[a])){if(!q[a]&&qe(a)){if($.tagNameCheck instanceof RegExp&&Lr($.tagNameCheck,a))return!1;if($.tagNameCheck instanceof Function&&$.tagNameCheck(a))return!1}if(re&&!ce[a]){const t=w(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let a=n.length-1;a>=0;--a){const i=g(n[a],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,v(e))}}}return Le(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});const n=Sr(e.tagName),a=Sr(t.tagName);return!!we[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===be?"svg"===n:t.namespaceURI===he?"svg"===n&&("annotation-xml"===a||Ae[a]):Boolean(_e[n]):e.namespaceURI===he?t.namespaceURI===be?"math"===n:t.namespaceURI===ge?"math"===n&&Ce[a]:Boolean(Oe[n]):e.namespaceURI===be?!(t.namespaceURI===ge&&!Ce[a])&&!(t.namespaceURI===he&&!Ae[a])&&!Oe[n]&&(ke[n]||!_e[n]):!("application/xhtml+xml"!==Ee||!we[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==a&&"noembed"!==a&&"noframes"!==a||!Lr(/<\/no(script|embed|frames)/i,e.innerHTML)?(J&&e.nodeType===ds&&(t=e.textContent,Ar([B,N,I],e=>{t=Nr(t,e," ")}),e.textContent!==t&&(Er(n.removed,{element:e.cloneNode()}),e.textContent=t)),ze(P.afterSanitizeElements,e,null),!1):(Le(e),!0)},$e=function(e,t,n){if(ie&&("id"===t||"name"===t)&&(n in a||n in Be))return!1;if(V&&!H[t]&&Lr(_,t));else if(G&&Lr(O,t));else if(W.attributeCheck instanceof Function&&W.attributeCheck(t,e));else if(!z[t]||H[t]){if(!(qe(e)&&($.tagNameCheck instanceof RegExp&&Lr($.tagNameCheck,e)||$.tagNameCheck instanceof Function&&$.tagNameCheck(e))&&($.attributeNameCheck instanceof RegExp&&Lr($.attributeNameCheck,t)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(t,e))||"is"===t&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&Lr($.tagNameCheck,n)||$.tagNameCheck instanceof Function&&$.tagNameCheck(n))))return!1}else if(fe[t]);else if(Lr(M,Nr(n,F,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Ir(n,"data:")||!de[e]){if(Q&&!Lr(L,Nr(n,F,"")));else if(n)return!1}else;return!0},qe=function(e){return"annotation-xml"!==e&&Br(e,R)},He=function(e){ze(P.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||De(e))return;const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let i=t.length;for(;i--;){const o=t[i],{name:r,namespaceURI:s,value:l}=o,c=Se(r),u=l;let d="value"===r?u:_r(u);if(a.attrName=c,a.attrValue=d,a.keepAttr=!0,a.forceKeepAttr=void 0,ze(P.uponSanitizeAttribute,e,a),d=a.attrValue,!oe||"id"!==c&&"name"!==c||(Fe(r,e),d="user-content-"+d),K&&Lr(/((--!?|])>)|<\/(style|title|textarea)/i,d)){Fe(r,e);continue}if("attributename"===c&&Br(d,"href")){Fe(r,e);continue}if(a.forceKeepAttr)continue;if(!a.keepAttr){Fe(r,e);continue}if(!Y&&Lr(/\/>/i,d)){Fe(r,e);continue}J&&Ar([B,N,I],e=>{d=Nr(d,e," ")});const p=Se(e.nodeName);if($e(p,c,d)){if(x&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(s);else switch(m.getAttributeType(p,c)){case"TrustedHTML":d=x.createHTML(d);break;case"TrustedScriptURL":d=x.createScriptURL(d)}if(d!==u)try{s?e.setAttributeNS(s,r,d):e.setAttribute(r,d),De(e)?Le(e):kr(n.removed)}catch(t){Fe(r,e)}}else Fe(r,e)}ze(P.afterSanitizeAttributes,e,null)},We=function e(t){let n=null;const a=Me(t);for(ze(P.beforeSanitizeShadowDOM,t,null);n=a.nextNode();)ze(P.uponSanitizeShadowNode,n,null),Ue(n),He(n),n.content instanceof r&&e(n.content);ze(P.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null,o=null,s=null,c=null;if(ye=!e,ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw Fr("toString is not a function");if("string"!=typeof(e=e.toString()))throw Fr("dirty is not a string, aborting")}if(!n.isSupported)return e;if(X||Ie(t),n.removed=[],"string"==typeof e&&(se=!1),se){if(e.nodeName){const t=Se(e.nodeName);if(!D[t]||q[t])throw Fr("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)a=Re("\x3c!----\x3e"),o=a.ownerDocument.importNode(e,!0),o.nodeType===us&&"BODY"===o.nodeName||"HTML"===o.nodeName?a=o:a.appendChild(o);else{if(!te&&!J&&!Z&&-1===e.indexOf("<"))return x&&ae?x.createHTML(e):e;if(a=Re(e),!a)return te?null:ae?A:""}a&&ee&&Le(a.firstChild);const u=Me(se?e:a);for(;s=u.nextNode();)Ue(s),He(s),s.content instanceof r&&We(s.content);if(se)return e;if(te){if(ne)for(c=E.call(a.ownerDocument);a.firstChild;)c.appendChild(a.firstChild);else c=a;return(z.shadowroot||z.shadowrootmode)&&(c=S.call(i,c,!0)),c}let d=Z?a.outerHTML:a.innerHTML;return Z&&D["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&Lr(ss,a.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+d),J&&Ar([B,N,I],e=>{d=Nr(d,e," ")}),x&&ae?x.createHTML(d):d},n.setConfig=function(){Ie(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),X=!0},n.clearConfig=function(){Pe=null,X=!1},n.isValidAttribute=function(e,t,n){Pe||Ie({});const a=Se(e),i=Se(t);return $e(a,i,n)},n.addHook=function(e,t){"function"==typeof t&&Er(P[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=Cr(P[e],t);return-1===n?void 0:Tr(P[e],n,1)[0]}return kr(P[e])},n.removeHooks=function(e){P[e]=[]},n.removeAllHooks=function(){P={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),bs=o(3913),vs={};vs.styleTagTransform=g(),vs.setAttributes=p(),vs.insert=u().bind(null,"head"),vs.domAPI=l(),vs.insertStyleElement=m();i()(bs.A,vs);bs.A&&bs.A.locals&&bs.A.locals;const ys=e=>{if(!e)return!1;const t=e.split("?")[0].split("#")[0];return/\.(md|markdown|mdown|mkd|mkdn)$/i.test(t)},ws=new Map,xs={icon:function(t,n){if(t&&ys(t.uri))return e.icons.iconBase+"markdown.svg";if(t){const a=n.session.store,i=ws.get(t.uri);if("dokieli"===i)return e.icons.iconBase+"dokieli-logo.png";if("html"===i)return e.icons.originalIconBase+"tango/22-text-x-generic.png";const o=a.fetcher.getHeader(t.doc(),"content");if(o&&o.length>0){const n=o[0],a=n.includes('<script src="https://dokie.li/scripts/dokieli.js">')||n.includes("dokieli.css");return ws.set(t.uri,a?"dokieli":"html"),a?e.icons.iconBase+"dokieli-logo.png":e.icons.originalIconBase+"tango/22-text-x-generic.png"}const r=a.fetcher.getHeader(t.doc(),"content-type");if("text/html"===(r?r[0].split(";",1)[0].trim():null))return a.fetcher._fetch(t.uri).then(e=>e.text()).then(n=>{const a=n.includes('<script src="https://dokie.li/scripts/dokieli.js">')||n.includes("dokieli.css");return ws.set(t.uri,a?"dokieli":"html"),a?e.icons.iconBase+"dokieli-logo.png":e.icons.originalIconBase+"tango/22-text-x-generic.png"}).catch(()=>(ws.set(t.uri,"html"),e.icons.originalIconBase+"tango/22-text-x-generic.png"))}return e.icons.originalIconBase+"tango/22-text-x-generic.png"},name:"humanReadable",label:function(t,n){const a=n.session.store,i=["text/plain","text/html","text/markdown","application/xhtml+xml","image/png","image/jpeg","application/pdf","video/mp4"];if(!t.uri)return null;if(a.findTypeURIs(t)[e.ns.link("WebPage").uri])return"view";if(ys(t.uri))return"View";if(function(e,t,n){const a=e.fetcher.getHeader(t,"content-type");if(a)for(let e=0;e<a.length;e++)for(let t=0;t<n.length;t++)if(a[e].indexOf(n[t])>=0)return!0;return!1}(a,t,i)||function(e,t,n){const a=e.findTypeURIs(t);for(let e=0;e<n.length;e++)if(y.Util.mediaTypeClass(n[e]).uri in a)return!0;return!1}(a,t,i)){const e=a.fetcher.getHeader(t.doc(),"content-type");return"text/html"!==(e?e[0].split(";",1)[0].trim():null)||ws.has(t.uri)||a.fetcher._fetch(t.uri).then(e=>e.text()).then(e=>{const n=e.includes('<script src="https://dokie.li/scripts/dokieli.js">')||e.includes("dokieli.css");ws.set(t.uri,n?"dokieli":"html")}).catch(()=>{ws.set(t.uri,"html")}),"View"}return null},render:function(e,t){const n=t.dom,a=n.createElement("div"),i=t.session.store,o=i.fetcher.getHeader(e.doc(),"content-type"),r=o?o[0].split(";",1)[0].trim():null,s="text/markdown"===r||ys(e.uri);r||console.log("humanReadablePane: unknown content-type?"),a.setAttribute("class","docView");const l=function(e,t){e.classList.add("doc","humanReadableFrame"),e.style.setProperty("--human-readable-height",`${t}em`)},c=(t,n)=>{t.setAttribute("src",e.uri),l(t,n)};if(s){const t=n.createElement("div");!function(t){i.fetcher.webOperation("GET",e.uri).then(e=>{const n=e.responseText,a=Math.min(30,n.split(/\n/).length+5),i=dr.parse(n),o=gs.sanitize(i);t.innerHTML=o,l(t,a)}).catch(e=>{console.error("Error fetching markdown content:",e),t.innerHTML="<p>Error loading content</p>"})}(t);const o=n.createElement("tr");o.appendChild(t),a.appendChild(o)}else{const t=n.createElement("iframe");"text/html"!==r&&"application/xhtml+xml"!==r||t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),i.fetcher.webOperation("GET",e.uri).then(n=>{const a=n.responseText,i=a.includes('<script src="https://dokie.li/scripts/dokieli.js">')?-10:5,o=Math.min(30,a.split(/\n/).length+i),r=a.includes('<script src="https://dokie.li/scripts/dokieli.js">')||a.includes("dokieli.css");ws.set(e.uri,r?"dokieli":"html"),c(t,o)}).catch(e=>{console.error("Error fetching content for line calculation:",e),c(t,30)});const o=n.createElement("tr");o.appendChild(t),a.appendChild(o)}return a}},As=xs;var Cs=o(5089),ks={};ks.styleTagTransform=g(),ks.setAttributes=p(),ks.insert=u().bind(null,"head"),ks.domAPI=l(),ks.insertStyleElement=m();i()(Cs.A,ks);Cs.A&&Cs.A.locals&&Cs.A.locals;const Es=e.ns,Ts={icon:e.icons.originalIconBase+"rdf_flyer.24.gif",name:"dataContents",audience:[Es.solid("Developer")],label:function(e,t){if("http://www.w3.org/2007/ont/link#ProtocolEvent"in t.session.store.findTypeURIs(e))return null;const n=t.session.store.statementsMatching(void 0,void 0,void 0,e).length;return 0===n?null:"Data ("+n+")"},statementsAsTables:function(t,n,a){const i=n.dom,o=i.createElement("table"),r=y.Serializer(n.session.store),s=r.rootSubjects(t);let l=s.roots;const c=s.subjects,u=s.loopBreakers;for(const e in u)console.log("\tdataContentPane: loopbreaker:"+e);const d={},p={};function f(t){const n=i.createElement("table");let a=null;const o=c[r.toStr(t)];if(!o)return n.appendChild(i.createTextNode("...")),n;o.sort();let s,l=0;for(let t=0;t<o.length;t++){const r=o[t],c=i.createElement("tr");if(c.classList.add("dataContentPaneTopAlignedRow"),r.predicate.uri!==a){a&&l>1&&s.setAttribute("rowspan",""+l),s=i.createElement("td"),s.setAttribute("class","pred");const t=i.createElement("a");t.setAttribute("href",r.predicate.uri),t.addEventListener("click",e.widgets.openHrefInOutlineMode,!0),t.appendChild(i.createTextNode(e.utils.predicateLabelForXML(r.predicate))),s.appendChild(t),c.appendChild(s),a=r.predicate.uri,l=0}l++;const u=i.createElement("td");u.appendChild(m(r.object)),c.appendChild(u),n.appendChild(c)}return a&&l>1&&s.setAttribute("rowspan",""+l),n}function m(t){let a,o;switch(t.termType){case"NamedNode":return o=i.createElement("a"),o.setAttribute("href",t.uri),o.addEventListener("click",e.widgets.openHrefInOutlineMode,!0),o.appendChild(i.createTextNode(e.utils.label(t))),o;case"Literal":return t.datatype&&t.datatype.uri?"http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral"===t.datatype.uri?(a=i.createElement("div"),a.classList.add("embeddedXHTML"),a.innerHTML=t.value,a):i.createTextNode(t.value):(a=i.createElement("div"),a.classList.add("contentPaneLiteral"),a.textContent=t.value,a);case"BlankNode":{if(t.toNT()in d){p[t.toNT()]=!0;const e=i.createElement("a");return e.setAttribute("href","#"+t.toNT().slice(2)),e.setAttribute("class","bnodeRef"),e.textContent="*"+t.toNT().slice(3),e}d[t.toNT()]=!0;const n=f(t);d[t.toNT()]=n;const a=e.utils.ancestor(n,"TABLE");return a&&a.classList.contains("dataContentPaneNestedLight")?n.classList.add("dataContentPaneNestedDark"):n.classList.add("dataContentPaneNestedLight"),n}case"Collection":a=i.createElement("table"),a.setAttribute("class","collectionAsTables");for(let e=0;e<t.elements.length;e++){const n=i.createElement("tr");a.appendChild(n),n.appendChild(m(t.elements[e]))}return a;case"Graph":return a=n.session.paneRegistry.byName("dataContents").statementsAsTables(t.statements,n),a.setAttribute("class","nestedFormula"),a;case"Variable":return a=i.createTextNode("?"+t.uri),a}throw new Error("Unhandled node type: "+t.termType)}a&&(l=a.concat(l.filter(function(e){for(let t=0;t<a.length;t++)if(e.sameTerm(a[t]))return!1;return!0})));for(let t=0;t<l.length;t++){const n=i.createElement("tr");n.classList.add(t%2==0?"dataContentPaneRowEven":"dataContentPaneRowOdd"),o.appendChild(n);const a=i.createElement("td");n.appendChild(a);const r=i.createElement("td");n.appendChild(r);const s=l[t];"BlankNode"===s.termType?a.appendChild(i.createTextNode(e.utils.label(s))):a.appendChild(m(s)),r.appendChild(f(s))}for(const e in p){const t=d[e],n=i.createElement("a");n.setAttribute("id",e.slice(2)),n.setAttribute("class","bnodeDef"),n.textContent=e.slice(3)+")",t.insertBefore(n,t.firstChild)}return o},render:function(t,n){const a=n.dom;n.getOutliner(a);const i=n.session.store,o=a.createElement("div");o.setAttribute("class","dataContentPane");const r=i.statementsMatching(void 0,void 0,void 0,t);return function(){const a=[];i.holds(t,void 0,void 0,t)&&a.push(t);const s=i.any(t,e.ns.foaf("primaryTopic"),void 0,t);s&&a.push(s),o.appendChild(n.session.paneRegistry.byName("dataContents").statementsAsTables(r,n,a))}(),o}};var Ss=o(3385),Ps=o.n(Ss);const Bs=e.ns,Ns={icon:e.icons.originalIconBase+"w3c/n3_smaller.png",name:"n3",audience:[Bs.solid("Developer")],label:function(e,t){const n=t.session.store;if("http://www.w3.org/2007/ont/link#ProtocolEvent"in n.findTypeURIs(e))return null;const a=n.statementsMatching(void 0,void 0,void 0,e).length;return 0===a?null:"Data ("+a+") as N3"},render:function(e,t){const n=t.dom,a=t.session.store,i=n.createElement("div");i.setAttribute("class","n3Pane");const o=a.statementsMatching(void 0,void 0,void 0,e),r=y.Serializer(a);r.suggestNamespaces(a.namespaces),r.setBase(e.uri);const s=r.statementsToN3(o),l=n.createElement("PRE");return l.appendChild(n.createTextNode(s)),i.appendChild(l),i}},Is=e.ns,_s={icon:e.icons.originalIconBase+"22-text-xml4.png",name:"RDFXML",audience:[Is.solid("Developer")],label:function(e,t){const n=t.session.store;if("http://www.w3.org/2007/ont/link#ProtocolEvent"in n.findTypeURIs(e))return null;const a=n.statementsMatching(void 0,void 0,void 0,e).length;return 0===a?null:"As RDF/XML ("+a+")"},render:function(e,t){const n=t.dom,a=t.session.store,i=n.createElement("div");i.setAttribute("class","RDFXMLPane");const o=a.statementsMatching(void 0,void 0,void 0,e),r=y.Serializer(a);r.suggestNamespaces(a.namespaces),r.setBase(e.uri);const s=r.statementsToXML(o),l=n.createElement("PRE");return l.appendChild(n.createTextNode(s)),i.appendChild(l),i}},Os=e.ns,Ls={icon:e.icons.iconBase+"noun_122196.svg",name:"form",audience:[Os.solid("PowerUser")],label:function(t){const n=e.widgets.formsFor(t).length;return e.log.debug("Form pane: forms for "+t+": "+n),n?n+" forms":null},render:function(n,a){const i=a.session.store,o=a.dom,r=function(e,t){const n=o.createElement("p");return n.setAttribute("style",t||"color: grey; background-color: white"),u.appendChild(n).textContent=e,n},s=function(e,t){r(e,"style")},l=function(e,t){e||s("Sorry, failed to save your change:\n"+t)},c=t.authn.currentUser(),u=o.createElement("div");if(u.setAttribute("class","formPane"),c){0===i.each(c,Os.ui("workspace")).length&&r("You don't seem to have any workspaces defined. A workspace is a place on the web (http://..) or in the file system (file:///) to store application data.\n")}else r("You are not logged in. If you log in and have workspaces then you would be able to select workspace in which to put this new information");const d=function(t,n){i.fetcher.nowOrWhenFetched(t.uri,n,function(a,i){if(!a)return s("Cannot load store "+t.uri+": "+i);const r=e.widgets.formsFor(n);for(let a=0;a<r.length;a++){const i=r[a],s=o.createElement("h4");if(u.appendChild(s),i.uri){const t=y.Util.uri.document(i.uri);if(t.uri!==i.uri){u.appendChild(e.widgets.editFormButton(o,u,i,t,l)).setAttribute("style","float: right;")}}const c=o.createElement("a");c.setAttribute("href",i.uri),s.appendChild(c),c.textContent=e.utils.label(i,!0),e.widgets.appendForm(o,u,{},n,i,t,l)}})};let p=null;const f=y.Util.uri.docpart(n.uri);if(n.uri!==f&&i.updater.editable(f,i)&&(p=n.doc()),p=p||i.any(i.sym(f),Os.link("annotationStore")),!p){const e={},t=[];p.statementsMatching(n).forEach(function(t){e[t.why.uri]=1}),p.statementsMatching(void 0,void 0,n).forEach(function(t){e[t.why.uri]=2});for(const n in e)t.push(e[n],n);t.sort();for(let e=0;e<t.length;e++){const n=t[e][1];if(n&&p.updater.editable(n)){p=p.sym(n);break}}}const m="2014";if(p)d(p,n);else{s("No suitable store is known, to edit <"+n.uri+">.");const t=e.login.selectWorkspace(o,function(e){r("Workspace selected OK: "+e);const t=p.each(void 0,Os.space("workspace"),e);for(let a=0;a<t.length;a++){const i=t[a],o=p.any(e,Os.space("store")),r=p.any(e,Os.cal("dtstart")).value(),l=p.any(e,Os.cal("dtend")).value();if(o&&r&&l&&r<=m&&l>m){d(o,n);break}s("Note no suitable annotation store in activity: "+i)}});u.appendChild(t)}return u}},Fs={icon:e.icons.originalIconBase+"table.png",name:"tableOfClass",label:function(t,n){const a=n.session.store;if(!a.any(void 0,e.ns.rdf("type"),t))return null;const i=a.statementsMatching(void 0,e.ns.rdf("type"),t).length;return 0===i||i>15?null:e.utils.label(t)+" table"},render:function(t,n){const a=n.dom,i=a.createElement("div");return i.setAttribute("class","tablePane"),i.appendChild(e.table(a,{tableClass:t})),i}},Rs=e.ns,Ms={icon:e.icons.originalIconBase+"about.png",name:"default",audience:[Rs.solid("Developer")],label:function(e){return"about "},render:function(t,n){const a=n.dom,i=function(e,t){return void 0===n.session.paneRegistry.byName("internal").predicates[e.uri]&&(!t||"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"!==e.uri)},o=n.getOutliner(a),r=n.session.store;e.log.info("@defaultPane.render, dom is now "+a.location),t=r.canon(t);const s=a.createElement("div");s.setAttribute("class","defaultPane");let l=r.statementsMatching(t);if(o.appendPropertyTRs(s,l,!1,i),l=r.statementsMatching(void 0,void 0,t),o.appendPropertyTRs(s,l,!0,i),"Literal"===t.termType&&"http://"===t.value.slice(0,7)&&o.appendPropertyTRs(s,[y.st(r.sym(t.value),e.ns.link("uri"),t)],!0,i),"NamedNode"===t.termType&&r.updater.editable(y.Util.uri.docpart(t.uri),r)||"BlankNode"===t.termType&&r.anyStatementMatching(t)&&r.anyStatementMatching(t).why&&r.anyStatementMatching(t).why.uri&&r.updater.editable(r.anyStatementMatching(t).why.uri)){const t=a.createElement("tr"),n=a.createElement("td");n.setAttribute("colspan","2"),n.setAttribute("notSelectable","true");const i=a.createElement("img");i.src=e.icons.originalIconBase+"tango/22-list-add-new.png",i.addEventListener("click",function(e){o.UserInput.addNewPredicateObject(e),e.stopPropagation(),e.preventDefault()}),i.className="bottom-border-active",s.appendChild(t).appendChild(n).appendChild(i)}return s}},Ds=e.ns,js={icon:e.icons.iconBase+"noun_170702.svg",name:"ui",audience:[Ds.solid("PowerUser")],label:function(t,n){const a=e.ns,i=n.session.store.findTypeURIs(t);return i[a.rdfs("Class").uri]?"creation forms":i[a.ui("Form").uri]?"edit form":null},render:function(t,n){const a=n.dom,i=n.session.store,o=e.ns,r=a.createElement("div");r.setAttribute("class","formPane");const s=e.utils.label(t),l=function(e,t){const n=a.createElement("p");return n.setAttribute("style",t||"color: grey; background-color: white"),r.appendChild(n).textContent=e,n},c=function(e,t){l(e,"style")},u=function(e,t){e||c("Sorry, failed to save your change:\n"+t)},d=i.findTypeURIs(t);let p,f,m=null;t.uri&&(p=y.Util.uri.docpart(t.uri),t.uri!==p&&i.updater.editable(p)&&(m=i.sym(y.Util.uri.docpart(t.uri)))),m||(m=i.any(i.sym(p),o.link("annotationStore"))),m||(m=e.widgets.defaultAnnotationStore(t)),m||(m=i.sym("https://formsregistry.solid.community/public/formRegistry/")),d[o.rdfs("Class").uri];const h=l("(Loading data from: "+m+")");return i.fetcher.nowOrWhenFetched(m.uri,t,function(p,g){if(p)if(r.removeChild(h),d[o.rdfs("Class").uri]){const d=function(d,p){const f=i.statementsMatching(t,d),h=n.getOutliner(a);if(f.length){for(let n=0;n<f.length;n++){h.appendPropertyTRs(r,[f[n]]);const s=f[n].object,l=a.createElement("td");r.lastChild.appendChild(l),p&&l.appendChild(e.widgets.newButton(a,i,null,null,t,s,m,function(e,t){e||c("Sorry, failed to save your change:\n"+t)}));let d=i.statementsMatching(s,o.rdf("type"));d.length||(d=i.statementsMatching(s)),d.length?e.widgets.editFormButton(a,r,s,d[0].why,u):c("No data about form")}r.appendChild(a.createElement("hr"))}else l("There are currently no known forms to make a "+s+".")};f=o.ui("creationForm"),r.appendChild(a.createElement("h2")).textContent=e.utils.label(f),l("Creation forms allow you to add information about a new thing, in this case a new "+s+"."),d(f,!0),r.appendChild(a.createElement("hr")),l("You can make a new creation form:"),r.appendChild(e.widgets.newButton(a,i,t,f,o.ui("Form"),null,m,u)),r.appendChild(a.createElement("hr")),f=o.ui("annotationForm"),r.appendChild(a.createElement("h2")).textContent=e.utils.label(f),l("Annotaion forms allow you to add extra information about a ,"+s+" we already know about."),d(f,!1),r.appendChild(a.createElement("hr")),l("You can make a new annotation form:"),r.appendChild(e.widgets.newButton(a,i,t,f,o.ui("Form"),null,m,u)),l("(Storing new forms in: "+m+")")}else d[o.ui("Form").uri]?e.widgets.appendForm(a,r,i,t,o.ui("FormForm"),m,u):c("ui/pane internal error -- Eh?");else c("Cannot load store "+m+" :"+g)}),r}},zs={icon:e.icons.iconBase+"padlock-timbl.svg",name:"sharing",label:(t,n)=>{const a=n.session.store.findTypeURIs(t);return a[e.ns.ldp("Resource").uri]||a[e.ns.ldp("Container").uri]||a[e.ns.ldp("BasicContainer").uri]?"Sharing":null},render:(t,n)=>{const a=n.dom,i=n.session.store,o=function(){const n=i.findTypeURIs(t);if(n[e.ns.ldp("BasicContainer").uri]||n[e.ns.ldp("Container").uri])return"folder";return"file"}(),r=a.createElement("div");return r.classList.add("sharingPane"),e.aclControl.preventBrowserDropEvents(a),r.appendChild(e.aclControl.ACLControlBox5(t,n,o,i)),r}},Us=zs;var $s=o(2759),qs={};qs.styleTagTransform=g(),qs.setAttributes=p(),qs.insert=u().bind(null,"head"),qs.domAPI=l(),qs.insertStyleElement=m();i()($s.A,qs);$s.A&&$s.A.locals&&$s.A.locals;const Hs={icon:e.icons.originalIconBase+"tango/22-emblem-system.png",name:"internal",label:function(){return"under the hood"},render:function(t,n){const a=n.dom,i=n.session.store,o=i.canon(t),r=i.findTypeURIs(o);function s(e){if(r["http://www.w3.org/2007/ont/link#ProtocolEvent"])return!0;const t=n.session.paneRegistry.byName("internal");return t&&t.predicates&&!(void 0===t.predicates[e.uri])}const l=a.createElement("div");function c(t,n){const a=t.fetcher;if(a)return new Promise(function(i,o){a.load(n).then(function(){const r=t.each(n,e.ns.ldp("contains")).map(n=>t.holds(n,e.ns.rdf("type"),e.ns.ldp("BasicContainer"))?c(t,n):(console.log("deleteRecursive leaf file: "+n),a.webOperation("DELETE",n.uri)));Promise.all(r).then(()=>{console.log("deleteRecursive empty folder: "+n),a.webOperation("DELETE",n.uri).then(()=>{console.log("Deleted Ok: "+n),i(void 0)}).catch(e=>{const t="Unable to delete "+n+": "+e;console.log(t),o(new Error(t))}),i(void 0)},e=>{alert(e),o(e)})})});console.error("No fetcher available")}l.classList.add("internalPane","internalPaneContent");if(t.uri&&!t.uri.includes("#")){const n=l.appendChild(a.createElement("table"));n.classList.add("internalPaneControls");const o=n.appendChild(a.createElement("tr")),r=o.appendChild(a.createElement("td")),s=t.uri&&t.uri.endsWith("/")||i.holds(t,e.ns.rdf("type"),e.ns.ldp("Container")),u=s?"folder":"file";if(!function(e){const t=e.site().uri;return e.uri===t||e.uri===t+"profile/"||e.uri===t+"profile/card"||e.uri===t+"settings/"||e.uri===t+"settings/prefs.ttl"||e.uri===t+"settings/privateTypeIndex.ttl"||e.uri===t+"settings/publicTypeIndex.ttl"||e.uri===t+"settings/serverSide.ttl"}(t)){console.log(t);const n=e.widgets.deleteButtonWithCheck(a,r,u,function(){if(!confirm(`Are you sure you want to delete ${t}? This cannot be undone.`))return;if(!i.fetcher)throw new Error("Store has no fetcher");(s?c(i,t)||Promise.resolve():i.fetcher.webOperation("DELETE",t.uri)||Promise.resolve()).then(()=>{const e="Deleted: "+t;console.log(e)}).catch(e=>{const n="Unable to delete "+t+": "+e;console.log(n),alert(n)})});n.class="",n.classList.add("internalPaneDeleteButton"),r.appendChild(n)}const d=o.appendChild(a.createElement("td")),p=e.widgets.button(a,e.icons.iconBase+"noun_479395.svg","refresh");d.appendChild(p),p.addEventListener("click",()=>{if(!i.fetcher)throw new Error("Store has no fetcher");i.fetcher.refresh(t,function(e,n){let a;a=e?"Refreshed OK: "+t:"Error refreshing: "+t+": "+n,console.log(a),alert(a)})})}let u=i.statementsMatching(t),d="";if(!i.fetcher)throw new Error("Store has no fetcher");if(t.uri&&(u.push((0,y.st)(t,(0,y.sym)("http://www.w3.org/2007/ont/link#uri"),t.uri,i.fetcher.appNode)),t.uri.indexOf("#")>=0?(d=t.uri.split("#")[0],u.push((0,y.st)(t,(0,y.sym)("http://www.w3.org/2007/ont/link#documentURI"),t.uri.split("#")[0],i.fetcher.appNode)),u.push((0,y.st)(t,(0,y.sym)("http://www.w3.org/2007/ont/link#document"),(0,y.sym)(t.uri.split("#")[0]),i.fetcher.appNode))):d=t.uri),d){if(!i.updater)throw new Error("Store has no updater");const e=i.updater.editable(d);e&&u.push((0,y.st)(t,(0,y.sym)("http://www.w3.org/ns/rww#editable"),(0,y.literal)(e.toString()),i.fetcher.appNode))}const p=n.getOutliner(a);return p.appendPropertyTRs(l,u,!1,s),u=i.statementsMatching(void 0,void 0,t),p.appendPropertyTRs(l,u,!0,s),l},predicates:{"http://www.w3.org/2007/ont/link#request":1,"http://www.w3.org/2007/ont/link#requestedBy":1,"http://www.w3.org/2007/ont/link#source":1,"http://www.w3.org/2007/ont/link#session":2,"http://www.w3.org/2007/ont/link#uri":1,"http://www.w3.org/2007/ont/link#documentURI":1,"http://www.w3.org/2007/ont/link#document":1,"http://www.w3.org/2007/ont/link#all":1,"http://www.w3.org/2007/ont/link#Document":1,"http://www.w3.org/ns/rww#editable":1,"http://www.w3.org/2000/01/rdf-schema#seeAlso":1,"http://www.w3.org/2002/07/owl#":1},classes:{"http://www.w3.org/2007/ont/link#ProtocolEvent":1}};const Ws=Hs,Gs={icon:e.icons.iconBase+"noun_547570.svg",global:!0,name:"home",label:function(){return"home"},render:function(n,a){const i=a.dom,o=i.createElement("div"),r=t.authn.currentUser();return async function(){const t={div:o,dom:i,statusArea:o,me:r};o.appendChild(i.createElement("h4")).textContent="Create new thing somewhere";const n={div:o.appendChild(i.createElement("div")),dom:i,statusArea:o,me:r},s=await e.login.filterAvailablePanes(a.session.paneRegistry.list);e.create.newThingUI(n,a,s),e.login.registrationList(t,{}).then(function(){})}(),o}},Vs=Gs;function Qs(e){if(!e.outlineManager){const a=function(e,t,n,a){return{dom:e,getOutliner:Qs,session:{paneRegistry:t,store:n,logic:a}}}(e,{list:n.list,paneForIcon:n.paneForIcon,paneForPredicate:n.paneForPredicate,register:n.register,byName:n.byName},t.store,t.solidLogicSingleton);e.outlineManager=new P(a)}return e.outlineManager}"undefined"!=typeof window&&Qs(window.document),function(e){e(B.A);const t=B.A.editor;t||console.log("@@@ editProfileView","profilePane is not providing an editor pane"),e(t),e(D),e(U),e(q),e(G()),e(V.Ay),e(pi),e(gi),e(vi),e(wi),e(Ai()),e(ki),e(Ei.Pq),e(Ei.bz),e(Pi),e(Ni),e(Ii),e(Oi),e(Li),e(Ri),e(Di),e(ji),e(Ui),e(Wi),e(Gi),e(As),e(Ts),e(Ps()),e(Ns),e(_s),e(Ls),e(Fs),e(Ms),e(js),e(Us),e(Ws),e(Vs)}(e=>(0,n.register)(e.default||e)),"undefined"!=typeof window&&(window.panes={getOutliner:Qs})})(),r=r.default})());
290
+ //# sourceMappingURL=solid-panes.min.js.map