@graview/guest 0.2.15 → 0.2.17

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 (103) hide show
  1. package/README.md +110 -11
  2. package/client.js +1 -1
  3. package/dist/channel.d.ts +9 -0
  4. package/dist/channel.d.ts.map +1 -1
  5. package/dist/channel.js +24 -0
  6. package/dist/channel.js.map +1 -1
  7. package/dist/client.generated.d.ts.map +1 -1
  8. package/dist/client.generated.js +2 -2
  9. package/dist/client.generated.js.map +1 -1
  10. package/dist/guest.d.ts.map +1 -1
  11. package/dist/guest.js +35 -0
  12. package/dist/guest.js.map +1 -1
  13. package/dist/headless/describe.d.ts +3 -0
  14. package/dist/headless/describe.d.ts.map +1 -1
  15. package/dist/headless/describe.js +15 -0
  16. package/dist/headless/describe.js.map +1 -1
  17. package/dist/headless/index.d.ts +3 -0
  18. package/dist/headless/index.d.ts.map +1 -1
  19. package/dist/headless/index.js +1 -0
  20. package/dist/headless/index.js.map +1 -1
  21. package/dist/headless/judge.js +2 -2
  22. package/dist/headless/judge.js.map +1 -1
  23. package/dist/headless/protocol.d.ts +3 -0
  24. package/dist/headless/protocol.d.ts.map +1 -1
  25. package/dist/headless/protocol.js.map +1 -1
  26. package/dist/headless/runtime.generated.d.ts.map +1 -1
  27. package/dist/headless/runtime.generated.js +1 -1
  28. package/dist/headless/runtime.generated.js.map +1 -1
  29. package/dist/host/embed-player.d.ts +16 -0
  30. package/dist/host/embed-player.d.ts.map +1 -0
  31. package/dist/host/embed-player.js +248 -0
  32. package/dist/host/embed-player.js.map +1 -0
  33. package/dist/host/embeds.d.ts +48 -0
  34. package/dist/host/embeds.d.ts.map +1 -0
  35. package/dist/host/embeds.js +153 -0
  36. package/dist/host/embeds.js.map +1 -0
  37. package/dist/host/frame.d.ts +12 -0
  38. package/dist/host/frame.d.ts.map +1 -1
  39. package/dist/host/frame.js +136 -5
  40. package/dist/host/frame.js.map +1 -1
  41. package/dist/host/media.d.ts +3 -0
  42. package/dist/host/media.d.ts.map +1 -1
  43. package/dist/host/media.js +23 -0
  44. package/dist/host/media.js.map +1 -1
  45. package/dist/host/mine.d.ts +11 -1
  46. package/dist/host/mine.d.ts.map +1 -1
  47. package/dist/host/mine.js +111 -15
  48. package/dist/host/mine.js.map +1 -1
  49. package/dist/host/open-draw.d.ts +1 -1
  50. package/dist/host/open-draw.d.ts.map +1 -1
  51. package/dist/host/open-draw.js +2 -0
  52. package/dist/host/open-draw.js.map +1 -1
  53. package/dist/host/problems.d.ts +1 -1
  54. package/dist/host/problems.d.ts.map +1 -1
  55. package/dist/host/problems.js +6 -0
  56. package/dist/host/problems.js.map +1 -1
  57. package/dist/host/react.d.ts +17 -0
  58. package/dist/host/react.d.ts.map +1 -1
  59. package/dist/host/react.js +77 -11
  60. package/dist/host/react.js.map +1 -1
  61. package/dist/host/session.d.ts +18 -0
  62. package/dist/host/session.d.ts.map +1 -1
  63. package/dist/host/session.js +38 -4
  64. package/dist/host/session.js.map +1 -1
  65. package/dist/host/view-ahead.d.ts +21 -0
  66. package/dist/host/view-ahead.d.ts.map +1 -0
  67. package/dist/host/view-ahead.js +29 -0
  68. package/dist/host/view-ahead.js.map +1 -0
  69. package/dist/host/view-runtime.generated.d.ts.map +1 -1
  70. package/dist/host/view-runtime.generated.js +1 -1
  71. package/dist/host/view-runtime.generated.js.map +1 -1
  72. package/dist/host/view-script.d.ts +1 -0
  73. package/dist/host/view-script.d.ts.map +1 -1
  74. package/dist/host/view-script.js +1 -1
  75. package/dist/host/view-script.js.map +1 -1
  76. package/dist/host/view.d.ts +30 -0
  77. package/dist/host/view.d.ts.map +1 -1
  78. package/dist/host/view.js +203 -22
  79. package/dist/host/view.js.map +1 -1
  80. package/dist/host/views.d.ts +2 -0
  81. package/dist/host/views.d.ts.map +1 -1
  82. package/dist/host/views.js +1 -0
  83. package/dist/host/views.js.map +1 -1
  84. package/dist/host/worker-react.d.ts +3 -0
  85. package/dist/host/worker-react.d.ts.map +1 -1
  86. package/dist/host/worker-react.js +114 -24
  87. package/dist/host/worker-react.js.map +1 -1
  88. package/dist/host/worker.d.ts +4 -0
  89. package/dist/host/worker.d.ts.map +1 -1
  90. package/dist/host/worker.js +4 -0
  91. package/dist/host/worker.js.map +1 -1
  92. package/dist/open-kit.d.ts +1 -1
  93. package/dist/open-kit.d.ts.map +1 -1
  94. package/dist/open-kit.js +8 -2
  95. package/dist/open-kit.js.map +1 -1
  96. package/dist/protocol.d.ts +13 -0
  97. package/dist/protocol.d.ts.map +1 -1
  98. package/dist/protocol.js +8 -0
  99. package/dist/protocol.js.map +1 -1
  100. package/dist/worker/view-global.d.ts.map +1 -1
  101. package/dist/worker/view-global.js +64 -17
  102. package/dist/worker/view-global.js.map +1 -1
  103. package/package.json +3 -3
@@ -3,5 +3,5 @@
3
3
  * A worker view's runtime as one classic script (FR-96): the host puts it in
4
4
  * front of a view's own source. Carries Remote DOM (MIT, Shopify Inc.).
5
5
  */
6
- export const VIEW_RUNTIME = "\"use strict\";\n/*! @remote-dom/core and @remote-dom/polyfill — Copyright 2020-present, Shopify Inc. — MIT License.\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n * @graview/guest's worker runtime — Elastic License 2.0. */\n\"use strict\";(()=>{var Pe=globalThis,Io=Pe.addEventListener,ko=Pe.removeEventListener,Do=Pe.postMessage,Lo=globalThis.queueMicrotask,Sn=globalThis.performance,Go=Sn?Sn.now.bind(Sn):Date.now,Me={listen:t=>Io.call(Pe,\"message\",t),unlisten:t=>ko.call(Pe,\"message\",t),post:t=>Do.call(Pe,t),microtask:t=>Lo.call(globalThis,t),now:()=>Go()};var v=Symbol(\"name\"),me=Symbol(\"prefix\"),pe=Symbol(\"value\"),O=Symbol(\"ns\"),q=Symbol(\"owner\"),D=Symbol(\"owner_document\"),se=Symbol(\"attributes\"),L=Symbol(\"prev\"),h=Symbol(\"next\"),A=Symbol(\"child\"),Y=Symbol(\"parent\"),he=Symbol(\"host\"),Q=Symbol(\"data\"),Se=Symbol(\"listeners\"),xn=Symbol(\"isTrusted\"),Ce=Symbol(\"path\"),Ie=Symbol(\"stop_immediate_propagation\"),ke=Symbol(\"dispatching\"),le=Symbol(\"content\"),G=Symbol(\"hooks\"),gt=Symbol(\"extensions\"),xe=Symbol(\"hooks_dispatch\"),B=Symbol(\"is_connected\"),De=Symbol(\"create_element\"),yr=0,W=1,Le=2,Ge=3,He=8,ve=9,Er=10,ge=11,_=\"http://www.w3.org/1999/xhtml\",J=\"http://www.w3.org/2000/svg\",br=\"http://www.w3.org/XML/1998/namespace\",Ke=\"http://www.w3.org/2000/xmlns/\";function yt(t){return t.split(/[\\t\\n\\f\\r ]+/).filter(Boolean)}function H(t){return t.replace(/[A-Z]/g,e=>String.fromCharCode(e.charCodeAt(0)+32))}function Nr(t){return t.replace(/[a-z]/g,e=>String.fromCharCode(e.charCodeAt(0)-32))}function M(t,e){let n=globalThis.DOMException;if(typeof n==\"function\")return new n(t,e);let r=new Error(t);return r.name=e,r}var Tr=/^(?:[A-Za-z][^\\0\\t\\n\\f\\r\\u0020/>]*|[:_\\u0080-\\u{10FFFF}][A-Za-z0-9-.:_\\u0080-\\u{10FFFF}]*)$/u,wr=/[\\0\\t\\n\\f\\r />=]/u,Ho=/[\\0\\t\\n\\f\\r />]/u;function ce(t){if(t==null)return null;let e=String(t);return e===\"\"?null:e}function Sr(t){Tr.test(t)||On(t)}function vn(t){(t===\"\"||wr.test(t))&&On(t)}function Et(t,e,n){let r=ce(t),o=String(e),s=o.indexOf(\":\"),i=s<0?null:o.slice(0,s),l=s<0?o:o.slice(s+1);if((i!=null&&(i===\"\"||Ho.test(i))||(n===\"element\"?!Tr.test(l):l===\"\"||wr.test(l)))&&On(o),i!=null&&r==null)throw M(`A namespace is required for the prefix in \"${o}\"`,\"NamespaceError\");if(i===\"xml\"&&r!==br)throw M(\"The xml prefix requires the XML namespace\",\"NamespaceError\");if((o===\"xmlns\"||i===\"xmlns\")&&r!==Ke)throw M(\"The xmlns name requires the XMLNS namespace\",\"NamespaceError\");if(r===Ke&&o!==\"xmlns\"&&i!==\"xmlns\")throw M(\"The XMLNS namespace requires the xmlns name or prefix\",\"NamespaceError\");return{namespace:r,qualifiedName:o,prefix:i,localName:l}}function On(t){throw M(`Invalid name: \"${t}\"`,\"InvalidCharacterError\")}var bt=0,Nt=1,xr=2,Rn=3,Uo=typeof performance>\"u\"?Date.now:performance.now.bind(performance),V=class{static NONE=bt;static CAPTURING_PHASE=Nt;static AT_TARGET=xr;static BUBBLING_PHASE=Rn;timeStamp=Uo();target=null;currentTarget=null;srcElement=null;bubbles=!1;cancelable=!1;composed=!1;defaultPrevented=!1;cancelBubble=!1;eventPhase=bt;[Ce]=[];[Ie]=!1;[ke]=!1;constructor(e,n){this.type=e,Object.defineProperty(this,xn,{writable:!0,value:!1}),n&&(n.bubbles&&(this.bubbles=n.bubbles),n.cancelable&&(this.cancelable=n.cancelable),n.composed&&(this.composed=n.composed))}get isTrusted(){return this[xn]}composedPath(){return[...this[Ce]]}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this[Ie]=!0,this.cancelBubble=!0}preventDefault(){this.cancelable&&(this.defaultPrevented=!0)}set returnValue(e){e||this.preventDefault()}get returnValue(){return!this.defaultPrevented}initEvent(e,n,r){this.type=e,this.bubbles=!!n,this.cancelable=!!r}};function An(t,e,n){if(t.cancelBubble)return;let o=e[Se]?.get(t.type)?.[n===Nt?\"capture\":\"bubble\"];if(o)for(let s of[...o]){if(!o.has(s)||s.signal?.aborted)continue;t.eventPhase=t.target===e?xr:n,t.currentTarget=e;let i=s.normalizedListener;try{typeof i==\"object\"?i.handleEvent(t):i.call(e,t)}catch(l){setTimeout(Bo,0,l)}if(t[Ie])break}}function Bo(t){throw t}var Ze=[],Tt=new WeakMap;function wt(t,e){let n=Tt.get(t);n?n.push(e):Tt.set(t,[e]),Ze[Ze.length-1].push(t)}function F(t){let e=[];Ze.push(e);let n;try{n=t()}catch(r){Ze.pop();try{vr(e)}catch{}throw r}return Ze.pop(),vr(e),n}function vr(t){let e,n=!1;for(let r of t){let o=Tt.get(r);if(o){for(;o.length>0;){let s=o.shift();try{s()}catch(i){n||(e=i,n=!0)}}Tt.delete(r)}}if(n)throw e}var St=[],Qe=[],_n=!1;function Oe(t){for(let e of t)St.push(e),e[1]&&Qe.push(e[1]);if(!_n){_n=!0;try{let e,n=!1;for(let r=0;r<St.length;r++){let[o,s]=St[r];s&&Qe.splice(Qe.indexOf(s),1);try{o()}catch(i){n||(e=i,n=!0)}}if(n)throw e}finally{St.length=0,Qe.length=0,_n=!1}}}function Je(t){let e=t;for(;e;){if(Qe.includes(e))return!0;e=e[Y]??e[he]}return!1}var et=Symbol(\"listenerRegistrations\"),ye=class{[Se]=void 0;[et]=void 0;[D]=void 0;addEventListener(e,n,r){if(n==null)return;let o=r===!0||typeof r==\"object\"&&r.capture===!0,s=typeof r==\"object\"&&r.once===!0,i=typeof r==\"object\"?r.signal:void 0;if(i?.aborted)return;let l=Pn(o),c=this[et];c||(c=new Map,this[et]=c);let u=c.get(e);u||(u={},c.set(e,u));let p=u[l];if(p||(p=new Map,u[l]=p),p.has(n))return;let E=this,b={type:e,listener:n,capture:o,once:s,normalizedListener:n,signal:i};(s||i)&&(b.normalizedListener=function(...C){if(b.signal?.aborted){xt(E,b);return}return b.once&&xt(E,b),typeof b.listener==\"object\"?b.listener.handleEvent(...C):b.listener.call(this,...C)});let N=this[Se];N||(N=new Map,this[Se]=N);let R=N.get(e);R||(R={},N.set(e,R));let T=R[l];if(T||(T=new Set,R[l]=T),p.set(n,b),T.add(b),i){let S=()=>{xt(E,b)};b.abortListener=S,i.addEventListener(\"abort\",S,{once:!0})}this[D]?.defaultView[xe].addEventListener?.(this,e,n,r)}removeEventListener(e,n,r){return Vo.call(this,e,n,r)}dispatchEvent(e){if(e[ke])throw M(\"Failed to execute 'dispatchEvent' on 'EventTarget': The event is already being dispatched.\",\"InvalidStateError\");e[ke]=!0;try{let n=[],r=this;for(;r!=null;)n.push(r),r=r.parentNode;e.target=this,e.srcElement=this,e[Ce]=n;for(let s=n.length;s--;)if(An(e,n[s],Nt),e.cancelBubble)return!e.defaultPrevented;let o=e.bubbles?n:n.slice(0,1);for(let s=0;s<o.length;s++)if(An(e,o[s],Rn),e.cancelBubble)return!e.defaultPrevented;return!e.defaultPrevented}finally{e[ke]=!1,e.cancelBubble=!1,e[Ie]=!1,e.eventPhase=bt,e.currentTarget=null,e[Ce]=[]}}};function Vo(t,e,n){if(e==null)return;let r=n===!0||n&&n.capture===!0,o=Pn(!!r),s=this[et]?.get(t)?.[o]?.get(e);s&&xt(this,s)}function Pn(t){return t?\"capture\":\"bubble\"}function xt(t,e){let n=Pn(e.capture),r=t[et],o=r?.get(e.type);if(!o)return;let s=o[n];if(!s||s.get(e.listener)!==e)return;s.delete(e.listener),s.size===0&&delete o[n],!o.bubble&&!o.capture&&r?.delete(e.type),e.signal&&e.abortListener&&e.signal.removeEventListener(\"abort\",e.abortListener);let i=t[Se],l=i?.get(e.type);if(!l)return;let c=l[n];c?.delete(e)&&(c.size===0&&delete l[n],!l.bubble&&!l.capture&&i?.delete(e.type),t[D]?.defaultView[xe].removeEventListener?.(t,e.type,e.listener,e.capture))}var ee=class extends Array{item(e){return this[e]??null}};var nt=0,Or=1,In=2,kn=3,rt=4,Rr=0,Ar=1,Rt=2,At=3,_r=4,Cn=5,Pr=6,Mr=7,vt=/^(?:--|-?[A-Za-z_\\u0080-\\u{10FFFF}])[A-Za-z0-9_\\u0080-\\u{10FFFF}-]*$/u;function Fo(t,e){let n=1,r=null;for(let o=e;o<t.length;o++){let s=t[o];if(r){s===\"\\\\\"?o++:s===r&&(r=null);continue}if(s==='\"'||s===\"'\")r=s;else if(s===\"(\")n++;else if(s===\")\"&&--n===0)return[t.slice(e,o),o+1]}return[t.slice(e),t.length]}function $(t){throw M(`Invalid or unsupported selector: \"${t}\"`,\"SyntaxError\")}function _t(t,e){let n=typeof e==\"string\"?ot(e):[{combinator:rt,matchers:e}],r=null,o=t[A];return o&&n[0].matchers.length&&Dn(o,n,s=>(r=s,!1)),r}function Pt(t,e){let n=typeof e==\"string\"?ot(e):[{combinator:rt,matchers:e}],r=new ee,o=t[A];return o&&n[0].matchers.length&&Dn(o,n,s=>{r.push(s)}),r}function ot(t,e=!1,n=!1){let r={combinator:rt,matchers:[]},o=[r],s=/[\\t\\n\\f\\r ]*?([>\\t\\n\\f\\r +~]?)[\\t\\n\\f\\r ]*?(?:(?:\\[[\\t\\n\\f\\r ]*([^\\]=\\t\\n\\f\\r ]+)[\\t\\n\\f\\r ]*(?:=[\\t\\n\\f\\r ]*(?:(['\"])(.*?)\\3|([^\\]\\t\\n\\f\\r ]+)))?[\\t\\n\\f\\r ]*(?:\\]|$))|([#.]?)([^\\t\\n\\f\\r #.[>:+~()]+)|:(\\w+)(\\()?)/gi,i=t.replace(/^[\\t\\n\\f\\r ]+|[\\t\\n\\f\\r ]+$/g,\"\");i===\"\"&&$(t);let l=0,c;for(;c=s.exec(i);){c.index!==l&&$(t),c[1]&&(r.matchers.length===0&&!(n&&o.length===1)&&$(t),c[1]===\">\"?r.combinator=Or:c[1]===\"+\"?r.combinator=kn:c[1]===\"~\"?r.combinator=In:r.combinator=nt,r={combinator:rt,matchers:[]},o.push(r));let u=c[8]?H(c[8]):c[2]||c[7];c[7]!=null&&!c[6]&&r.matchers.length>0&&$(t);let E,b=c[4]??c[5]??c[7];if(c[2]){vt.test(u)||$(t);let N=c[5],R=N?.[0];if(c[3]==null&&(R==='\"'||R===\"'\")){let T=c[0].lastIndexOf(N);b=i.slice(c.index+T+1),s.lastIndex=i.length}else N!=null&&!vt.test(N)&&$(t);E=_r}else c[6]?(vt.test(u)||$(t),E=c[6]===\"#\"?Rt:At):c[8]?E=c[9]==null?Cn:Pr:c[7]===\"*\"?E=Rr:c[7]&&vt.test(c[7])?E=Ar:$(t);c[9]?([b,s.lastIndex]=Fo(i,s.lastIndex),u!==\"has\"&&u!==\"not\"&&$(t),u===\"has\"&&e&&$(t),ot(b,e||u===\"has\",u===\"has\")):E===Cn&&$(t),r.matchers.push({type:E,name:u,value:b}),l=s.lastIndex}return(l!==i.length||r.matchers.length===0)&&$(t),o}function jo(t,e){let n=ot(e);return n[0]?.matchers.length?tt(t,n):!1}function zo(t,e){let n=ot(e,!0,!0),r=n[0];if(n.length===1&&r.matchers.length===0)return!1;let o=nt,s={type:Mr,name:\":scope\"};if(r.matchers.length===0?(o=r.combinator,r.matchers.push(s)):n.unshift({combinator:nt,matchers:[s]}),n.some(({matchers:c})=>c.length===0))return!1;let i=o===kn||o===In?t[h]:t[A];if(!i)return!1;let l=!1;return Dn(i,n,()=>(l=!0,!1),t),l}function Dn(t,e,n,r){let o=[],s=t;for(;s;){if(j(s)){if(tt(s,e,r)&&n(s)===!1)return!1;let i=s[A];if(i){let l=s[h];l&&o.push(l),s=i;continue}}s=s[h]??o.pop()??null}return!0}function tt(t,e,n){let{combinator:r,matchers:o}=e[e.length-1];if(r===rt){if(!Ot(t,o,n))return!1;let l=e.slice(0,-1);return l.length===0||tt(t,l,n)}let s=r===Or||r===nt?Y:L,i=t[s];if(!i)return!1;if(r===nt||r===In){for(;i;){if(j(i)&&Ot(i,o,n)){let l=e.slice(0,-1);if(l.length===0||tt(i,l,n))return!0}i=i[s]}return!1}else{if(r===kn&&!j(i)){for(;i&&!j(i);)i=i[s];if(!i)return!1}if(!j(i)||!Ot(i,o,n))return!1;let l=e.slice(0,-1);return l.length===0||tt(i,l,n)}}function Mn(t,e){return t.getAttributeNS(null,t.namespaceURI===_?H(e):e)}function Ot(t,e,n){if(!t)return!1;if(Array.isArray(e)){for(let i of e)if(Ot(t,i,n)===!1)return!1;return!0}let{type:r,name:o,value:s}=e;switch(r){case Rr:return o===\"*\";case Ar:return t.namespaceURI===_?t.localName===H(o):t.localName===o;case Rt:return Mn(t,\"id\")===o;case At:let i=Mn(t,\"class\");return i?yt(i).includes(o):!1;case _r:let l=Mn(t,o);return s==null?l!=null:l===s;case Mr:return t===n;case Cn:$(`:${o}`);case Pr:switch(o){case\"has\":return zo(t,s||\"\");case\"not\":return!jo(t,s||\"\");default:$(`:${o}(${s})`)}}return!1}function qo(t){return t.nodeType===Le}function st(t){return Q in t}function Gn(t){return t.nodeType===Ge}function Yo(t){return t.nodeType===He}function j(t){return t.nodeType===W}function Ln(t){return t.nodeType===ge}function Dr(t){return\"appendChild\"in t}function Mt(t){let e=[],n=[t],r=new Set(n),o=new Set,s;for(;n.length>0;){let i=n.pop();if(r.delete(i),o.has(i))continue;let l=[];for(let c of at(i)){if(o.has(c)||(o.add(c),e.push(c),l.push(c),!j(c)))continue;let u=c[se];if(u)for(let E of u)o.has(E)||(o.add(E),e.push(E));let p=c[le];p&&!o.has(p)&&!r.has(p)&&(r.add(p),n.push(p))}s??=l}return{nodes:e,treeNodes:s}}function it(t,e){for(let n of t)n[D]=e}function Cr(t,e){let n=t.constructor,r=new n(t.name,t.value,t.namespaceURI);return r[D]=e,r}function Ir(t,e){if(Gn(t))return e.createTextNode(t.data);if(Yo(t))return e.createComment(t.data);if(qo(t))return Cr(t,e);if(j(t)){let n=e[De](t[v],t.namespaceURI,t[me],t.localName);if(t[se])for(let r=0;r<t[se].length;r++){let o=t[se].item(r);n.attributes.setNamedItem(Cr(o,e))}return n}else{if(Ln(t))return e.createDocumentFragment();{let n=new t.constructor;return n[D]=e,n}}}function Ct(t,e,n=t.ownerDocument){if(t.nodeType===ve)throw M(\"Cannot clone a document node\",\"NotSupportedError\");let r=Ir(t,n);if(!e||!j(t)&&!Ln(t))return r;let o=new Set([t]),s=[{source:t,destination:r,childIndex:0,cloningContent:!1}];for(;s.length>0;){let i=s[s.length-1],l,c;if(i.cloningContent)if(i.contentSource&&i.contentDestination)l=i.contentSource.childNodes[i.childIndex++],c=i.contentDestination;else{s.pop(),i.appendTo&&i.appendTo.appendChild(i.destination);continue}else if(l=i.source.childNodes[i.childIndex++],c=i.destination,!l){if(i.cloningContent=!0,i.childIndex=0,j(i.source)&&i.source.namespaceURI===_&&i.source.localName===\"template\"){let p=i.source[le];p&&(o.has(p)&&kr(),o.add(p),i.contentSource=p,i.contentDestination=i.destination.content)}continue}if(!l){s.pop(),i.appendTo&&i.appendTo.appendChild(i.destination);continue}o.has(l)&&kr(),o.add(l);let u=Ir(l,n);j(l)||Ln(l)?s.push({source:l,destination:u,appendTo:c,childIndex:0,cloningContent:!1}):c.appendChild(u)}return r}function kr(){throw new Error(\"Cannot clone a cyclic or repeated node graph\")}function It(t,e){let n=String(e);return n===\"\"?null:_t(t,[{type:Rt,name:n}])}function kt(t,e){let n=[...new Set(yt(String(e)))];return Pt(t,n.map(r=>({type:At,name:r})))}function Dt(t,e){let n=String(e),r=H(n),o=[];for(let s of Lt(t))j(s)&&(n===\"*\"||(s.namespaceURI===_?s[v]===r:s[v]===n))&&o.push(s);return o}function Lt(t){let e=[],n=[],r=t[A];for(;r;){e.push(r);let o=r[A],s=r[h];o?(s&&n.push(s),r=o):r=s??n.pop()??null}return e}function at(t){let e=Lt(t);return e.unshift(t),e}var te=class extends ye{nodeType=yr;[v]=\"\";[Y]=null;[he]=null;[A]=null;[L]=null;[h]=null;[B]=!1;get[G](){return this[D].defaultView[xe]}get localName(){return this[v]}get nodeName(){return this[v]}get ownerDocument(){return this[D]}get isConnected(){return this[B]}isDefaultNamespace(e){let n=ce(e);return $o(this)===n}get parentNode(){return this[Y]}set parentNode(e){}get parentElement(){let e=this[Y];return!e||e.nodeType!==1?null:e}set parentElement(e){}get previousSibling(){return this[L]}set previousSibling(e){}get nextSibling(){return this[h]}set nextSibling(e){}get previousElementSibling(){let e=this[L];for(;e&&e.nodeType!==1;)e=e[L];return e}set previousElementSibling(e){}get nextElementSibling(){let e=this[h];for(;e&&e.nodeType!==1;)e=e[h];return e}set nextElementSibling(e){}get firstChild(){return this[A]}set firstChild(e){}get lastChild(){let e=this[A];for(;e;){let n=e[h];if(n==null)break;e=n}return e}set lastChild(e){}get nodeValue(){return st(this)?this.data:null}set nodeValue(e){st(this)&&(this.data=e)}get textContent(){if(st(this))return this.data;let e=\"\";for(let n of Lt(this))Gn(n)&&(e+=n.data);return e}set textContent(e){if(st(this))this.data=e;else if(Dr(this)){let n=e==null?\"\":String(e);n===\"\"?this.replaceChildren():this.replaceChildren(n)}}cloneNode(e){return Ct(this,e)}contains(e){let n=e;for(;n!=null;){if(n===this)return!0;n=n.parentNode}return!1}};function $o(t){let e=t;for(;e;)switch(e.nodeType){case W:{let n=e;if(n.prefix==null&&n.namespaceURI!=null)return n.namespaceURI;let r=n.attributes.getNamedItemNS(Ke,\"xmlns\");if(r!=null&&r.prefix==null)return ce(r.value);e=n.parentElement;break}case ve:e=e.documentElement;break;case Er:case ge:return null;case Le:e=e.ownerElement;break;default:e=e.parentElement}return null}var ne=Symbol(\"insertNode\"),Bn=Symbol(\"preflightInsertions\"),Gt=Symbol(\"replaceNode\"),Ee=class extends te{remove(){let e=this.parentNode;e&&e.removeChild(this)}replaceWith(...e){let n=Re(e),r=this.parentNode;if(r)return Hn(o=>{ue(r,n);let s=this[h];for(;s&&n.includes(s);)s=s[h];let i=Un(r,n,o);this.parentNode===r?r[Gt](i,this,o):r[ne](i,s,o)})}before(...e){let n=Re(e),r=this.parentNode;if(r)return Hn(o=>{ue(r,n);let s=this[L];for(;s&&n.includes(s);)s=s[L];let i=Un(r,n,o);r[ne](i,s?s[h]:r.firstChild,o)})}after(...e){let n=Re(e),r=this.parentNode;if(r)return Hn(o=>{ue(r,n);let s=this[h];for(;s&&n.includes(s);)s=s[h];let i=Un(r,n,o);r[ne](i,s,o)})}};function Hn(t){return F(()=>{let e=[];try{t(e)}catch(n){try{Oe(e)}catch{}throw n}Oe(e)})}function Re(t){return t.map(e=>e instanceof te?e:String(e))}function lt(t,e){return e instanceof te?e:t.ownerDocument.createTextNode(String(e))}function ue(t,e){for(let n of e){if(!(n instanceof te))continue;let r=t;for(;r;){if(r===n)throw M(\"Cannot insert a node into itself or one of its descendants\",\"HierarchyRequestError\");r=r[Y]??r[he]}}}function Un(t,e,n){let r=[];for(let s of e)r.push(lt(t,s));if(r.length===1)return r[0];let o=t.ownerDocument.createDocumentFragment();o[Bn](r);for(let s of r)o[ne](s,null,n);return o}var Ht,Vn=0,Lr=0,Gr=0,Hr=0,Ue=!1,jn=!1,ct=!1,Ut=class{#t;#n=[];#e=new Set;#r=!1;constructor(e){if(typeof e!=\"function\")throw new TypeError(\"MutationObserver callback must be a function\");this.#t=e}observe(e,n={}){let r=Wo(n),o=Ht??=new WeakMap,s=o.get(e);s==null&&(s=new Map,o.set(e,s));let i=s.get(this);i==null?Vn++:Fn(i,-1),s.set(this,r),Fn(r,1),this.#e.add(e)}disconnect(){let e=Ht;if(e!=null){for(let n of this.#e){let r=e.get(n),o=r?.get(this);o!=null&&(r.delete(this),Vn--,Fn(o,-1)),r?.size===0&&e.delete(n)}this.#e.clear(),this.#n.length=0,Vn===0&&(Ht=void 0)}}takeRecords(){return this.#n.splice(0)}enqueue(e){this.#n.push(e),!this.#r&&(this.#r=!0,queueMicrotask(()=>{this.#r=!1;let n=this.takeRecords();n.length>0&&this.#t.call(this,n,this)}))}};function re(t){let e=Ht;if(e==null)return;let n=new Map,r=t.target;for(;r;){let o=e.get(r);if(o)for(let[s,i]of o){if(r!==t.target&&!i.subtree)continue;let l=!1;if(t.type===\"attributes\"){if(!i.attributes||i.attributeFilter&&!i.attributeFilter.has(t.attributeName??\"\"))continue;l=i.attributeOldValue}else if(t.type===\"characterData\"){if(!i.characterData)continue;l=i.characterDataOldValue}else if(!i.childList)continue;n.set(s,n.get(s)===!0||l)}r=r.parentNode}for(let[o,s]of n)o.enqueue({addedNodes:t.addedNodes??new ee,attributeName:t.attributeName??null,attributeNamespace:t.attributeNamespace??null,nextSibling:t.nextSibling??null,oldValue:s?t.oldValue??null:null,previousSibling:t.previousSibling??null,removedNodes:t.removedNodes??new ee,target:t.target,type:t.type})}function Bt(...t){let e=new ee;return e.push(...t),e}function Wo(t){if(t.attributes===!1&&(t.attributeOldValue||t.attributeFilter!=null))throw new TypeError(\"attributeOldValue and attributeFilter require attributes to be enabled\");if(t.characterData===!1&&t.characterDataOldValue)throw new TypeError(\"characterDataOldValue requires characterData to be enabled\");let e=t.attributes??(t.attributeOldValue===!0||t.attributeFilter!=null),n=t.characterData??t.characterDataOldValue===!0,r=t.childList===!0;if(!e&&!n&&!r)throw new TypeError(\"MutationObserver options must enable childList, attributes, or characterData\");return{attributes:e,attributeFilter:t.attributeFilter==null?void 0:new Set(t.attributeFilter.map(String)),attributeOldValue:t.attributeOldValue===!0,characterData:n,characterDataOldValue:t.characterDataOldValue===!0,childList:r,subtree:t.subtree===!0}}function Fn(t,e){t.attributes&&(Lr+=e),t.characterData&&(Gr+=e),t.childList&&(Hr+=e),Ue=Lr>0,jn=Gr>0,ct=Hr>0}var ie=class extends Ee{childNodes=new ee;children=new ee;appendChild(e){return F(()=>this[ne](e,null))}insertBefore(e,n){return F(()=>this[ne](e,n||null))}append(...e){return F(()=>{let n=Re(e.filter(r=>r!=null));n.length>1&&ue(this,n);for(let r of n)this[ne](lt(this,r),null)})}prepend(...e){return F(()=>{let n=Re(e.filter(o=>o!=null));n.length>1&&ue(this,n);let r=this.firstChild;for(let o of n)this[ne](lt(this,o),r)})}replaceChildren(...e){return F(()=>{let n=Re(e.filter(o=>o!=null));ue(this,n);let r;for(;r=this.firstChild;)this.removeChildImmediately(r);for(let o of n)this[ne](lt(this,o),null)})}removeChild(e){return F(()=>(this.removeChildImmediately(e),e))}removeChildImmediately(e){if(e.parentNode!==this)throw M(\"The node is not a child of this node\",\"NotFoundError\");let n=this[B]?at(e):void 0,r=e[L],o=e[h],s=Vt(this,e);if(n)for(let i of n)i[B]=!1;this.queueRemovalMutationRecord(this,e,r,o),n&&this.enqueueTreeReactions(n,\"disconnectedCallback\"),Oe(this.collectRemovalHookEffects(e,s))}replaceChild(e,n){return F(()=>this[Gt](e,n))}[Gt](e,n,r){if(ue(this,[e]),n.parentNode!==this)throw M(\"The reference node is not a child of this parent\",\"NotFoundError\");let o=n[L],s=n[h],i=this.prepareInsertion(e),l=this[B]?at(n):void 0,c=new Set(i.map(({node:b})=>b)),u=s;for(;u&&c.has(u);)u=u[h];let p=Vt(this,n);if(l){for(let N of l)N[B]=!1;let b=new Set(l);for(let N of i)b.has(N.node)&&(N.shouldDisconnect=!1)}this.commitInsertion(i,u);let E=this[B];return this.queueRemovalMutationRecord(this,n,o,s),this.queueInsertionMutationRecords(i),l&&this.enqueueTreeReactions(l,\"disconnectedCallback\"),this.enqueueInsertionReactions(i,E),this.performOrCollectHookEffects([...this.collectRemovalHookEffects(n,p),...this.collectInsertionHookEffects(i)],r),n}querySelectorAll(e){return Pt(this,e)}querySelector(e){return _t(this,e)}[ne](e,n,r){return this.validateInsertion(e,n),this.insertIntoValidated(e,n,r),e}[Bn](e){for(let n of e)this.validateInsertion(n,null),this.prepareInsertion(n)}validateInsertion(e,n){if(ue(this,[e]),n&&n.parentNode!==this)throw M(\"The reference node is not a child of this parent\",\"NotFoundError\")}insertIntoValidated(e,n,r){e===n&&(n=e[h]);let o=this.prepareInsertion(e);this.commitInsertion(o,n);let s=this[B];this.queueInsertionMutationRecords(o),this.enqueueInsertionReactions(o,s),this.performOrCollectHookEffects(this.collectInsertionHookEffects(o),r)}performOrCollectHookEffects(e,n){n?n.push(...e):Oe(e)}prepareInsertion(e){let n=[];if(e.nodeType===ge){let i=e[A];for(;i;)n.push(i),i=i[h]}else n.push(e);let r=this[B],o=this[D],s=[];for(let i of n){let l=i[B],c=l||r,u,p;if(i[D]===o)c&&(u=at(i));else{let E=Mt(i);p=E.nodes,c&&(u=E.treeNodes)}s.push({node:i,nodes:u,adoption:p,shouldDisconnect:l})}return s}commitInsertion(e,n){for(let s of e){let i=s.node[Y];if(i){let l=s.node[L],c=s.node[h];s.source={parent:i,index:Vt(i,s.node),previousSibling:l,nextSibling:c}}}for(let s of e){let i=this.attachChild(s.node,n);s.insertIndex=i.index,s.previousSibling=i.previousSibling,s.nextSibling=i.nextSibling}let r=this[D];for(let{adoption:s}of e)s&&it(s,r);let o=this[B];for(let{nodes:s}of e)if(s)for(let i of s)i[B]=o}attachChild(e,n){if(n){let s=n[L];e[h]=n,e[L]=s,s?s[h]=e:this[A]=e,n[L]=e}else{e[h]=null;let s=this[A];if(s){let i;for(;i=s[h];)s=i;s[h]=e,e[L]=s}else this[A]=e,e[L]=null}let r=j(e);e[Y]=this;let o;if(n){if(o=this.childNodes.indexOf(n),this.childNodes.splice(o,0,e),r){let s=n;for(;s&&!j(s);)s=s[h];s?this.children.splice(this.children.indexOf(s),0,e):this.children.push(e)}}else o=this.childNodes.length,this.childNodes.push(e),r&&this.children.push(e);return{index:o,previousSibling:e[L],nextSibling:e[h]}}queueRemovalMutationRecord(e,n,r,o){ct&&re({type:\"childList\",target:e,removedNodes:Bt(n),previousSibling:r,nextSibling:o})}queueInsertionMutationRecords(e){if(ct)for(let n of e){let{node:r,source:o}=n;o&&this.queueRemovalMutationRecord(o.parent,r,o.previousSibling,o.nextSibling),re({type:\"childList\",target:this,addedNodes:Bt(r),previousSibling:n.previousSibling,nextSibling:n.nextSibling})}}collectRemovalHookEffects(e,n){return this.nodeType!==W||Je(this)?[]:[[()=>this[G].removeChild?.(this,e,n)]]}collectInsertionHookEffects(e){let n=[];for(let r of e){let{node:o,source:s}=r;s?.parent.nodeType===W&&!Je(s.parent)&&n.push([()=>s.parent[G].removeChild?.(s.parent,o,s.index)]),this.nodeType===W&&!Je(this)&&n.push([()=>this[G].insertChild?.(this,o,r.insertIndex),o])}return n}enqueueInsertionReactions(e,n){for(let r of e){let{nodes:o}=r;o&&(r.shouldDisconnect&&this.enqueueTreeReactions(o,\"disconnectedCallback\"),n&&this.enqueueTreeReactions(o,\"connectedCallback\"))}}enqueueTreeReactions(e,n){Br(e,n)}};function Ur(t,e,n,r){if(e.parentNode!==t)throw Error(\"not a child of this node\");let o=t[B]?n.treeNodes:void 0,s=e[L],i=e[h],l=Vt(t,e);if(o)for(let u of o)u[B]=!1;it(n.nodes,r),ct&&re({type:\"childList\",target:t,removedNodes:Bt(e),previousSibling:s,nextSibling:i}),o&&Br(o,\"disconnectedCallback\");let c=[];t.nodeType===W&&!Je(t)&&c.push([()=>t[G].removeChild?.(t,e,l)]),Oe(c)}function Vt(t,e){let n=e[L],r=e[h];n?n[h]=r:t[A]=r,r&&(r[L]=n);let o=t.childNodes.indexOf(e);return t.childNodes.splice(o,1),j(e)&&t.children.splice(t.children.indexOf(e),1),e[Y]=null,e[h]=null,e[L]=null,o}function Br(t,e){for(let n of t){let r=n[e];typeof r==\"function\"&&wt(n,()=>r.call(n))}}function ut(t,e,n,r,o){let{observedAttributes:s}=t.constructor,{attributeChangedCallback:i}=t;i==null||s==null||!s.includes(e)||wt(t,()=>i.call(t,e,n,r,o))}var Ft=class{[A]=null;constructor(e){this[q]=e}getNamedItem(e){let n=String(e),r=this[q][O]===_?H(n):n,o=this[A];for(;o;){if(o.name===r)return o;o=o[h]}return null}getNamedItemNS(e,n){let r=ce(e),o=String(n),s=this[A];for(;s;){if(s.localName===o&&s[O]===r)return s;s=s[h]}return null}item(e){let n=this[A],r=0;for(;n;){if(r++===e)return n;n=n[h]}return null}get length(){let e=0,n=this[A];for(;n;)e++,n=n[h];return e}removeNamedItem(e){let n=String(e),r=this[q][O]===_?H(n):n;return F(()=>this.removeNamedItemImmediately(o=>o.name===r))}removeNamedItemNS(e,n){let r=ce(e),o=String(n);return F(()=>this.removeNamedItemImmediately(s=>s.localName===o&&s[O]===r))}removeNamedItemImmediately(e){let n=this[q],r=this[A],o=null;for(;r!=null;){if(e(r)){o&&(o[h]=r[h]),this[A]===r&&(this[A]=r[h]);let s=r.value;return r[h]=null,r[q]=null,Ue&&re({type:\"attributes\",target:n,attributeName:r.name,attributeNamespace:r[O],oldValue:s}),n[G].removeAttribute?.(n,r.name,r[O]),ut(n,r.localName,s,null,r[O]),r}o=r,r=r[h]}return null}setNamedItem(e){return F(()=>this.setNamedItemImmediately(e))}setNamedItemImmediately(e){let n=this[q],r=e[q];if(r!=null&&r!==n)throw M(\"The attribute is already in use by another element.\",\"InUseAttributeError\");let o=null,s=this[A],i=null;for(;s;){if(s.localName===e.localName&&s[O]===e[O]){if(s===e)return s;i?i[h]=e:this[A]=e,e[h]=s[h],s[h]=null,o=s;break}i=s,s=s[h]}o==null&&(i?i[h]=e:this[A]=e),e[q]=n,e[D]=n[D],o&&(o[q]=null);let l=o==null||o.value!==e.value,c=o!=null&&o.name!==e.name;return l&&Ue&&re({type:\"attributes\",target:n,attributeName:e.name,attributeNamespace:e[O],oldValue:o?.value??null}),c&&n[G].removeAttribute?.(n,o.name,o[O]),(l||c)&&n[G].setAttribute?.(n,e.name,e.value,e[O]),l&&ut(n,e.localName,o?.value??null,e.value,e[O]),o}setNamedItemNS(e){return this.setNamedItem(e)}*[Symbol.iterator](){let e=this[A];for(;e;)yield e,e=e[h]}};var Ae=class extends te{nodeType=Le;[O]=null;[h]=null;[q]=null;constructor(e,n,r){super(),this[v]=e,this[pe]=n,r&&(this[O]=r)}get nodeName(){return this[v]}set nodeName(e){}get name(){return this[v]}set name(e){}get localName(){if(this[O]==null)return this[v];let e=this[v].indexOf(\":\");return e<0?this[v]:this[v].slice(e+1)}get prefix(){if(this[O]==null)return null;let e=this[v].indexOf(\":\");return e<0?null:this[v].slice(0,e)}get value(){return this[pe]}set value(e){let n=String(e),r=this[q];if(!r){this[pe]=n;return}F(()=>{let o=this[pe];this[pe]=n,Ue&&o!==n&&re({type:\"attributes\",target:r,attributeName:this[v],attributeNamespace:this[O],oldValue:o}),this[G].setAttribute?.(r,this[v],n,this[O]),ut(r,this.localName,o,n,this[O])})}get nodeValue(){return this.value}set nodeValue(e){this.value=e}get ownerElement(){return this[q]}get namespaceURI(){return this[O]}get specified(){return!0}};var Xo={amp:\"&\",AMP:\"&\",apos:\"'\",gt:\">\",GT:\">\",lt:\"<\",LT:\"<\",quot:'\"',QUOT:'\"'},Ko=new Set([\"area\",\"base\",\"br\",\"col\",\"embed\",\"hr\",\"img\",\"input\",\"link\",\"meta\",\"param\",\"source\",\"track\",\"wbr\"]),Zo=/(?:<([a-z][a-z0-9-:]*)((?:[\\s]+[^<>'\"=/\\s]+(?:=(['\"])[^]*?\\3|=[^>'\"\\s]*|))*)[\\s]*(\\/?)\\s*>|<\\/([a-z][a-z0-9-:]*)>|<!--(.*?)-->|([^<>]+))/gi,jr=/\\s([^<>'\"=/\\n\\s]+)(?:=([\"'])([\\s\\S]*?)\\2|=([^>'\"\\n\\s]*)|)/g,Qo=\"|b|big|blockquote|body|br|center|code|dd|div|dl|dt|em|embed|h1|h2|h3|h4|h5|h6|head|hr|i|img|li|listing|menu|meta|nobr|ol|p|pre|ruby|s|small|span|strong|strike|sub|sup|table|tt|u|ul|var|\",Jo=/^(?:color|face|size)$/i;function Vr(t){return t.replace(/&(?:(amp|AMP|apos|gt|GT|lt|LT|quot|QUOT)|#(\\d+)|#[xX]([\\da-fA-F]+));/g,(e,n,r,o)=>{if(n)return Xo[n];let s=Number.parseInt(r??o,r?10:16);try{return String.fromCodePoint(s)}catch{return e}})}function zr(t){return t.namespaceURI===_&&Ko.has(t.localName)}function Fr(t){let e=t.localName;return t[O]===J&&(e===\"foreignObject\"||e===\"desc\"||e===\"title\")}function es(t,e){if(Qo.includes(`|${t}|`))return!0;if(t!==\"font\")return!1;for(let n of e.matchAll(jr))if(Jo.test(n[1]))return!0;return!1}function jt(t,e){let n=e.ownerDocument,r=n.createDocumentFragment(),o=[],s=r;for(let i of t.matchAll(Zo)){let l=i[1];if(l){let c=i[2],u=H(l),p=o[o.length-1]?.element??e,E=p[O]===J?J:_;if(u===\"svg\")E=J;else if(E===J){if(Fr(p))E=_;else if(es(u,c)){for(;o.length>0;){let R=o[o.length-1];if(R.element[O]!==J||Fr(R.element))break;o.pop(),s=R.target}E=_}}let b=E===_?u:l,N=n[De](b,E,null,b);for(let R of c.matchAll(jr))N.setAttribute(R[1],Vr(R[3]||R[4]||\"\"));if(s.append(N),zr(N)||E!==_&&i[4])continue;o.push({element:N,target:s}),s=E===_&&u===\"template\"?N.content:N}else if(i[5]){let c=H(i[5]);for(let u=o.length-1;u>=0;u--){let p=o[u],E=H(p.element[v]);if(E===c){s=p.target,o.length=u;break}if(p.element[O]===_&&E===\"template\")break}}else i[6]?s.append(n.createComment(i[6])):s.append(Vr(i[7]))}return r}function zt(t){return Yr([{type:\"content\",child:t[A]}])}function qr(t){return Yr([{type:\"opening\",node:t}])}function Yr(t){let e=[],n;for(;n=t.pop();)switch(n.type){case\"opening\":{let r=n.node;switch(r.nodeType){case W:{let o=r;e.push(`<${o[v]}`);let s=o[se]?.[A];for(;s;){e.push(` ${s[v]}`);let l=s[pe];l!==\"\"&&(l=String(l).replace(/&/g,\"&amp;\").replace(/\"/g,\"&quot;\"),e.push(`=\"${l}\"`)),s=s[h]}if(e.push(\">\"),zr(o))break;let i=o.namespaceURI===_&&o.localName===\"template\"?o[le]:o;t.push({type:\"closing\",name:o[v]}),t.push({type:\"content\",child:i?.[A]??null});break}case Ge:{let o=r;e.push(o[Q].replace(/&/g,\"&amp;\").replace(/\"/g,\"&quot;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\"));break}case He:{let o=r;e.push(`<!--${o[Q]}-->`);break}}break}case\"content\":{let r=n.child;r&&(t.push({type:\"content\",child:r[h]}),t.push({type:\"opening\",node:r}));break}case\"closing\":e.push(`</${n.name}>`);break}return e.join(\"\")}var U=class extends ie{nodeType=W;[O]=_;[me]=null;get namespaceURI(){return this[O]}get prefix(){return this[me]}get localName(){let e=this[me];return e==null?this[v]:this[v].slice(e.length+1)}get nodeName(){return this[O]===_?Nr(this[v]):this[v]}get tagName(){return this.nodeName}get id(){return this.getAttributeNS(null,\"id\")??\"\"}set id(e){this.setAttribute(\"id\",String(e))}get slot(){return this.getAttributeNS(null,\"slot\")??\"\"}set slot(e){let n=String(e);this.getAttributeNS(null,\"slot\")!==n&&this.attributes.setNamedItem(new Ae(\"slot\",n))}get attributes(){let e=this[se];return e||(e=new Ft(this),this[se]=e),e}getAttributeNames(){return[...this.attributes].map(e=>e.name)}getElementsByTagName(e){return Dt(this,e)}get firstElementChild(){return this.children[0]??null}getElementsByClassName(e){return kt(this,e)}get lastElementChild(){return this.children[this.children.length-1]??null}get nextElementSibling(){let e=this.nextSibling;for(;e&&e.nodeType!==1;)e=e.nextSibling;return e}get previousElementSibling(){let e=this.previousSibling;for(;e&&e.nodeType!==1;)e=e.previousSibling;return e}setAttribute(e,n){let r=String(e),o=String(n);vn(r);let s=this[O]===_?H(r):r,i=this.attributes.getNamedItemNS(null,s);i?i.value=o:this.attributes.setNamedItem(new Ae(s,o))}setAttributeNS(e,n,r){let o=ce(e),s=String(n),i=String(r),l=Et(o,s,\"attribute\"),c=this.attributes.getNamedItemNS(l.namespace,l.localName);c?c.value=i:this.attributes.setNamedItemNS(new Ae(l.qualifiedName,i,l.namespace))}toggleAttribute(e,n){let r=String(e);vn(r);let o=this[O]===_?H(r):r,s=this.attributes.getNamedItemNS(null,o),i=n===void 0?void 0:!!n;return s==null?i===!1?!1:(this.attributes.setNamedItem(new Ae(o,\"\")),!0):i===!0?!0:(this.attributes.removeNamedItemNS(null,o),!1)}getAttribute(e){let n=this.attributes.getNamedItem(e);return n&&n.value}getAttributeNS(e,n){let r=this.attributes.getNamedItemNS(e,n);return r&&r.value}hasAttribute(e){return this.attributes.getNamedItem(e)!=null}hasAttributeNS(e,n){return this.attributes.getNamedItemNS(e,n)!=null}removeAttribute(e){let n=String(e),r=this[O]===_?H(n):n;this.attributes.removeNamedItemNS(null,r)}removeAttributeNS(e,n){this.attributes.removeNamedItemNS(e,n)}get outerHTML(){return qr(this)}get innerHTML(){return zt(this)}set innerHTML(e){if(e==null||e===\"\")this.replaceChildren();else{let n=jt(String(e),this);this.replaceChildren(n)}}};var Be=class t extends U{[O]=J;get ownerSVGElement(){let e=null,n=this.parentNode;for(;n instanceof t;)e=n,n=n.parentNode;return e}};var be=class extends Ee{[Q]=\"\";constructor(e){super(),this[Q]=e==null?\"\":String(e)}setData(e){let n=jn,r=n?this[Q]:null,o=\"\";e!=null&&(o=typeof e==\"string\"?e:String(e)),this[Q]=o,n&&r!==o&&re({type:\"characterData\",target:this,oldValue:r}),this[G].setText?.(this,o)}get data(){return this[Q]}set data(e){this.setData(e)}};var Ve=class extends be{nodeType=Ge;[v]=\"#text\"};var Fe=class extends be{nodeType=He;[v]=\"#comment\"};var je=class extends ie{nodeType=ge;[v]=\"#document-fragment\";[D]=typeof window<\"u\"?window.document:null;getElementById(e){return It(this,e)}};var ze=class extends U{get content(){let e=this[le];return e||(e=this.ownerDocument.createDocumentFragment(),e[he]=this,this[le]=e),e}set content(e){}set innerHTML(e){this.content.replaceChildren(jt(String(e),this))}get innerHTML(){let e=this[le];return e?zt(e):\"\"}};var qt=class extends U{};var Yt=class extends U{};var $t=class extends U{};var dt=class extends ie{nodeType=ve;[v]=\"#document\";[B]=!0;constructor(e){super(),this.defaultView=e,this[D]=this,this.documentElement=Xt(new $t,this,\"html\"),this.body=Xt(new qt,this,\"body\"),this.head=Xt(new Yt,this,\"head\"),this.appendChild(this.documentElement),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body)}get textContent(){return null}set textContent(e){}getElementsByClassName(e){return kt(this,e)}createElement(e){let n=String(e);return Sr(n),zn(this,H(n))}createElementNS(e,n){let r=Et(e,n,\"element\");return zn(this,r.qualifiedName,r.namespace,r.prefix,r.localName)}[De](e,n,r,o){return zn(this,e,n,r,o)}createTextNode(e){let n=Wt(new Ve(e),this);return this[G].createText?.(n,n.data),n}createComment(e){return Wt(new Fe(e),this)}createDocumentFragment(){return Wt(new je,this)}createEvent(){return new V(\"\")}getElementById(e){return It(this,e)}getElementsByTagName(e){return Dt(this,e)}importNode(e,n){if(e.nodeType===ve)throw M(\"Cannot import a document node\",\"NotSupportedError\");return Ct(e,n,this)}adoptNode(e){if(e[D]===this)return e;let n=Mt(e);return F(()=>{let r=e.parentNode;return r?Ur(r,e,n,this):it(n.nodes,this),e})}};function Wt(t,e){return Object.defineProperty(t,D,{value:e,writable:!0,enumerable:!1}),t}function zn(t,e,n=_,r=null,o=e){let s;if(n===J)s=new Be;else if(n===_&&o===\"template\")s=new ze;else if(n===_){let i=t.defaultView.customElements.get(o);s=i?new i:new U}else s=new U;return Xt(s,t,e,n,r)}function Xt(t,e,n,r=_,o=null){return Wt(t,e),Object.defineProperties(t,{[v]:{value:n},[O]:{value:r},[me]:{value:o}}),e[G].createElement?.(t,r),t}var Kt=class extends V{constructor(e,n){super(e,n),this.detail=n?.detail??null}initCustomEvent(e,n,r,o){super.initEvent(e,n,r),this.detail=o??null}};var Zt=class extends V{constructor(e,n){super(e,n),this.message=n.message,this.filename=n.filename,this.lineno=n.lineno,this.colno=n.colno,this.error=n.error}};var Qt=class extends V{constructor(e,n){super(e,n),this.promise=n.promise,this.reason=n.reason}};var Jt=class extends V{constructor(e,n){super(e,n),this.oldState=n.oldState,this.newState=n.newState}};var en=class extends V{constructor(e,n={}){super(e,n),this.relatedTarget=n.relatedTarget??null}};var tn=class extends V{constructor(e,n={}){super(e,n),this.clipboardData=n.clipboardData??null}};var nn=class extends U{};var ts=/^[a-z][^A-Z\\u0000\\t\\n\\f\\r />]*-[^A-Z\\u0000\\t\\n\\f\\r />]*$/u,ns=new Set([\"annotation-xml\",\"color-profile\",\"font-face\",\"font-face-src\",\"font-face-uri\",\"font-face-format\",\"font-face-name\",\"missing-glyph\"]);function $r(t){return ts.test(t)&&!ns.has(t)}function Wr(t){return M(`Invalid custom element name: \"${t}\"`,\"SyntaxError\")}var rn=class{registry=new Map;listenersByName=new Map;define(e,n,r){if(!$r(e))throw Wr(e);if(this.registry.has(e))throw M(`A custom element named \"${e}\" has already been defined`,\"NotSupportedError\");if(this.getName(n)!=null)throw M(\"This constructor has already been registered in this custom element registry\",\"NotSupportedError\");this.registry.set(e,n);let o=this.listenersByName.get(e);if(o!=null){this.listenersByName.delete(e);for(let s of o)s(n)}}get(e){return this.registry.get(e)}getName(e){for(let[n,r]of this.registry)if(r===e)return n;return null}whenDefined(e){if(!$r(e))return Promise.reject(Wr(e));let n=this.registry.get(e);if(n!=null)return Promise.resolve(n);let r=this.listenersByName.get(e);return r==null&&(r=[],this.listenersByName.set(e,r)),new Promise(o=>{r.push(o)})}upgrade(e){}initialize(e){}};var rs=[\"onerror\",\"onunhandledrejection\"],Kr=Symbol.for(\"@remote-dom/polyfill/global-property\");function Zr(t){return Object.getOwnPropertyDescriptors(t)}function Qr(t){let e={};for(let[n,r]of Object.entries(Object.getOwnPropertyDescriptors(ye.prototype)))n!==\"constructor\"&&typeof r.value==\"function\"&&(r.value=qn(r.value.bind(t)),e[n]=r);return e}function Jr(t){let e={};for(let n of rs)e[n]={configurable:!0,enumerable:!0,get:qn(()=>t[n]),set:qn(r=>{t[n]=r})};return e}function os(t){return Object.assign(Zr(t),Qr(t),Jr(t))}function qn(t){return Object.defineProperty(t,Kr,{value:!0}),t}function Xr(t,e){for(let n of Reflect.ownKeys(e)){let r=ss(t,n);(r==null||is(r))&&Object.defineProperty(t,n,e[n])}}function ss(t,e){let n=t;for(;n;){let r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function is(t){return[t.value,t.get,t.set].some(e=>typeof e==\"function\"&&e[Kr]===!0)}var _e=class extends ye{[G]={};[gt]=[];[xe]=ls(this);name=\"\";window=this;parent=this;self=this;top=this;document=new dt(this);customElements=new rn;location=globalThis.location;navigator=globalThis.navigator;Event=V;ErrorEvent=Zt;PromiseRejectionEvent=Qt;ToggleEvent=Jt;FocusEvent=en;ClipboardEvent=tn;EventTarget=ye;CustomEvent=Kt;Node=te;ParentNode=ie;ChildNode=Ee;DocumentFragment=je;Document=dt;CharacterData=be;Comment=Fe;Text=Ve;Element=U;HTMLElement=nn;SVGElement=Be;HTMLTemplateElement=ze;MutationObserver=Ut;#t=null;#n=null;#e=null;static with(...e){let n=this;return class extends n{constructor(){super();for(let o of e)as(this,o)}}}get onerror(){return this.#n}set onerror(e){this.#t&&this.removeEventListener(\"error\",this.#t),e&&typeof e==\"function\"?(this.#n=e,this.#t=n=>{e(n.message??\"Error\",n.filename,n.lineno,n.colno,n.error)},this.addEventListener(\"error\",this.#t)):(this.#t=null,this.#n=null)}get onunhandledrejection(){return this.#e}set onunhandledrejection(e){this.#e&&this.removeEventListener(\"unhandledrejection\",this.#e),e&&typeof e==\"function\"?(this.#e=e,this.addEventListener(\"unhandledrejection\",this.#e)):this.#e=null}static setGlobal(e){let n=globalThis.self,r=globalThis.window,o=Zr(e),s=Object.assign(Qr(e),Jr(e));delete o.self,Object.defineProperties(globalThis,o),Xr(globalThis,s),typeof n>\"u\"||n===r&&n!==globalThis?Object.defineProperty(globalThis,\"self\",{value:e,configurable:!0,writable:!0,enumerable:!0}):n!==globalThis&&(Object.defineProperties(n,o),Xr(n,s))}static setGlobalThis(e){for(let n in e)e[n]===e&&(e[n]=globalThis);Object.defineProperties(globalThis,os(e))}};function as(t,e){t[gt].push(e(t)??{})}function ls(t){return{createElement:de.bind(null,t,\"createElement\"),setAttribute:de.bind(null,t,\"setAttribute\"),removeAttribute:de.bind(null,t,\"removeAttribute\"),createText:de.bind(null,t,\"createText\"),setText:de.bind(null,t,\"setText\"),insertChild:de.bind(null,t,\"insertChild\"),removeChild:de.bind(null,t,\"removeChild\"),addEventListener:de.bind(null,t,\"addEventListener\"),removeEventListener:de.bind(null,t,\"removeEventListener\")}}function de(t,e,...n){for(let s of t[gt])s[e]?.apply(s,n);let r=t[G];r[e]?.apply(r,n)}var on=new _e;var Yn=\"~\";var Ne=new WeakMap;function qe(t){return Ne.get(t)}var Kn=new WeakMap,us=0;function X(t){let e=Kn.get(t);return e==null&&(e=String(us++),sn(t,e)),e}function sn(t,e){Kn.set(t,e)}var Wn=new WeakMap;function ds(t){return Wn.get(t)}var Xn=new WeakMap;function fs(t){let e=Xn.get(t);if(e!=null)return e;if(!(!(t instanceof Element)||t.tagName.includes(\"-\"))){e={};for(let{name:n,value:r}of t.attributes)e[n]=r;return e}}var ms=new WeakMap;function ps(t){return ms.get(t)}function Zn(t,e,n){let r=Wn.get(t);if(r==null&&(r={},Wn.set(t,r)),r[e]===n)return;r[e]=n;let o=Ne.get(t);o?.mutate([[3,X(t),e,n,1]])}function Te(t,e,n){let r=Xn.get(t);if(r==null&&(r={},Xn.set(t,r)),r[e]===n)return;n==null?delete r[e]:r[e]=String(n);let o=Ne.get(t);o?.mutate([[3,X(t),e,n,2]])}function Ye(t,e){if(Ne.get(t)!==e&&(Ne.set(t,e),t.childNodes))for(let r=0;r<t.childNodes.length;r++)Ye(t.childNodes[r],e)}function an(t){if(Ne.get(t)!=null&&(Ne.delete(t),t.childNodes))for(let n=0;n<t.childNodes.length;n++)an(t.childNodes[n])}function $e(t){let{nodeType:e}=t;switch(e){case 1:return{id:X(t),type:e,element:t.localName,properties:$n(ds(t)),attributes:$n(fs(t)),eventListeners:$n(ps(t)),children:Array.from(t.childNodes).map($e)};case 3:case 8:return{id:X(t),type:e,data:t.data};default:throw new Error(`Cannot serialize node of type ${t.nodeType} (${typeof t.nodeType})`)}}function $n(t){return t?{...t}:void 0}function Qn(t,e,...n){let r=Kn.get(t),o=Ne.get(t);if(r==null||o==null)throw new Error(`Cannot call method ${e} on an unconnected node`);return o.call(r,e,...n)}var We=on[G];We.insertChild=(t,e,n)=>{let r=qe(t);r!=null&&(Ye(e,r),r.mutate([[0,X(t),$e(e),n]]))};We.removeChild=(t,e,n)=>{let r=qe(t);r!=null&&(an(e),r.mutate([[1,X(t),n]]))};We.setText=(t,e)=>{let n=qe(t);n?.mutate([[2,X(t),e]])};We.setAttribute=(t,e,n)=>{t.tagName.includes(\"-\")||Te(t,e,n)};We.removeAttribute=(t,e)=>{t.tagName.includes(\"-\")||Te(t,e)};_e.setGlobal(on);function ln(t){if(typeof t==\"string\")return{type:\"navigate\",to:t};let{place:e,record:n,where:r,section:o}=t??{},s={...r===void 0?{}:{where:r},...o===void 0?{}:{section:String(o)}};return typeof e==\"string\"?{type:\"navigate\",place:e,...s}:typeof n==\"string\"?{type:\"navigate\",to:n,...s}:void 0}var to=[\"wheel\",\"drag\",\"pinch\"];function no(t){let e=t;return typeof t==\"object\"&&t!==null&&e.graview===\"host-hello\"&&typeof e.nonce==\"string\"}function oo(t,e={}){let n,r=\"\",o,s=0,i=new Set,l=new Map,c=[],u=T=>{n?n.postMessage({...T,nonce:r}):c.push(T)},p=T=>{let S=T.data;if(!(!S||typeof S!=\"object\")){if(S.type===\"props\"){o=S.props;for(let C of i)C(S.props)}else S.type===\"answer\"?(l.get(S.id)?.(S),l.delete(S.id)):S.type===\"event\"&&typeof S.listener==\"number\"?e.onEvent?.(S):S.type===\"heartbeat\"&&typeof S.beat==\"number\"&&u({type:\"heartbeat\",beat:S.beat});e.onMessage?.(S)}},E=()=>{},b=T=>{if(n||!t.fromHost(T)||!no(T.data)||T.data.protocol!==1)return;let S=T.ports[0];if(S){n=S,r=T.data.nonce,n.onmessage=p,n.start?.(),E();for(let C of c.splice(0))u(C)}};E=t.listen(b),t.ready({graview:\"guest-ready\",protocol:1});let N,R={get props(){return o},subscribe(T){return i.add(T),()=>i.delete(T)},act(T,S={}){let C=s+=1;return new Promise(I=>{l.set(C,I),u({type:\"act\",id:C,name:T,args:S})})},navigate(T){let S=ln(T);S&&u(S)},size(T){u({type:\"size\",height:T})},autoSize(T){let S=T??globalThis.document?.documentElement,C=globalThis.ResizeObserver;if(!S||!C||typeof S.getBoundingClientRect!=\"function\")return()=>{};N?.disconnect();let I=new C(()=>R.size(Math.ceil(S.getBoundingClientRect().height)));return I.observe(S),N=I,()=>I.disconnect()},close(){N?.disconnect(),E(),n?.close(),i.clear()}};return{guest:R,send:u}}var io=[\"globalThis\",\"Infinity\",\"NaN\",\"undefined\",\"isFinite\",\"isNaN\",\"parseFloat\",\"parseInt\",\"decodeURI\",\"decodeURIComponent\",\"encodeURI\",\"encodeURIComponent\",\"escape\",\"unescape\",\"Object\",\"Function\",\"Array\",\"Number\",\"Boolean\",\"String\",\"Symbol\",\"BigInt\",\"Date\",\"Promise\",\"RegExp\",\"Math\",\"JSON\",\"Reflect\",\"Proxy\",\"Intl\",\"Error\",\"AggregateError\",\"EvalError\",\"RangeError\",\"ReferenceError\",\"SyntaxError\",\"TypeError\",\"URIError\",\"SuppressedError\",\"Map\",\"Set\",\"WeakMap\",\"WeakSet\",\"WeakRef\",\"FinalizationRegistry\",\"Iterator\",\"AsyncIterator\",\"DisposableStack\",\"AsyncDisposableStack\",\"ArrayBuffer\",\"SharedArrayBuffer\",\"DataView\",\"Atomics\",\"Int8Array\",\"Uint8Array\",\"Uint8ClampedArray\",\"Int16Array\",\"Uint16Array\",\"Int32Array\",\"Uint32Array\",\"Float16Array\",\"Float32Array\",\"Float64Array\",\"BigInt64Array\",\"BigUint64Array\"],ao=[\"window\",\"parent\",\"top\",\"document\",\"customElements\",\"Event\",\"ErrorEvent\",\"PromiseRejectionEvent\",\"ToggleEvent\",\"FocusEvent\",\"ClipboardEvent\",\"CustomEvent\",\"EventTarget\",\"Node\",\"ParentNode\",\"ChildNode\",\"DocumentFragment\",\"Document\",\"CharacterData\",\"Comment\",\"Text\",\"Element\",\"HTMLElement\",\"SVGElement\",\"HTMLTemplateElement\",\"MutationObserver\"],lo=[\"self\",\"postMessage\",\"setTimeout\",\"clearTimeout\",\"setInterval\",\"clearInterval\",\"queueMicrotask\",\"structuredClone\",\"crypto\",\"console\",\"DOMException\"],co=[\"TEMPORARY\",\"PERSISTENT\"],Yl=Object.freeze([...io,...ao,...lo,...co]),$l=Object.freeze([\"constructor\",\"__defineGetter__\",\"__defineSetter__\",\"hasOwnProperty\",\"__lookupGetter__\",\"__lookupSetter__\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"toString\",\"valueOf\",\"__proto__\",\"toLocaleString\"]),so=t=>typeof t==\"symbol\"?`[${t.description??\"symbol\"}]`:t;function uo(t=globalThis,e=[],n={}){let r=[],o=[],s=new Set([...io,...ao,...lo,...e,\"constructor\",Symbol.toStringTag]),i=(x,P)=>{let z=Reflect.getOwnPropertyDescriptor(x,P);return z===void 0||!(\"value\"in z)||z.writable||z.configurable?!1:n.primitivesStay&&typeof P==\"symbol\"&&(typeof z.value!=\"object\"||z.value===null)&&typeof z.value!=\"function\"?!0:co.includes(P)&&typeof z.value==\"number\"},l=t,c=l.setTimeout,u=l.setInterval,p=l.crypto,E=(x,P)=>function(z,mt,...pt){if(typeof z!=\"function\")throw new TypeError(`${P} takes a function: a guest view cannot run code from text`);return x.call(t,z,mt,...pt)},b=p?Object.freeze({getRandomValues:x=>p.getRandomValues(x)}):void 0,N=l.document?.defaultView;if(N&&N!==l)for(let x of Reflect.ownKeys(N))typeof x==\"symbol\"||s.has(x)||Reflect.deleteProperty(N,x)||o.push(`window.${x}`);let R=[];for(let x=t;x&&x!==Object.prototype;x=Object.getPrototypeOf(x))R.push(x);for(let x of R)for(let P of Reflect.ownKeys(x))s.has(P)||(Reflect.deleteProperty(x,P)?r.push(so(P)):i(x,P)||o.push(so(P)));let T=()=>function(){throw new EvalError(\"A guest view cannot make code from text.\")},S=[Function.prototype,Object.getPrototypeOf(async function(){}),Object.getPrototypeOf(function*(){}),Object.getPrototypeOf(async function*(){})];for(let x of S){let P=T();Object.defineProperty(P,\"prototype\",{value:x,writable:!1,enumerable:!1,configurable:!1}),Reflect.defineProperty(x,\"constructor\",{value:P,writable:!1,enumerable:!1,configurable:!1})||o.push(\"Function.prototype.constructor\"),x===Function.prototype&&Reflect.defineProperty(t,\"Function\",{value:P,writable:!0,enumerable:!1,configurable:!0})}let C=(x,P)=>{Reflect.defineProperty(t,x,{value:P,writable:!0,enumerable:!0,configurable:!0})||o.push(x)};C(\"setTimeout\",E(c,\"setTimeout\")),C(\"setInterval\",E(u,\"setInterval\")),b&&C(\"crypto\",b);for(let x of R.slice(1))Object.freeze(x);for(let x of Reflect.ownKeys(t)){let P=Reflect.getOwnPropertyDescriptor(t,x);Reflect.defineProperty(t,x,\"value\"in P?{...P,writable:!1,configurable:!1}:{...P,configurable:!1})}let I;try{I=Reflect.preventExtensions(t)}catch{I=!1}return{removed:r,stuck:o,sealed:I}}var ft=class extends HTMLElement{constructor(){super(),sn(this,Yn)}connect(e){if(qe(this)===e||(Ye(this,e),this.childNodes.length===0))return;let n=[];for(let r=0;r<this.childNodes.length;r++){let o=this.childNodes[r];n.push([0,Yn,$e(o),r])}e.mutate(n)}updateRemoteProperty(e,n){Zn(this,e,n)}callRemoteMethod(e,...n){return Qn(this,e,...n)}};var m={},Jn={empty:!0},hs={id:\"text\",class:\"text\",title:\"text\",lang:\"text\",dir:{oneOf:[\"ltr\",\"rtl\",\"auto\"]},hidden:\"text\",tabindex:{oneOf:[\"-1\",\"0\"]},role:\"text\",style:\"style\",translate:{oneOf:[\"yes\",\"no\"]},spellcheck:{oneOf:[\"true\",\"false\"]},draggable:{oneOf:[\"true\",\"false\"]},inert:\"boolean\"},er={div:m,section:m,article:m,aside:m,header:m,footer:m,nav:m,hgroup:m,search:m,address:m,figure:m,figcaption:m,blockquote:m,p:m,pre:m,hr:Jn,br:Jn,wbr:Jn,h1:m,h2:m,h3:m,h4:m,h5:m,h6:m,span:m,strong:m,em:m,b:m,i:m,u:m,s:m,small:m,mark:m,abbr:m,cite:m,q:m,code:m,kbd:m,samp:m,var:m,sub:m,sup:m,dfn:m,bdi:m,bdo:m,ruby:m,rt:m,rp:m,time:{attributes:{datetime:\"text\"}},data:{attributes:{value:\"text\"}},del:{attributes:{datetime:\"text\"}},ins:{attributes:{datetime:\"text\"}},a:{attributes:{href:\"link\"}},ul:m,menu:m,dl:m,dt:m,dd:m,ol:{attributes:{start:\"number\",reversed:\"boolean\",type:{oneOf:[\"1\",\"a\",\"A\",\"i\",\"I\"]}}},li:{attributes:{value:\"number\"}},table:m,caption:m,thead:m,tbody:m,tfoot:m,tr:m,colgroup:{attributes:{span:\"number\"}},col:{attributes:{span:\"number\"},empty:!0},th:{attributes:{colspan:\"number\",rowspan:\"number\",headers:\"text\",scope:{oneOf:[\"row\",\"col\",\"rowgroup\",\"colgroup\"]},abbr:\"text\"}},td:{attributes:{colspan:\"number\",rowspan:\"number\",headers:\"text\"}},details:{attributes:{open:\"boolean\",name:\"text\"}},summary:m,button:{attributes:{type:{oneOf:[\"button\"]},disabled:\"boolean\",name:\"text\",value:\"text\"}},input:{empty:!0,attributes:{type:{oneOf:[\"text\",\"search\",\"number\",\"range\",\"checkbox\",\"radio\",\"date\",\"time\",\"datetime-local\",\"month\",\"week\",\"color\",\"email\",\"tel\",\"url\"]},name:\"text\",value:\"text\",placeholder:\"text\",min:\"text\",max:\"text\",step:\"text\",checked:\"boolean\",disabled:\"boolean\",readonly:\"boolean\",required:\"boolean\",maxlength:\"number\",minlength:\"number\",size:\"number\",pattern:\"text\",multiple:\"boolean\",inputmode:\"text\",enterkeyhint:\"text\"}},select:{attributes:{name:\"text\",disabled:\"boolean\",multiple:\"boolean\",required:\"boolean\",size:\"number\"}},option:{attributes:{value:\"text\",selected:\"boolean\",disabled:\"boolean\",label:\"text\"}},optgroup:{attributes:{label:\"text\",disabled:\"boolean\"}},textarea:{attributes:{name:\"text\",placeholder:\"text\",rows:\"number\",cols:\"number\",disabled:\"boolean\",readonly:\"boolean\",required:\"boolean\",maxlength:\"number\",minlength:\"number\",wrap:{oneOf:[\"soft\",\"hard\",\"off\"]}}},label:{attributes:{for:\"text\"}},fieldset:{attributes:{disabled:\"boolean\",name:\"text\"}},legend:m,output:m,meter:{attributes:{value:\"number\",min:\"number\",max:\"number\",low:\"number\",high:\"number\",optimum:\"number\"}},progress:{attributes:{value:\"number\",max:\"number\"}},img:{empty:!0,attributes:{src:\"image\",alt:\"text\",width:\"number\",height:\"number\",decoding:{oneOf:[\"async\",\"sync\",\"auto\"]},loading:{oneOf:[\"lazy\",\"eager\"]},fetchpriority:{oneOf:[\"high\",\"low\",\"auto\"]}}},\"graview-video\":{empty:!0,attributes:{autoplay:\"boolean\",cover:\"boolean\"}}},gs=[\"fill\",\"fill-opacity\",\"fill-rule\",\"stroke\",\"stroke-width\",\"stroke-linecap\",\"stroke-linejoin\",\"stroke-dasharray\",\"stroke-dashoffset\",\"stroke-opacity\",\"stroke-miterlimit\",\"opacity\",\"color\",\"display\",\"visibility\",\"transform-origin\",\"clip-path\",\"clip-rule\",\"marker-start\",\"marker-mid\",\"marker-end\",\"font-family\",\"font-size\",\"font-weight\",\"font-style\",\"text-anchor\",\"dominant-baseline\",\"alignment-baseline\",\"letter-spacing\",\"text-decoration\",\"paint-order\",\"vector-effect\",\"shape-rendering\",\"pointer-events\",\"stop-color\",\"stop-opacity\",\"overflow\",\"mask\",\"filter\",\"flood-color\",\"flood-opacity\",\"lighting-color\",\"color-interpolation-filters\"],ys={id:\"text\",class:\"text\",style:\"style\",lang:\"text\",role:\"text\",tabindex:{oneOf:[\"-1\",\"0\"]},transform:\"geometry\",...Object.fromEntries(gs.map(t=>[t,\"css\"]))},fe={x:\"geometry\",y:\"geometry\",width:\"geometry\",height:\"geometry\"},cn={viewBox:\"geometry\",preserveAspectRatio:\"geometry\"},fo={oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},mo={oneOf:[\"R\",\"G\",\"B\",\"A\"]},oe={...fe,in:\"text\",result:\"text\"},po={gradientUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},gradientTransform:\"geometry\",spreadMethod:{oneOf:[\"pad\",\"reflect\",\"repeat\"]},href:\"fragment\"},ho={svg:{attributes:{...fe,...cn}},g:m,defs:m,symbol:{attributes:{...fe,...cn,refX:\"geometry\",refY:\"geometry\"}},use:{attributes:{...fe,href:\"fragment\"}},title:m,desc:m,path:{attributes:{d:\"geometry\",pathLength:\"number\"}},rect:{attributes:{...fe,rx:\"geometry\",ry:\"geometry\",pathLength:\"number\"}},circle:{attributes:{cx:\"geometry\",cy:\"geometry\",r:\"geometry\",pathLength:\"number\"}},ellipse:{attributes:{cx:\"geometry\",cy:\"geometry\",rx:\"geometry\",ry:\"geometry\",pathLength:\"number\"}},line:{attributes:{x1:\"geometry\",y1:\"geometry\",x2:\"geometry\",y2:\"geometry\",pathLength:\"number\"}},polyline:{attributes:{points:\"geometry\",pathLength:\"number\"}},polygon:{attributes:{points:\"geometry\",pathLength:\"number\"}},text:{attributes:{x:\"geometry\",y:\"geometry\",dx:\"geometry\",dy:\"geometry\",rotate:\"geometry\",textLength:\"geometry\",lengthAdjust:{oneOf:[\"spacing\",\"spacingAndGlyphs\"]}}},tspan:{attributes:{x:\"geometry\",y:\"geometry\",dx:\"geometry\",dy:\"geometry\",rotate:\"geometry\",textLength:\"geometry\"}},textPath:{attributes:{href:\"fragment\",startOffset:\"geometry\",method:{oneOf:[\"align\",\"stretch\"]},spacing:{oneOf:[\"auto\",\"exact\"]},side:{oneOf:[\"left\",\"right\"]}}},linearGradient:{attributes:{x1:\"geometry\",y1:\"geometry\",x2:\"geometry\",y2:\"geometry\",...po}},radialGradient:{attributes:{cx:\"geometry\",cy:\"geometry\",r:\"geometry\",fx:\"geometry\",fy:\"geometry\",fr:\"geometry\",...po}},stop:{attributes:{offset:\"geometry\"}},clipPath:{attributes:{clipPathUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]}}},mask:{attributes:{...fe,maskUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},maskContentUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]}}},pattern:{attributes:{...fe,...cn,patternUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},patternContentUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},patternTransform:\"geometry\",href:\"fragment\"}},marker:{attributes:{...cn,markerWidth:\"geometry\",markerHeight:\"geometry\",refX:\"geometry\",refY:\"geometry\",orient:\"geometry\",markerUnits:{oneOf:[\"strokeWidth\",\"userSpaceOnUse\"]}}},a:m,filter:{attributes:{...fe,filterUnits:fo,primitiveUnits:fo}},feBlend:{attributes:{...oe,in2:\"text\",mode:\"text\"}},feColorMatrix:{attributes:{...oe,type:{oneOf:[\"matrix\",\"saturate\",\"hueRotate\",\"luminanceToAlpha\"]},values:\"geometry\"}},feComponentTransfer:{attributes:oe},...Object.fromEntries([\"feFuncR\",\"feFuncG\",\"feFuncB\",\"feFuncA\"].map(t=>[t,{attributes:{type:{oneOf:[\"identity\",\"table\",\"discrete\",\"linear\",\"gamma\"]},tableValues:\"geometry\",slope:\"number\",intercept:\"number\",amplitude:\"number\",exponent:\"number\",offset:\"number\"}}])),feComposite:{attributes:{...oe,in2:\"text\",operator:{oneOf:[\"over\",\"in\",\"out\",\"atop\",\"xor\",\"lighter\",\"arithmetic\"]},k1:\"number\",k2:\"number\",k3:\"number\",k4:\"number\"}},feDisplacementMap:{attributes:{...oe,in2:\"text\",scale:\"number\",xChannelSelector:mo,yChannelSelector:mo}},feDropShadow:{attributes:{...oe,dx:\"number\",dy:\"number\",stdDeviation:\"geometry\"}},feFlood:{attributes:oe},feGaussianBlur:{attributes:{...oe,stdDeviation:\"geometry\",edgeMode:{oneOf:[\"duplicate\",\"wrap\",\"none\"]}}},feMerge:{attributes:oe},feMergeNode:{attributes:{in:\"text\"}},feMorphology:{attributes:{...oe,operator:{oneOf:[\"erode\",\"dilate\"]},radius:\"geometry\"}},feOffset:{attributes:{...oe,dx:\"number\",dy:\"number\"}},feTurbulence:{attributes:{...fe,result:\"text\",type:{oneOf:[\"fractalNoise\",\"turbulence\"]},baseFrequency:\"geometry\",numOctaves:\"number\",seed:\"number\",stitchTiles:{oneOf:[\"stitch\",\"noStitch\"]}}}};var go={section:[\"aria-label\",\"title\"]};function Es(t){return/^aria-[a-z]+$/.test(t)}function bs(t){return/^data-[a-z0-9][a-z0-9_.-]*$/.test(t)}var Ns=new Map(Object.keys(ho).map(t=>[t.toLowerCase(),t]));function yo(t){return Ns.get(t.toLowerCase())}function Eo(t,e,n){let r=n.toLowerCase(),o=t===\"html\"?[er[e]?.attributes,hs]:[ho[e]?.attributes,ys],s=t===\"svg\"&&r===\"xlink:href\"?\"href\":r;for(let i of o)if(i){for(let[l,c]of Object.entries(i))if(l.toLowerCase()===s)return{name:l,kind:c}}if(Es(r)||bs(r))return{name:r,kind:\"text\"}}var bo=/^[a-z0-9][a-z0-9_-]{0,63}$/i;var un=/^\\d{4}-\\d{2}-\\d{2}$/;function Ts(t,e){if(typeof t!=\"string\"||typeof e!=\"string\"||!un.test(t)||!un.test(e))return;let n=Math.round((Date.parse(`${t}T00:00:00Z`)-Date.parse(`${e}T00:00:00Z`))/864e5);return Number.isFinite(n)?n:void 0}function No(t,e,n={}){let r=Ts(t,e);if(r===void 0)return\"\";if(r===0)return\"today\";if(r===1)return\"tomorrow\";if(r<0&&n.due===!0)return\"overdue\";if(r===-1)return\"yesterday\";let o=Math.abs(r),[s,i]=o<14?[o,\"day\"]:o<60?[Math.round(o/7),\"week\"]:o<730?[Math.round(o/30.44),\"month\"]:[Math.round(o/365.25),\"year\"],l=`${s} ${i}${s===1?\"\":\"s\"}`;return r>0?`in ${l}`:`${l} ago`}function To(t,e){if(typeof t!=\"string\")return;if(un.test(t))return t;let n=Date.parse(t);if(Number.isFinite(n)){if(!/(Z|[+-]\\d\\d:?\\d\\d)$/.test(t))return un.test(t.slice(0,10))?t.slice(0,10):void 0;try{let r=new Intl.DateTimeFormat(\"en-CA\",{timeZone:e||\"UTC\",year:\"numeric\",month:\"2-digit\",day:\"2-digit\"}).formatToParts(n),o=s=>r.find(i=>i.type===s)?.value??\"\";return`${o(\"year\")}-${o(\"month\")}-${o(\"day\")}`}catch{return new Date(n).toISOString().slice(0,10)}}}var wo=\"~\",dn=t=>typeof t==\"object\"&&t!==null&&!Array.isArray(t),ae=(t,e=0)=>{if(t===null||typeof t==\"string\"||typeof t==\"number\"||typeof t==\"boolean\"||t===void 0)return t;if(!(e>64||typeof t!=\"object\"))return Array.isArray(t)?t.map(n=>ae(n,e+1)):Object.fromEntries(Object.entries(t).map(([n,r])=>[n,ae(r,e+1)]))};function So(){let t=new Map,e=new Map,n=new Map([[wo,{children:[],listeners:new Map}]]),r=0,o=u=>{let p=e.get(u);return p===void 0&&(p=r+=1,e.set(u,p),t.set(p,{listener:u,count:0})),t.get(p).count+=1,p},s=u=>{let p=t.get(u);p&&(p.count-=1,!(p.count>0)&&(t.delete(u),e.delete(p.listener)))},i=u=>{let p=n.get(u);if(p){n.delete(u);for(let E of p.listeners.values())s(E);for(let E of p.children)i(E)}},l=(u,p,E=0)=>{if(!dn(u)||E>64)return ae(u);let b=typeof u.id==\"string\"?u.id:void 0,N=p&&b!==void 0&&b!==wo;N&&i(b);let R={children:[],listeners:new Map};N&&n.set(b,R);let T={};for(let[S,C]of Object.entries(u))S===\"children\"&&Array.isArray(C)?T[S]=C.map(I=>{let x=l(I,N,E+1);return N&&dn(I)&&typeof I.id==\"string\"&&R.children.push(I.id),x}):S===\"eventListeners\"&&dn(C)?T[S]=Object.fromEntries(Object.entries(C).map(([I,x])=>{if(typeof x!=\"function\"||!N)return[I,void 0];let P=o(x);return R.listeners.set(I,P),[I,{listener:P}]})):T[S]=ae(C,E+1);return T},c=u=>{if(!Array.isArray(u))return ae(u);let[p,E]=u,b=typeof E==\"string\"?n.get(E):void 0;if(p===0){let N=l(u[2],b!==void 0),R=dn(u[2])?u[2].id:void 0;if(b&&typeof R==\"string\"&&n.has(R)){let T=Number(u[3]);b.children.splice(Number.isInteger(T)&&T>=0&&T<=b.children.length?T:b.children.length,0,R)}return[p,ae(E),N,ae(u[3])]}if(p===1){let N=Number(u[2]);return b&&Number.isInteger(N)&&N>=0&&N<b.children.length&&i(b.children.splice(N,1)[0]),ae(u)}if(p===3&&u[4]===3){let N=String(u[2]),R=u[3],T=b&&typeof R==\"function\"?o(R):void 0,S=b?.listeners.get(N);return S!==void 0&&s(S),T===void 0?b?.listeners.delete(N):b.listeners.set(N,T),[p,ae(E),N,T===void 0?void 0:{listener:T},3]}return ae(u)};return{encode:u=>u.map(c),listener:u=>t.get(u)?.listener,get listening(){return t.size},get nodes(){return n.size-1}}}var fn=\"graview-view-root\",Ss=[\"value\",\"checked\",\"key\",\"pressed\",\"files\",\"refused\",\"x\",\"y\",\"width\",\"height\",\"deltaX\",\"deltaY\",\"deltaMode\",\"ctrlKey\",\"metaKey\",\"phase\",\"pointerId\",\"button\",\"pressure\",\"dx\",\"dy\",\"scale\",\"rotation\"],xs=new Set([\"div\",\"li\",\"article\"]),nr=t=>t.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#39;\"),tr=t=>Object.freeze({html:t,toString:()=>t}),rr=t=>typeof t==\"object\"&&t!==null&&typeof t.html==\"string\"&&Object.isFrozen(t),vo=t=>t==null||t===!1?\"\":Array.isArray(t)?t.map(vo).join(\"\"):rr(t)?t.html:nr(String(t));function Oo(t){customElements.get(fn)||customElements.define(fn,ft);let e=Event,n=So(),r=new Set,o=new Set,s,i=[],l=new Set;for(let a of[\"closest\",\"matches\",\"dataset\"]){let d=()=>{throw new TypeError(`A view's element has no ${a}: graview.on hands event.element, the element its selector matched; read event.element.getAttribute(\"data-\\u2026\").`)};a in Element.prototype||Object.defineProperty(Element.prototype,a,a===\"dataset\"?{get:d}:{value:d})}let c=document.createElement(fn),u=a=>{let d=f=>{for(let g of Array.from(f.childNodes)){if(g.nodeType!==1)continue;if(X(g)===a)return g;let y=d(g);if(y)return y}};return d(c)},p=a=>{let d=u(a.target);if(!d)return;let f=new e(a.event,{bubbles:!0}),g={};for(let y of Ss)a[y]!==void 0&&(g[y]=a[y]);for(let y of Object.keys(g))Object.defineProperty(f,y,{value:g[y],enumerable:!0});d.dispatchEvent(f);for(let y of o){if(y.type!==a.event)continue;let w;try{w=new Set(Array.from(c.querySelectorAll(y.selector)))}catch{continue}for(let k=d;k&&k!==c;k=k.parentNode)if(w.has(k)){y.listener(Object.freeze({type:a.event,target:d,element:k,...g}));break}}},E=Error,b=new Map,N=0,R=(a,d,f)=>new Promise((g,y)=>{let w=++N;b.set(w,k=>k.ok?g(k):y(new E(k.sentence??\"This value was not kept.\"))),t.send({type:\"mine\",id:w,op:a,key:d,...a===\"set\"?{value:f}:{}})}),T=a=>(a.catch(()=>{}),a),S=Object.freeze({get(a){return T(R(\"get\",a).then(d=>typeof d.value==\"string\"?d.value:null))},set(a,d){return T(R(\"set\",a,d).then(()=>{}))}}),C=a=>{if(a.type===\"mine-answer\"){let y=b.get(a.id);return b.delete(a.id),y?.(a)}if(a.type===\"dom-event\"&&typeof a.target==\"string\")return p(a);if(a.type===\"notice\")return t.warn(a.text);if(a.type!==\"props\")return;s=a.props,typeof a.partMs==\"number\"&&a.partMs>0&&(mn=a.partMs),typeof a.partMark==\"string\"&&(pn=a.partMark),hn+=1,ht.clear(),Xe=0;let d=t.now();for(let y of r)try{y(a.props)}catch(w){t.threw(w)}let f=t.now()-d,g=a.push;typeof g==\"number\"&&t.microtask(()=>t.microtask(()=>t.send({type:\"pushed\",push:g,ms:f})))},I;c.connect({mutate(a){I||(I=[],t.microtask(()=>{let d=I??[];I=void 0,t.send({type:\"render\",records:n.encode(d)})})),I.push(...a)},call:()=>{}});let x=a=>a.nodeType===1?a.getAttribute(\"data-key\")??a.getAttribute(\"id\"):null,P=(a,d)=>a.nodeType===d.nodeType&&(a.nodeType!==1||a.localName===d.localName&&a.namespaceURI===d.namespaceURI&&x(a)===x(d));function z(a,d){let f=Array.from(d.childNodes),g=0;for(let y of f){let w=a.childNodes[g]??null;if(w&&P(w,y)){mt(w,y),g+=1;continue}if(x(y)!==null){let K=Array.from(a.childNodes).slice(g+1).find(we=>P(we,y));if(K){a.insertBefore(K,w),mt(K,y),g+=1;continue}}a.insertBefore(y,w),g+=1}for(;a.childNodes.length>g;)a.removeChild(a.lastChild)}function mt(a,d){if(a.nodeType!==1){a.data!==d.data&&(a.data=d.data);return}let f=a,g=d,y=pt(f);for(let w of f.getAttributeNames())g.hasAttribute(w)||(f.removeAttribute(w),y&&Te(f,w,void 0));for(let w of g.getAttributeNames()){let k=g.getAttribute(w);f.getAttribute(w)!==k&&f.setAttribute(w,k),y&&Te(f,w,k)}z(f,g)}let pt=a=>a.localName.includes(\"-\");function ar(a){for(let d of Array.from(a.childNodes)){if(d.nodeType!==1)continue;let f=d;if(pt(f))for(let g of f.getAttributeNames())Te(f,g,f.getAttribute(g)??void 0);ar(f)}}function lr(a,d,f){for(let g of Array.from(a.childNodes)){if(g.nodeType!==1)continue;let y=g,w=y.localName,k=d||w.toLowerCase()===\"svg\",K=k?yo(w):Object.prototype.hasOwnProperty.call(er,w.toLowerCase())?w.toLowerCase():void 0;if(!K){f.add(`<${w}>`);continue}for(let we of y.getAttributeNames())(!Eo(k?\"svg\":\"html\",K,we)||!k&&go[K]?.includes(we.toLowerCase()))&&f.add(`${K} ${we}`);lr(y,k,f)}}function Ao(a){let d=document.createElement(\"div\"),f=Array.isArray(a)?a:[a];for(let y of f)if(y!=null)if(typeof y==\"string\"||rr(y)){let w=document.createElement(\"div\");w.innerHTML=typeof y==\"string\"?y:y.html,d.append(...Array.from(w.childNodes))}else d.append(y);let g=new Set;lr(d,!1,g),i=[...g],i.length>0&&t.warn(`The host will not draw: ${i.join(\", \")}`),ar(d),z(c,d),ht.clear()}let mn=1e3/4,pn=\"\",hn=0,gn=new Map,ht=new Map,Xe=0,yn=new Set,_o=a=>{try{return a instanceof Error?`${a.name}: ${a.message}`:String(a)}catch{return\"an error\"}},cr=a=>{if(a==null||a===!1)return\"\";if(typeof a==\"string\")return a;if(rr(a))return a.html;if(Array.isArray(a))return a.map(d=>cr(d)).join(\"\");throw new TypeError(\"a part's draw returns markup: a string, graview.html`\\u2026` or a list of them\")};function Po(a,d,f){if(typeof a!=\"string\"||!bo.test(a))throw new TypeError('graview.part names its part in letters, digits, - and _ (\"vendors\", \"budget-2026\"), at most 64 of them.');if(typeof d!=\"function\")throw new TypeError(`graview.part(\"${a}\", draw) is handed a function that returns the part's markup.`);let g=typeof f?.as==\"string\"&&xs.has(f.as)?f.as:\"div\",y=ht.get(a)??0;ht.set(a,y+1);let w=`${a}#${y}`,k=(Z,gr)=>{let Co=`The part \"${a}\" ${Z===\"threw\"?\"threw\":\"took too long\"}, so a note is drawn in its place and the rest of the view is drawn: ${gr}`;return!yn.has(`${a} ${Z}`)&&yn.size<100&&(yn.add(`${a} ${Z}`),t.warn(Co)),tr(`<${g} data-part=\"${a}\" data-part-failed=\"${Z}\" data-part-why=\"${nr(gr.slice(0,300))}\"${pn?` data-part-mark=\"${nr(pn)}\"`:\"\"}></${g}>`)},K=gn.get(w);if(K!==void 0&&hn<=K.until)return k(\"slow\",K.why);gn.delete(w);let we=Xe;Xe=0;let Mo=t.now(),hr,wn=0;try{hr=cr(d())}catch(Z){return k(\"threw\",_o(Z))}finally{let Z=t.now()-Mo;wn=Z-Xe,Xe=we+Z}if(wn>mn){let Z=`it took ${Math.round(wn).toLocaleString(\"en-US\")} ms, past the ${Math.round(mn).toLocaleString(\"en-US\")} ms a part may take of a push, and is left as a note for the next ${3} pushes.`;return gn.set(w,{why:Z,until:hn+3}),k(\"slow\",Z)}return tr(`<${g} data-part=\"${a}\">${hr}</${g}>`)}let En=[],bn=new Set(to),ur=\"[]\",Nn=!1,dr=()=>{Nn||(Nn=!0,t.microtask(()=>{Nn=!1;let a=[...new Map([...o].filter(f=>bn.has(f.type)).map(f=>[`${f.type} ${f.selector}`,{event:f.type,selector:f.selector}])).entries()].sort(([f],[g])=>f<g?-1:f>g?1:0).map(([,f])=>f),d=JSON.stringify(a);d!==ur&&(ur=d,t.send({type:\"gestures\",bound:a}))}))},fr=\"[[],[]]\",Tn=!1,mr=()=>{Tn||(Tn=!0,t.microtask(()=>{Tn=!1;let a=y=>[...new Set([...o].filter(w=>w.type===y&&typeof w.selector==\"string\").map(w=>w.selector))].sort().slice(0,200),d=a(\"click\"),f=a(\"acted\"),g=JSON.stringify([d,f]);g!==fr&&(fr=g,t.send({type:\"clicks\",selectors:d,...f.length>0?{acted:f}:{}}))}))},pr=Object.freeze({get props(){return s},onProps(a){return r.add(a),s&&a(s),()=>void r.delete(a)},render:Ao,style(a){typeof a!=\"string\"||En.includes(a)||(En.push(a),t.send({type:\"style\",sheets:[...En]}))},on(a,d,f){let g={type:a,selector:d,listener:f};return o.add(g),typeof a==\"string\"&&!l.has(a)&&(l.add(a),t.send({type:\"hears\",events:[a]})),bn.has(a)&&dr(),(a===\"click\"||a===\"acted\")&&mr(),()=>{o.delete(g),bn.has(a)&&dr(),(a===\"click\"||a===\"acted\")&&mr()}},act:(a,d={})=>t.act(a,d),mine:S,navigate(a){if(typeof a==\"string\")return t.navigate(a);let d=ln(a);d&&t.send(d)},part:Po,html(a,...d){return tr(a.reduce((f,g,y)=>f+g+(y<d.length?vo(d[y]):\"\"),\"\"))},get today(){return s?.today??new Date().toISOString().slice(0,10)},fromToday(a,d){let f=To(a,s?.timeZone);return f===void 0?\"\":No(f,pr.today,d)},cite(a,d){let f=a?s?.cites?.[a.kind]?.[d]:void 0;if(!a||!f)return;let g=!(s?.uncited?.[a.id]??[]).includes(d);if(!f.relation)return{by:f.by,relation:!1,cited:g,...a[f.by]!==void 0?{source:a[f.by]}:{}};let y=new Set((s?.edges??[]).filter(w=>w.from===a.id&&w.kind===f.by).map(w=>w.to));return{by:f.by,relation:!0,cited:g,sources:(s?.nodes??[]).filter(w=>y.has(w.id))}},uncited(a){return a?s?.uncited?.[a.id]??[]:[]},get refused(){return i},get hardening(){return t.hardening()}});return{view:pr,hear:C,find:a=>{try{let d=c.querySelectorAll(a)[0];return d?X(d):void 0}catch{return}},listened:a=>{let d=new Set;for(let f of o)if(f.type===a)try{for(let g of Array.from(c.querySelectorAll(f.selector))){let y=X(g);y&&d.add(y)}}catch{}return[...d]}}}var ir={removed:[],stuck:[],sealed:!1,worker:!1},or=oo({listen(t){return Me.listen(t),()=>Me.unlisten(t)},fromHost:()=>!0,ready:t=>Me.post(t)},{onMessage:t=>Ro.hear(t)}),Ro=Oo({send:t=>or.send(t),act:(t,e)=>or.guest.act(t,e),navigate:t=>or.guest.navigate(t),microtask:Me.microtask,now:Me.now,threw:t=>console.error(t),warn:t=>console.warn(t),hardening:()=>ir}),vs=Ro.view;Object.defineProperty(globalThis,\"graview\",{value:vs,enumerable:!0,configurable:!0,writable:!1});var sr=\"WorkerGlobalScope\"in globalThis?uo(globalThis,[\"graview\"]):ir;ir=sr;if(sr.stuck.length>0)throw new Error(`The view's worker could not be hardened: ${sr.stuck.join(\", \")} would not go.`);})();\n";
6
+ export const VIEW_RUNTIME = "\"use strict\";\n/*! @remote-dom/core and @remote-dom/polyfill — Copyright 2020-present, Shopify Inc. — MIT License.\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n * @graview/guest's worker runtime — Elastic License 2.0. */\n\"use strict\";(()=>{var Ce=globalThis,Ho=Ce.addEventListener,Uo=Ce.removeEventListener,Bo=Ce.postMessage,Vo=globalThis.queueMicrotask,On=globalThis.performance,Fo=On?On.now.bind(On):Date.now,Ie={listen:t=>Ho.call(Ce,\"message\",t),unlisten:t=>Uo.call(Ce,\"message\",t),post:t=>Bo.call(Ce,t),microtask:t=>Vo.call(globalThis,t),now:()=>Fo()};var x=Symbol(\"name\"),he=Symbol(\"prefix\"),ge=Symbol(\"value\"),O=Symbol(\"ns\"),$=Symbol(\"owner\"),k=Symbol(\"owner_document\"),ie=Symbol(\"attributes\"),D=Symbol(\"prev\"),y=Symbol(\"next\"),_=Symbol(\"child\"),W=Symbol(\"parent\"),ye=Symbol(\"host\"),J=Symbol(\"data\"),xe=Symbol(\"listeners\"),Rn=Symbol(\"isTrusted\"),ke=Symbol(\"path\"),De=Symbol(\"stop_immediate_propagation\"),Le=Symbol(\"dispatching\"),ue=Symbol(\"content\"),L=Symbol(\"hooks\"),Et=Symbol(\"extensions\"),Oe=Symbol(\"hooks_dispatch\"),j=Symbol(\"is_connected\"),Ge=Symbol(\"create_element\"),Tr=0,K=1,He=2,Ue=3,Be=8,Re=9,wr=10,be=11,C=\"http://www.w3.org/1999/xhtml\",ee=\"http://www.w3.org/2000/svg\",Sr=\"http://www.w3.org/XML/1998/namespace\",tt=\"http://www.w3.org/2000/xmlns/\";function Nt(t){return t.split(/[\\t\\n\\f\\r ]+/).filter(Boolean)}function V(t){return t.replace(/[A-Z]/g,e=>String.fromCharCode(e.charCodeAt(0)+32))}function vr(t){return t.replace(/[a-z]/g,e=>String.fromCharCode(e.charCodeAt(0)-32))}function I(t,e){let n=globalThis.DOMException;if(typeof n==\"function\")return new n(t,e);let r=new Error(t);return r.name=e,r}var xr=/^(?:[A-Za-z][^\\0\\t\\n\\f\\r\\u0020/>]*|[:_\\u0080-\\u{10FFFF}][A-Za-z0-9-.:_\\u0080-\\u{10FFFF}]*)$/u,Or=/[\\0\\t\\n\\f\\r />=]/u,jo=/[\\0\\t\\n\\f\\r />]/u;function de(t){if(t==null)return null;let e=String(t);return e===\"\"?null:e}function Rr(t){xr.test(t)||_n(t)}function An(t){(t===\"\"||Or.test(t))&&_n(t)}function Tt(t,e,n){let r=de(t),o=String(e),s=o.indexOf(\":\"),i=s<0?null:o.slice(0,s),l=s<0?o:o.slice(s+1);if((i!=null&&(i===\"\"||jo.test(i))||(n===\"element\"?!xr.test(l):l===\"\"||Or.test(l)))&&_n(o),i!=null&&r==null)throw I(`A namespace is required for the prefix in \"${o}\"`,\"NamespaceError\");if(i===\"xml\"&&r!==Sr)throw I(\"The xml prefix requires the XML namespace\",\"NamespaceError\");if((o===\"xmlns\"||i===\"xmlns\")&&r!==tt)throw I(\"The xmlns name requires the XMLNS namespace\",\"NamespaceError\");if(r===tt&&o!==\"xmlns\"&&i!==\"xmlns\")throw I(\"The XMLNS namespace requires the xmlns name or prefix\",\"NamespaceError\");return{namespace:r,qualifiedName:o,prefix:i,localName:l}}function _n(t){throw I(`Invalid name: \"${t}\"`,\"InvalidCharacterError\")}var wt=0,St=1,Ar=2,Pn=3,zo=typeof performance>\"u\"?Date.now:performance.now.bind(performance),z=class{static NONE=wt;static CAPTURING_PHASE=St;static AT_TARGET=Ar;static BUBBLING_PHASE=Pn;timeStamp=zo();target=null;currentTarget=null;srcElement=null;bubbles=!1;cancelable=!1;composed=!1;defaultPrevented=!1;cancelBubble=!1;eventPhase=wt;[ke]=[];[De]=!1;[Le]=!1;constructor(e,n){this.type=e,Object.defineProperty(this,Rn,{writable:!0,value:!1}),n&&(n.bubbles&&(this.bubbles=n.bubbles),n.cancelable&&(this.cancelable=n.cancelable),n.composed&&(this.composed=n.composed))}get isTrusted(){return this[Rn]}composedPath(){return[...this[ke]]}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this[De]=!0,this.cancelBubble=!0}preventDefault(){this.cancelable&&(this.defaultPrevented=!0)}set returnValue(e){e||this.preventDefault()}get returnValue(){return!this.defaultPrevented}initEvent(e,n,r){this.type=e,this.bubbles=!!n,this.cancelable=!!r}};function Mn(t,e,n){if(t.cancelBubble)return;let o=e[xe]?.get(t.type)?.[n===St?\"capture\":\"bubble\"];if(o)for(let s of[...o]){if(!o.has(s)||s.signal?.aborted)continue;t.eventPhase=t.target===e?Ar:n,t.currentTarget=e;let i=s.normalizedListener;try{typeof i==\"object\"?i.handleEvent(t):i.call(e,t)}catch(l){setTimeout(qo,0,l)}if(t[De])break}}function qo(t){throw t}var nt=[],vt=new WeakMap;function xt(t,e){let n=vt.get(t);n?n.push(e):vt.set(t,[e]),nt[nt.length-1].push(t)}function q(t){let e=[];nt.push(e);let n;try{n=t()}catch(r){nt.pop();try{_r(e)}catch{}throw r}return nt.pop(),_r(e),n}function _r(t){let e,n=!1;for(let r of t){let o=vt.get(r);if(o){for(;o.length>0;){let s=o.shift();try{s()}catch(i){n||(e=i,n=!0)}}vt.delete(r)}}if(n)throw e}var Ot=[],rt=[],Cn=!1;function Ae(t){for(let e of t)Ot.push(e),e[1]&&rt.push(e[1]);if(!Cn){Cn=!0;try{let e,n=!1;for(let r=0;r<Ot.length;r++){let[o,s]=Ot[r];s&&rt.splice(rt.indexOf(s),1);try{o()}catch(i){n||(e=i,n=!0)}}if(n)throw e}finally{Ot.length=0,rt.length=0,Cn=!1}}}function ot(t){let e=t;for(;e;){if(rt.includes(e))return!0;e=e[W]??e[ye]}return!1}var st=Symbol(\"listenerRegistrations\"),Ee=class{[xe]=void 0;[st]=void 0;[k]=void 0;addEventListener(e,n,r){if(n==null)return;let o=r===!0||typeof r==\"object\"&&r.capture===!0,s=typeof r==\"object\"&&r.once===!0,i=typeof r==\"object\"?r.signal:void 0;if(i?.aborted)return;let l=In(o),u=this[st];u||(u=new Map,this[st]=u);let d=u.get(e);d||(d={},u.set(e,d));let p=d[l];if(p||(p=new Map,d[l]=p),p.has(n))return;let b=this,T={type:e,listener:n,capture:o,once:s,normalizedListener:n,signal:i};(s||i)&&(T.normalizedListener=function(...v){if(T.signal?.aborted){Rt(b,T);return}return T.once&&Rt(b,T),typeof T.listener==\"object\"?T.listener.handleEvent(...v):T.listener.call(this,...v)});let w=this[xe];w||(w=new Map,this[xe]=w);let A=w.get(e);A||(A={},w.set(e,A));let P=A[l];if(P||(P=new Set,A[l]=P),p.set(n,T),P.add(T),i){let U=()=>{Rt(b,T)};T.abortListener=U,i.addEventListener(\"abort\",U,{once:!0})}this[k]?.defaultView[Oe].addEventListener?.(this,e,n,r)}removeEventListener(e,n,r){return Yo.call(this,e,n,r)}dispatchEvent(e){if(e[Le])throw I(\"Failed to execute 'dispatchEvent' on 'EventTarget': The event is already being dispatched.\",\"InvalidStateError\");e[Le]=!0;try{let n=[],r=this;for(;r!=null;)n.push(r),r=r.parentNode;e.target=this,e.srcElement=this,e[ke]=n;for(let s=n.length;s--;)if(Mn(e,n[s],St),e.cancelBubble)return!e.defaultPrevented;let o=e.bubbles?n:n.slice(0,1);for(let s=0;s<o.length;s++)if(Mn(e,o[s],Pn),e.cancelBubble)return!e.defaultPrevented;return!e.defaultPrevented}finally{e[Le]=!1,e.cancelBubble=!1,e[De]=!1,e.eventPhase=wt,e.currentTarget=null,e[ke]=[]}}};function Yo(t,e,n){if(e==null)return;let r=n===!0||n&&n.capture===!0,o=In(!!r),s=this[st]?.get(t)?.[o]?.get(e);s&&Rt(this,s)}function In(t){return t?\"capture\":\"bubble\"}function Rt(t,e){let n=In(e.capture),r=t[st],o=r?.get(e.type);if(!o)return;let s=o[n];if(!s||s.get(e.listener)!==e)return;s.delete(e.listener),s.size===0&&delete o[n],!o.bubble&&!o.capture&&r?.delete(e.type),e.signal&&e.abortListener&&e.signal.removeEventListener(\"abort\",e.abortListener);let i=t[xe],l=i?.get(e.type);if(!l)return;let u=l[n];u?.delete(e)&&(u.size===0&&delete l[n],!l.bubble&&!l.capture&&i?.delete(e.type),t[k]?.defaultView[Oe].removeEventListener?.(t,e.type,e.listener,e.capture))}var te=class extends Array{item(e){return this[e]??null}};var at=0,Pr=1,Ln=2,Gn=3,lt=4,Mr=0,Cr=1,Pt=2,Mt=3,Ir=4,Dn=5,kr=6,Dr=7,At=/^(?:--|-?[A-Za-z_\\u0080-\\u{10FFFF}])[A-Za-z0-9_\\u0080-\\u{10FFFF}-]*$/u;function $o(t,e){let n=1,r=null;for(let o=e;o<t.length;o++){let s=t[o];if(r){s===\"\\\\\"?o++:s===r&&(r=null);continue}if(s==='\"'||s===\"'\")r=s;else if(s===\"(\")n++;else if(s===\")\"&&--n===0)return[t.slice(e,o),o+1]}return[t.slice(e),t.length]}function X(t){throw I(`Invalid or unsupported selector: \"${t}\"`,\"SyntaxError\")}function Ct(t,e){let n=typeof e==\"string\"?ct(e):[{combinator:lt,matchers:e}],r=null,o=t[_];return o&&n[0].matchers.length&&Hn(o,n,s=>(r=s,!1)),r}function It(t,e){let n=typeof e==\"string\"?ct(e):[{combinator:lt,matchers:e}],r=new te,o=t[_];return o&&n[0].matchers.length&&Hn(o,n,s=>{r.push(s)}),r}function ct(t,e=!1,n=!1){let r={combinator:lt,matchers:[]},o=[r],s=/[\\t\\n\\f\\r ]*?([>\\t\\n\\f\\r +~]?)[\\t\\n\\f\\r ]*?(?:(?:\\[[\\t\\n\\f\\r ]*([^\\]=\\t\\n\\f\\r ]+)[\\t\\n\\f\\r ]*(?:=[\\t\\n\\f\\r ]*(?:(['\"])(.*?)\\3|([^\\]\\t\\n\\f\\r ]+)))?[\\t\\n\\f\\r ]*(?:\\]|$))|([#.]?)([^\\t\\n\\f\\r #.[>:+~()]+)|:(\\w+)(\\()?)/gi,i=t.replace(/^[\\t\\n\\f\\r ]+|[\\t\\n\\f\\r ]+$/g,\"\");i===\"\"&&X(t);let l=0,u;for(;u=s.exec(i);){u.index!==l&&X(t),u[1]&&(r.matchers.length===0&&!(n&&o.length===1)&&X(t),u[1]===\">\"?r.combinator=Pr:u[1]===\"+\"?r.combinator=Gn:u[1]===\"~\"?r.combinator=Ln:r.combinator=at,r={combinator:lt,matchers:[]},o.push(r));let d=u[8]?V(u[8]):u[2]||u[7];u[7]!=null&&!u[6]&&r.matchers.length>0&&X(t);let b,T=u[4]??u[5]??u[7];if(u[2]){At.test(d)||X(t);let w=u[5],A=w?.[0];if(u[3]==null&&(A==='\"'||A===\"'\")){let P=u[0].lastIndexOf(w);T=i.slice(u.index+P+1),s.lastIndex=i.length}else w!=null&&!At.test(w)&&X(t);b=Ir}else u[6]?(At.test(d)||X(t),b=u[6]===\"#\"?Pt:Mt):u[8]?b=u[9]==null?Dn:kr:u[7]===\"*\"?b=Mr:u[7]&&At.test(u[7])?b=Cr:X(t);u[9]?([T,s.lastIndex]=$o(i,s.lastIndex),d!==\"has\"&&d!==\"not\"&&X(t),d===\"has\"&&e&&X(t),ct(T,e||d===\"has\",d===\"has\")):b===Dn&&X(t),r.matchers.push({type:b,name:d,value:T}),l=s.lastIndex}return(l!==i.length||r.matchers.length===0)&&X(t),o}function Wo(t,e){let n=ct(e);return n[0]?.matchers.length?it(t,n):!1}function Xo(t,e){let n=ct(e,!0,!0),r=n[0];if(n.length===1&&r.matchers.length===0)return!1;let o=at,s={type:Dr,name:\":scope\"};if(r.matchers.length===0?(o=r.combinator,r.matchers.push(s)):n.unshift({combinator:at,matchers:[s]}),n.some(({matchers:u})=>u.length===0))return!1;let i=o===Gn||o===Ln?t[y]:t[_];if(!i)return!1;let l=!1;return Hn(i,n,()=>(l=!0,!1),t),l}function Hn(t,e,n,r){let o=[],s=t;for(;s;){if(Y(s)){if(it(s,e,r)&&n(s)===!1)return!1;let i=s[_];if(i){let l=s[y];l&&o.push(l),s=i;continue}}s=s[y]??o.pop()??null}return!0}function it(t,e,n){let{combinator:r,matchers:o}=e[e.length-1];if(r===lt){if(!_t(t,o,n))return!1;let l=e.slice(0,-1);return l.length===0||it(t,l,n)}let s=r===Pr||r===at?W:D,i=t[s];if(!i)return!1;if(r===at||r===Ln){for(;i;){if(Y(i)&&_t(i,o,n)){let l=e.slice(0,-1);if(l.length===0||it(i,l,n))return!0}i=i[s]}return!1}else{if(r===Gn&&!Y(i)){for(;i&&!Y(i);)i=i[s];if(!i)return!1}if(!Y(i)||!_t(i,o,n))return!1;let l=e.slice(0,-1);return l.length===0||it(i,l,n)}}function kn(t,e){return t.getAttributeNS(null,t.namespaceURI===C?V(e):e)}function _t(t,e,n){if(!t)return!1;if(Array.isArray(e)){for(let i of e)if(_t(t,i,n)===!1)return!1;return!0}let{type:r,name:o,value:s}=e;switch(r){case Mr:return o===\"*\";case Cr:return t.namespaceURI===C?t.localName===V(o):t.localName===o;case Pt:return kn(t,\"id\")===o;case Mt:let i=kn(t,\"class\");return i?Nt(i).includes(o):!1;case Ir:let l=kn(t,o);return s==null?l!=null:l===s;case Dr:return t===n;case Dn:X(`:${o}`);case kr:switch(o){case\"has\":return Xo(t,s||\"\");case\"not\":return!Wo(t,s||\"\");default:X(`:${o}(${s})`)}}return!1}function Ko(t){return t.nodeType===He}function ut(t){return J in t}function Bn(t){return t.nodeType===Ue}function Zo(t){return t.nodeType===Be}function Y(t){return t.nodeType===K}function Un(t){return t.nodeType===be}function Ur(t){return\"appendChild\"in t}function kt(t){let e=[],n=[t],r=new Set(n),o=new Set,s;for(;n.length>0;){let i=n.pop();if(r.delete(i),o.has(i))continue;let l=[];for(let u of ft(i)){if(o.has(u)||(o.add(u),e.push(u),l.push(u),!Y(u)))continue;let d=u[ie];if(d)for(let b of d)o.has(b)||(o.add(b),e.push(b));let p=u[ue];p&&!o.has(p)&&!r.has(p)&&(r.add(p),n.push(p))}s??=l}return{nodes:e,treeNodes:s}}function dt(t,e){for(let n of t)n[k]=e}function Lr(t,e){let n=t.constructor,r=new n(t.name,t.value,t.namespaceURI);return r[k]=e,r}function Gr(t,e){if(Bn(t))return e.createTextNode(t.data);if(Zo(t))return e.createComment(t.data);if(Ko(t))return Lr(t,e);if(Y(t)){let n=e[Ge](t[x],t.namespaceURI,t[he],t.localName);if(t[ie])for(let r=0;r<t[ie].length;r++){let o=t[ie].item(r);n.attributes.setNamedItem(Lr(o,e))}return n}else{if(Un(t))return e.createDocumentFragment();{let n=new t.constructor;return n[k]=e,n}}}function Dt(t,e,n=t.ownerDocument){if(t.nodeType===Re)throw I(\"Cannot clone a document node\",\"NotSupportedError\");let r=Gr(t,n);if(!e||!Y(t)&&!Un(t))return r;let o=new Set([t]),s=[{source:t,destination:r,childIndex:0,cloningContent:!1}];for(;s.length>0;){let i=s[s.length-1],l,u;if(i.cloningContent)if(i.contentSource&&i.contentDestination)l=i.contentSource.childNodes[i.childIndex++],u=i.contentDestination;else{s.pop(),i.appendTo&&i.appendTo.appendChild(i.destination);continue}else if(l=i.source.childNodes[i.childIndex++],u=i.destination,!l){if(i.cloningContent=!0,i.childIndex=0,Y(i.source)&&i.source.namespaceURI===C&&i.source.localName===\"template\"){let p=i.source[ue];p&&(o.has(p)&&Hr(),o.add(p),i.contentSource=p,i.contentDestination=i.destination.content)}continue}if(!l){s.pop(),i.appendTo&&i.appendTo.appendChild(i.destination);continue}o.has(l)&&Hr(),o.add(l);let d=Gr(l,n);Y(l)||Un(l)?s.push({source:l,destination:d,appendTo:u,childIndex:0,cloningContent:!1}):u.appendChild(d)}return r}function Hr(){throw new Error(\"Cannot clone a cyclic or repeated node graph\")}function Lt(t,e){let n=String(e);return n===\"\"?null:Ct(t,[{type:Pt,name:n}])}function Gt(t,e){let n=[...new Set(Nt(String(e)))];return It(t,n.map(r=>({type:Mt,name:r})))}function Ht(t,e){let n=String(e),r=V(n),o=[];for(let s of Ut(t))Y(s)&&(n===\"*\"||(s.namespaceURI===C?s[x]===r:s[x]===n))&&o.push(s);return o}function Ut(t){let e=[],n=[],r=t[_];for(;r;){e.push(r);let o=r[_],s=r[y];o?(s&&n.push(s),r=o):r=s??n.pop()??null}return e}function ft(t){let e=Ut(t);return e.unshift(t),e}var ne=class extends Ee{nodeType=Tr;[x]=\"\";[W]=null;[ye]=null;[_]=null;[D]=null;[y]=null;[j]=!1;get[L](){return this[k].defaultView[Oe]}get localName(){return this[x]}get nodeName(){return this[x]}get ownerDocument(){return this[k]}get isConnected(){return this[j]}isDefaultNamespace(e){let n=de(e);return Qo(this)===n}get parentNode(){return this[W]}set parentNode(e){}get parentElement(){let e=this[W];return!e||e.nodeType!==1?null:e}set parentElement(e){}get previousSibling(){return this[D]}set previousSibling(e){}get nextSibling(){return this[y]}set nextSibling(e){}get previousElementSibling(){let e=this[D];for(;e&&e.nodeType!==1;)e=e[D];return e}set previousElementSibling(e){}get nextElementSibling(){let e=this[y];for(;e&&e.nodeType!==1;)e=e[y];return e}set nextElementSibling(e){}get firstChild(){return this[_]}set firstChild(e){}get lastChild(){let e=this[_];for(;e;){let n=e[y];if(n==null)break;e=n}return e}set lastChild(e){}get nodeValue(){return ut(this)?this.data:null}set nodeValue(e){ut(this)&&(this.data=e)}get textContent(){if(ut(this))return this.data;let e=\"\";for(let n of Ut(this))Bn(n)&&(e+=n.data);return e}set textContent(e){if(ut(this))this.data=e;else if(Ur(this)){let n=e==null?\"\":String(e);n===\"\"?this.replaceChildren():this.replaceChildren(n)}}cloneNode(e){return Dt(this,e)}contains(e){let n=e;for(;n!=null;){if(n===this)return!0;n=n.parentNode}return!1}};function Qo(t){let e=t;for(;e;)switch(e.nodeType){case K:{let n=e;if(n.prefix==null&&n.namespaceURI!=null)return n.namespaceURI;let r=n.attributes.getNamedItemNS(tt,\"xmlns\");if(r!=null&&r.prefix==null)return de(r.value);e=n.parentElement;break}case Re:e=e.documentElement;break;case wr:case be:return null;case He:e=e.ownerElement;break;default:e=e.parentElement}return null}var re=Symbol(\"insertNode\"),jn=Symbol(\"preflightInsertions\"),Bt=Symbol(\"replaceNode\"),Ne=class extends ne{remove(){let e=this.parentNode;e&&e.removeChild(this)}replaceWith(...e){let n=_e(e),r=this.parentNode;if(r)return Vn(o=>{fe(r,n);let s=this[y];for(;s&&n.includes(s);)s=s[y];let i=Fn(r,n,o);this.parentNode===r?r[Bt](i,this,o):r[re](i,s,o)})}before(...e){let n=_e(e),r=this.parentNode;if(r)return Vn(o=>{fe(r,n);let s=this[D];for(;s&&n.includes(s);)s=s[D];let i=Fn(r,n,o);r[re](i,s?s[y]:r.firstChild,o)})}after(...e){let n=_e(e),r=this.parentNode;if(r)return Vn(o=>{fe(r,n);let s=this[y];for(;s&&n.includes(s);)s=s[y];let i=Fn(r,n,o);r[re](i,s,o)})}};function Vn(t){return q(()=>{let e=[];try{t(e)}catch(n){try{Ae(e)}catch{}throw n}Ae(e)})}function _e(t){return t.map(e=>e instanceof ne?e:String(e))}function mt(t,e){return e instanceof ne?e:t.ownerDocument.createTextNode(String(e))}function fe(t,e){for(let n of e){if(!(n instanceof ne))continue;let r=t;for(;r;){if(r===n)throw I(\"Cannot insert a node into itself or one of its descendants\",\"HierarchyRequestError\");r=r[W]??r[ye]}}}function Fn(t,e,n){let r=[];for(let s of e)r.push(mt(t,s));if(r.length===1)return r[0];let o=t.ownerDocument.createDocumentFragment();o[jn](r);for(let s of r)o[re](s,null,n);return o}var Vt,zn=0,Br=0,Vr=0,Fr=0,Ve=!1,Yn=!1,pt=!1,Ft=class{#t;#n=[];#e=new Set;#r=!1;constructor(e){if(typeof e!=\"function\")throw new TypeError(\"MutationObserver callback must be a function\");this.#t=e}observe(e,n={}){let r=Jo(n),o=Vt??=new WeakMap,s=o.get(e);s==null&&(s=new Map,o.set(e,s));let i=s.get(this);i==null?zn++:qn(i,-1),s.set(this,r),qn(r,1),this.#e.add(e)}disconnect(){let e=Vt;if(e!=null){for(let n of this.#e){let r=e.get(n),o=r?.get(this);o!=null&&(r.delete(this),zn--,qn(o,-1)),r?.size===0&&e.delete(n)}this.#e.clear(),this.#n.length=0,zn===0&&(Vt=void 0)}}takeRecords(){return this.#n.splice(0)}enqueue(e){this.#n.push(e),!this.#r&&(this.#r=!0,queueMicrotask(()=>{this.#r=!1;let n=this.takeRecords();n.length>0&&this.#t.call(this,n,this)}))}};function oe(t){let e=Vt;if(e==null)return;let n=new Map,r=t.target;for(;r;){let o=e.get(r);if(o)for(let[s,i]of o){if(r!==t.target&&!i.subtree)continue;let l=!1;if(t.type===\"attributes\"){if(!i.attributes||i.attributeFilter&&!i.attributeFilter.has(t.attributeName??\"\"))continue;l=i.attributeOldValue}else if(t.type===\"characterData\"){if(!i.characterData)continue;l=i.characterDataOldValue}else if(!i.childList)continue;n.set(s,n.get(s)===!0||l)}r=r.parentNode}for(let[o,s]of n)o.enqueue({addedNodes:t.addedNodes??new te,attributeName:t.attributeName??null,attributeNamespace:t.attributeNamespace??null,nextSibling:t.nextSibling??null,oldValue:s?t.oldValue??null:null,previousSibling:t.previousSibling??null,removedNodes:t.removedNodes??new te,target:t.target,type:t.type})}function jt(...t){let e=new te;return e.push(...t),e}function Jo(t){if(t.attributes===!1&&(t.attributeOldValue||t.attributeFilter!=null))throw new TypeError(\"attributeOldValue and attributeFilter require attributes to be enabled\");if(t.characterData===!1&&t.characterDataOldValue)throw new TypeError(\"characterDataOldValue requires characterData to be enabled\");let e=t.attributes??(t.attributeOldValue===!0||t.attributeFilter!=null),n=t.characterData??t.characterDataOldValue===!0,r=t.childList===!0;if(!e&&!n&&!r)throw new TypeError(\"MutationObserver options must enable childList, attributes, or characterData\");return{attributes:e,attributeFilter:t.attributeFilter==null?void 0:new Set(t.attributeFilter.map(String)),attributeOldValue:t.attributeOldValue===!0,characterData:n,characterDataOldValue:t.characterDataOldValue===!0,childList:r,subtree:t.subtree===!0}}function qn(t,e){t.attributes&&(Br+=e),t.characterData&&(Vr+=e),t.childList&&(Fr+=e),Ve=Br>0,Yn=Vr>0,pt=Fr>0}var ae=class extends Ne{childNodes=new te;children=new te;appendChild(e){return q(()=>this[re](e,null))}insertBefore(e,n){return q(()=>this[re](e,n||null))}append(...e){return q(()=>{let n=_e(e.filter(r=>r!=null));n.length>1&&fe(this,n);for(let r of n)this[re](mt(this,r),null)})}prepend(...e){return q(()=>{let n=_e(e.filter(o=>o!=null));n.length>1&&fe(this,n);let r=this.firstChild;for(let o of n)this[re](mt(this,o),r)})}replaceChildren(...e){return q(()=>{let n=_e(e.filter(o=>o!=null));fe(this,n);let r;for(;r=this.firstChild;)this.removeChildImmediately(r);for(let o of n)this[re](mt(this,o),null)})}removeChild(e){return q(()=>(this.removeChildImmediately(e),e))}removeChildImmediately(e){if(e.parentNode!==this)throw I(\"The node is not a child of this node\",\"NotFoundError\");let n=this[j]?ft(e):void 0,r=e[D],o=e[y],s=zt(this,e);if(n)for(let i of n)i[j]=!1;this.queueRemovalMutationRecord(this,e,r,o),n&&this.enqueueTreeReactions(n,\"disconnectedCallback\"),Ae(this.collectRemovalHookEffects(e,s))}replaceChild(e,n){return q(()=>this[Bt](e,n))}[Bt](e,n,r){if(fe(this,[e]),n.parentNode!==this)throw I(\"The reference node is not a child of this parent\",\"NotFoundError\");let o=n[D],s=n[y],i=this.prepareInsertion(e),l=this[j]?ft(n):void 0,u=new Set(i.map(({node:T})=>T)),d=s;for(;d&&u.has(d);)d=d[y];let p=zt(this,n);if(l){for(let w of l)w[j]=!1;let T=new Set(l);for(let w of i)T.has(w.node)&&(w.shouldDisconnect=!1)}this.commitInsertion(i,d);let b=this[j];return this.queueRemovalMutationRecord(this,n,o,s),this.queueInsertionMutationRecords(i),l&&this.enqueueTreeReactions(l,\"disconnectedCallback\"),this.enqueueInsertionReactions(i,b),this.performOrCollectHookEffects([...this.collectRemovalHookEffects(n,p),...this.collectInsertionHookEffects(i)],r),n}querySelectorAll(e){return It(this,e)}querySelector(e){return Ct(this,e)}[re](e,n,r){return this.validateInsertion(e,n),this.insertIntoValidated(e,n,r),e}[jn](e){for(let n of e)this.validateInsertion(n,null),this.prepareInsertion(n)}validateInsertion(e,n){if(fe(this,[e]),n&&n.parentNode!==this)throw I(\"The reference node is not a child of this parent\",\"NotFoundError\")}insertIntoValidated(e,n,r){e===n&&(n=e[y]);let o=this.prepareInsertion(e);this.commitInsertion(o,n);let s=this[j];this.queueInsertionMutationRecords(o),this.enqueueInsertionReactions(o,s),this.performOrCollectHookEffects(this.collectInsertionHookEffects(o),r)}performOrCollectHookEffects(e,n){n?n.push(...e):Ae(e)}prepareInsertion(e){let n=[];if(e.nodeType===be){let i=e[_];for(;i;)n.push(i),i=i[y]}else n.push(e);let r=this[j],o=this[k],s=[];for(let i of n){let l=i[j],u=l||r,d,p;if(i[k]===o)u&&(d=ft(i));else{let b=kt(i);p=b.nodes,u&&(d=b.treeNodes)}s.push({node:i,nodes:d,adoption:p,shouldDisconnect:l})}return s}commitInsertion(e,n){for(let s of e){let i=s.node[W];if(i){let l=s.node[D],u=s.node[y];s.source={parent:i,index:zt(i,s.node),previousSibling:l,nextSibling:u}}}for(let s of e){let i=this.attachChild(s.node,n);s.insertIndex=i.index,s.previousSibling=i.previousSibling,s.nextSibling=i.nextSibling}let r=this[k];for(let{adoption:s}of e)s&&dt(s,r);let o=this[j];for(let{nodes:s}of e)if(s)for(let i of s)i[j]=o}attachChild(e,n){if(n){let s=n[D];e[y]=n,e[D]=s,s?s[y]=e:this[_]=e,n[D]=e}else{e[y]=null;let s=this[_];if(s){let i;for(;i=s[y];)s=i;s[y]=e,e[D]=s}else this[_]=e,e[D]=null}let r=Y(e);e[W]=this;let o;if(n){if(o=this.childNodes.indexOf(n),this.childNodes.splice(o,0,e),r){let s=n;for(;s&&!Y(s);)s=s[y];s?this.children.splice(this.children.indexOf(s),0,e):this.children.push(e)}}else o=this.childNodes.length,this.childNodes.push(e),r&&this.children.push(e);return{index:o,previousSibling:e[D],nextSibling:e[y]}}queueRemovalMutationRecord(e,n,r,o){pt&&oe({type:\"childList\",target:e,removedNodes:jt(n),previousSibling:r,nextSibling:o})}queueInsertionMutationRecords(e){if(pt)for(let n of e){let{node:r,source:o}=n;o&&this.queueRemovalMutationRecord(o.parent,r,o.previousSibling,o.nextSibling),oe({type:\"childList\",target:this,addedNodes:jt(r),previousSibling:n.previousSibling,nextSibling:n.nextSibling})}}collectRemovalHookEffects(e,n){return this.nodeType!==K||ot(this)?[]:[[()=>this[L].removeChild?.(this,e,n)]]}collectInsertionHookEffects(e){let n=[];for(let r of e){let{node:o,source:s}=r;s?.parent.nodeType===K&&!ot(s.parent)&&n.push([()=>s.parent[L].removeChild?.(s.parent,o,s.index)]),this.nodeType===K&&!ot(this)&&n.push([()=>this[L].insertChild?.(this,o,r.insertIndex),o])}return n}enqueueInsertionReactions(e,n){for(let r of e){let{nodes:o}=r;o&&(r.shouldDisconnect&&this.enqueueTreeReactions(o,\"disconnectedCallback\"),n&&this.enqueueTreeReactions(o,\"connectedCallback\"))}}enqueueTreeReactions(e,n){zr(e,n)}};function jr(t,e,n,r){if(e.parentNode!==t)throw Error(\"not a child of this node\");let o=t[j]?n.treeNodes:void 0,s=e[D],i=e[y],l=zt(t,e);if(o)for(let d of o)d[j]=!1;dt(n.nodes,r),pt&&oe({type:\"childList\",target:t,removedNodes:jt(e),previousSibling:s,nextSibling:i}),o&&zr(o,\"disconnectedCallback\");let u=[];t.nodeType===K&&!ot(t)&&u.push([()=>t[L].removeChild?.(t,e,l)]),Ae(u)}function zt(t,e){let n=e[D],r=e[y];n?n[y]=r:t[_]=r,r&&(r[D]=n);let o=t.childNodes.indexOf(e);return t.childNodes.splice(o,1),Y(e)&&t.children.splice(t.children.indexOf(e),1),e[W]=null,e[y]=null,e[D]=null,o}function zr(t,e){for(let n of t){let r=n[e];typeof r==\"function\"&&xt(n,()=>r.call(n))}}function ht(t,e,n,r,o){let{observedAttributes:s}=t.constructor,{attributeChangedCallback:i}=t;i==null||s==null||!s.includes(e)||xt(t,()=>i.call(t,e,n,r,o))}var qt=class{[_]=null;constructor(e){this[$]=e}getNamedItem(e){let n=String(e),r=this[$][O]===C?V(n):n,o=this[_];for(;o;){if(o.name===r)return o;o=o[y]}return null}getNamedItemNS(e,n){let r=de(e),o=String(n),s=this[_];for(;s;){if(s.localName===o&&s[O]===r)return s;s=s[y]}return null}item(e){let n=this[_],r=0;for(;n;){if(r++===e)return n;n=n[y]}return null}get length(){let e=0,n=this[_];for(;n;)e++,n=n[y];return e}removeNamedItem(e){let n=String(e),r=this[$][O]===C?V(n):n;return q(()=>this.removeNamedItemImmediately(o=>o.name===r))}removeNamedItemNS(e,n){let r=de(e),o=String(n);return q(()=>this.removeNamedItemImmediately(s=>s.localName===o&&s[O]===r))}removeNamedItemImmediately(e){let n=this[$],r=this[_],o=null;for(;r!=null;){if(e(r)){o&&(o[y]=r[y]),this[_]===r&&(this[_]=r[y]);let s=r.value;return r[y]=null,r[$]=null,Ve&&oe({type:\"attributes\",target:n,attributeName:r.name,attributeNamespace:r[O],oldValue:s}),n[L].removeAttribute?.(n,r.name,r[O]),ht(n,r.localName,s,null,r[O]),r}o=r,r=r[y]}return null}setNamedItem(e){return q(()=>this.setNamedItemImmediately(e))}setNamedItemImmediately(e){let n=this[$],r=e[$];if(r!=null&&r!==n)throw I(\"The attribute is already in use by another element.\",\"InUseAttributeError\");let o=null,s=this[_],i=null;for(;s;){if(s.localName===e.localName&&s[O]===e[O]){if(s===e)return s;i?i[y]=e:this[_]=e,e[y]=s[y],s[y]=null,o=s;break}i=s,s=s[y]}o==null&&(i?i[y]=e:this[_]=e),e[$]=n,e[k]=n[k],o&&(o[$]=null);let l=o==null||o.value!==e.value,u=o!=null&&o.name!==e.name;return l&&Ve&&oe({type:\"attributes\",target:n,attributeName:e.name,attributeNamespace:e[O],oldValue:o?.value??null}),u&&n[L].removeAttribute?.(n,o.name,o[O]),(l||u)&&n[L].setAttribute?.(n,e.name,e.value,e[O]),l&&ht(n,e.localName,o?.value??null,e.value,e[O]),o}setNamedItemNS(e){return this.setNamedItem(e)}*[Symbol.iterator](){let e=this[_];for(;e;)yield e,e=e[y]}};var Pe=class extends ne{nodeType=He;[O]=null;[y]=null;[$]=null;constructor(e,n,r){super(),this[x]=e,this[ge]=n,r&&(this[O]=r)}get nodeName(){return this[x]}set nodeName(e){}get name(){return this[x]}set name(e){}get localName(){if(this[O]==null)return this[x];let e=this[x].indexOf(\":\");return e<0?this[x]:this[x].slice(e+1)}get prefix(){if(this[O]==null)return null;let e=this[x].indexOf(\":\");return e<0?null:this[x].slice(0,e)}get value(){return this[ge]}set value(e){let n=String(e),r=this[$];if(!r){this[ge]=n;return}q(()=>{let o=this[ge];this[ge]=n,Ve&&o!==n&&oe({type:\"attributes\",target:r,attributeName:this[x],attributeNamespace:this[O],oldValue:o}),this[L].setAttribute?.(r,this[x],n,this[O]),ht(r,this.localName,o,n,this[O])})}get nodeValue(){return this.value}set nodeValue(e){this.value=e}get ownerElement(){return this[$]}get namespaceURI(){return this[O]}get specified(){return!0}};var es={amp:\"&\",AMP:\"&\",apos:\"'\",gt:\">\",GT:\">\",lt:\"<\",LT:\"<\",quot:'\"',QUOT:'\"'},ts=new Set([\"area\",\"base\",\"br\",\"col\",\"embed\",\"hr\",\"img\",\"input\",\"link\",\"meta\",\"param\",\"source\",\"track\",\"wbr\"]),ns=/(?:<([a-z][a-z0-9-:]*)((?:[\\s]+[^<>'\"=/\\s]+(?:=(['\"])[^]*?\\3|=[^>'\"\\s]*|))*)[\\s]*(\\/?)\\s*>|<\\/([a-z][a-z0-9-:]*)>|<!--(.*?)-->|([^<>]+))/gi,$r=/\\s([^<>'\"=/\\n\\s]+)(?:=([\"'])([\\s\\S]*?)\\2|=([^>'\"\\n\\s]*)|)/g,rs=\"|b|big|blockquote|body|br|center|code|dd|div|dl|dt|em|embed|h1|h2|h3|h4|h5|h6|head|hr|i|img|li|listing|menu|meta|nobr|ol|p|pre|ruby|s|small|span|strong|strike|sub|sup|table|tt|u|ul|var|\",os=/^(?:color|face|size)$/i;function qr(t){return t.replace(/&(?:(amp|AMP|apos|gt|GT|lt|LT|quot|QUOT)|#(\\d+)|#[xX]([\\da-fA-F]+));/g,(e,n,r,o)=>{if(n)return es[n];let s=Number.parseInt(r??o,r?10:16);try{return String.fromCodePoint(s)}catch{return e}})}function Wr(t){return t.namespaceURI===C&&ts.has(t.localName)}function Yr(t){let e=t.localName;return t[O]===ee&&(e===\"foreignObject\"||e===\"desc\"||e===\"title\")}function ss(t,e){if(rs.includes(`|${t}|`))return!0;if(t!==\"font\")return!1;for(let n of e.matchAll($r))if(os.test(n[1]))return!0;return!1}function Yt(t,e){let n=e.ownerDocument,r=n.createDocumentFragment(),o=[],s=r;for(let i of t.matchAll(ns)){let l=i[1];if(l){let u=i[2],d=V(l),p=o[o.length-1]?.element??e,b=p[O]===ee?ee:C;if(d===\"svg\")b=ee;else if(b===ee){if(Yr(p))b=C;else if(ss(d,u)){for(;o.length>0;){let A=o[o.length-1];if(A.element[O]!==ee||Yr(A.element))break;o.pop(),s=A.target}b=C}}let T=b===C?d:l,w=n[Ge](T,b,null,T);for(let A of u.matchAll($r))w.setAttribute(A[1],qr(A[3]||A[4]||\"\"));if(s.append(w),Wr(w)||b!==C&&i[4])continue;o.push({element:w,target:s}),s=b===C&&d===\"template\"?w.content:w}else if(i[5]){let u=V(i[5]);for(let d=o.length-1;d>=0;d--){let p=o[d],b=V(p.element[x]);if(b===u){s=p.target,o.length=d;break}if(p.element[O]===C&&b===\"template\")break}}else i[6]?s.append(n.createComment(i[6])):s.append(qr(i[7]))}return r}function $t(t){return Kr([{type:\"content\",child:t[_]}])}function Xr(t){return Kr([{type:\"opening\",node:t}])}function Kr(t){let e=[],n;for(;n=t.pop();)switch(n.type){case\"opening\":{let r=n.node;switch(r.nodeType){case K:{let o=r;e.push(`<${o[x]}`);let s=o[ie]?.[_];for(;s;){e.push(` ${s[x]}`);let l=s[ge];l!==\"\"&&(l=String(l).replace(/&/g,\"&amp;\").replace(/\"/g,\"&quot;\"),e.push(`=\"${l}\"`)),s=s[y]}if(e.push(\">\"),Wr(o))break;let i=o.namespaceURI===C&&o.localName===\"template\"?o[ue]:o;t.push({type:\"closing\",name:o[x]}),t.push({type:\"content\",child:i?.[_]??null});break}case Ue:{let o=r;e.push(o[J].replace(/&/g,\"&amp;\").replace(/\"/g,\"&quot;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\"));break}case Be:{let o=r;e.push(`<!--${o[J]}-->`);break}}break}case\"content\":{let r=n.child;r&&(t.push({type:\"content\",child:r[y]}),t.push({type:\"opening\",node:r}));break}case\"closing\":e.push(`</${n.name}>`);break}return e.join(\"\")}var F=class extends ae{nodeType=K;[O]=C;[he]=null;get namespaceURI(){return this[O]}get prefix(){return this[he]}get localName(){let e=this[he];return e==null?this[x]:this[x].slice(e.length+1)}get nodeName(){return this[O]===C?vr(this[x]):this[x]}get tagName(){return this.nodeName}get id(){return this.getAttributeNS(null,\"id\")??\"\"}set id(e){this.setAttribute(\"id\",String(e))}get slot(){return this.getAttributeNS(null,\"slot\")??\"\"}set slot(e){let n=String(e);this.getAttributeNS(null,\"slot\")!==n&&this.attributes.setNamedItem(new Pe(\"slot\",n))}get attributes(){let e=this[ie];return e||(e=new qt(this),this[ie]=e),e}getAttributeNames(){return[...this.attributes].map(e=>e.name)}getElementsByTagName(e){return Ht(this,e)}get firstElementChild(){return this.children[0]??null}getElementsByClassName(e){return Gt(this,e)}get lastElementChild(){return this.children[this.children.length-1]??null}get nextElementSibling(){let e=this.nextSibling;for(;e&&e.nodeType!==1;)e=e.nextSibling;return e}get previousElementSibling(){let e=this.previousSibling;for(;e&&e.nodeType!==1;)e=e.previousSibling;return e}setAttribute(e,n){let r=String(e),o=String(n);An(r);let s=this[O]===C?V(r):r,i=this.attributes.getNamedItemNS(null,s);i?i.value=o:this.attributes.setNamedItem(new Pe(s,o))}setAttributeNS(e,n,r){let o=de(e),s=String(n),i=String(r),l=Tt(o,s,\"attribute\"),u=this.attributes.getNamedItemNS(l.namespace,l.localName);u?u.value=i:this.attributes.setNamedItemNS(new Pe(l.qualifiedName,i,l.namespace))}toggleAttribute(e,n){let r=String(e);An(r);let o=this[O]===C?V(r):r,s=this.attributes.getNamedItemNS(null,o),i=n===void 0?void 0:!!n;return s==null?i===!1?!1:(this.attributes.setNamedItem(new Pe(o,\"\")),!0):i===!0?!0:(this.attributes.removeNamedItemNS(null,o),!1)}getAttribute(e){let n=this.attributes.getNamedItem(e);return n&&n.value}getAttributeNS(e,n){let r=this.attributes.getNamedItemNS(e,n);return r&&r.value}hasAttribute(e){return this.attributes.getNamedItem(e)!=null}hasAttributeNS(e,n){return this.attributes.getNamedItemNS(e,n)!=null}removeAttribute(e){let n=String(e),r=this[O]===C?V(n):n;this.attributes.removeNamedItemNS(null,r)}removeAttributeNS(e,n){this.attributes.removeNamedItemNS(e,n)}get outerHTML(){return Xr(this)}get innerHTML(){return $t(this)}set innerHTML(e){if(e==null||e===\"\")this.replaceChildren();else{let n=Yt(String(e),this);this.replaceChildren(n)}}};var Fe=class t extends F{[O]=ee;get ownerSVGElement(){let e=null,n=this.parentNode;for(;n instanceof t;)e=n,n=n.parentNode;return e}};var Te=class extends Ne{[J]=\"\";constructor(e){super(),this[J]=e==null?\"\":String(e)}setData(e){let n=Yn,r=n?this[J]:null,o=\"\";e!=null&&(o=typeof e==\"string\"?e:String(e)),this[J]=o,n&&r!==o&&oe({type:\"characterData\",target:this,oldValue:r}),this[L].setText?.(this,o)}get data(){return this[J]}set data(e){this.setData(e)}};var je=class extends Te{nodeType=Ue;[x]=\"#text\"};var ze=class extends Te{nodeType=Be;[x]=\"#comment\"};var qe=class extends ae{nodeType=be;[x]=\"#document-fragment\";[k]=typeof window<\"u\"?window.document:null;getElementById(e){return Lt(this,e)}};var Ye=class extends F{get content(){let e=this[ue];return e||(e=this.ownerDocument.createDocumentFragment(),e[ye]=this,this[ue]=e),e}set content(e){}set innerHTML(e){this.content.replaceChildren(Yt(String(e),this))}get innerHTML(){let e=this[ue];return e?$t(e):\"\"}};var Wt=class extends F{};var Xt=class extends F{};var Kt=class extends F{};var gt=class extends ae{nodeType=Re;[x]=\"#document\";[j]=!0;constructor(e){super(),this.defaultView=e,this[k]=this,this.documentElement=Qt(new Kt,this,\"html\"),this.body=Qt(new Wt,this,\"body\"),this.head=Qt(new Xt,this,\"head\"),this.appendChild(this.documentElement),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body)}get textContent(){return null}set textContent(e){}getElementsByClassName(e){return Gt(this,e)}createElement(e){let n=String(e);return Rr(n),$n(this,V(n))}createElementNS(e,n){let r=Tt(e,n,\"element\");return $n(this,r.qualifiedName,r.namespace,r.prefix,r.localName)}[Ge](e,n,r,o){return $n(this,e,n,r,o)}createTextNode(e){let n=Zt(new je(e),this);return this[L].createText?.(n,n.data),n}createComment(e){return Zt(new ze(e),this)}createDocumentFragment(){return Zt(new qe,this)}createEvent(){return new z(\"\")}getElementById(e){return Lt(this,e)}getElementsByTagName(e){return Ht(this,e)}importNode(e,n){if(e.nodeType===Re)throw I(\"Cannot import a document node\",\"NotSupportedError\");return Dt(e,n,this)}adoptNode(e){if(e[k]===this)return e;let n=kt(e);return q(()=>{let r=e.parentNode;return r?jr(r,e,n,this):dt(n.nodes,this),e})}};function Zt(t,e){return Object.defineProperty(t,k,{value:e,writable:!0,enumerable:!1}),t}function $n(t,e,n=C,r=null,o=e){let s;if(n===ee)s=new Fe;else if(n===C&&o===\"template\")s=new Ye;else if(n===C){let i=t.defaultView.customElements.get(o);s=i?new i:new F}else s=new F;return Qt(s,t,e,n,r)}function Qt(t,e,n,r=C,o=null){return Zt(t,e),Object.defineProperties(t,{[x]:{value:n},[O]:{value:r},[he]:{value:o}}),e[L].createElement?.(t,r),t}var Jt=class extends z{constructor(e,n){super(e,n),this.detail=n?.detail??null}initCustomEvent(e,n,r,o){super.initEvent(e,n,r),this.detail=o??null}};var en=class extends z{constructor(e,n){super(e,n),this.message=n.message,this.filename=n.filename,this.lineno=n.lineno,this.colno=n.colno,this.error=n.error}};var tn=class extends z{constructor(e,n){super(e,n),this.promise=n.promise,this.reason=n.reason}};var nn=class extends z{constructor(e,n){super(e,n),this.oldState=n.oldState,this.newState=n.newState}};var rn=class extends z{constructor(e,n={}){super(e,n),this.relatedTarget=n.relatedTarget??null}};var on=class extends z{constructor(e,n={}){super(e,n),this.clipboardData=n.clipboardData??null}};var sn=class extends F{};var is=/^[a-z][^A-Z\\u0000\\t\\n\\f\\r />]*-[^A-Z\\u0000\\t\\n\\f\\r />]*$/u,as=new Set([\"annotation-xml\",\"color-profile\",\"font-face\",\"font-face-src\",\"font-face-uri\",\"font-face-format\",\"font-face-name\",\"missing-glyph\"]);function Zr(t){return is.test(t)&&!as.has(t)}function Qr(t){return I(`Invalid custom element name: \"${t}\"`,\"SyntaxError\")}var an=class{registry=new Map;listenersByName=new Map;define(e,n,r){if(!Zr(e))throw Qr(e);if(this.registry.has(e))throw I(`A custom element named \"${e}\" has already been defined`,\"NotSupportedError\");if(this.getName(n)!=null)throw I(\"This constructor has already been registered in this custom element registry\",\"NotSupportedError\");this.registry.set(e,n);let o=this.listenersByName.get(e);if(o!=null){this.listenersByName.delete(e);for(let s of o)s(n)}}get(e){return this.registry.get(e)}getName(e){for(let[n,r]of this.registry)if(r===e)return n;return null}whenDefined(e){if(!Zr(e))return Promise.reject(Qr(e));let n=this.registry.get(e);if(n!=null)return Promise.resolve(n);let r=this.listenersByName.get(e);return r==null&&(r=[],this.listenersByName.set(e,r)),new Promise(o=>{r.push(o)})}upgrade(e){}initialize(e){}};var ls=[\"onerror\",\"onunhandledrejection\"],eo=Symbol.for(\"@remote-dom/polyfill/global-property\");function to(t){return Object.getOwnPropertyDescriptors(t)}function no(t){let e={};for(let[n,r]of Object.entries(Object.getOwnPropertyDescriptors(Ee.prototype)))n!==\"constructor\"&&typeof r.value==\"function\"&&(r.value=Wn(r.value.bind(t)),e[n]=r);return e}function ro(t){let e={};for(let n of ls)e[n]={configurable:!0,enumerable:!0,get:Wn(()=>t[n]),set:Wn(r=>{t[n]=r})};return e}function cs(t){return Object.assign(to(t),no(t),ro(t))}function Wn(t){return Object.defineProperty(t,eo,{value:!0}),t}function Jr(t,e){for(let n of Reflect.ownKeys(e)){let r=us(t,n);(r==null||ds(r))&&Object.defineProperty(t,n,e[n])}}function us(t,e){let n=t;for(;n;){let r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function ds(t){return[t.value,t.get,t.set].some(e=>typeof e==\"function\"&&e[eo]===!0)}var Me=class extends Ee{[L]={};[Et]=[];[Oe]=ms(this);name=\"\";window=this;parent=this;self=this;top=this;document=new gt(this);customElements=new an;location=globalThis.location;navigator=globalThis.navigator;Event=z;ErrorEvent=en;PromiseRejectionEvent=tn;ToggleEvent=nn;FocusEvent=rn;ClipboardEvent=on;EventTarget=Ee;CustomEvent=Jt;Node=ne;ParentNode=ae;ChildNode=Ne;DocumentFragment=qe;Document=gt;CharacterData=Te;Comment=ze;Text=je;Element=F;HTMLElement=sn;SVGElement=Fe;HTMLTemplateElement=Ye;MutationObserver=Ft;#t=null;#n=null;#e=null;static with(...e){let n=this;return class extends n{constructor(){super();for(let o of e)fs(this,o)}}}get onerror(){return this.#n}set onerror(e){this.#t&&this.removeEventListener(\"error\",this.#t),e&&typeof e==\"function\"?(this.#n=e,this.#t=n=>{e(n.message??\"Error\",n.filename,n.lineno,n.colno,n.error)},this.addEventListener(\"error\",this.#t)):(this.#t=null,this.#n=null)}get onunhandledrejection(){return this.#e}set onunhandledrejection(e){this.#e&&this.removeEventListener(\"unhandledrejection\",this.#e),e&&typeof e==\"function\"?(this.#e=e,this.addEventListener(\"unhandledrejection\",this.#e)):this.#e=null}static setGlobal(e){let n=globalThis.self,r=globalThis.window,o=to(e),s=Object.assign(no(e),ro(e));delete o.self,Object.defineProperties(globalThis,o),Jr(globalThis,s),typeof n>\"u\"||n===r&&n!==globalThis?Object.defineProperty(globalThis,\"self\",{value:e,configurable:!0,writable:!0,enumerable:!0}):n!==globalThis&&(Object.defineProperties(n,o),Jr(n,s))}static setGlobalThis(e){for(let n in e)e[n]===e&&(e[n]=globalThis);Object.defineProperties(globalThis,cs(e))}};function fs(t,e){t[Et].push(e(t)??{})}function ms(t){return{createElement:me.bind(null,t,\"createElement\"),setAttribute:me.bind(null,t,\"setAttribute\"),removeAttribute:me.bind(null,t,\"removeAttribute\"),createText:me.bind(null,t,\"createText\"),setText:me.bind(null,t,\"setText\"),insertChild:me.bind(null,t,\"insertChild\"),removeChild:me.bind(null,t,\"removeChild\"),addEventListener:me.bind(null,t,\"addEventListener\"),removeEventListener:me.bind(null,t,\"removeEventListener\")}}function me(t,e,...n){for(let s of t[Et])s[e]?.apply(s,n);let r=t[L];r[e]?.apply(r,n)}var ln=new Me;var Xn=\"~\";var we=new WeakMap;function $e(t){return we.get(t)}var Jn=new WeakMap,hs=0;function Z(t){let e=Jn.get(t);return e==null&&(e=String(hs++),cn(t,e)),e}function cn(t,e){Jn.set(t,e)}var Zn=new WeakMap;function gs(t){return Zn.get(t)}var Qn=new WeakMap;function ys(t){let e=Qn.get(t);if(e!=null)return e;if(!(!(t instanceof Element)||t.tagName.includes(\"-\"))){e={};for(let{name:n,value:r}of t.attributes)e[n]=r;return e}}var bs=new WeakMap;function Es(t){return bs.get(t)}function er(t,e,n){let r=Zn.get(t);if(r==null&&(r={},Zn.set(t,r)),r[e]===n)return;r[e]=n;let o=we.get(t);o?.mutate([[3,Z(t),e,n,1]])}function Se(t,e,n){let r=Qn.get(t);if(r==null&&(r={},Qn.set(t,r)),r[e]===n)return;n==null?delete r[e]:r[e]=String(n);let o=we.get(t);o?.mutate([[3,Z(t),e,n,2]])}function We(t,e){if(we.get(t)!==e&&(we.set(t,e),t.childNodes))for(let r=0;r<t.childNodes.length;r++)We(t.childNodes[r],e)}function un(t){if(we.get(t)!=null&&(we.delete(t),t.childNodes))for(let n=0;n<t.childNodes.length;n++)un(t.childNodes[n])}function Xe(t){let{nodeType:e}=t;switch(e){case 1:return{id:Z(t),type:e,element:t.localName,properties:Kn(gs(t)),attributes:Kn(ys(t)),eventListeners:Kn(Es(t)),children:Array.from(t.childNodes).map(Xe)};case 3:case 8:return{id:Z(t),type:e,data:t.data};default:throw new Error(`Cannot serialize node of type ${t.nodeType} (${typeof t.nodeType})`)}}function Kn(t){return t?{...t}:void 0}function tr(t,e,...n){let r=Jn.get(t),o=we.get(t);if(r==null||o==null)throw new Error(`Cannot call method ${e} on an unconnected node`);return o.call(r,e,...n)}var Ke=ln[L];Ke.insertChild=(t,e,n)=>{let r=$e(t);r!=null&&(We(e,r),r.mutate([[0,Z(t),Xe(e),n]]))};Ke.removeChild=(t,e,n)=>{let r=$e(t);r!=null&&(un(e),r.mutate([[1,Z(t),n]]))};Ke.setText=(t,e)=>{let n=$e(t);n?.mutate([[2,Z(t),e]])};Ke.setAttribute=(t,e,n)=>{t.tagName.includes(\"-\")||Se(t,e,n)};Ke.removeAttribute=(t,e)=>{t.tagName.includes(\"-\")||Se(t,e)};Me.setGlobal(ln);function dn(t){if(typeof t==\"string\")return{type:\"navigate\",to:t};let{place:e,record:n,where:r,section:o}=t??{},s={...r===void 0?{}:{where:r},...o===void 0?{}:{section:String(o)}};return typeof e==\"string\"?{type:\"navigate\",place:e,...s}:typeof n==\"string\"?{type:\"navigate\",to:n,...s}:void 0}var so=[\"wheel\",\"drag\",\"pinch\"];function io(t){let e=t;return typeof t==\"object\"&&t!==null&&e.graview===\"host-hello\"&&typeof e.nonce==\"string\"}function lo(t,e={}){let n,r=\"\",o,s=0,i=new Set,l=new Set,u=!1,d=new Map,p=[],b=v=>{n?n.postMessage({...v,nonce:r}):p.push(v)},T=v=>{let E=v.data;if(!(!E||typeof E!=\"object\")){if(E.type===\"props\"){o=E.props;for(let N of i)N(E.props)}else E.type===\"answer\"?(d.get(E.id)?.(E),d.delete(E.id)):E.type===\"event\"&&typeof E.listener==\"number\"?e.onEvent?.(E):E.type===\"away\"&&typeof E.away==\"boolean\"?u=E.away:E.type===\"heartbeat\"&&typeof E.beat==\"number\"&&b({type:\"heartbeat\",beat:E.beat});if(e.onMessage?.(E),E.type===\"away\"&&typeof E.away==\"boolean\")for(let N of[...l])try{N(E.away)}catch(R){console.error(R)}}},w=()=>{},A=v=>{if(n||!t.fromHost(v)||!io(v.data)||v.data.protocol!==1)return;let E=v.ports[0];if(E){n=E,r=v.data.nonce,n.onmessage=T,n.start?.(),w();for(let N of p.splice(0))b(N)}};w=t.listen(A),t.ready({graview:\"guest-ready\",protocol:1});let P,U={get props(){return o},subscribe(v){return i.add(v),()=>i.delete(v)},get away(){return u},onAway(v){return l.add(v),()=>void l.delete(v)},act(v,E={}){let N=s+=1;return new Promise(R=>{d.set(N,R),b({type:\"act\",id:N,name:v,args:E})})},navigate(v){let E=dn(v);E&&b(E)},size(v){b({type:\"size\",height:v})},autoSize(v){let E=v??globalThis.document?.documentElement,N=globalThis.ResizeObserver;if(!E||!N||typeof E.getBoundingClientRect!=\"function\")return()=>{};P?.disconnect();let R=new N(()=>U.size(Math.ceil(E.getBoundingClientRect().height)));return R.observe(E),P=R,()=>R.disconnect()},close(){P?.disconnect(),w(),n?.close(),i.clear(),l.clear()}};return{guest:U,send:b}}var uo=[\"globalThis\",\"Infinity\",\"NaN\",\"undefined\",\"isFinite\",\"isNaN\",\"parseFloat\",\"parseInt\",\"decodeURI\",\"decodeURIComponent\",\"encodeURI\",\"encodeURIComponent\",\"escape\",\"unescape\",\"Object\",\"Function\",\"Array\",\"Number\",\"Boolean\",\"String\",\"Symbol\",\"BigInt\",\"Date\",\"Promise\",\"RegExp\",\"Math\",\"JSON\",\"Reflect\",\"Proxy\",\"Intl\",\"Error\",\"AggregateError\",\"EvalError\",\"RangeError\",\"ReferenceError\",\"SyntaxError\",\"TypeError\",\"URIError\",\"SuppressedError\",\"Map\",\"Set\",\"WeakMap\",\"WeakSet\",\"WeakRef\",\"FinalizationRegistry\",\"Iterator\",\"AsyncIterator\",\"DisposableStack\",\"AsyncDisposableStack\",\"ArrayBuffer\",\"SharedArrayBuffer\",\"DataView\",\"Atomics\",\"Int8Array\",\"Uint8Array\",\"Uint8ClampedArray\",\"Int16Array\",\"Uint16Array\",\"Int32Array\",\"Uint32Array\",\"Float16Array\",\"Float32Array\",\"Float64Array\",\"BigInt64Array\",\"BigUint64Array\"],fo=[\"window\",\"parent\",\"top\",\"document\",\"customElements\",\"Event\",\"ErrorEvent\",\"PromiseRejectionEvent\",\"ToggleEvent\",\"FocusEvent\",\"ClipboardEvent\",\"CustomEvent\",\"EventTarget\",\"Node\",\"ParentNode\",\"ChildNode\",\"DocumentFragment\",\"Document\",\"CharacterData\",\"Comment\",\"Text\",\"Element\",\"HTMLElement\",\"SVGElement\",\"HTMLTemplateElement\",\"MutationObserver\"],mo=[\"self\",\"postMessage\",\"setTimeout\",\"clearTimeout\",\"setInterval\",\"clearInterval\",\"queueMicrotask\",\"structuredClone\",\"crypto\",\"console\",\"DOMException\"],po=[\"TEMPORARY\",\"PERSISTENT\"],Zl=Object.freeze([...uo,...fo,...mo,...po]),Ql=Object.freeze([\"constructor\",\"__defineGetter__\",\"__defineSetter__\",\"hasOwnProperty\",\"__lookupGetter__\",\"__lookupSetter__\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"toString\",\"valueOf\",\"__proto__\",\"toLocaleString\"]),co=t=>typeof t==\"symbol\"?`[${t.description??\"symbol\"}]`:t;function ho(t=globalThis,e=[],n={}){let r=[],o=[],s=new Set([...uo,...fo,...mo,...e,\"constructor\",Symbol.toStringTag]),i=(N,R)=>{let G=Reflect.getOwnPropertyDescriptor(N,R);return G===void 0||!(\"value\"in G)||G.writable||G.configurable?!1:n.primitivesStay&&typeof R==\"symbol\"&&(typeof G.value!=\"object\"||G.value===null)&&typeof G.value!=\"function\"?!0:po.includes(R)&&typeof G.value==\"number\"},l=t,u=l.setTimeout,d=l.setInterval,p=l.crypto,b=(N,R)=>function(G,Ze,...Qe){if(typeof G!=\"function\")throw new TypeError(`${R} takes a function: a guest view cannot run code from text`);return N.call(t,G,Ze,...Qe)},T=p?Object.freeze({getRandomValues:N=>p.getRandomValues(N)}):void 0,w=l.document?.defaultView;if(w&&w!==l)for(let N of Reflect.ownKeys(w))typeof N==\"symbol\"||s.has(N)||Reflect.deleteProperty(w,N)||o.push(`window.${N}`);let A=[];for(let N=t;N&&N!==Object.prototype;N=Object.getPrototypeOf(N))A.push(N);for(let N of A)for(let R of Reflect.ownKeys(N))s.has(R)||(Reflect.deleteProperty(N,R)?r.push(co(R)):i(N,R)||o.push(co(R)));let P=()=>function(){throw new EvalError(\"A guest view cannot make code from text.\")},U=[Function.prototype,Object.getPrototypeOf(async function(){}),Object.getPrototypeOf(function*(){}),Object.getPrototypeOf(async function*(){})];for(let N of U){let R=P();Object.defineProperty(R,\"prototype\",{value:N,writable:!1,enumerable:!1,configurable:!1}),Reflect.defineProperty(N,\"constructor\",{value:R,writable:!1,enumerable:!1,configurable:!1})||o.push(\"Function.prototype.constructor\"),N===Function.prototype&&Reflect.defineProperty(t,\"Function\",{value:R,writable:!0,enumerable:!1,configurable:!0})}let v=(N,R)=>{Reflect.defineProperty(t,N,{value:R,writable:!0,enumerable:!0,configurable:!0})||o.push(N)};v(\"setTimeout\",b(u,\"setTimeout\")),v(\"setInterval\",b(d,\"setInterval\")),T&&v(\"crypto\",T);for(let N of A.slice(1))Object.freeze(N);for(let N of Reflect.ownKeys(t)){let R=Reflect.getOwnPropertyDescriptor(t,N);Reflect.defineProperty(t,N,\"value\"in R?{...R,writable:!1,configurable:!1}:{...R,configurable:!1})}let E;try{E=Reflect.preventExtensions(t)}catch{E=!1}return{removed:r,stuck:o,sealed:E}}var yt=class extends HTMLElement{constructor(){super(),cn(this,Xn)}connect(e){if($e(this)===e||(We(this,e),this.childNodes.length===0))return;let n=[];for(let r=0;r<this.childNodes.length;r++){let o=this.childNodes[r];n.push([0,Xn,Xe(o),r])}e.mutate(n)}updateRemoteProperty(e,n){er(this,e,n)}callRemoteMethod(e,...n){return tr(this,e,...n)}};var m={},nr={empty:!0},Ns={id:\"text\",class:\"text\",title:\"text\",lang:\"text\",dir:{oneOf:[\"ltr\",\"rtl\",\"auto\"]},hidden:\"text\",tabindex:{oneOf:[\"-1\",\"0\"]},role:\"text\",style:\"style\",translate:{oneOf:[\"yes\",\"no\"]},spellcheck:{oneOf:[\"true\",\"false\"]},draggable:{oneOf:[\"true\",\"false\"]},inert:\"boolean\"},rr={div:m,section:m,article:m,aside:m,header:m,footer:m,nav:m,hgroup:m,search:m,address:m,figure:m,figcaption:m,blockquote:m,p:m,pre:m,hr:nr,br:nr,wbr:nr,h1:m,h2:m,h3:m,h4:m,h5:m,h6:m,span:m,strong:m,em:m,b:m,i:m,u:m,s:m,small:m,mark:m,abbr:m,cite:m,q:m,code:m,kbd:m,samp:m,var:m,sub:m,sup:m,dfn:m,bdi:m,bdo:m,ruby:m,rt:m,rp:m,time:{attributes:{datetime:\"text\"}},data:{attributes:{value:\"text\"}},del:{attributes:{datetime:\"text\"}},ins:{attributes:{datetime:\"text\"}},a:{attributes:{href:\"link\"}},ul:m,menu:m,dl:m,dt:m,dd:m,ol:{attributes:{start:\"number\",reversed:\"boolean\",type:{oneOf:[\"1\",\"a\",\"A\",\"i\",\"I\"]}}},li:{attributes:{value:\"number\"}},table:m,caption:m,thead:m,tbody:m,tfoot:m,tr:m,colgroup:{attributes:{span:\"number\"}},col:{attributes:{span:\"number\"},empty:!0},th:{attributes:{colspan:\"number\",rowspan:\"number\",headers:\"text\",scope:{oneOf:[\"row\",\"col\",\"rowgroup\",\"colgroup\"]},abbr:\"text\"}},td:{attributes:{colspan:\"number\",rowspan:\"number\",headers:\"text\"}},details:{attributes:{open:\"boolean\",name:\"text\"}},summary:m,button:{attributes:{type:{oneOf:[\"button\"]},disabled:\"boolean\",name:\"text\",value:\"text\"}},input:{empty:!0,attributes:{type:{oneOf:[\"text\",\"search\",\"number\",\"range\",\"checkbox\",\"radio\",\"date\",\"time\",\"datetime-local\",\"month\",\"week\",\"color\",\"email\",\"tel\",\"url\"]},name:\"text\",value:\"text\",placeholder:\"text\",min:\"text\",max:\"text\",step:\"text\",checked:\"boolean\",disabled:\"boolean\",readonly:\"boolean\",required:\"boolean\",maxlength:\"number\",minlength:\"number\",size:\"number\",pattern:\"text\",multiple:\"boolean\",inputmode:\"text\",enterkeyhint:\"text\"}},select:{attributes:{name:\"text\",disabled:\"boolean\",multiple:\"boolean\",required:\"boolean\",size:\"number\"}},option:{attributes:{value:\"text\",selected:\"boolean\",disabled:\"boolean\",label:\"text\"}},optgroup:{attributes:{label:\"text\",disabled:\"boolean\"}},textarea:{attributes:{name:\"text\",placeholder:\"text\",rows:\"number\",cols:\"number\",disabled:\"boolean\",readonly:\"boolean\",required:\"boolean\",maxlength:\"number\",minlength:\"number\",wrap:{oneOf:[\"soft\",\"hard\",\"off\"]}}},label:{attributes:{for:\"text\"}},fieldset:{attributes:{disabled:\"boolean\",name:\"text\"}},legend:m,output:m,meter:{attributes:{value:\"number\",min:\"number\",max:\"number\",low:\"number\",high:\"number\",optimum:\"number\"}},progress:{attributes:{value:\"number\",max:\"number\"}},img:{empty:!0,attributes:{src:\"image\",alt:\"text\",width:\"number\",height:\"number\",decoding:{oneOf:[\"async\",\"sync\",\"auto\"]},loading:{oneOf:[\"lazy\",\"eager\"]},fetchpriority:{oneOf:[\"high\",\"low\",\"auto\"]}}},\"graview-video\":{empty:!0,attributes:{autoplay:\"boolean\",cover:\"boolean\",poster:\"image\"}}},Ts=[\"fill\",\"fill-opacity\",\"fill-rule\",\"stroke\",\"stroke-width\",\"stroke-linecap\",\"stroke-linejoin\",\"stroke-dasharray\",\"stroke-dashoffset\",\"stroke-opacity\",\"stroke-miterlimit\",\"opacity\",\"color\",\"display\",\"visibility\",\"transform-origin\",\"clip-path\",\"clip-rule\",\"marker-start\",\"marker-mid\",\"marker-end\",\"font-family\",\"font-size\",\"font-weight\",\"font-style\",\"text-anchor\",\"dominant-baseline\",\"alignment-baseline\",\"letter-spacing\",\"text-decoration\",\"paint-order\",\"vector-effect\",\"shape-rendering\",\"pointer-events\",\"stop-color\",\"stop-opacity\",\"overflow\",\"mask\",\"filter\",\"flood-color\",\"flood-opacity\",\"lighting-color\",\"color-interpolation-filters\"],ws={id:\"text\",class:\"text\",style:\"style\",lang:\"text\",role:\"text\",tabindex:{oneOf:[\"-1\",\"0\"]},transform:\"geometry\",...Object.fromEntries(Ts.map(t=>[t,\"css\"]))},pe={x:\"geometry\",y:\"geometry\",width:\"geometry\",height:\"geometry\"},fn={viewBox:\"geometry\",preserveAspectRatio:\"geometry\"},go={oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},yo={oneOf:[\"R\",\"G\",\"B\",\"A\"]},se={...pe,in:\"text\",result:\"text\"},bo={gradientUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},gradientTransform:\"geometry\",spreadMethod:{oneOf:[\"pad\",\"reflect\",\"repeat\"]},href:\"fragment\"},Eo={svg:{attributes:{...pe,...fn}},g:m,defs:m,symbol:{attributes:{...pe,...fn,refX:\"geometry\",refY:\"geometry\"}},use:{attributes:{...pe,href:\"fragment\"}},title:m,desc:m,path:{attributes:{d:\"geometry\",pathLength:\"number\"}},rect:{attributes:{...pe,rx:\"geometry\",ry:\"geometry\",pathLength:\"number\"}},circle:{attributes:{cx:\"geometry\",cy:\"geometry\",r:\"geometry\",pathLength:\"number\"}},ellipse:{attributes:{cx:\"geometry\",cy:\"geometry\",rx:\"geometry\",ry:\"geometry\",pathLength:\"number\"}},line:{attributes:{x1:\"geometry\",y1:\"geometry\",x2:\"geometry\",y2:\"geometry\",pathLength:\"number\"}},polyline:{attributes:{points:\"geometry\",pathLength:\"number\"}},polygon:{attributes:{points:\"geometry\",pathLength:\"number\"}},text:{attributes:{x:\"geometry\",y:\"geometry\",dx:\"geometry\",dy:\"geometry\",rotate:\"geometry\",textLength:\"geometry\",lengthAdjust:{oneOf:[\"spacing\",\"spacingAndGlyphs\"]}}},tspan:{attributes:{x:\"geometry\",y:\"geometry\",dx:\"geometry\",dy:\"geometry\",rotate:\"geometry\",textLength:\"geometry\"}},textPath:{attributes:{href:\"fragment\",startOffset:\"geometry\",method:{oneOf:[\"align\",\"stretch\"]},spacing:{oneOf:[\"auto\",\"exact\"]},side:{oneOf:[\"left\",\"right\"]}}},linearGradient:{attributes:{x1:\"geometry\",y1:\"geometry\",x2:\"geometry\",y2:\"geometry\",...bo}},radialGradient:{attributes:{cx:\"geometry\",cy:\"geometry\",r:\"geometry\",fx:\"geometry\",fy:\"geometry\",fr:\"geometry\",...bo}},stop:{attributes:{offset:\"geometry\"}},clipPath:{attributes:{clipPathUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]}}},mask:{attributes:{...pe,maskUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},maskContentUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]}}},pattern:{attributes:{...pe,...fn,patternUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},patternContentUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},patternTransform:\"geometry\",href:\"fragment\"}},marker:{attributes:{...fn,markerWidth:\"geometry\",markerHeight:\"geometry\",refX:\"geometry\",refY:\"geometry\",orient:\"geometry\",markerUnits:{oneOf:[\"strokeWidth\",\"userSpaceOnUse\"]}}},a:m,filter:{attributes:{...pe,filterUnits:go,primitiveUnits:go}},feBlend:{attributes:{...se,in2:\"text\",mode:\"text\"}},feColorMatrix:{attributes:{...se,type:{oneOf:[\"matrix\",\"saturate\",\"hueRotate\",\"luminanceToAlpha\"]},values:\"geometry\"}},feComponentTransfer:{attributes:se},...Object.fromEntries([\"feFuncR\",\"feFuncG\",\"feFuncB\",\"feFuncA\"].map(t=>[t,{attributes:{type:{oneOf:[\"identity\",\"table\",\"discrete\",\"linear\",\"gamma\"]},tableValues:\"geometry\",slope:\"number\",intercept:\"number\",amplitude:\"number\",exponent:\"number\",offset:\"number\"}}])),feComposite:{attributes:{...se,in2:\"text\",operator:{oneOf:[\"over\",\"in\",\"out\",\"atop\",\"xor\",\"lighter\",\"arithmetic\"]},k1:\"number\",k2:\"number\",k3:\"number\",k4:\"number\"}},feDisplacementMap:{attributes:{...se,in2:\"text\",scale:\"number\",xChannelSelector:yo,yChannelSelector:yo}},feDropShadow:{attributes:{...se,dx:\"number\",dy:\"number\",stdDeviation:\"geometry\"}},feFlood:{attributes:se},feGaussianBlur:{attributes:{...se,stdDeviation:\"geometry\",edgeMode:{oneOf:[\"duplicate\",\"wrap\",\"none\"]}}},feMerge:{attributes:se},feMergeNode:{attributes:{in:\"text\"}},feMorphology:{attributes:{...se,operator:{oneOf:[\"erode\",\"dilate\"]},radius:\"geometry\"}},feOffset:{attributes:{...se,dx:\"number\",dy:\"number\"}},feTurbulence:{attributes:{...pe,result:\"text\",type:{oneOf:[\"fractalNoise\",\"turbulence\"]},baseFrequency:\"geometry\",numOctaves:\"number\",seed:\"number\",stitchTiles:{oneOf:[\"stitch\",\"noStitch\"]}}}};var No={section:[\"aria-label\",\"title\"]};function Ss(t){return/^aria-[a-z]+$/.test(t)}function vs(t){return/^data-[a-z0-9][a-z0-9_.-]*$/.test(t)}var xs=new Map(Object.keys(Eo).map(t=>[t.toLowerCase(),t]));function To(t){return xs.get(t.toLowerCase())}function wo(t,e,n){let r=n.toLowerCase(),o=t===\"html\"?[rr[e]?.attributes,Ns]:[Eo[e]?.attributes,ws],s=t===\"svg\"&&r===\"xlink:href\"?\"href\":r;for(let i of o)if(i){for(let[l,u]of Object.entries(i))if(l.toLowerCase()===s)return{name:l,kind:u}}if(Ss(r)||vs(r))return{name:r,kind:\"text\"}}var So=/^[a-z0-9][a-z0-9_-]{0,63}$/i;var mn=/^\\d{4}-\\d{2}-\\d{2}$/;function Os(t,e){if(typeof t!=\"string\"||typeof e!=\"string\"||!mn.test(t)||!mn.test(e))return;let n=Math.round((Date.parse(`${t}T00:00:00Z`)-Date.parse(`${e}T00:00:00Z`))/864e5);return Number.isFinite(n)?n:void 0}function vo(t,e,n={}){let r=Os(t,e);if(r===void 0)return\"\";if(r===0)return\"today\";if(r===1)return\"tomorrow\";if(r<0&&n.due===!0)return\"overdue\";if(r===-1)return\"yesterday\";let o=Math.abs(r),[s,i]=o<14?[o,\"day\"]:o<60?[Math.round(o/7),\"week\"]:o<730?[Math.round(o/30.44),\"month\"]:[Math.round(o/365.25),\"year\"],l=`${s} ${i}${s===1?\"\":\"s\"}`;return r>0?`in ${l}`:`${l} ago`}function xo(t,e){if(typeof t!=\"string\")return;if(mn.test(t))return t;let n=Date.parse(t);if(Number.isFinite(n)){if(!/(Z|[+-]\\d\\d:?\\d\\d)$/.test(t))return mn.test(t.slice(0,10))?t.slice(0,10):void 0;try{let r=new Intl.DateTimeFormat(\"en-CA\",{timeZone:e||\"UTC\",year:\"numeric\",month:\"2-digit\",day:\"2-digit\"}).formatToParts(n),o=s=>r.find(i=>i.type===s)?.value??\"\";return`${o(\"year\")}-${o(\"month\")}-${o(\"day\")}`}catch{return new Date(n).toISOString().slice(0,10)}}}var Oo=\"~\",pn=t=>typeof t==\"object\"&&t!==null&&!Array.isArray(t),le=(t,e=0)=>{if(t===null||typeof t==\"string\"||typeof t==\"number\"||typeof t==\"boolean\"||t===void 0)return t;if(!(e>64||typeof t!=\"object\"))return Array.isArray(t)?t.map(n=>le(n,e+1)):Object.fromEntries(Object.entries(t).map(([n,r])=>[n,le(r,e+1)]))};function Ro(){let t=new Map,e=new Map,n=new Map([[Oo,{children:[],listeners:new Map}]]),r=0,o=d=>{let p=e.get(d);return p===void 0&&(p=r+=1,e.set(d,p),t.set(p,{listener:d,count:0})),t.get(p).count+=1,p},s=d=>{let p=t.get(d);p&&(p.count-=1,!(p.count>0)&&(t.delete(d),e.delete(p.listener)))},i=d=>{let p=n.get(d);if(p){n.delete(d);for(let b of p.listeners.values())s(b);for(let b of p.children)i(b)}},l=(d,p,b=0)=>{if(!pn(d)||b>64)return le(d);let T=typeof d.id==\"string\"?d.id:void 0,w=p&&T!==void 0&&T!==Oo;w&&i(T);let A={children:[],listeners:new Map};w&&n.set(T,A);let P={};for(let[U,v]of Object.entries(d))U===\"children\"&&Array.isArray(v)?P[U]=v.map(E=>{let N=l(E,w,b+1);return w&&pn(E)&&typeof E.id==\"string\"&&A.children.push(E.id),N}):U===\"eventListeners\"&&pn(v)?P[U]=Object.fromEntries(Object.entries(v).map(([E,N])=>{if(typeof N!=\"function\"||!w)return[E,void 0];let R=o(N);return A.listeners.set(E,R),[E,{listener:R}]})):P[U]=le(v,b+1);return P},u=d=>{if(!Array.isArray(d))return le(d);let[p,b]=d,T=typeof b==\"string\"?n.get(b):void 0;if(p===0){let w=l(d[2],T!==void 0),A=pn(d[2])?d[2].id:void 0;if(T&&typeof A==\"string\"&&n.has(A)){let P=Number(d[3]);T.children.splice(Number.isInteger(P)&&P>=0&&P<=T.children.length?P:T.children.length,0,A)}return[p,le(b),w,le(d[3])]}if(p===1){let w=Number(d[2]);return T&&Number.isInteger(w)&&w>=0&&w<T.children.length&&i(T.children.splice(w,1)[0]),le(d)}if(p===3&&d[4]===3){let w=String(d[2]),A=d[3],P=T&&typeof A==\"function\"?o(A):void 0,U=T?.listeners.get(w);return U!==void 0&&s(U),P===void 0?T?.listeners.delete(w):T.listeners.set(w,P),[p,le(b),w,P===void 0?void 0:{listener:P},3]}return le(d)};return{encode:d=>d.map(u),listener:d=>t.get(d)?.listener,get listening(){return t.size},get nodes(){return n.size-1}}}var hn=\"graview-view-root\",As=[\"value\",\"checked\",\"key\",\"pressed\",\"files\",\"refused\",\"x\",\"y\",\"width\",\"height\",\"deltaX\",\"deltaY\",\"deltaMode\",\"ctrlKey\",\"metaKey\",\"phase\",\"pointerId\",\"button\",\"pressure\",\"dx\",\"dy\",\"scale\",\"rotation\"],_s=new Set([\"div\",\"li\",\"article\"]),sr=t=>t.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#39;\"),or=t=>Object.freeze({html:t,toString:()=>t}),ir=t=>typeof t==\"object\"&&t!==null&&typeof t.html==\"string\"&&Object.isFrozen(t),_o=t=>t==null||t===!1?\"\":Array.isArray(t)?t.map(_o).join(\"\"):ir(t)?t.html:sr(String(t));function Po(t){customElements.get(hn)||customElements.define(hn,yt);let e=Event,n=Ro(),r=new Set,o=new Set,s,i=[],l=new Set;for(let a of[\"closest\",\"matches\",\"dataset\"]){let c=()=>{throw new TypeError(`A view's element has no ${a}: graview.on hands event.element, the element its selector matched; read event.element.getAttribute(\"data-\\u2026\").`)};a in Element.prototype||Object.defineProperty(Element.prototype,a,a===\"dataset\"?{get:c}:{value:c})}let u=document.createElement(hn),d=a=>{let c=f=>{for(let h of Array.from(f.childNodes)){if(h.nodeType!==1)continue;if(Z(h)===a)return h;let g=c(h);if(g)return g}};return c(u)},p=a=>{let c=d(a.target);if(!c)return;let f=new e(a.event,{bubbles:!0}),h={};for(let g of As)a[g]!==void 0&&(h[g]=a[g]);for(let g of Object.keys(h))Object.defineProperty(f,g,{value:h[g],enumerable:!0});c.dispatchEvent(f);for(let g of o){if(g.type!==a.event)continue;let S;try{S=new Set(Array.from(u.querySelectorAll(g.selector)))}catch{continue}for(let M=c;M&&M!==u;M=M.parentNode)if(S.has(M)){g.listener(Object.freeze({type:a.event,target:c,element:M,...h}));break}}},b=Error,T=new Map,w=0,A=(a,c,f)=>new Promise((h,g)=>{let S=++w;T.set(S,M=>M.ok?h(M):g(new b(M.sentence??\"This value was not kept.\"))),t.send({type:\"mine\",id:S,op:a,key:c,...a===\"set\"?{value:f}:{}})}),P=a=>(a.catch(()=>{}),a),U=Object.freeze({get(a){return P(A(\"get\",a).then(c=>typeof c.value==\"string\"?c.value:null))},set(a,c){return P(A(\"set\",a,c).then(()=>{}))}}),v=a=>{if(a.type===\"mine-answer\"){let g=T.get(a.id);return T.delete(a.id),g?.(a)}if(a.type===\"dom-event\"&&typeof a.target==\"string\")return p(a);if(a.type===\"notice\")return t.warn(a.text);if(a.type!==\"props\")return;s=a.props,typeof a.partMs==\"number\"&&a.partMs>0&&(gn=a.partMs),typeof a.partMark==\"string\"&&(yn=a.partMark),bn+=1,bt.clear(),et=0;let c=t.now();for(let g of r)try{g(a.props)}catch(S){t.threw(S)}let f=t.now()-c,h=a.push;typeof h==\"number\"&&t.microtask(()=>t.microtask(()=>t.send({type:\"pushed\",push:h,ms:f})))},E;u.connect({mutate(a){E||(E=[],t.microtask(()=>{let c=E??[];E=void 0,t.send({type:\"render\",records:n.encode(c)})})),E.push(...a)},call:()=>{}});let N=a=>a.localName===\"graview-video\"&&(a.hasAttribute(\"data-video\")||a.hasAttribute(\"data-watch\")),R=a=>{if(a.nodeType!==1)return null;let c=a;return c.getAttribute(\"data-key\")??c.getAttribute(\"id\")??(N(c)?`${c.getAttribute(\"data-provider\")} ${c.getAttribute(\"data-video\")} ${(c.getAttribute(\"data-watch\")??\"\").split(/[?&#]/).filter(h=>!/^(t|start)=/.test(h)).join(\"&\")}`:null)},G=new Map;function Ze(a){if(a.nodeType!==1)return[];let c=N(a)?[R(a)??\"\"]:Array.from(a.childNodes).flatMap(Ze);return c.length>0&&G.set(a,c),c}let Qe=(a,c)=>{let f=G.get(a);return f!==void 0&&(G.get(c)?.some(h=>f.includes(h))??!1)},Je=(a,c)=>a.nodeType===c.nodeType&&(a.nodeType!==1||a.localName===c.localName&&a.namespaceURI===c.namespaceURI&&R(a)===R(c));function Co(a,c,f,h){let g=a.childNodes[c],S=()=>Array.from(a.childNodes).slice(c),M=G.has(f)?S().find(H=>Je(H,f)&&Qe(H,f)):void 0;if(M)return M;let B=H=>G.has(H)&&h.some(ce=>Je(H,ce)&&Qe(H,ce));return g&&Je(g,f)&&!B(g)?g:R(f)===null?void 0:S().slice(1).find(H=>Je(H,f)&&!B(H))}function ur(a,c){let f=Array.from(c.childNodes),h=f.filter(S=>G.has(S)),g=0;for(let S of f){h[0]===S&&h.shift();let M=a.childNodes[g]??null,B=Co(a,g,S,h);if(!B)a.insertBefore(S,M);else{if(B!==M){let H=Array.from(a.childNodes).slice(g);if(H.length=H.indexOf(B),G.has(B)&&!H.some(ce=>h.some(ve=>Je(ce,ve)&&Qe(ce,ve)))){let ce=B.nextSibling;for(let ve of H)a.insertBefore(ve,ce)}else a.insertBefore(B,M)}Io(B,S)}g+=1}for(;a.childNodes.length>g;)a.removeChild(a.lastChild)}function Io(a,c){if(a.nodeType!==1){a.data!==c.data&&(a.data=c.data);return}let f=a,h=c,g=dr(f);for(let S of f.getAttributeNames())h.hasAttribute(S)||(f.removeAttribute(S),g&&Se(f,S,void 0));for(let S of h.getAttributeNames()){let M=h.getAttribute(S);f.getAttribute(S)!==M&&f.setAttribute(S,M),g&&Se(f,S,M)}ur(f,h)}let dr=a=>a.localName.includes(\"-\");function fr(a){for(let c of Array.from(a.childNodes)){if(c.nodeType!==1)continue;let f=c;if(dr(f))for(let h of f.getAttributeNames())Se(f,h,f.getAttribute(h)??void 0);fr(f)}}function mr(a,c,f){for(let h of Array.from(a.childNodes)){if(h.nodeType!==1)continue;let g=h,S=g.localName,M=c||S.toLowerCase()===\"svg\",B=M?To(S):Object.prototype.hasOwnProperty.call(rr,S.toLowerCase())?S.toLowerCase():void 0;if(!B){f.add(`<${S}>`);continue}for(let H of g.getAttributeNames())(!wo(M?\"svg\":\"html\",B,H)||!M&&No[B]?.includes(H.toLowerCase()))&&f.add(`${B} ${H}`);mr(g,M,f)}}function ko(a){let c=document.createElement(\"div\"),f=Array.isArray(a)?a:[a];for(let g of f)if(g!=null)if(typeof g==\"string\"||ir(g)){let S=document.createElement(\"div\");S.innerHTML=typeof g==\"string\"?g:g.html,c.append(...Array.from(S.childNodes))}else c.append(g);let h=new Set;mr(c,!1,h),i=[...h],i.length>0&&t.warn(`The host will not draw: ${i.join(\", \")}`),fr(c),G.clear(),Ze(c).length>0&&Ze(u),ur(u,c),bt.clear()}let gn=1e3/4,yn=\"\",bn=0,En=new Map,bt=new Map,et=0,Nn=new Set,Do=a=>{try{return a instanceof Error?`${a.name}: ${a.message}`:String(a)}catch{return\"an error\"}},pr=a=>{if(a==null||a===!1)return\"\";if(typeof a==\"string\")return a;if(ir(a))return a.html;if(Array.isArray(a))return a.map(c=>pr(c)).join(\"\");throw new TypeError(\"a part's draw returns markup: a string, graview.html`\\u2026` or a list of them\")};function Lo(a,c,f){if(typeof a!=\"string\"||!So.test(a))throw new TypeError('graview.part names its part in letters, digits, - and _ (\"vendors\", \"budget-2026\"), at most 64 of them.');if(typeof c!=\"function\")throw new TypeError(`graview.part(\"${a}\", draw) is handed a function that returns the part's markup.`);let h=typeof f?.as==\"string\"&&_s.has(f.as)?f.as:\"div\",g=bt.get(a)??0;bt.set(a,g+1);let S=`${a}#${g}`,M=(Q,Nr)=>{let Go=`The part \"${a}\" ${Q===\"threw\"?\"threw\":\"took too long\"}, so a note is drawn in its place and the rest of the view is drawn: ${Nr}`;return!Nn.has(`${a} ${Q}`)&&Nn.size<100&&(Nn.add(`${a} ${Q}`),t.warn(Go)),or(`<${h} data-part=\"${a}\" data-part-failed=\"${Q}\" data-part-why=\"${sr(Nr.slice(0,300))}\"${yn?` data-part-mark=\"${sr(yn)}\"`:\"\"}></${h}>`)},B=En.get(S);if(B!==void 0&&bn<=B.until)return M(\"slow\",B.why);En.delete(S);let H=et;et=0;let ce=t.now(),ve,xn=0;try{ve=pr(c())}catch(Q){return M(\"threw\",Do(Q))}finally{let Q=t.now()-ce;xn=Q-et,et=H+Q}if(xn>gn){let Q=`it took ${Math.round(xn).toLocaleString(\"en-US\")} ms, past the ${Math.round(gn).toLocaleString(\"en-US\")} ms a part may take of a push, and is left as a note for the next ${3} pushes.`;return En.set(S,{why:Q,until:bn+3}),M(\"slow\",Q)}return or(`<${h} data-part=\"${a}\">${ve}</${h}>`)}let Tn=[],wn=new Set(so),hr=\"[]\",Sn=!1,gr=()=>{Sn||(Sn=!0,t.microtask(()=>{Sn=!1;let a=[...new Map([...o].filter(f=>wn.has(f.type)).map(f=>[`${f.type} ${f.selector}`,{event:f.type,selector:f.selector}])).entries()].sort(([f],[h])=>f<h?-1:f>h?1:0).map(([,f])=>f),c=JSON.stringify(a);c!==hr&&(hr=c,t.send({type:\"gestures\",bound:a}))}))},yr=\"[[],[]]\",vn=!1,br=()=>{vn||(vn=!0,t.microtask(()=>{vn=!1;let a=g=>[...new Set([...o].filter(S=>S.type===g&&typeof S.selector==\"string\").map(S=>S.selector))].sort().slice(0,200),c=a(\"click\"),f=a(\"acted\"),h=JSON.stringify([c,f]);h!==yr&&(yr=h,t.send({type:\"clicks\",selectors:c,...f.length>0?{acted:f}:{}}))}))},Er=Object.freeze({get props(){return s},onProps(a){return r.add(a),s&&a(s),()=>void r.delete(a)},render:ko,style(a){typeof a!=\"string\"||Tn.includes(a)||(Tn.push(a),t.send({type:\"style\",sheets:[...Tn]}))},on(a,c,f){let h={type:a,selector:c,listener:f};return o.add(h),typeof a==\"string\"&&!l.has(a)&&(l.add(a),t.send({type:\"hears\",events:[a]})),wn.has(a)&&gr(),(a===\"click\"||a===\"acted\")&&br(),()=>{o.delete(h),wn.has(a)&&gr(),(a===\"click\"||a===\"acted\")&&br()}},act:(a,c={})=>t.act(a,c),mine:U,navigate(a){if(typeof a==\"string\")return t.navigate(a);let c=dn(a);c&&t.send(c)},part:Lo,html(a,...c){return or(a.reduce((f,h,g)=>f+h+(g<c.length?_o(c[g]):\"\"),\"\"))},get today(){return s?.today??new Date().toISOString().slice(0,10)},fromToday(a,c){let f=xo(a,s?.timeZone);return f===void 0?\"\":vo(f,Er.today,c)},cite(a,c){let f=a?s?.cites?.[a.kind]?.[c]:void 0;if(!a||!f)return;let h=!(s?.uncited?.[a.id]??[]).includes(c);if(!f.relation)return{by:f.by,relation:!1,cited:h,...a[f.by]!==void 0?{source:a[f.by]}:{}};let g=new Set((s?.edges??[]).filter(S=>S.from===a.id&&S.kind===f.by).map(S=>S.to));return{by:f.by,relation:!0,cited:h,sources:(s?.nodes??[]).filter(S=>g.has(S.id))}},uncited(a){return a?s?.uncited?.[a.id]??[]:[]},get refused(){return i},get hardening(){return t.hardening()}});return{view:Er,hear:v,find:a=>{try{let c=u.querySelectorAll(a)[0];return c?Z(c):void 0}catch{return}},listened:a=>{let c=new Set;for(let f of o)if(f.type===a)try{for(let h of Array.from(u.querySelectorAll(f.selector))){let g=Z(h);g&&c.add(g)}}catch{}return[...c]}}}var cr={removed:[],stuck:[],sealed:!1,worker:!1},ar=lo({listen(t){return Ie.listen(t),()=>Ie.unlisten(t)},fromHost:()=>!0,ready:t=>Ie.post(t)},{onMessage:t=>Mo.hear(t)}),Mo=Po({send:t=>ar.send(t),act:(t,e)=>ar.guest.act(t,e),navigate:t=>ar.guest.navigate(t),microtask:Ie.microtask,now:Ie.now,threw:t=>console.error(t),warn:t=>console.warn(t),hardening:()=>cr}),Ps=Mo.view;Object.defineProperty(globalThis,\"graview\",{value:Ps,enumerable:!0,configurable:!0,writable:!1});var lr=\"WorkerGlobalScope\"in globalThis?ho(globalThis,[\"graview\"]):cr;cr=lr;if(lr.stuck.length>0)throw new Error(`The view's worker could not be hardened: ${lr.stuck.join(\", \")} would not go.`);})();\n";
7
7
  //# sourceMappingURL=view-runtime.generated.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"view-runtime.generated.js","sourceRoot":"","sources":["../../src/host/view-runtime.generated.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAW,o0qEAAo0qE,CAAC"}
1
+ {"version":3,"file":"view-runtime.generated.js","sourceRoot":"","sources":["../../src/host/view-runtime.generated.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAW,iktEAAiktE,CAAC"}
@@ -1,3 +1,4 @@
1
+ export declare const viewRuntime: () => Promise<typeof import("./view-runtime.generated.js")>;
1
2
  /**
2
3
  * The worker's whole script for a view's source: the runtime, then the view
3
4
  * in a strict function of its own. What the host makes a `blob:` worker of;
@@ -1 +1 @@
1
- {"version":3,"file":"view-script.d.ts","sourceRoot":"","sources":["../../src/host/view-script.ts"],"names":[],"mappings":"AAaA;;;;;GAKG;AACH,wBAAsB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAGhE"}
1
+ {"version":3,"file":"view-script.d.ts","sourceRoot":"","sources":["../../src/host/view-script.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,6DAInB,CAAC;AAEN;;;;;GAKG;AACH,wBAAsB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAGhE"}
@@ -5,7 +5,7 @@
5
5
  * `import()` whose specifier is computed at run time.
6
6
  */
7
7
  let loading;
8
- const viewRuntime = () => (loading ??= import("./view-runtime.generated.js").catch((error) => {
8
+ export const viewRuntime = () => (loading ??= import("./view-runtime.generated.js").catch((error) => {
9
9
  loading = undefined;
10
10
  throw error;
11
11
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"view-script.js","sourceRoot":"","sources":["../../src/host/view-script.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,IAAI,OAA0E,CAAC;AAC/E,MAAM,WAAW,GAAG,GAAG,EAAE,CACvB,CAAC,OAAO,KAAK,MAAM,CAAC,6BAA6B,CAAC,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC1E,OAAO,GAAG,SAAS,CAAC;IACpB,MAAM,KAAK,CAAC;AACd,CAAC,CAAC,CAAC,CAAC;AAEN;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,MAAc;IAC7C,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,WAAW,EAAE,CAAC;IAC7C,OAAO,GAAG,YAAY,qCAAqC,MAAM,WAAW,CAAC;AAC/E,CAAC"}
1
+ {"version":3,"file":"view-script.js","sourceRoot":"","sources":["../../src/host/view-script.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,IAAI,OAA0E,CAAC;AAC/E,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE,CAC9B,CAAC,OAAO,KAAK,MAAM,CAAC,6BAA6B,CAAC,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC1E,OAAO,GAAG,SAAS,CAAC;IACpB,MAAM,KAAK,CAAC;AACd,CAAC,CAAC,CAAC,CAAC;AAEN;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,MAAc;IAC7C,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,WAAW,EAAE,CAAC;IAC7C,OAAO,GAAG,YAAY,qCAAqC,MAAM,WAAW,CAAC;AAC/E,CAAC"}
@@ -6,6 +6,7 @@ import type { ViewRefusal } from "./open-draw.js";
6
6
  import { type GuestLimits, type GuestStats, type GuestViewInput } from "./session.js";
7
7
  import { type Arrival } from "./links.js";
8
8
  import type { GoTo } from "@graview/react/provider";
9
+ import type { EmbedHost } from "./embeds.js";
9
10
  import { readTheme, type GuestBrand } from "./theme.js";
10
11
  import { type WorkerViewCode, type WorkerViewLoad } from "./code-of.js";
11
12
  export type { WorkerViewCode, WorkerViewLoad } from "./code-of.js";
@@ -215,6 +216,17 @@ export interface MountWorkerViewOptions<S extends AnySchema> {
215
216
  readonly links?: {
216
217
  readonly origins: readonly string[];
217
218
  };
219
+ /**
220
+ * WHICH PROVIDERS A VIEW MAY PLAY A VIDEO FROM (HQ f-view-video-embeds),
221
+ * of the closed list `EMBED_PROVIDERS` ("youtube", "vimeo"): both unsaid,
222
+ * so a host whose page plays from one says it alone, and `{ providers: [] }`
223
+ * turns every one off. One turned off is drawn as its link out, alone.
224
+ * Nothing is asked of a provider before a person presses play; the page's
225
+ * own policy must allow its frame (`frame-src` https://www.youtube-nocookie.com
226
+ * https://player.vimeo.com), and where it does not the video says so and
227
+ * keeps its link.
228
+ */
229
+ readonly embeds?: EmbedHost;
218
230
  /** Who made it, said under the region (ADR 0007: "Made by Claude for Nick"). Nothing by default. */
219
231
  readonly author?: string;
220
232
  /**
@@ -258,6 +270,24 @@ export interface WorkerView {
258
270
  readonly worker: Worker | undefined;
259
271
  /** Push again: the view's input, or the app's look, moved. */
260
272
  update(): void;
273
+ /**
274
+ * OFF THE PAGE, TO BE GONE BACK TO (Graview HQ f-custom-pages-do-not-flash):
275
+ * the region is taken out of the document with its worker kept, the view
276
+ * handed nothing meanwhile, an act it asks for refused and a navigate of
277
+ * its dropped. False where it has not drawn, failed, or is taking a file:
278
+ * the host disposes of it as ever. `gone` is called where it shows a record
279
+ * its seat may no longer see: the host disposes of it then.
280
+ */
281
+ rest(gone: () => void): boolean;
282
+ /**
283
+ * BACK ON THE PAGE, in this element, as it stood: what a person typed and
284
+ * where it was scrolled as they were, and, where what it shows has changed,
285
+ * pushed at once and a press made before that is drawn waiting for it.
286
+ * Undefined where it stands with something its seat is no longer shown: the
287
+ * host disposes of it and draws it anew. Else what puts the keyboard back
288
+ * in the field it was in, for the host to call once its page has arrived.
289
+ */
290
+ wake(onto: HTMLElement): (() => void) | undefined;
261
291
  readonly stats: Readonly<GuestStats>;
262
292
  /** What of the view's drawing and stylesheet was refused. */
263
293
  readonly refused: readonly ViewRefusal[];
@@ -1 +1 @@
1
- {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/host/view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,eAAe,CAAC;AAIlE,OAAO,EAA0B,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAkB,KAAK,SAAS,EAAE,KAAK,gBAAgB,EAAE,KAAK,SAAS,EAAE,KAAK,MAAM,EAAE,KAAK,KAAK,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAKxM,OAAO,KAAK,EAAiB,UAAU,EAAc,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGxF,OAAO,EAA6H,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnL,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAuD,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAQ3I,OAAO,EAAyC,KAAK,OAAO,EAAoB,MAAM,YAAY,CAAC;AAEnG,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAOpD,OAAO,EAAmB,SAAS,EAA8B,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAErG,OAAO,EAAU,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAEhF,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AA+BnE,MAAM,MAAM,iBAAiB;AAC3B,2GAA2G;AACzG,UAAU;AACZ,sEAAsE;GACpE,QAAQ;AACV;;;;GAIG;GACD,OAAO;AACT,uDAAuD;GACrD,OAAO;AACT,8FAA8F;GAC5F,QAAQ;AACV,oCAAoC;GAClC,OAAO;AACT,kEAAkE;GAChE,OAAO;AACT;;;;GAIG;GACD,MAAM,CAAC;AAEX,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,+EAA+E;IAC/E,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,kEAAkE;IAClE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,uEAAuE;IACvE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,wGAAwG;IACxG,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAwBD,MAAM,WAAW,sBAAsB,CAAC,CAAC,SAAS,SAAS;IACzD,oHAAoH;IACpH,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,CAAC;IACjD,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IACzB,iGAAiG;IACjG,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,8EAA8E;IAC9E,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,cAAc,CAAC;IACtC;;;;;;;;OAQG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C;;;;;;;OAOG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,OAAO,KAAK,MAAM,GAAG,SAAS,CAAC;IACtD,2KAA2K;IAC3K,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,IAAI,GAAG,SAAS,CAAC;IACvC;;;;;;;OAOG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,SAAS,UAAU,EAAE,CAAC;IAC9C,6HAA6H;IAC7H,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,gBAAgB,GAAG,SAAS,CAAC;IAC1D;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,UAAU,CAAC;IAClC;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,UAAU,GAAG,SAAS,CAAC;IAC9C;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,QAAQ,GAAG,SAAS,CAAC;IAC3C,QAAQ,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC;IACnC,wFAAwF;IACxF,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1E;;;;;;;OAOG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,eAAe,CAAC;IACrC;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC,CAAC;IACvG,uFAAuF;IACvF,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACtD;;;;;;;OAOG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACrD;;;;;;OAMG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,CAAC;IAC1D;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,CAAC;IACzD;;;;;;;;;OASG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;;;;OASG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,CAAC;IACzD,oGAAoG;IACpG,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,SAAS,GAAG,SAAS,CAAC;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,WAAW,GAAG,SAAS,CAAC;IACrD,qIAAqI;IACrI,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;OAMG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAChE;;;;;;;OAOG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;CAC5C;AAED,MAAM,WAAW,UAAU;IACzB,sEAAsE;IACtE,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,uCAAuC;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,8DAA8D;IAC9D,MAAM,IAAI,IAAI,CAAC;IACf,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;IACrC,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,EAAE,SAAS,WAAW,EAAE,CAAC;IACzC,8HAA8H;IAC9H,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,+HAA+H;IAC/H,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,OAAO,IAAI,IAAI,CAAC;CACjB;AAED,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,UAAU,CA2+BzH"}
1
+ {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/host/view.ts"],"names":[],"mappings":"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"}