mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-03-10 08:51:22 +00:00
update shadydom to 1.0.3
This commit is contained in:
@@ -56,9 +56,9 @@ d);e&&e.configurable||!e&&c?Object.defineProperty(a,d,b[d]):c&&console.warn("Cou
|
||||
Oa(b.parentNode,b);d=U(a);var e;if(e=d)a:{if(!b.__noInsertionPoint){var f;"slot"===b.localName?f=[b]:b.querySelectorAll&&(f=b.querySelectorAll("slot"));if(f&&f.length){e=f;break a}}e=void 0}f=e;d&&("slot"===a.localName||f)&&d.J();if(P(a)){e=c;Cb(a);a.__shady=a.__shady||{};void 0!==a.__shady.firstChild&&(a.__shady.childNodes=null);if(b.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var g=b.childNodes,h=0;h<g.length;h++)Ub(g[h],a,e);b.__shady=b.__shady||{};e=void 0!==b.__shady.firstChild?null:void 0;b.__shady.firstChild=
|
||||
b.__shady.lastChild=e;b.__shady.childNodes=e}else Ub(b,a,e);if(Pa(a)){a.__shady.root.J();var m=!0}else a.__shady.root&&(m=!0)}m||(m=E(a)?a.host:a,c?(c=Vb(c),Qa.call(m,b,c)):Wb.call(m,b));Xb(a,b);f&&d.Qa(f);return b}function Oa(a,b){if(b.parentNode!==a)throw Error("The node to be removed is not a child of this node: "+b);var c=U(b);if(P(a)){b.__shady=b.__shady||{};a.__shady=a.__shady||{};b===a.__shady.firstChild&&(a.__shady.firstChild=b.__shady.nextSibling);b===a.__shady.lastChild&&(a.__shady.lastChild=
|
||||
b.__shady.previousSibling);var d=b.__shady.previousSibling;var e=b.__shady.nextSibling;d&&(d.__shady=d.__shady||{},d.__shady.nextSibling=e);e&&(e.__shady=e.__shady||{},e.__shady.previousSibling=d);b.__shady.parentNode=b.__shady.previousSibling=b.__shady.nextSibling=void 0;void 0!==a.__shady.childNodes&&(a.__shady.childNodes=null);if(Pa(a)){a.__shady.root.J();var f=!0}}Yb(b);c&&((e=a&&"slot"===a.localName)&&(f=!0),((d=c.Ta(b))||e)&&c.J());f||(f=E(a)?a.host:a,(!a.__shady.root&&"slot"!==b.localName||
|
||||
f===Q(b))&&W.call(f,b));Xb(a,null,b);return b}function Yb(a){if(a.__shady&&void 0!==a.__shady.ka)for(var b=a.childNodes,c=0,d=b.length,e;c<d&&(e=b[c]);c++)Yb(e);a.__shady&&(a.__shady.ka=void 0)}function Vb(a){var b=a;a&&"slot"===a.localName&&(b=(b=a.__shady.P)&&b.length?b[0]:Vb(a.nextSibling));return b}function Pa(a){return(a=a&&a.__shady&&a.__shady.root)&&a.sa()}function Zb(a,b){"slot"===b?(a=a.parentNode,Pa(a)&&a.__shady.root.J()):"slot"===a.localName&&"name"===b&&(b=U(a))&&(b.Va(a),b.J())}function Xb(a,
|
||||
b,c){if(a=a.__shady&&a.__shady.S)b&&a.addedNodes.push(b),c&&a.removedNodes.push(c),a.ib()}function $b(a){if(a&&a.nodeType){a.__shady=a.__shady||{};var b=a.__shady.ka;void 0===b&&(E(a)?b=a:b=(b=a.parentNode)?$b(b):a,document.documentElement.contains(a)&&(a.__shady.ka=b));return b}}function ia(a,b,c){var d=[];ac(a.childNodes,b,c,d);return d}function ac(a,b,c,d){for(var e=0,f=a.length,g;e<f&&(g=a[e]);e++){var h;if(h=g.nodeType===Node.ELEMENT_NODE){h=g;var m=b,k=c,l=d,n=m(h);n&&l.push(h);k&&k(n)?h=n:
|
||||
(ac(h.childNodes,m,k,l),h=void 0)}if(h)break}}function bc(a){a=a.getRootNode();E(a)&&a.ua()}function cc(a,b,c){ja||(ja=window.ShadyCSS&&window.ShadyCSS.ScopingShim);ja&&"class"===b?ja.setElementClass(a,c):(dc.call(a,b,c),Zb(a,b))}function ec(a,b){if(a.ownerDocument!==document)return Ra.call(document,a,b);var c=Ra.call(document,a,!1);if(b){a=a.childNodes;b=0;for(var d;b<a.length;b++)d=ec(a[b],!0),c.appendChild(d)}return c}function Sa(a,b){var c=[],d=a;for(a=a===window?window:a.getRootNode();d;)c.push(d),
|
||||
f===Q(b))&&W.call(f,b));Xb(a,null,b);return b}function Yb(a){if(a.__shady&&void 0!==a.__shady.ka)for(var b=a.childNodes,c=0,d=b.length,e;c<d&&(e=b[c]);c++)Yb(e);a.__shady&&(a.__shady.ka=void 0)}function Vb(a){var b=a;a&&"slot"===a.localName&&(b=(b=a.__shady&&a.__shady.P)&&b.length?b[0]:Vb(a.nextSibling));return b}function Pa(a){return(a=a&&a.__shady&&a.__shady.root)&&a.sa()}function Zb(a,b){"slot"===b?(a=a.parentNode,Pa(a)&&a.__shady.root.J()):"slot"===a.localName&&"name"===b&&(b=U(a))&&(b.Va(a),
|
||||
b.J())}function Xb(a,b,c){if(a=a.__shady&&a.__shady.S)b&&a.addedNodes.push(b),c&&a.removedNodes.push(c),a.ib()}function $b(a){if(a&&a.nodeType){a.__shady=a.__shady||{};var b=a.__shady.ka;void 0===b&&(E(a)?b=a:b=(b=a.parentNode)?$b(b):a,document.documentElement.contains(a)&&(a.__shady.ka=b));return b}}function ia(a,b,c){var d=[];ac(a.childNodes,b,c,d);return d}function ac(a,b,c,d){for(var e=0,f=a.length,g;e<f&&(g=a[e]);e++){var h;if(h=g.nodeType===Node.ELEMENT_NODE){h=g;var m=b,k=c,l=d,n=m(h);n&&l.push(h);
|
||||
k&&k(n)?h=n:(ac(h.childNodes,m,k,l),h=void 0)}if(h)break}}function bc(a){a=a.getRootNode();E(a)&&a.ua()}function cc(a,b,c){ja||(ja=window.ShadyCSS&&window.ShadyCSS.ScopingShim);ja&&"class"===b?ja.setElementClass(a,c):(dc.call(a,b,c),Zb(a,b))}function ec(a,b){if(a.ownerDocument!==document)return Ra.call(document,a,b);var c=Ra.call(document,a,!1);if(b){a=a.childNodes;b=0;for(var d;b<a.length;b++)d=ec(a[b],!0),c.appendChild(d)}return c}function Sa(a,b){var c=[],d=a;for(a=a===window?window:a.getRootNode();d;)c.push(d),
|
||||
d=d.assignedSlot?d.assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d.host:d.parentNode;c[c.length-1]===document&&c.push(window);return c}function fc(a,b){if(!E)return a;a=Sa(a,!0);for(var c=0,d,e,f,g;c<b.length;c++)if(d=b[c],f=d===window?window:d.getRootNode(),f!==e&&(g=a.indexOf(f),e=f),!E(f)||-1<g)return d}function Ta(a){function b(b,d){b=new a(b,d);b.da=d&&!!d.composed;return b}od(b,a);b.prototype=a.prototype;return b}function gc(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&
|
||||
b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&a.target!==a.relatedTarget&&(e.call(b,a),!a.Ka);d++);}function ud(a){var b=a.composedPath();Object.defineProperty(a,"currentTarget",{get:function(){return d},configurable:!0});for(var c=b.length-1;0<=c;c--){var d=b[c];gc(a,d,"capture");if(a.ea)return}Object.defineProperty(a,"eventPhase",{get:function(){return Event.AT_TARGET}});var e;for(c=0;c<b.length;c++){d=b[c];var f=d.__shady&&d.__shady.root;if(0===c||f&&f===e)if(gc(a,d,"bubble"),d!==window&&(e=
|
||||
d.getRootNode()),a.ea)break}}function hc(a,b,c,d,e,f){for(var g=0;g<a.length;g++){var h=a[g],m=h.type,k=h.capture,l=h.once,n=h.passive;if(b===h.node&&c===m&&d===k&&e===l&&f===n)return g}return-1}function ic(a,b,c){if(b){if("object"===typeof c){var d=!!c.capture;var e=!!c.once;var f=!!c.passive}else d=!!c,f=e=!1;var g=c&&c.fa||this,h=b.V;if(h){if(-1<hc(h,g,a,d,e,f))return}else b.V=[];h=function(d){e&&this.removeEventListener(a,b,c);d.__target||jc(d);if(g!==this){var f=Object.getOwnPropertyDescriptor(d,
|
||||
@@ -102,23 +102,23 @@ previousElementSibling:Ob,nextElementSibling:Pb,children:Qb,innerHTML:Rb,textCon
|
||||
a?a:Lb(this)},configurable:!0},parentNode:{get:function(){var a=this.__shady&&this.__shady.parentNode;return void 0!==a?a:Q(this)},configurable:!0},nextSibling:{get:function(){var a=this.__shady&&this.__shady.nextSibling;return void 0!==a?a:Kb(this)},configurable:!0},previousSibling:{get:function(){var a=this.__shady&&this.__shady.previousSibling;return void 0!==a?a:Jb(this)},configurable:!0},className:{get:function(){return this.getAttribute("class")||""},set:function(a){this.setAttribute("class",
|
||||
a)},configurable:!0},nextElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.nextSibling){for(var a=this.nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return Pb(this)},configurable:!0},previousElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.previousSibling){for(var a=this.previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return Ob(this)},configurable:!0}},La={childNodes:{get:function(){if(P(this)){if(!this.__shady.childNodes){this.__shady.childNodes=
|
||||
[];for(var a=this.firstChild;a;a=a.nextSibling)this.__shady.childNodes.push(a)}var b=this.__shady.childNodes}else b=O(this);b.item=function(a){return b[a]};return b},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var a=this.__shady&&this.__shady.firstChild;return void 0!==a?a:Da(this)},configurable:!0},lastChild:{get:function(){var a=this.__shady&&this.__shady.lastChild;return void 0!==a?a:Ea(this)},configurable:!0},textContent:{get:function(){if(P(this)){for(var a=
|
||||
[],b=0,c=this.childNodes,d;d=c[b];b++)d.nodeType!==Node.COMMENT_NODE&&a.push(d.textContent);return a.join("")}return Sb(this)},set:function(a){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);this.appendChild(document.createTextNode(a));break;default:this.nodeValue=a}},configurable:!0},firstElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var a=this.firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=
|
||||
a.nextSibling;return a}return Mb(this)},configurable:!0},lastElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.lastChild){for(var a=this.lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return Nb(this)},configurable:!0},children:{get:function(){var a;P(this)?a=Array.prototype.filter.call(this.childNodes,function(a){return a.nodeType===Node.ELEMENT_NODE}):a=Qb(this);a.item=function(b){return a[b]};return a},configurable:!0},innerHTML:{get:function(){var a=
|
||||
"template"===this.localName?this.content:this;return P(this)?Ka(a):Rb(a)},set:function(a){for(var b="template"===this.localName?this.content:this;b.firstChild;)b.removeChild(b.firstChild);for(db&&db.set?db.set.call(na,a):na.innerHTML=a;na.firstChild;)b.appendChild(na.firstChild)},configurable:!0}},Hc={shadowRoot:{get:function(){return this.__shady&&this.__shady.gb||null},configurable:!0}},Ma={activeElement:{get:function(){var a=eb&&eb.get?eb.get.call(document):B.R?void 0:document.activeElement;if(a&&
|
||||
a.nodeType){var b=!!E(this);if(this===document||b&&this.host!==a&&this.host.contains(a)){for(b=U(a);b&&b!==this;)a=b.host,b=U(a);a=this===document?b?null:a:b===this?a:null}else a=null}else a=null;return a},set:function(){},configurable:!0}},Db=B.R?function(){}:function(a){a.__shady&&a.__shady.Na||(a.__shady=a.__shady||{},a.__shady.Na=!0,H(a,Tb,!0))},Cb=B.R?function(){}:function(a){a.__shady&&a.__shady.La||(a.__shady=a.__shady||{},a.__shady.La=!0,H(a,La,!0),H(a,Hc,!0))},ja=null,Ld={blur:!0,focus:!0,
|
||||
focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,
|
||||
dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},pc={get composed(){!1!==this.isTrusted&&void 0===this.da&&(this.da=Ld[this.type]);return this.da||!1},composedPath:function(){this.pa||(this.pa=Sa(this.__target,this.composed));return this.pa},get target(){return fc(this.currentTarget,this.composedPath())},get relatedTarget(){if(!this.qa)return null;this.ra||(this.ra=Sa(this.qa,!0));return fc(this.currentTarget,this.ra)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);
|
||||
this.ea=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.ea=this.Ka=!0}},Ua={focus:!0,blur:!0},Md=Ta(window.Event),Nd=Ta(window.CustomEvent),Od=Ta(window.MouseEvent),Bb={};l.prototype=Object.create(DocumentFragment.prototype);l.prototype.B=function(a,b){this.Ma="ShadyRoot";ea(a);ea(this);this.host=a;this.I=b&&b.mode;a.__shady=a.__shady||{};a.__shady.root=this;a.__shady.gb="closed"!==this.I?this:null;this.O=!1;this.b=[];this.a=null;b=O(a);for(var c=0,
|
||||
d=b.length;c<d;c++)W.call(a,b[c])};l.prototype.J=function(){var a=this;this.O||(this.O=!0,Gb(function(){return a.ua()}))};l.prototype.A=function(){for(var a=this,b=this;b;)b.O&&(a=b),b=b.Ua();return a};l.prototype.Ua=function(){var a=this.host.getRootNode();if(E(a))for(var b=this.host.childNodes,c=0,d;c<b.length;c++)if(d=b[c],this.h(d))return a};l.prototype.ua=function(){this.O&&this.A()._renderRoot()};l.prototype._renderRoot=function(){this.O=!1;this.s();this.m()};l.prototype.s=function(){for(var a=
|
||||
0,b;a<this.b.length;a++)b=this.b[a],this.l(b);for(b=this.host.firstChild;b;b=b.nextSibling)this.f(b);for(a=0;a<this.b.length;a++){b=this.b[a];if(!b.__shady.assignedNodes.length)for(var c=b.firstChild;c;c=c.nextSibling)this.f(c,b);c=b.parentNode;(c=c.__shady&&c.__shady.root)&&c.sa()&&c._renderRoot();this.c(b.__shady.P,b.__shady.assignedNodes);if(c=b.__shady.ta){for(var d=0;d<c.length;d++)c[d].__shady.ha=null;b.__shady.ta=null;c.length>b.__shady.assignedNodes.length&&(b.__shady.ia=!0)}b.__shady.ia&&
|
||||
(b.__shady.ia=!1,this.g(b))}};l.prototype.f=function(a,b){a.__shady=a.__shady||{};var c=a.__shady.ha;a.__shady.ha=null;b||(b=(b=this.a[a.slot||"__catchall"])&&b[0]);b?(b.__shady.assignedNodes.push(a),a.__shady.assignedSlot=b):a.__shady.assignedSlot=void 0;c!==a.__shady.assignedSlot&&a.__shady.assignedSlot&&(a.__shady.assignedSlot.__shady.ia=!0)};l.prototype.l=function(a){var b=a.__shady.assignedNodes;a.__shady.assignedNodes=[];a.__shady.P=[];if(a.__shady.ta=b)for(var c=0;c<b.length;c++){var d=b[c];
|
||||
d.__shady.ha=d.__shady.assignedSlot;d.__shady.assignedSlot===a&&(d.__shady.assignedSlot=null)}};l.prototype.c=function(a,b){for(var c=0,d;c<b.length&&(d=b[c]);c++)"slot"==d.localName?this.c(a,d.__shady.assignedNodes):a.push(b[c])};l.prototype.g=function(a){cb.call(a,new Event("slotchange"));a.__shady.assignedSlot&&this.g(a.__shady.assignedSlot)};l.prototype.m=function(){for(var a=this.b,b=[],c=0;c<a.length;c++){var d=a[c].parentNode;d.__shady&&d.__shady.root||!(0>b.indexOf(d))||b.push(d)}for(a=0;a<
|
||||
b.length;a++)c=b[a],this.G(c===this?this.host:c,this.o(c))};l.prototype.o=function(a){var b=[];a=a.childNodes;for(var c=0;c<a.length;c++){var d=a[c];if(this.h(d)){d=d.__shady.P;for(var e=0;e<d.length;e++)b.push(d[e])}else b.push(d)}return b};l.prototype.h=function(a){return"slot"==a.localName};l.prototype.G=function(a,b){for(var c=O(a),d=wd(b,b.length,c,c.length),e=0,f=0,g;e<d.length&&(g=d[e]);e++){for(var h=0,k;h<g.T.length&&(k=g.T[h]);h++)Q(k)===a&&W.call(a,k),c.splice(g.index+f,1);f-=g.W}for(e=
|
||||
0;e<d.length&&(g=d[e]);e++)for(f=c[g.index],h=g.index;h<g.index+g.W;h++)k=b[h],Qa.call(a,k,f),c.splice(h,0,k)};l.prototype.Qa=function(a){this.a=this.a||{};this.b=this.b||[];for(var b=0;b<a.length;b++){var c=a[b];c.__shady=c.__shady||{};ea(c);ea(c.parentNode);var d=this.i(c);if(this.a[d]){var e=e||{};e[d]=!0;this.a[d].push(c)}else this.a[d]=[c];this.b.push(c)}if(e)for(var f in e)this.a[f]=this.j(this.a[f])};l.prototype.i=function(a){var b=a.name||a.getAttribute("name")||"__catchall";return a.Oa=b};
|
||||
l.prototype.j=function(a){return a.sort(function(a,c){a=qc(a);for(var b=qc(c),e=0;e<a.length;e++){c=a[e];var f=b[e];if(c!==f)return a=Array.from(c.parentNode.childNodes),a.indexOf(c)-a.indexOf(f)}})};l.prototype.Ta=function(a){this.a=this.a||{};this.b=this.b||[];var b=this.a,c;for(c in b)for(var d=b[c],e=0;e<d.length;e++){var f=d[e],g;a:{for(g=f;g;){if(g==a){g=!0;break a}g=g.parentNode}g=void 0}if(g){d.splice(e,1);var h=this.b.indexOf(f);0<=h&&this.b.splice(h,1);e--;this.F(f);h=!0}}return h};l.prototype.Va=
|
||||
function(a){var b=a.Oa,c=this.i(a);if(c!==b){b=this.a[b];var d=b.indexOf(a);0<=d&&b.splice(d,1);b=this.a[c]||(this.a[c]=[]);b.push(a);1<b.length&&(this.a[c]=this.j(b))}};l.prototype.F=function(a){if(a=a.__shady.P)for(var b=0;b<a.length;b++){var c=a[b],d=Q(c);d&&W.call(d,c)}};l.prototype.sa=function(){return!!this.b.length};l.prototype.addEventListener=function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.fa=this;this.host.addEventListener(a,b,c)};l.prototype.removeEventListener=function(a,b,c){"object"!==
|
||||
typeof c&&(c={capture:!!c});c.fa=this;this.host.removeEventListener(a,b,c)};l.prototype.getElementById=function(a){return ia(this,function(b){return b.id==a},function(a){return!!a})[0]||null};(function(a){H(a,La,!0);H(a,Ma,!0)})(l.prototype);var Ad={addEventListener:ic.bind(window),removeEventListener:mc.bind(window)},zd={addEventListener:ic,removeEventListener:mc,appendChild:function(a){return Na(this,a)},insertBefore:function(a,b){return Na(this,a,b)},removeChild:function(a){return Oa(this,a)},
|
||||
replaceChild:function(a,b){Na(this,a,b);Oa(this,b);return a},cloneNode:function(a){if("template"==this.localName)var b=bb.call(this,a);else if(b=bb.call(this,!1),a){a=this.childNodes;for(var c=0,d;c<a.length;c++)d=a[c].cloneNode(!0),b.appendChild(d)}return b},getRootNode:function(){return $b(this)},get isConnected(){var a=this.ownerDocument;if(a&&a.contains&&a.contains(this)||(a=a.documentElement)&&a.contains&&a.contains(this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.parentNode||(a instanceof
|
||||
[],b=0,c=this.childNodes,d;d=c[b];b++)d.nodeType!==Node.COMMENT_NODE&&a.push(d.textContent);return a.join("")}return Sb(this)},set:function(a){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);(0<a.length||this.nodeType===Node.ELEMENT_NODE)&&this.appendChild(document.createTextNode(a));break;default:this.nodeValue=a}},configurable:!0},firstElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var a=
|
||||
this.firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return Mb(this)},configurable:!0},lastElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.lastChild){for(var a=this.lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return Nb(this)},configurable:!0},children:{get:function(){var a;P(this)?a=Array.prototype.filter.call(this.childNodes,function(a){return a.nodeType===Node.ELEMENT_NODE}):a=Qb(this);a.item=function(b){return a[b]};return a},
|
||||
configurable:!0},innerHTML:{get:function(){var a="template"===this.localName?this.content:this;return P(this)?Ka(a):Rb(a)},set:function(a){for(var b="template"===this.localName?this.content:this;b.firstChild;)b.removeChild(b.firstChild);for(db&&db.set?db.set.call(na,a):na.innerHTML=a;na.firstChild;)b.appendChild(na.firstChild)},configurable:!0}},Hc={shadowRoot:{get:function(){return this.__shady&&this.__shady.gb||null},configurable:!0}},Ma={activeElement:{get:function(){var a=eb&&eb.get?eb.get.call(document):
|
||||
B.R?void 0:document.activeElement;if(a&&a.nodeType){var b=!!E(this);if(this===document||b&&this.host!==a&&this.host.contains(a)){for(b=U(a);b&&b!==this;)a=b.host,b=U(a);a=this===document?b?null:a:b===this?a:null}else a=null}else a=null;return a},set:function(){},configurable:!0}},Db=B.R?function(){}:function(a){a.__shady&&a.__shady.Na||(a.__shady=a.__shady||{},a.__shady.Na=!0,H(a,Tb,!0))},Cb=B.R?function(){}:function(a){a.__shady&&a.__shady.La||(a.__shady=a.__shady||{},a.__shady.La=!0,H(a,La,!0),
|
||||
H(a,Hc,!0))},ja=null,Ld={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,
|
||||
dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},pc={get composed(){!1!==this.isTrusted&&void 0===this.da&&(this.da=Ld[this.type]);return this.da||!1},composedPath:function(){this.pa||(this.pa=Sa(this.__target,this.composed));return this.pa},get target(){return fc(this.currentTarget,this.composedPath())},get relatedTarget(){if(!this.qa)return null;this.ra||(this.ra=Sa(this.qa,!0));return fc(this.currentTarget,this.ra)},
|
||||
stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.ea=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.ea=this.Ka=!0}},Ua={focus:!0,blur:!0},Md=Ta(window.Event),Nd=Ta(window.CustomEvent),Od=Ta(window.MouseEvent),Bb={};l.prototype=Object.create(DocumentFragment.prototype);l.prototype.B=function(a,b){this.Ma="ShadyRoot";ea(a);ea(this);this.host=a;this.I=b&&b.mode;a.__shady=a.__shady||{};a.__shady.root=this;a.__shady.gb="closed"!==
|
||||
this.I?this:null;this.O=!1;this.b=[];this.a=null;b=O(a);for(var c=0,d=b.length;c<d;c++)W.call(a,b[c])};l.prototype.J=function(){var a=this;this.O||(this.O=!0,Gb(function(){return a.ua()}))};l.prototype.A=function(){for(var a=this,b=this;b;)b.O&&(a=b),b=b.Ua();return a};l.prototype.Ua=function(){var a=this.host.getRootNode();if(E(a))for(var b=this.host.childNodes,c=0,d;c<b.length;c++)if(d=b[c],this.h(d))return a};l.prototype.ua=function(){this.O&&this.A()._renderRoot()};l.prototype._renderRoot=function(){this.O=
|
||||
!1;this.s();this.m()};l.prototype.s=function(){for(var a=0,b;a<this.b.length;a++)b=this.b[a],this.l(b);for(b=this.host.firstChild;b;b=b.nextSibling)this.f(b);for(a=0;a<this.b.length;a++){b=this.b[a];if(!b.__shady.assignedNodes.length)for(var c=b.firstChild;c;c=c.nextSibling)this.f(c,b);c=b.parentNode;(c=c.__shady&&c.__shady.root)&&c.sa()&&c._renderRoot();this.c(b.__shady.P,b.__shady.assignedNodes);if(c=b.__shady.ta){for(var d=0;d<c.length;d++)c[d].__shady.ha=null;b.__shady.ta=null;c.length>b.__shady.assignedNodes.length&&
|
||||
(b.__shady.ia=!0)}b.__shady.ia&&(b.__shady.ia=!1,this.g(b))}};l.prototype.f=function(a,b){a.__shady=a.__shady||{};var c=a.__shady.ha;a.__shady.ha=null;b||(b=(b=this.a[a.slot||"__catchall"])&&b[0]);b?(b.__shady.assignedNodes.push(a),a.__shady.assignedSlot=b):a.__shady.assignedSlot=void 0;c!==a.__shady.assignedSlot&&a.__shady.assignedSlot&&(a.__shady.assignedSlot.__shady.ia=!0)};l.prototype.l=function(a){var b=a.__shady.assignedNodes;a.__shady.assignedNodes=[];a.__shady.P=[];if(a.__shady.ta=b)for(var c=
|
||||
0;c<b.length;c++){var d=b[c];d.__shady.ha=d.__shady.assignedSlot;d.__shady.assignedSlot===a&&(d.__shady.assignedSlot=null)}};l.prototype.c=function(a,b){for(var c=0,d;c<b.length&&(d=b[c]);c++)"slot"==d.localName?this.c(a,d.__shady.assignedNodes):a.push(b[c])};l.prototype.g=function(a){cb.call(a,new Event("slotchange"));a.__shady.assignedSlot&&this.g(a.__shady.assignedSlot)};l.prototype.m=function(){for(var a=this.b,b=[],c=0;c<a.length;c++){var d=a[c].parentNode;d.__shady&&d.__shady.root||!(0>b.indexOf(d))||
|
||||
b.push(d)}for(a=0;a<b.length;a++)c=b[a],this.G(c===this?this.host:c,this.o(c))};l.prototype.o=function(a){var b=[];a=a.childNodes;for(var c=0;c<a.length;c++){var d=a[c];if(this.h(d)){d=d.__shady.P;for(var e=0;e<d.length;e++)b.push(d[e])}else b.push(d)}return b};l.prototype.h=function(a){return"slot"==a.localName};l.prototype.G=function(a,b){for(var c=O(a),d=wd(b,b.length,c,c.length),e=0,f=0,g;e<d.length&&(g=d[e]);e++){for(var h=0,k;h<g.T.length&&(k=g.T[h]);h++)Q(k)===a&&W.call(a,k),c.splice(g.index+
|
||||
f,1);f-=g.W}for(e=0;e<d.length&&(g=d[e]);e++)for(f=c[g.index],h=g.index;h<g.index+g.W;h++)k=b[h],Qa.call(a,k,f),c.splice(h,0,k)};l.prototype.Qa=function(a){this.a=this.a||{};this.b=this.b||[];for(var b=0;b<a.length;b++){var c=a[b];c.__shady=c.__shady||{};ea(c);ea(c.parentNode);var d=this.i(c);if(this.a[d]){var e=e||{};e[d]=!0;this.a[d].push(c)}else this.a[d]=[c];this.b.push(c)}if(e)for(var f in e)this.a[f]=this.j(this.a[f])};l.prototype.i=function(a){var b=a.name||a.getAttribute("name")||"__catchall";
|
||||
return a.Oa=b};l.prototype.j=function(a){return a.sort(function(a,c){a=qc(a);for(var b=qc(c),e=0;e<a.length;e++){c=a[e];var f=b[e];if(c!==f)return a=Array.from(c.parentNode.childNodes),a.indexOf(c)-a.indexOf(f)}})};l.prototype.Ta=function(a){this.a=this.a||{};this.b=this.b||[];var b=this.a,c;for(c in b)for(var d=b[c],e=0;e<d.length;e++){var f=d[e],g;a:{for(g=f;g;){if(g==a){g=!0;break a}g=g.parentNode}g=void 0}if(g){d.splice(e,1);var h=this.b.indexOf(f);0<=h&&this.b.splice(h,1);e--;this.F(f);h=!0}}return h};
|
||||
l.prototype.Va=function(a){var b=a.Oa,c=this.i(a);if(c!==b){b=this.a[b];var d=b.indexOf(a);0<=d&&b.splice(d,1);b=this.a[c]||(this.a[c]=[]);b.push(a);1<b.length&&(this.a[c]=this.j(b))}};l.prototype.F=function(a){if(a=a.__shady.P)for(var b=0;b<a.length;b++){var c=a[b],d=Q(c);d&&W.call(d,c)}};l.prototype.sa=function(){return!!this.b.length};l.prototype.addEventListener=function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.fa=this;this.host.addEventListener(a,b,c)};l.prototype.removeEventListener=
|
||||
function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.fa=this;this.host.removeEventListener(a,b,c)};l.prototype.getElementById=function(a){return ia(this,function(b){return b.id==a},function(a){return!!a})[0]||null};(function(a){H(a,La,!0);H(a,Ma,!0)})(l.prototype);var Ad={addEventListener:ic.bind(window),removeEventListener:mc.bind(window)},zd={addEventListener:ic,removeEventListener:mc,appendChild:function(a){return Na(this,a)},insertBefore:function(a,b){return Na(this,a,b)},removeChild:function(a){return Oa(this,
|
||||
a)},replaceChild:function(a,b){Na(this,a,b);Oa(this,b);return a},cloneNode:function(a){if("template"==this.localName)var b=bb.call(this,a);else if(b=bb.call(this,!1),a){a=this.childNodes;for(var c=0,d;c<a.length;c++)d=a[c].cloneNode(!0),b.appendChild(d)}return b},getRootNode:function(){return $b(this)},get isConnected(){var a=this.ownerDocument;if(a&&a.contains&&a.contains(this)||(a=a.documentElement)&&a.contains&&a.contains(this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.parentNode||(a instanceof
|
||||
l?a.host:void 0);return!!(a&&a instanceof Document)},dispatchEvent:function(a){ha();return cb.call(this,a)}},Bd={get assignedSlot(){return rc(this)}},Va={querySelector:function(a){return ia(this,function(b){return Fc.call(b,a)},function(a){return!!a})[0]||null},querySelectorAll:function(a){return ia(this,function(b){return Fc.call(b,a)})}},uc={assignedNodes:function(a){if("slot"===this.localName)return bc(this),this.__shady?(a&&a.flatten?this.__shady.P:this.__shady.assignedNodes)||[]:[]}},sc=Ga({setAttribute:function(a,
|
||||
b){cc(this,a,b)},removeAttribute:function(a){Gc.call(this,a);Zb(this,a)},attachShadow:function(a){if(!this)throw"Must provide a host.";if(!a)throw"Not enough arguments.";return new l(Bb,this,a)},get slot(){return this.getAttribute("slot")},set slot(a){cc(this,"slot",a)},get assignedSlot(){return rc(this)}},Va,uc);Object.defineProperties(sc,Hc);var tc=Ga({importNode:function(a,b){return ec(a,b)},getElementById:function(a){return ia(this,function(b){return b.id==a},function(a){return!!a})[0]||null}},
|
||||
Va);Object.defineProperties(tc,{_activeElement:Ma.activeElement});var Pd=HTMLElement.prototype.blur,Cd=Ga({blur:function(){var a=this.__shady&&this.__shady.root;(a=a&&a.activeElement)?a.blur():Pd.call(this)}});B.ya&&(window.ShadyDOM={inUse:B.ya,patch:function(a){return a},isShadyRoot:E,enqueue:Gb,flush:ha,settings:B,filterMutations:pd,observeChildren:nd,unobserveChildren:md,nativeMethods:Jd,nativeTree:Kd},window.Event=Md,window.CustomEvent=Nd,window.MouseEvent=Od,vd(),yd(),window.ShadowRoot=l);var Dd=
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -62,7 +62,7 @@ var d=a.__shady.previousSibling;d&&d.__shady&&(d.__shady.nextSibling=a);(d=a.__s
|
||||
d!==a||void 0===d&&aa(c)!==a)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");}if(c===b)return b;b.parentNode&&jb(b.parentNode,b);d=ia(a);var e;if(e=d)a:{if(!b.__noInsertionPoint){var f;"slot"===b.localName?f=[b]:b.querySelectorAll&&(f=b.querySelectorAll("slot"));if(f&&f.length){e=f;break a}}e=void 0}f=e;d&&("slot"===a.localName||f)&&d.M();if(Z(a)){e=c;Zb(a);a.__shady=a.__shady||{};void 0!==a.__shady.firstChild&&
|
||||
(a.__shady.childNodes=null);if(b.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var g=b.childNodes,h=0;h<g.length;h++)yc(g[h],a,e);b.__shady=b.__shady||{};e=void 0!==b.__shady.firstChild?null:void 0;b.__shady.firstChild=b.__shady.lastChild=e;b.__shady.childNodes=e}else yc(b,a,e);if(kb(a)){a.__shady.root.M();var m=!0}else a.__shady.root&&(m=!0)}m||(m=H(a)?a.host:a,c?(c=zc(c),lb.call(m,b,c)):Ac.call(m,b));Bc(a,b);f&&d.$a(f);return b}function jb(a,b){if(b.parentNode!==a)throw Error("The node to be removed is not a child of this node: "+
|
||||
b);var c=ia(b);if(Z(a)){b.__shady=b.__shady||{};a.__shady=a.__shady||{};b===a.__shady.firstChild&&(a.__shady.firstChild=b.__shady.nextSibling);b===a.__shady.lastChild&&(a.__shady.lastChild=b.__shady.previousSibling);var d=b.__shady.previousSibling;var e=b.__shady.nextSibling;d&&(d.__shady=d.__shady||{},d.__shady.nextSibling=e);e&&(e.__shady=e.__shady||{},e.__shady.previousSibling=d);b.__shady.parentNode=b.__shady.previousSibling=b.__shady.nextSibling=void 0;void 0!==a.__shady.childNodes&&(a.__shady.childNodes=
|
||||
null);if(kb(a)){a.__shady.root.M();var f=!0}}Cc(b);c&&((e=a&&"slot"===a.localName)&&(f=!0),((d=c.gb(b))||e)&&c.M());f||(f=H(a)?a.host:a,(!a.__shady.root&&"slot"!==b.localName||f===aa(b))&&ka.call(f,b));Bc(a,null,b);return b}function Cc(a){if(a.__shady&&void 0!==a.__shady.ta)for(var b=a.childNodes,c=0,d=b.length,e;c<d&&(e=b[c]);c++)Cc(e);a.__shady&&(a.__shady.ta=void 0)}function zc(a){var b=a;a&&"slot"===a.localName&&(b=(b=a.__shady.V)&&b.length?b[0]:zc(a.nextSibling));return b}function kb(a){return(a=
|
||||
null);if(kb(a)){a.__shady.root.M();var f=!0}}Cc(b);c&&((e=a&&"slot"===a.localName)&&(f=!0),((d=c.gb(b))||e)&&c.M());f||(f=H(a)?a.host:a,(!a.__shady.root&&"slot"!==b.localName||f===aa(b))&&ka.call(f,b));Bc(a,null,b);return b}function Cc(a){if(a.__shady&&void 0!==a.__shady.ta)for(var b=a.childNodes,c=0,d=b.length,e;c<d&&(e=b[c]);c++)Cc(e);a.__shady&&(a.__shady.ta=void 0)}function zc(a){var b=a;a&&"slot"===a.localName&&(b=(b=a.__shady&&a.__shady.V)&&b.length?b[0]:zc(a.nextSibling));return b}function kb(a){return(a=
|
||||
a&&a.__shady&&a.__shady.root)&&a.Ba()}function Dc(a,b){"slot"===b?(a=a.parentNode,kb(a)&&a.__shady.root.M()):"slot"===a.localName&&"name"===b&&(b=ia(a))&&(b.ib(a),b.M())}function Bc(a,b,c){if(a=a.__shady&&a.__shady.X)b&&a.addedNodes.push(b),c&&a.removedNodes.push(c),a.vb()}function Ec(a){if(a&&a.nodeType){a.__shady=a.__shady||{};var b=a.__shady.ta;void 0===b&&(H(a)?b=a:b=(b=a.parentNode)?Ec(b):a,document.documentElement.contains(a)&&(a.__shady.ta=b));return b}}function va(a,b,c){var d=[];Fc(a.childNodes,
|
||||
b,c,d);return d}function Fc(a,b,c,d){for(var e=0,f=a.length,g;e<f&&(g=a[e]);e++){var h;if(h=g.nodeType===Node.ELEMENT_NODE){h=g;var m=b,L=c,k=d,l=m(h);l&&k.push(h);L&&L(l)?h=l:(Fc(h.childNodes,m,L,k),h=void 0)}if(h)break}}function Gc(a){a=a.getRootNode();H(a)&&a.Ea()}function Hc(a,b,c){wa||(wa=window.ShadyCSS&&window.ShadyCSS.ScopingShim);wa&&"class"===b?wa.setElementClass(a,c):(Ic.call(a,b,c),Dc(a,b))}function Jc(a,b){if(a.ownerDocument!==document)return mb.call(document,a,b);var c=mb.call(document,
|
||||
a,!1);if(b){a=a.childNodes;b=0;for(var d;b<a.length;b++)d=Jc(a[b],!0),c.appendChild(d)}return c}function nb(a,b){var c=[],d=a;for(a=a===window?window:a.getRootNode();d;)c.push(d),d=d.assignedSlot?d.assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d.host:d.parentNode;c[c.length-1]===document&&c.push(window);return c}function Kc(a,b){if(!H)return a;a=nb(a,!0);for(var c=0,d,e,f,g;c<b.length;c++)if(d=b[c],f=d===window?window:d.getRootNode(),f!==e&&(g=a.indexOf(f),e=f),!H(f)||
|
||||
@@ -123,30 +123,30 @@ removeEventListener:Tc,Ib:Pc,Jb:Sc,dispatchEvent:zb,querySelector:Element.protot
|
||||
return void 0!==a?a:nc(this)},configurable:!0},className:{get:function(){return this.getAttribute("class")||""},set:function(a){this.setAttribute("class",a)},configurable:!0},nextElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.nextSibling){for(var a=this.nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return tc(this)},configurable:!0},previousElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.previousSibling){for(var a=this.previousSibling;a&&
|
||||
a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return sc(this)},configurable:!0}},gb={childNodes:{get:function(){if(Z(this)){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var a=this.firstChild;a;a=a.nextSibling)this.__shady.childNodes.push(a)}var b=this.__shady.childNodes}else b=U(this);b.item=function(a){return b[a]};return b},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var a=this.__shady&&
|
||||
this.__shady.firstChild;return void 0!==a?a:Ra(this)},configurable:!0},lastChild:{get:function(){var a=this.__shady&&this.__shady.lastChild;return void 0!==a?a:Sa(this)},configurable:!0},textContent:{get:function(){if(Z(this)){for(var a=[],b=0,c=this.childNodes,d;d=c[b];b++)d.nodeType!==Node.COMMENT_NODE&&a.push(d.textContent);return a.join("")}return wc(this)},set:function(a){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);
|
||||
this.appendChild(document.createTextNode(a));break;default:this.nodeValue=a}},configurable:!0},firstElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var a=this.firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return qc(this)},configurable:!0},lastElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.lastChild){for(var a=this.lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return rc(this)},configurable:!0},
|
||||
children:{get:function(){var a;Z(this)?a=Array.prototype.filter.call(this.childNodes,function(a){return a.nodeType===Node.ELEMENT_NODE}):a=uc(this);a.item=function(b){return a[b]};return a},configurable:!0},innerHTML:{get:function(){var a="template"===this.localName?this.content:this;return Z(this)?fb(a):vc(a)},set:function(a){for(var b="template"===this.localName?this.content:this;b.firstChild;)b.removeChild(b.firstChild);for(Ab&&Ab.set?Ab.set.call(Ba,a):Ba.innerHTML=a;Ba.firstChild;)b.appendChild(Ba.firstChild)},
|
||||
configurable:!0}},rd={shadowRoot:{get:function(){return this.__shady&&this.__shady.tb||null},configurable:!0}},hb={activeElement:{get:function(){var a=Bb&&Bb.get?Bb.get.call(document):D.W?void 0:document.activeElement;if(a&&a.nodeType){var b=!!H(this);if(this===document||b&&this.host!==a&&this.host.contains(a)){for(b=ia(a);b&&b!==this;)a=b.host,b=ia(a);a=this===document?b?null:a:b===this?a:null}else a=null}else a=null;return a},set:function(){},configurable:!0}},$b=D.W?function(){}:function(a){a.__shady&&
|
||||
a.__shady.Xa||(a.__shady=a.__shady||{},a.__shady.Xa=!0,M(a,xc,!0))},Zb=D.W?function(){}:function(a){a.__shady&&a.__shady.Va||(a.__shady=a.__shady||{},a.__shady.Va=!0,M(a,gb,!0),M(a,rd,!0))},wa=null,Je={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,
|
||||
touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},Uc={get composed(){!1!==this.isTrusted&&void 0===this.ja&&(this.ja=Je[this.type]);return this.ja||!1},composedPath:function(){this.ya||(this.ya=nb(this.__target,this.composed));return this.ya},
|
||||
get target(){return Kc(this.currentTarget,this.composedPath())},get relatedTarget(){if(!this.za)return null;this.Aa||(this.Aa=nb(this.za,!0));return Kc(this.currentTarget,this.Aa)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.ka=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.ka=this.Ua=!0}},pb={focus:!0,blur:!0},Ke=ob(window.Event),Le=ob(window.CustomEvent),Me=ob(window.MouseEvent),Yb={};l.prototype=Object.create(DocumentFragment.prototype);
|
||||
l.prototype.D=function(a,b){this.Wa="ShadyRoot";ra(a);ra(this);this.host=a;this.L=b&&b.mode;a.__shady=a.__shady||{};a.__shady.root=this;a.__shady.tb="closed"!==this.L?this:null;this.T=!1;this.b=[];this.a=null;b=U(a);for(var c=0,d=b.length;c<d;c++)ka.call(a,b[c])};l.prototype.M=function(){var a=this;this.T||(this.T=!0,kc(function(){return a.Ea()}))};l.prototype.C=function(){for(var a=this,b=this;b;)b.T&&(a=b),b=b.hb();return a};l.prototype.hb=function(){var a=this.host.getRootNode();if(H(a))for(var b=
|
||||
this.host.childNodes,c=0,d;c<b.length;c++)if(d=b[c],this.h(d))return a};l.prototype.Ea=function(){this.T&&this.C()._renderRoot()};l.prototype._renderRoot=function(){this.T=!1;this.v();this.s()};l.prototype.v=function(){for(var a=0,b;a<this.b.length;a++)b=this.b[a],this.l(b);for(b=this.host.firstChild;b;b=b.nextSibling)this.f(b);for(a=0;a<this.b.length;a++){b=this.b[a];if(!b.__shady.assignedNodes.length)for(var c=b.firstChild;c;c=c.nextSibling)this.f(c,b);c=b.parentNode;(c=c.__shady&&c.__shady.root)&&
|
||||
c.Ba()&&c._renderRoot();this.c(b.__shady.V,b.__shady.assignedNodes);if(c=b.__shady.Da){for(var d=0;d<c.length;d++)c[d].__shady.na=null;b.__shady.Da=null;c.length>b.__shady.assignedNodes.length&&(b.__shady.qa=!0)}b.__shady.qa&&(b.__shady.qa=!1,this.g(b))}};l.prototype.f=function(a,b){a.__shady=a.__shady||{};var c=a.__shady.na;a.__shady.na=null;b||(b=(b=this.a[a.slot||"__catchall"])&&b[0]);b?(b.__shady.assignedNodes.push(a),a.__shady.assignedSlot=b):a.__shady.assignedSlot=void 0;c!==a.__shady.assignedSlot&&
|
||||
a.__shady.assignedSlot&&(a.__shady.assignedSlot.__shady.qa=!0)};l.prototype.l=function(a){var b=a.__shady.assignedNodes;a.__shady.assignedNodes=[];a.__shady.V=[];if(a.__shady.Da=b)for(var c=0;c<b.length;c++){var d=b[c];d.__shady.na=d.__shady.assignedSlot;d.__shady.assignedSlot===a&&(d.__shady.assignedSlot=null)}};l.prototype.c=function(a,b){for(var c=0,d;c<b.length&&(d=b[c]);c++)"slot"==d.localName?this.c(a,d.__shady.assignedNodes):a.push(b[c])};l.prototype.g=function(a){zb.call(a,new Event("slotchange"));
|
||||
a.__shady.assignedSlot&&this.g(a.__shady.assignedSlot)};l.prototype.s=function(){for(var a=this.b,b=[],c=0;c<a.length;c++){var d=a[c].parentNode;d.__shady&&d.__shady.root||!(0>b.indexOf(d))||b.push(d)}for(a=0;a<b.length;a++)c=b[a],this.I(c===this?this.host:c,this.u(c))};l.prototype.u=function(a){var b=[];a=a.childNodes;for(var c=0;c<a.length;c++){var d=a[c];if(this.h(d)){d=d.__shady.V;for(var e=0;e<d.length;e++)b.push(d[e])}else b.push(d)}return b};l.prototype.h=function(a){return"slot"==a.localName};
|
||||
l.prototype.I=function(a,b){for(var c=U(a),d=re(b,b.length,c,c.length),e=0,f=0,g;e<d.length&&(g=d[e]);e++){for(var h=0,k;h<g.Y.length&&(k=g.Y[h]);h++)aa(k)===a&&ka.call(a,k),c.splice(g.index+f,1);f-=g.ba}for(e=0;e<d.length&&(g=d[e]);e++)for(f=c[g.index],h=g.index;h<g.index+g.ba;h++)k=b[h],lb.call(a,k,f),c.splice(h,0,k)};l.prototype.$a=function(a){this.a=this.a||{};this.b=this.b||[];for(var b=0;b<a.length;b++){var c=a[b];c.__shady=c.__shady||{};ra(c);ra(c.parentNode);var d=this.i(c);if(this.a[d]){var e=
|
||||
e||{};e[d]=!0;this.a[d].push(c)}else this.a[d]=[c];this.b.push(c)}if(e)for(var f in e)this.a[f]=this.j(this.a[f])};l.prototype.i=function(a){var b=a.name||a.getAttribute("name")||"__catchall";return a.Ya=b};l.prototype.j=function(a){return a.sort(function(a,c){a=Vc(a);for(var b=Vc(c),e=0;e<a.length;e++){c=a[e];var f=b[e];if(c!==f)return a=Array.from(c.parentNode.childNodes),a.indexOf(c)-a.indexOf(f)}})};l.prototype.gb=function(a){this.a=this.a||{};this.b=this.b||[];var b=this.a,c;for(c in b)for(var d=
|
||||
b[c],e=0;e<d.length;e++){var f=d[e],g;a:{for(g=f;g;){if(g==a){g=!0;break a}g=g.parentNode}g=void 0}if(g){d.splice(e,1);var h=this.b.indexOf(f);0<=h&&this.b.splice(h,1);e--;this.H(f);h=!0}}return h};l.prototype.ib=function(a){var b=a.Ya,c=this.i(a);if(c!==b){b=this.a[b];var d=b.indexOf(a);0<=d&&b.splice(d,1);b=this.a[c]||(this.a[c]=[]);b.push(a);1<b.length&&(this.a[c]=this.j(b))}};l.prototype.H=function(a){if(a=a.__shady.V)for(var b=0;b<a.length;b++){var c=a[b],d=aa(c);d&&ka.call(d,c)}};l.prototype.Ba=
|
||||
function(){return!!this.b.length};l.prototype.addEventListener=function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.la=this;this.host.addEventListener(a,b,c)};l.prototype.removeEventListener=function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.la=this;this.host.removeEventListener(a,b,c)};l.prototype.getElementById=function(a){return va(this,function(b){return b.id==a},function(a){return!!a})[0]||null};(function(a){M(a,gb,!0);M(a,hb,!0)})(l.prototype);var ve={addEventListener:Nc.bind(window),
|
||||
removeEventListener:Rc.bind(window)},ue={addEventListener:Nc,removeEventListener:Rc,appendChild:function(a){return ib(this,a)},insertBefore:function(a,b){return ib(this,a,b)},removeChild:function(a){return jb(this,a)},replaceChild:function(a,b){ib(this,a,b);jb(this,b);return a},cloneNode:function(a){if("template"==this.localName)var b=yb.call(this,a);else if(b=yb.call(this,!1),a){a=this.childNodes;for(var c=0,d;c<a.length;c++)d=a[c].cloneNode(!0),b.appendChild(d)}return b},getRootNode:function(){return Ec(this)},
|
||||
get isConnected(){var a=this.ownerDocument;if(a&&a.contains&&a.contains(this)||(a=a.documentElement)&&a.contains&&a.contains(this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.parentNode||(a instanceof l?a.host:void 0);return!!(a&&a instanceof Document)},dispatchEvent:function(a){ua();return zb.call(this,a)}},we={get assignedSlot(){return Wc(this)}},qb={querySelector:function(a){return va(this,function(b){return pd.call(b,a)},function(a){return!!a})[0]||null},querySelectorAll:function(a){return va(this,
|
||||
function(b){return pd.call(b,a)})}},Zc={assignedNodes:function(a){if("slot"===this.localName)return Gc(this),this.__shady?(a&&a.flatten?this.__shady.V:this.__shady.assignedNodes)||[]:[]}},Xc=bb({setAttribute:function(a,b){Hc(this,a,b)},removeAttribute:function(a){qd.call(this,a);Dc(this,a)},attachShadow:function(a){if(!this)throw"Must provide a host.";if(!a)throw"Not enough arguments.";return new l(Yb,this,a)},get slot(){return this.getAttribute("slot")},set slot(a){Hc(this,"slot",a)},get assignedSlot(){return Wc(this)}},
|
||||
qb,Zc);Object.defineProperties(Xc,rd);var Yc=bb({importNode:function(a,b){return Jc(a,b)},getElementById:function(a){return va(this,function(b){return b.id==a},function(a){return!!a})[0]||null}},qb);Object.defineProperties(Yc,{_activeElement:hb.activeElement});var Ne=HTMLElement.prototype.blur,xe=bb({blur:function(){var a=this.__shady&&this.__shady.root;(a=a&&a.activeElement)?a.blur():Ne.call(this)}});D.Ia&&(window.ShadyDOM={inUse:D.Ia,patch:function(a){return a},isShadyRoot:H,enqueue:kc,flush:ua,
|
||||
settings:D,filterMutations:ke,observeChildren:Yd,unobserveChildren:Xd,nativeMethods:He,nativeTree:Ie},window.Event=Ke,window.CustomEvent=Le,window.MouseEvent=Me,qe(),te(),window.ShadowRoot=l);var ye=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));u.prototype.D=function(a,b){this.s.set(a,b);this.l.set(b.constructor,b)};u.prototype.f=function(a){return this.s.get(a)};u.prototype.C=function(a){return this.l.get(a)};
|
||||
u.prototype.u=function(a){this.h=!0;this.i.push(a)};u.prototype.j=function(a){var b=this;this.h&&P(a,function(a){return b.g(a)})};u.prototype.g=function(a){if(this.h&&!a.__CE_patched){a.__CE_patched=!0;for(var b=0;b<this.i.length;b++)this.i[b](a)}};u.prototype.b=function(a){var b=[];P(a,function(a){return b.push(a)});for(a=0;a<b.length;a++){var c=b[a];1===c.__CE_state?this.connectedCallback(c):this.v(c)}};u.prototype.a=function(a){var b=[];P(a,function(a){return b.push(a)});for(a=0;a<b.length;a++){var c=
|
||||
b[a];1===c.__CE_state&&this.disconnectedCallback(c)}};u.prototype.c=function(a,b){var c=this;b=b?b:new Set;var d=[];P(a,function(a){if("link"===a.localName&&"import"===a.getAttribute("rel")){var e=a.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0):a.addEventListener("load",function(){var d=a.import;d.__CE_documentLoadHandled||(d.__CE_documentLoadHandled=!0,d.__CE_isImportDocument=!0,d.__CE_hasRegistry=!0,b.delete(d),c.c(d,b))})}else d.push(a)},
|
||||
b);if(this.h)for(a=0;a<d.length;a++)this.g(d[a]);for(a=0;a<d.length;a++)this.v(d[a])};u.prototype.v=function(a){if(void 0===a.__CE_state){var b=this.f(a.localName);if(b){b.constructionStack.push(a);var c=b.constructor;try{try{if(new c!==a)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{b.constructionStack.pop()}}catch(f){throw a.__CE_state=2,f;}a.__CE_state=1;a.__CE_definition=b;if(b.attributeChangedCallback)for(b=b.observedAttributes,c=0;c<b.length;c++){var d=
|
||||
b[c],e=a.getAttribute(d);null!==e&&this.attributeChangedCallback(a,d,null,e,null)}n(a)&&this.connectedCallback(a)}}};u.prototype.connectedCallback=function(a){var b=a.__CE_definition;b.connectedCallback&&b.connectedCallback.call(a)};u.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a)};u.prototype.attributeChangedCallback=function(a,b,c,d,e){var f=a.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b)&&
|
||||
(0<a.length||this.nodeType===Node.ELEMENT_NODE)&&this.appendChild(document.createTextNode(a));break;default:this.nodeValue=a}},configurable:!0},firstElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var a=this.firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return qc(this)},configurable:!0},lastElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.lastChild){for(var a=this.lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;
|
||||
return a}return rc(this)},configurable:!0},children:{get:function(){var a;Z(this)?a=Array.prototype.filter.call(this.childNodes,function(a){return a.nodeType===Node.ELEMENT_NODE}):a=uc(this);a.item=function(b){return a[b]};return a},configurable:!0},innerHTML:{get:function(){var a="template"===this.localName?this.content:this;return Z(this)?fb(a):vc(a)},set:function(a){for(var b="template"===this.localName?this.content:this;b.firstChild;)b.removeChild(b.firstChild);for(Ab&&Ab.set?Ab.set.call(Ba,a):
|
||||
Ba.innerHTML=a;Ba.firstChild;)b.appendChild(Ba.firstChild)},configurable:!0}},rd={shadowRoot:{get:function(){return this.__shady&&this.__shady.tb||null},configurable:!0}},hb={activeElement:{get:function(){var a=Bb&&Bb.get?Bb.get.call(document):D.W?void 0:document.activeElement;if(a&&a.nodeType){var b=!!H(this);if(this===document||b&&this.host!==a&&this.host.contains(a)){for(b=ia(a);b&&b!==this;)a=b.host,b=ia(a);a=this===document?b?null:a:b===this?a:null}else a=null}else a=null;return a},set:function(){},
|
||||
configurable:!0}},$b=D.W?function(){}:function(a){a.__shady&&a.__shady.Xa||(a.__shady=a.__shady||{},a.__shady.Xa=!0,M(a,xc,!0))},Zb=D.W?function(){}:function(a){a.__shady&&a.__shady.Va||(a.__shady=a.__shady||{},a.__shady.Va=!0,M(a,gb,!0),M(a,rd,!0))},wa=null,Je={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,
|
||||
compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},Uc={get composed(){!1!==this.isTrusted&&void 0===this.ja&&(this.ja=Je[this.type]);return this.ja||!1},composedPath:function(){this.ya||
|
||||
(this.ya=nb(this.__target,this.composed));return this.ya},get target(){return Kc(this.currentTarget,this.composedPath())},get relatedTarget(){if(!this.za)return null;this.Aa||(this.Aa=nb(this.za,!0));return Kc(this.currentTarget,this.Aa)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.ka=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.ka=this.Ua=!0}},pb={focus:!0,blur:!0},Ke=ob(window.Event),Le=ob(window.CustomEvent),Me=
|
||||
ob(window.MouseEvent),Yb={};l.prototype=Object.create(DocumentFragment.prototype);l.prototype.D=function(a,b){this.Wa="ShadyRoot";ra(a);ra(this);this.host=a;this.L=b&&b.mode;a.__shady=a.__shady||{};a.__shady.root=this;a.__shady.tb="closed"!==this.L?this:null;this.T=!1;this.b=[];this.a=null;b=U(a);for(var c=0,d=b.length;c<d;c++)ka.call(a,b[c])};l.prototype.M=function(){var a=this;this.T||(this.T=!0,kc(function(){return a.Ea()}))};l.prototype.C=function(){for(var a=this,b=this;b;)b.T&&(a=b),b=b.hb();
|
||||
return a};l.prototype.hb=function(){var a=this.host.getRootNode();if(H(a))for(var b=this.host.childNodes,c=0,d;c<b.length;c++)if(d=b[c],this.h(d))return a};l.prototype.Ea=function(){this.T&&this.C()._renderRoot()};l.prototype._renderRoot=function(){this.T=!1;this.v();this.s()};l.prototype.v=function(){for(var a=0,b;a<this.b.length;a++)b=this.b[a],this.l(b);for(b=this.host.firstChild;b;b=b.nextSibling)this.f(b);for(a=0;a<this.b.length;a++){b=this.b[a];if(!b.__shady.assignedNodes.length)for(var c=b.firstChild;c;c=
|
||||
c.nextSibling)this.f(c,b);c=b.parentNode;(c=c.__shady&&c.__shady.root)&&c.Ba()&&c._renderRoot();this.c(b.__shady.V,b.__shady.assignedNodes);if(c=b.__shady.Da){for(var d=0;d<c.length;d++)c[d].__shady.na=null;b.__shady.Da=null;c.length>b.__shady.assignedNodes.length&&(b.__shady.qa=!0)}b.__shady.qa&&(b.__shady.qa=!1,this.g(b))}};l.prototype.f=function(a,b){a.__shady=a.__shady||{};var c=a.__shady.na;a.__shady.na=null;b||(b=(b=this.a[a.slot||"__catchall"])&&b[0]);b?(b.__shady.assignedNodes.push(a),a.__shady.assignedSlot=
|
||||
b):a.__shady.assignedSlot=void 0;c!==a.__shady.assignedSlot&&a.__shady.assignedSlot&&(a.__shady.assignedSlot.__shady.qa=!0)};l.prototype.l=function(a){var b=a.__shady.assignedNodes;a.__shady.assignedNodes=[];a.__shady.V=[];if(a.__shady.Da=b)for(var c=0;c<b.length;c++){var d=b[c];d.__shady.na=d.__shady.assignedSlot;d.__shady.assignedSlot===a&&(d.__shady.assignedSlot=null)}};l.prototype.c=function(a,b){for(var c=0,d;c<b.length&&(d=b[c]);c++)"slot"==d.localName?this.c(a,d.__shady.assignedNodes):a.push(b[c])};
|
||||
l.prototype.g=function(a){zb.call(a,new Event("slotchange"));a.__shady.assignedSlot&&this.g(a.__shady.assignedSlot)};l.prototype.s=function(){for(var a=this.b,b=[],c=0;c<a.length;c++){var d=a[c].parentNode;d.__shady&&d.__shady.root||!(0>b.indexOf(d))||b.push(d)}for(a=0;a<b.length;a++)c=b[a],this.I(c===this?this.host:c,this.u(c))};l.prototype.u=function(a){var b=[];a=a.childNodes;for(var c=0;c<a.length;c++){var d=a[c];if(this.h(d)){d=d.__shady.V;for(var e=0;e<d.length;e++)b.push(d[e])}else b.push(d)}return b};
|
||||
l.prototype.h=function(a){return"slot"==a.localName};l.prototype.I=function(a,b){for(var c=U(a),d=re(b,b.length,c,c.length),e=0,f=0,g;e<d.length&&(g=d[e]);e++){for(var h=0,k;h<g.Y.length&&(k=g.Y[h]);h++)aa(k)===a&&ka.call(a,k),c.splice(g.index+f,1);f-=g.ba}for(e=0;e<d.length&&(g=d[e]);e++)for(f=c[g.index],h=g.index;h<g.index+g.ba;h++)k=b[h],lb.call(a,k,f),c.splice(h,0,k)};l.prototype.$a=function(a){this.a=this.a||{};this.b=this.b||[];for(var b=0;b<a.length;b++){var c=a[b];c.__shady=c.__shady||{};
|
||||
ra(c);ra(c.parentNode);var d=this.i(c);if(this.a[d]){var e=e||{};e[d]=!0;this.a[d].push(c)}else this.a[d]=[c];this.b.push(c)}if(e)for(var f in e)this.a[f]=this.j(this.a[f])};l.prototype.i=function(a){var b=a.name||a.getAttribute("name")||"__catchall";return a.Ya=b};l.prototype.j=function(a){return a.sort(function(a,c){a=Vc(a);for(var b=Vc(c),e=0;e<a.length;e++){c=a[e];var f=b[e];if(c!==f)return a=Array.from(c.parentNode.childNodes),a.indexOf(c)-a.indexOf(f)}})};l.prototype.gb=function(a){this.a=this.a||
|
||||
{};this.b=this.b||[];var b=this.a,c;for(c in b)for(var d=b[c],e=0;e<d.length;e++){var f=d[e],g;a:{for(g=f;g;){if(g==a){g=!0;break a}g=g.parentNode}g=void 0}if(g){d.splice(e,1);var h=this.b.indexOf(f);0<=h&&this.b.splice(h,1);e--;this.H(f);h=!0}}return h};l.prototype.ib=function(a){var b=a.Ya,c=this.i(a);if(c!==b){b=this.a[b];var d=b.indexOf(a);0<=d&&b.splice(d,1);b=this.a[c]||(this.a[c]=[]);b.push(a);1<b.length&&(this.a[c]=this.j(b))}};l.prototype.H=function(a){if(a=a.__shady.V)for(var b=0;b<a.length;b++){var c=
|
||||
a[b],d=aa(c);d&&ka.call(d,c)}};l.prototype.Ba=function(){return!!this.b.length};l.prototype.addEventListener=function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.la=this;this.host.addEventListener(a,b,c)};l.prototype.removeEventListener=function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.la=this;this.host.removeEventListener(a,b,c)};l.prototype.getElementById=function(a){return va(this,function(b){return b.id==a},function(a){return!!a})[0]||null};(function(a){M(a,gb,!0);M(a,hb,!0)})(l.prototype);
|
||||
var ve={addEventListener:Nc.bind(window),removeEventListener:Rc.bind(window)},ue={addEventListener:Nc,removeEventListener:Rc,appendChild:function(a){return ib(this,a)},insertBefore:function(a,b){return ib(this,a,b)},removeChild:function(a){return jb(this,a)},replaceChild:function(a,b){ib(this,a,b);jb(this,b);return a},cloneNode:function(a){if("template"==this.localName)var b=yb.call(this,a);else if(b=yb.call(this,!1),a){a=this.childNodes;for(var c=0,d;c<a.length;c++)d=a[c].cloneNode(!0),b.appendChild(d)}return b},
|
||||
getRootNode:function(){return Ec(this)},get isConnected(){var a=this.ownerDocument;if(a&&a.contains&&a.contains(this)||(a=a.documentElement)&&a.contains&&a.contains(this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.parentNode||(a instanceof l?a.host:void 0);return!!(a&&a instanceof Document)},dispatchEvent:function(a){ua();return zb.call(this,a)}},we={get assignedSlot(){return Wc(this)}},qb={querySelector:function(a){return va(this,function(b){return pd.call(b,a)},function(a){return!!a})[0]||
|
||||
null},querySelectorAll:function(a){return va(this,function(b){return pd.call(b,a)})}},Zc={assignedNodes:function(a){if("slot"===this.localName)return Gc(this),this.__shady?(a&&a.flatten?this.__shady.V:this.__shady.assignedNodes)||[]:[]}},Xc=bb({setAttribute:function(a,b){Hc(this,a,b)},removeAttribute:function(a){qd.call(this,a);Dc(this,a)},attachShadow:function(a){if(!this)throw"Must provide a host.";if(!a)throw"Not enough arguments.";return new l(Yb,this,a)},get slot(){return this.getAttribute("slot")},
|
||||
set slot(a){Hc(this,"slot",a)},get assignedSlot(){return Wc(this)}},qb,Zc);Object.defineProperties(Xc,rd);var Yc=bb({importNode:function(a,b){return Jc(a,b)},getElementById:function(a){return va(this,function(b){return b.id==a},function(a){return!!a})[0]||null}},qb);Object.defineProperties(Yc,{_activeElement:hb.activeElement});var Ne=HTMLElement.prototype.blur,xe=bb({blur:function(){var a=this.__shady&&this.__shady.root;(a=a&&a.activeElement)?a.blur():Ne.call(this)}});D.Ia&&(window.ShadyDOM={inUse:D.Ia,
|
||||
patch:function(a){return a},isShadyRoot:H,enqueue:kc,flush:ua,settings:D,filterMutations:ke,observeChildren:Yd,unobserveChildren:Xd,nativeMethods:He,nativeTree:Ie},window.Event=Ke,window.CustomEvent=Le,window.MouseEvent=Me,qe(),te(),window.ShadowRoot=l);var ye=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));u.prototype.D=function(a,b){this.s.set(a,b);this.l.set(b.constructor,b)};u.prototype.f=function(a){return this.s.get(a)};
|
||||
u.prototype.C=function(a){return this.l.get(a)};u.prototype.u=function(a){this.h=!0;this.i.push(a)};u.prototype.j=function(a){var b=this;this.h&&P(a,function(a){return b.g(a)})};u.prototype.g=function(a){if(this.h&&!a.__CE_patched){a.__CE_patched=!0;for(var b=0;b<this.i.length;b++)this.i[b](a)}};u.prototype.b=function(a){var b=[];P(a,function(a){return b.push(a)});for(a=0;a<b.length;a++){var c=b[a];1===c.__CE_state?this.connectedCallback(c):this.v(c)}};u.prototype.a=function(a){var b=[];P(a,function(a){return b.push(a)});
|
||||
for(a=0;a<b.length;a++){var c=b[a];1===c.__CE_state&&this.disconnectedCallback(c)}};u.prototype.c=function(a,b){var c=this;b=b?b:new Set;var d=[];P(a,function(a){if("link"===a.localName&&"import"===a.getAttribute("rel")){var e=a.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0):a.addEventListener("load",function(){var d=a.import;d.__CE_documentLoadHandled||(d.__CE_documentLoadHandled=!0,d.__CE_isImportDocument=!0,d.__CE_hasRegistry=!0,b.delete(d),
|
||||
c.c(d,b))})}else d.push(a)},b);if(this.h)for(a=0;a<d.length;a++)this.g(d[a]);for(a=0;a<d.length;a++)this.v(d[a])};u.prototype.v=function(a){if(void 0===a.__CE_state){var b=this.f(a.localName);if(b){b.constructionStack.push(a);var c=b.constructor;try{try{if(new c!==a)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{b.constructionStack.pop()}}catch(f){throw a.__CE_state=2,f;}a.__CE_state=1;a.__CE_definition=b;if(b.attributeChangedCallback)for(b=b.observedAttributes,
|
||||
c=0;c<b.length;c++){var d=b[c],e=a.getAttribute(d);null!==e&&this.attributeChangedCallback(a,d,null,e,null)}n(a)&&this.connectedCallback(a)}}};u.prototype.connectedCallback=function(a){var b=a.__CE_definition;b.connectedCallback&&b.connectedCallback.call(a)};u.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a)};u.prototype.attributeChangedCallback=function(a,b,c,d,e){var f=a.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b)&&
|
||||
f.attributeChangedCallback.call(a,b,c,d,e)};Qa.prototype.c=function(){this.N&&this.N.disconnect()};Qa.prototype.f=function(a){var b=this.a.readyState;"interactive"!==b&&"complete"!==b||this.c();for(b=0;b<a.length;b++)for(var c=a[b].addedNodes,d=0;d<c.length;d++)this.b.c(c[d])};Xb.prototype.resolve=function(a){if(this.a)throw Error("Already resolved.");this.a=a;this.b&&this.b(a)};z.prototype.define=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");
|
||||
if(!$c(a))throw new SyntaxError("The element name '"+a+"' is not valid.");if(this.a.f(a))throw Error("A custom element with name '"+a+"' has already been defined.");if(this.f)throw Error("A custom element is already being defined.");this.f=!0;try{var d=function(a){var b=e[a];if(void 0!==b&&!(b instanceof Function))throw Error("The '"+a+"' callback must be a function.");return b},e=b.prototype;if(!(e instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");
|
||||
var f=d("connectedCallback");var g=d("disconnectedCallback");var h=d("adoptedCallback");var k=d("attributeChangedCallback");var l=b.observedAttributes||[]}catch(bf){return}finally{this.f=!1}this.a.D(a,{localName:a,constructor:b,connectedCallback:f,disconnectedCallback:g,adoptedCallback:h,attributeChangedCallback:k,observedAttributes:l,constructionStack:[]});this.c.push(a);this.b||(this.b=!0,this.g(function(){return c.j()}))};z.prototype.j=function(){if(!1!==this.b)for(this.b=!1,this.a.c(document);0<
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -49,9 +49,9 @@ d);e&&e.configurable||!e&&c?Object.defineProperty(a,d,b[d]):c&&console.warn("Cou
|
||||
Ma(b.parentNode,b);d=U(a);var e;if(e=d)a:{if(!b.__noInsertionPoint){var f;"slot"===b.localName?f=[b]:b.querySelectorAll&&(f=b.querySelectorAll("slot"));if(f&&f.length){e=f;break a}}e=void 0}f=e;d&&("slot"===a.localName||f)&&d.J();if(P(a)){e=c;Ab(a);a.__shady=a.__shady||{};void 0!==a.__shady.firstChild&&(a.__shady.childNodes=null);if(b.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var g=b.childNodes,h=0;h<g.length;h++)Sb(g[h],a,e);b.__shady=b.__shady||{};e=void 0!==b.__shady.firstChild?null:void 0;b.__shady.firstChild=
|
||||
b.__shady.lastChild=e;b.__shady.childNodes=e}else Sb(b,a,e);if(Na(a)){a.__shady.root.J();var m=!0}else a.__shady.root&&(m=!0)}m||(m=E(a)?a.host:a,c?(c=Tb(c),Oa.call(m,b,c)):Ub.call(m,b));Vb(a,b);f&&d.Ja(f);return b}function Ma(a,b){if(b.parentNode!==a)throw Error("The node to be removed is not a child of this node: "+b);var c=U(b);if(P(a)){b.__shady=b.__shady||{};a.__shady=a.__shady||{};b===a.__shady.firstChild&&(a.__shady.firstChild=b.__shady.nextSibling);b===a.__shady.lastChild&&(a.__shady.lastChild=
|
||||
b.__shady.previousSibling);var d=b.__shady.previousSibling;var e=b.__shady.nextSibling;d&&(d.__shady=d.__shady||{},d.__shady.nextSibling=e);e&&(e.__shady=e.__shady||{},e.__shady.previousSibling=d);b.__shady.parentNode=b.__shady.previousSibling=b.__shady.nextSibling=void 0;void 0!==a.__shady.childNodes&&(a.__shady.childNodes=null);if(Na(a)){a.__shady.root.J();var f=!0}}Wb(b);c&&((e=a&&"slot"===a.localName)&&(f=!0),((d=c.Ma(b))||e)&&c.J());f||(f=E(a)?a.host:a,(!a.__shady.root&&"slot"!==b.localName||
|
||||
f===Q(b))&&W.call(f,b));Vb(a,null,b);return b}function Wb(a){if(a.__shady&&void 0!==a.__shady.ja)for(var b=a.childNodes,c=0,d=b.length,e;c<d&&(e=b[c]);c++)Wb(e);a.__shady&&(a.__shady.ja=void 0)}function Tb(a){var b=a;a&&"slot"===a.localName&&(b=(b=a.__shady.P)&&b.length?b[0]:Tb(a.nextSibling));return b}function Na(a){return(a=a&&a.__shady&&a.__shady.root)&&a.oa()}function Xb(a,b){"slot"===b?(a=a.parentNode,Na(a)&&a.__shady.root.J()):"slot"===a.localName&&"name"===b&&(b=U(a))&&(b.Oa(a),b.J())}function Vb(a,
|
||||
b,c){if(a=a.__shady&&a.__shady.S)b&&a.addedNodes.push(b),c&&a.removedNodes.push(c),a.$a()}function Yb(a){if(a&&a.nodeType){a.__shady=a.__shady||{};var b=a.__shady.ja;void 0===b&&(E(a)?b=a:b=(b=a.parentNode)?Yb(b):a,document.documentElement.contains(a)&&(a.__shady.ja=b));return b}}function ia(a,b,c){var d=[];Zb(a.childNodes,b,c,d);return d}function Zb(a,b,c,d){for(var e=0,f=a.length,g;e<f&&(g=a[e]);e++){var h;if(h=g.nodeType===Node.ELEMENT_NODE){h=g;var m=b,k=c,l=d,n=m(h);n&&l.push(h);k&&k(n)?h=n:
|
||||
(Zb(h.childNodes,m,k,l),h=void 0)}if(h)break}}function $b(a){a=a.getRootNode();E(a)&&a.qa()}function ac(a,b,c){ja||(ja=window.ShadyCSS&&window.ShadyCSS.ScopingShim);ja&&"class"===b?ja.setElementClass(a,c):(bc.call(a,b,c),Xb(a,b))}function cc(a,b){if(a.ownerDocument!==document)return Pa.call(document,a,b);var c=Pa.call(document,a,!1);if(b){a=a.childNodes;b=0;for(var d;b<a.length;b++)d=cc(a[b],!0),c.appendChild(d)}return c}function Qa(a,b){var c=[],d=a;for(a=a===window?window:a.getRootNode();d;)c.push(d),
|
||||
f===Q(b))&&W.call(f,b));Vb(a,null,b);return b}function Wb(a){if(a.__shady&&void 0!==a.__shady.ja)for(var b=a.childNodes,c=0,d=b.length,e;c<d&&(e=b[c]);c++)Wb(e);a.__shady&&(a.__shady.ja=void 0)}function Tb(a){var b=a;a&&"slot"===a.localName&&(b=(b=a.__shady&&a.__shady.P)&&b.length?b[0]:Tb(a.nextSibling));return b}function Na(a){return(a=a&&a.__shady&&a.__shady.root)&&a.oa()}function Xb(a,b){"slot"===b?(a=a.parentNode,Na(a)&&a.__shady.root.J()):"slot"===a.localName&&"name"===b&&(b=U(a))&&(b.Oa(a),
|
||||
b.J())}function Vb(a,b,c){if(a=a.__shady&&a.__shady.S)b&&a.addedNodes.push(b),c&&a.removedNodes.push(c),a.$a()}function Yb(a){if(a&&a.nodeType){a.__shady=a.__shady||{};var b=a.__shady.ja;void 0===b&&(E(a)?b=a:b=(b=a.parentNode)?Yb(b):a,document.documentElement.contains(a)&&(a.__shady.ja=b));return b}}function ia(a,b,c){var d=[];Zb(a.childNodes,b,c,d);return d}function Zb(a,b,c,d){for(var e=0,f=a.length,g;e<f&&(g=a[e]);e++){var h;if(h=g.nodeType===Node.ELEMENT_NODE){h=g;var m=b,k=c,l=d,n=m(h);n&&l.push(h);
|
||||
k&&k(n)?h=n:(Zb(h.childNodes,m,k,l),h=void 0)}if(h)break}}function $b(a){a=a.getRootNode();E(a)&&a.qa()}function ac(a,b,c){ja||(ja=window.ShadyCSS&&window.ShadyCSS.ScopingShim);ja&&"class"===b?ja.setElementClass(a,c):(bc.call(a,b,c),Xb(a,b))}function cc(a,b){if(a.ownerDocument!==document)return Pa.call(document,a,b);var c=Pa.call(document,a,!1);if(b){a=a.childNodes;b=0;for(var d;b<a.length;b++)d=cc(a[b],!0),c.appendChild(d)}return c}function Qa(a,b){var c=[],d=a;for(a=a===window?window:a.getRootNode();d;)c.push(d),
|
||||
d=d.assignedSlot?d.assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d.host:d.parentNode;c[c.length-1]===document&&c.push(window);return c}function dc(a,b){if(!E)return a;a=Qa(a,!0);for(var c=0,d,e,f,g;c<b.length;c++)if(d=b[c],f=d===window?window:d.getRootNode(),f!==e&&(g=a.indexOf(f),e=f),!E(f)||-1<g)return d}function Ra(a){function b(b,d){b=new a(b,d);b.da=d&&!!d.composed;return b}kd(b,a);b.prototype=a.prototype;return b}function ec(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&
|
||||
b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&a.target!==a.relatedTarget&&(e.call(b,a),!a.Ea);d++);}function qd(a){var b=a.composedPath();Object.defineProperty(a,"currentTarget",{get:function(){return d},configurable:!0});for(var c=b.length-1;0<=c;c--){var d=b[c];ec(a,d,"capture");if(a.ea)return}Object.defineProperty(a,"eventPhase",{get:function(){return Event.AT_TARGET}});var e;for(c=0;c<b.length;c++){d=b[c];var f=d.__shady&&d.__shady.root;if(0===c||f&&f===e)if(ec(a,d,"bubble"),d!==window&&(e=
|
||||
d.getRootNode()),a.ea)break}}function fc(a,b,c,d,e,f){for(var g=0;g<a.length;g++){var h=a[g],m=h.type,k=h.capture,l=h.once,n=h.passive;if(b===h.node&&c===m&&d===k&&e===l&&f===n)return g}return-1}function gc(a,b,c){if(b){if("object"===typeof c){var d=!!c.capture;var e=!!c.once;var f=!!c.passive}else d=!!c,f=e=!1;var g=c&&c.fa||this,h=b.V;if(h){if(-1<fc(h,g,a,d,e,f))return}else b.V=[];h=function(d){e&&this.removeEventListener(a,b,c);d.__target||hc(d);if(g!==this){var f=Object.getOwnPropertyDescriptor(d,
|
||||
@@ -81,23 +81,23 @@ previousElementSibling:Mb,nextElementSibling:Nb,children:Ob,innerHTML:Pb,textCon
|
||||
a?a:Jb(this)},configurable:!0},parentNode:{get:function(){var a=this.__shady&&this.__shady.parentNode;return void 0!==a?a:Q(this)},configurable:!0},nextSibling:{get:function(){var a=this.__shady&&this.__shady.nextSibling;return void 0!==a?a:Ib(this)},configurable:!0},previousSibling:{get:function(){var a=this.__shady&&this.__shady.previousSibling;return void 0!==a?a:Hb(this)},configurable:!0},className:{get:function(){return this.getAttribute("class")||""},set:function(a){this.setAttribute("class",
|
||||
a)},configurable:!0},nextElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.nextSibling){for(var a=this.nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return Nb(this)},configurable:!0},previousElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.previousSibling){for(var a=this.previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return Mb(this)},configurable:!0}},Ja={childNodes:{get:function(){if(P(this)){if(!this.__shady.childNodes){this.__shady.childNodes=
|
||||
[];for(var a=this.firstChild;a;a=a.nextSibling)this.__shady.childNodes.push(a)}var b=this.__shady.childNodes}else b=O(this);b.item=function(a){return b[a]};return b},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var a=this.__shady&&this.__shady.firstChild;return void 0!==a?a:Ba(this)},configurable:!0},lastChild:{get:function(){var a=this.__shady&&this.__shady.lastChild;return void 0!==a?a:Ca(this)},configurable:!0},textContent:{get:function(){if(P(this)){for(var a=
|
||||
[],b=0,c=this.childNodes,d;d=c[b];b++)d.nodeType!==Node.COMMENT_NODE&&a.push(d.textContent);return a.join("")}return Qb(this)},set:function(a){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);this.appendChild(document.createTextNode(a));break;default:this.nodeValue=a}},configurable:!0},firstElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var a=this.firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=
|
||||
a.nextSibling;return a}return Kb(this)},configurable:!0},lastElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.lastChild){for(var a=this.lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return Lb(this)},configurable:!0},children:{get:function(){var a;P(this)?a=Array.prototype.filter.call(this.childNodes,function(a){return a.nodeType===Node.ELEMENT_NODE}):a=Ob(this);a.item=function(b){return a[b]};return a},configurable:!0},innerHTML:{get:function(){var a=
|
||||
"template"===this.localName?this.content:this;return P(this)?Ia(a):Pb(a)},set:function(a){for(var b="template"===this.localName?this.content:this;b.firstChild;)b.removeChild(b.firstChild);for(cb&&cb.set?cb.set.call(na,a):na.innerHTML=a;na.firstChild;)b.appendChild(na.firstChild)},configurable:!0}},Hc={shadowRoot:{get:function(){return this.__shady&&this.__shady.Ya||null},configurable:!0}},Ka={activeElement:{get:function(){var a=db&&db.get?db.get.call(document):B.R?void 0:document.activeElement;if(a&&
|
||||
a.nodeType){var b=!!E(this);if(this===document||b&&this.host!==a&&this.host.contains(a)){for(b=U(a);b&&b!==this;)a=b.host,b=U(a);a=this===document?b?null:a:b===this?a:null}else a=null}else a=null;return a},set:function(){},configurable:!0}},Bb=B.R?function(){}:function(a){a.__shady&&a.__shady.Ha||(a.__shady=a.__shady||{},a.__shady.Ha=!0,H(a,Rb,!0))},Ab=B.R?function(){}:function(a){a.__shady&&a.__shady.Fa||(a.__shady=a.__shady||{},a.__shady.Fa=!0,H(a,Ja,!0),H(a,Hc,!0))},ja=null,Hd={blur:!0,focus:!0,
|
||||
focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,
|
||||
dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},nc={get composed(){!1!==this.isTrusted&&void 0===this.da&&(this.da=Hd[this.type]);return this.da||!1},composedPath:function(){this.la||(this.la=Qa(this.__target,this.composed));return this.la},get target(){return dc(this.currentTarget,this.composedPath())},get relatedTarget(){if(!this.ma)return null;this.na||(this.na=Qa(this.ma,!0));return dc(this.currentTarget,this.na)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);
|
||||
this.ea=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.ea=this.Ea=!0}},Sa={focus:!0,blur:!0},Id=Ra(window.Event),Jd=Ra(window.CustomEvent),Kd=Ra(window.MouseEvent),zb={};l.prototype=Object.create(DocumentFragment.prototype);l.prototype.B=function(a,b){this.Ga="ShadyRoot";ea(a);ea(this);this.host=a;this.I=b&&b.mode;a.__shady=a.__shady||{};a.__shady.root=this;a.__shady.Ya="closed"!==this.I?this:null;this.O=!1;this.b=[];this.a=null;b=O(a);for(var c=0,
|
||||
d=b.length;c<d;c++)W.call(a,b[c])};l.prototype.J=function(){var a=this;this.O||(this.O=!0,Eb(function(){return a.qa()}))};l.prototype.A=function(){for(var a=this,b=this;b;)b.O&&(a=b),b=b.Na();return a};l.prototype.Na=function(){var a=this.host.getRootNode();if(E(a))for(var b=this.host.childNodes,c=0,d;c<b.length;c++)if(d=b[c],this.h(d))return a};l.prototype.qa=function(){this.O&&this.A()._renderRoot()};l.prototype._renderRoot=function(){this.O=!1;this.u();this.m()};l.prototype.u=function(){for(var a=
|
||||
0,b;a<this.b.length;a++)b=this.b[a],this.l(b);for(b=this.host.firstChild;b;b=b.nextSibling)this.f(b);for(a=0;a<this.b.length;a++){b=this.b[a];if(!b.__shady.assignedNodes.length)for(var c=b.firstChild;c;c=c.nextSibling)this.f(c,b);c=b.parentNode;(c=c.__shady&&c.__shady.root)&&c.oa()&&c._renderRoot();this.c(b.__shady.P,b.__shady.assignedNodes);if(c=b.__shady.pa){for(var d=0;d<c.length;d++)c[d].__shady.ga=null;b.__shady.pa=null;c.length>b.__shady.assignedNodes.length&&(b.__shady.ha=!0)}b.__shady.ha&&
|
||||
(b.__shady.ha=!1,this.g(b))}};l.prototype.f=function(a,b){a.__shady=a.__shady||{};var c=a.__shady.ga;a.__shady.ga=null;b||(b=(b=this.a[a.slot||"__catchall"])&&b[0]);b?(b.__shady.assignedNodes.push(a),a.__shady.assignedSlot=b):a.__shady.assignedSlot=void 0;c!==a.__shady.assignedSlot&&a.__shady.assignedSlot&&(a.__shady.assignedSlot.__shady.ha=!0)};l.prototype.l=function(a){var b=a.__shady.assignedNodes;a.__shady.assignedNodes=[];a.__shady.P=[];if(a.__shady.pa=b)for(var c=0;c<b.length;c++){var d=b[c];
|
||||
d.__shady.ga=d.__shady.assignedSlot;d.__shady.assignedSlot===a&&(d.__shady.assignedSlot=null)}};l.prototype.c=function(a,b){for(var c=0,d;c<b.length&&(d=b[c]);c++)"slot"==d.localName?this.c(a,d.__shady.assignedNodes):a.push(b[c])};l.prototype.g=function(a){bb.call(a,new Event("slotchange"));a.__shady.assignedSlot&&this.g(a.__shady.assignedSlot)};l.prototype.m=function(){for(var a=this.b,b=[],c=0;c<a.length;c++){var d=a[c].parentNode;d.__shady&&d.__shady.root||!(0>b.indexOf(d))||b.push(d)}for(a=0;a<
|
||||
b.length;a++)c=b[a],this.G(c===this?this.host:c,this.o(c))};l.prototype.o=function(a){var b=[];a=a.childNodes;for(var c=0;c<a.length;c++){var d=a[c];if(this.h(d)){d=d.__shady.P;for(var e=0;e<d.length;e++)b.push(d[e])}else b.push(d)}return b};l.prototype.h=function(a){return"slot"==a.localName};l.prototype.G=function(a,b){for(var c=O(a),d=sd(b,b.length,c,c.length),e=0,f=0,g;e<d.length&&(g=d[e]);e++){for(var h=0,k;h<g.T.length&&(k=g.T[h]);h++)Q(k)===a&&W.call(a,k),c.splice(g.index+f,1);f-=g.W}for(e=
|
||||
0;e<d.length&&(g=d[e]);e++)for(f=c[g.index],h=g.index;h<g.index+g.W;h++)k=b[h],Oa.call(a,k,f),c.splice(h,0,k)};l.prototype.Ja=function(a){this.a=this.a||{};this.b=this.b||[];for(var b=0;b<a.length;b++){var c=a[b];c.__shady=c.__shady||{};ea(c);ea(c.parentNode);var d=this.i(c);if(this.a[d]){var e=e||{};e[d]=!0;this.a[d].push(c)}else this.a[d]=[c];this.b.push(c)}if(e)for(var f in e)this.a[f]=this.j(this.a[f])};l.prototype.i=function(a){var b=a.name||a.getAttribute("name")||"__catchall";return a.Ia=b};
|
||||
l.prototype.j=function(a){return a.sort(function(a,c){a=oc(a);for(var b=oc(c),e=0;e<a.length;e++){c=a[e];var f=b[e];if(c!==f)return a=Array.from(c.parentNode.childNodes),a.indexOf(c)-a.indexOf(f)}})};l.prototype.Ma=function(a){this.a=this.a||{};this.b=this.b||[];var b=this.a,c;for(c in b)for(var d=b[c],e=0;e<d.length;e++){var f=d[e],g;a:{for(g=f;g;){if(g==a){g=!0;break a}g=g.parentNode}g=void 0}if(g){d.splice(e,1);var h=this.b.indexOf(f);0<=h&&this.b.splice(h,1);e--;this.F(f);h=!0}}return h};l.prototype.Oa=
|
||||
function(a){var b=a.Ia,c=this.i(a);if(c!==b){b=this.a[b];var d=b.indexOf(a);0<=d&&b.splice(d,1);b=this.a[c]||(this.a[c]=[]);b.push(a);1<b.length&&(this.a[c]=this.j(b))}};l.prototype.F=function(a){if(a=a.__shady.P)for(var b=0;b<a.length;b++){var c=a[b],d=Q(c);d&&W.call(d,c)}};l.prototype.oa=function(){return!!this.b.length};l.prototype.addEventListener=function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.fa=this;this.host.addEventListener(a,b,c)};l.prototype.removeEventListener=function(a,b,c){"object"!==
|
||||
typeof c&&(c={capture:!!c});c.fa=this;this.host.removeEventListener(a,b,c)};l.prototype.getElementById=function(a){return ia(this,function(b){return b.id==a},function(a){return!!a})[0]||null};(function(a){H(a,Ja,!0);H(a,Ka,!0)})(l.prototype);var wd={addEventListener:gc.bind(window),removeEventListener:kc.bind(window)},vd={addEventListener:gc,removeEventListener:kc,appendChild:function(a){return La(this,a)},insertBefore:function(a,b){return La(this,a,b)},removeChild:function(a){return Ma(this,a)},
|
||||
replaceChild:function(a,b){La(this,a,b);Ma(this,b);return a},cloneNode:function(a){if("template"==this.localName)var b=ab.call(this,a);else if(b=ab.call(this,!1),a){a=this.childNodes;for(var c=0,d;c<a.length;c++)d=a[c].cloneNode(!0),b.appendChild(d)}return b},getRootNode:function(){return Yb(this)},get isConnected(){var a=this.ownerDocument;if(a&&a.contains&&a.contains(this)||(a=a.documentElement)&&a.contains&&a.contains(this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.parentNode||(a instanceof
|
||||
[],b=0,c=this.childNodes,d;d=c[b];b++)d.nodeType!==Node.COMMENT_NODE&&a.push(d.textContent);return a.join("")}return Qb(this)},set:function(a){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);(0<a.length||this.nodeType===Node.ELEMENT_NODE)&&this.appendChild(document.createTextNode(a));break;default:this.nodeValue=a}},configurable:!0},firstElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var a=
|
||||
this.firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return Kb(this)},configurable:!0},lastElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.lastChild){for(var a=this.lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return Lb(this)},configurable:!0},children:{get:function(){var a;P(this)?a=Array.prototype.filter.call(this.childNodes,function(a){return a.nodeType===Node.ELEMENT_NODE}):a=Ob(this);a.item=function(b){return a[b]};return a},
|
||||
configurable:!0},innerHTML:{get:function(){var a="template"===this.localName?this.content:this;return P(this)?Ia(a):Pb(a)},set:function(a){for(var b="template"===this.localName?this.content:this;b.firstChild;)b.removeChild(b.firstChild);for(cb&&cb.set?cb.set.call(na,a):na.innerHTML=a;na.firstChild;)b.appendChild(na.firstChild)},configurable:!0}},Hc={shadowRoot:{get:function(){return this.__shady&&this.__shady.Ya||null},configurable:!0}},Ka={activeElement:{get:function(){var a=db&&db.get?db.get.call(document):
|
||||
B.R?void 0:document.activeElement;if(a&&a.nodeType){var b=!!E(this);if(this===document||b&&this.host!==a&&this.host.contains(a)){for(b=U(a);b&&b!==this;)a=b.host,b=U(a);a=this===document?b?null:a:b===this?a:null}else a=null}else a=null;return a},set:function(){},configurable:!0}},Bb=B.R?function(){}:function(a){a.__shady&&a.__shady.Ha||(a.__shady=a.__shady||{},a.__shady.Ha=!0,H(a,Rb,!0))},Ab=B.R?function(){}:function(a){a.__shady&&a.__shady.Fa||(a.__shady=a.__shady||{},a.__shady.Fa=!0,H(a,Ja,!0),
|
||||
H(a,Hc,!0))},ja=null,Hd={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,
|
||||
dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},nc={get composed(){!1!==this.isTrusted&&void 0===this.da&&(this.da=Hd[this.type]);return this.da||!1},composedPath:function(){this.la||(this.la=Qa(this.__target,this.composed));return this.la},get target(){return dc(this.currentTarget,this.composedPath())},get relatedTarget(){if(!this.ma)return null;this.na||(this.na=Qa(this.ma,!0));return dc(this.currentTarget,this.na)},
|
||||
stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.ea=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.ea=this.Ea=!0}},Sa={focus:!0,blur:!0},Id=Ra(window.Event),Jd=Ra(window.CustomEvent),Kd=Ra(window.MouseEvent),zb={};l.prototype=Object.create(DocumentFragment.prototype);l.prototype.B=function(a,b){this.Ga="ShadyRoot";ea(a);ea(this);this.host=a;this.I=b&&b.mode;a.__shady=a.__shady||{};a.__shady.root=this;a.__shady.Ya="closed"!==
|
||||
this.I?this:null;this.O=!1;this.b=[];this.a=null;b=O(a);for(var c=0,d=b.length;c<d;c++)W.call(a,b[c])};l.prototype.J=function(){var a=this;this.O||(this.O=!0,Eb(function(){return a.qa()}))};l.prototype.A=function(){for(var a=this,b=this;b;)b.O&&(a=b),b=b.Na();return a};l.prototype.Na=function(){var a=this.host.getRootNode();if(E(a))for(var b=this.host.childNodes,c=0,d;c<b.length;c++)if(d=b[c],this.h(d))return a};l.prototype.qa=function(){this.O&&this.A()._renderRoot()};l.prototype._renderRoot=function(){this.O=
|
||||
!1;this.u();this.m()};l.prototype.u=function(){for(var a=0,b;a<this.b.length;a++)b=this.b[a],this.l(b);for(b=this.host.firstChild;b;b=b.nextSibling)this.f(b);for(a=0;a<this.b.length;a++){b=this.b[a];if(!b.__shady.assignedNodes.length)for(var c=b.firstChild;c;c=c.nextSibling)this.f(c,b);c=b.parentNode;(c=c.__shady&&c.__shady.root)&&c.oa()&&c._renderRoot();this.c(b.__shady.P,b.__shady.assignedNodes);if(c=b.__shady.pa){for(var d=0;d<c.length;d++)c[d].__shady.ga=null;b.__shady.pa=null;c.length>b.__shady.assignedNodes.length&&
|
||||
(b.__shady.ha=!0)}b.__shady.ha&&(b.__shady.ha=!1,this.g(b))}};l.prototype.f=function(a,b){a.__shady=a.__shady||{};var c=a.__shady.ga;a.__shady.ga=null;b||(b=(b=this.a[a.slot||"__catchall"])&&b[0]);b?(b.__shady.assignedNodes.push(a),a.__shady.assignedSlot=b):a.__shady.assignedSlot=void 0;c!==a.__shady.assignedSlot&&a.__shady.assignedSlot&&(a.__shady.assignedSlot.__shady.ha=!0)};l.prototype.l=function(a){var b=a.__shady.assignedNodes;a.__shady.assignedNodes=[];a.__shady.P=[];if(a.__shady.pa=b)for(var c=
|
||||
0;c<b.length;c++){var d=b[c];d.__shady.ga=d.__shady.assignedSlot;d.__shady.assignedSlot===a&&(d.__shady.assignedSlot=null)}};l.prototype.c=function(a,b){for(var c=0,d;c<b.length&&(d=b[c]);c++)"slot"==d.localName?this.c(a,d.__shady.assignedNodes):a.push(b[c])};l.prototype.g=function(a){bb.call(a,new Event("slotchange"));a.__shady.assignedSlot&&this.g(a.__shady.assignedSlot)};l.prototype.m=function(){for(var a=this.b,b=[],c=0;c<a.length;c++){var d=a[c].parentNode;d.__shady&&d.__shady.root||!(0>b.indexOf(d))||
|
||||
b.push(d)}for(a=0;a<b.length;a++)c=b[a],this.G(c===this?this.host:c,this.o(c))};l.prototype.o=function(a){var b=[];a=a.childNodes;for(var c=0;c<a.length;c++){var d=a[c];if(this.h(d)){d=d.__shady.P;for(var e=0;e<d.length;e++)b.push(d[e])}else b.push(d)}return b};l.prototype.h=function(a){return"slot"==a.localName};l.prototype.G=function(a,b){for(var c=O(a),d=sd(b,b.length,c,c.length),e=0,f=0,g;e<d.length&&(g=d[e]);e++){for(var h=0,k;h<g.T.length&&(k=g.T[h]);h++)Q(k)===a&&W.call(a,k),c.splice(g.index+
|
||||
f,1);f-=g.W}for(e=0;e<d.length&&(g=d[e]);e++)for(f=c[g.index],h=g.index;h<g.index+g.W;h++)k=b[h],Oa.call(a,k,f),c.splice(h,0,k)};l.prototype.Ja=function(a){this.a=this.a||{};this.b=this.b||[];for(var b=0;b<a.length;b++){var c=a[b];c.__shady=c.__shady||{};ea(c);ea(c.parentNode);var d=this.i(c);if(this.a[d]){var e=e||{};e[d]=!0;this.a[d].push(c)}else this.a[d]=[c];this.b.push(c)}if(e)for(var f in e)this.a[f]=this.j(this.a[f])};l.prototype.i=function(a){var b=a.name||a.getAttribute("name")||"__catchall";
|
||||
return a.Ia=b};l.prototype.j=function(a){return a.sort(function(a,c){a=oc(a);for(var b=oc(c),e=0;e<a.length;e++){c=a[e];var f=b[e];if(c!==f)return a=Array.from(c.parentNode.childNodes),a.indexOf(c)-a.indexOf(f)}})};l.prototype.Ma=function(a){this.a=this.a||{};this.b=this.b||[];var b=this.a,c;for(c in b)for(var d=b[c],e=0;e<d.length;e++){var f=d[e],g;a:{for(g=f;g;){if(g==a){g=!0;break a}g=g.parentNode}g=void 0}if(g){d.splice(e,1);var h=this.b.indexOf(f);0<=h&&this.b.splice(h,1);e--;this.F(f);h=!0}}return h};
|
||||
l.prototype.Oa=function(a){var b=a.Ia,c=this.i(a);if(c!==b){b=this.a[b];var d=b.indexOf(a);0<=d&&b.splice(d,1);b=this.a[c]||(this.a[c]=[]);b.push(a);1<b.length&&(this.a[c]=this.j(b))}};l.prototype.F=function(a){if(a=a.__shady.P)for(var b=0;b<a.length;b++){var c=a[b],d=Q(c);d&&W.call(d,c)}};l.prototype.oa=function(){return!!this.b.length};l.prototype.addEventListener=function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.fa=this;this.host.addEventListener(a,b,c)};l.prototype.removeEventListener=
|
||||
function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.fa=this;this.host.removeEventListener(a,b,c)};l.prototype.getElementById=function(a){return ia(this,function(b){return b.id==a},function(a){return!!a})[0]||null};(function(a){H(a,Ja,!0);H(a,Ka,!0)})(l.prototype);var wd={addEventListener:gc.bind(window),removeEventListener:kc.bind(window)},vd={addEventListener:gc,removeEventListener:kc,appendChild:function(a){return La(this,a)},insertBefore:function(a,b){return La(this,a,b)},removeChild:function(a){return Ma(this,
|
||||
a)},replaceChild:function(a,b){La(this,a,b);Ma(this,b);return a},cloneNode:function(a){if("template"==this.localName)var b=ab.call(this,a);else if(b=ab.call(this,!1),a){a=this.childNodes;for(var c=0,d;c<a.length;c++)d=a[c].cloneNode(!0),b.appendChild(d)}return b},getRootNode:function(){return Yb(this)},get isConnected(){var a=this.ownerDocument;if(a&&a.contains&&a.contains(this)||(a=a.documentElement)&&a.contains&&a.contains(this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.parentNode||(a instanceof
|
||||
l?a.host:void 0);return!!(a&&a instanceof Document)},dispatchEvent:function(a){ha();return bb.call(this,a)}},xd={get assignedSlot(){return pc(this)}},Ta={querySelector:function(a){return ia(this,function(b){return Fc.call(b,a)},function(a){return!!a})[0]||null},querySelectorAll:function(a){return ia(this,function(b){return Fc.call(b,a)})}},sc={assignedNodes:function(a){if("slot"===this.localName)return $b(this),this.__shady?(a&&a.flatten?this.__shady.P:this.__shady.assignedNodes)||[]:[]}},qc=Ea({setAttribute:function(a,
|
||||
b){ac(this,a,b)},removeAttribute:function(a){Gc.call(this,a);Xb(this,a)},attachShadow:function(a){if(!this)throw"Must provide a host.";if(!a)throw"Not enough arguments.";return new l(zb,this,a)},get slot(){return this.getAttribute("slot")},set slot(a){ac(this,"slot",a)},get assignedSlot(){return pc(this)}},Ta,sc);Object.defineProperties(qc,Hc);var rc=Ea({importNode:function(a,b){return cc(a,b)},getElementById:function(a){return ia(this,function(b){return b.id==a},function(a){return!!a})[0]||null}},
|
||||
Ta);Object.defineProperties(rc,{_activeElement:Ka.activeElement});var Ld=HTMLElement.prototype.blur,yd=Ea({blur:function(){var a=this.__shady&&this.__shady.root;(a=a&&a.activeElement)?a.blur():Ld.call(this)}});B.ua&&(window.ShadyDOM={inUse:B.ua,patch:function(a){return a},isShadyRoot:E,enqueue:Eb,flush:ha,settings:B,filterMutations:ld,observeChildren:jd,unobserveChildren:id,nativeMethods:Fd,nativeTree:Gd},window.Event=Id,window.CustomEvent=Jd,window.MouseEvent=Kd,rd(),ud(),window.ShadowRoot=l);var zd=
|
||||
|
||||
File diff suppressed because one or more lines are too long
20
yarn.lock
20
yarn.lock
@@ -148,8 +148,8 @@
|
||||
resolved "https://registry.yarnpkg.com/@types/mime/-/mime-0.0.29.tgz#fbcfd330573b912ef59eeee14602bface630754b"
|
||||
|
||||
"@types/minimatch@*":
|
||||
version "2.0.29"
|
||||
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-2.0.29.tgz#5002e14f75e2d71e564281df0431c8c1b4a2a36a"
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.0.tgz#a8b68c324817169b6004b432a598478a5d8f025a"
|
||||
|
||||
"@types/mz@0.0.29":
|
||||
version "0.0.29"
|
||||
@@ -165,16 +165,16 @@
|
||||
"@types/node" "*"
|
||||
|
||||
"@types/node@*", "@types/node@^8.0.0":
|
||||
version "8.0.20"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.20.tgz#65c7375255c24b184c215a5d0b63247c32f01c91"
|
||||
version "8.0.22"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.22.tgz#9c6bfee1f45f5e9952ff6b487e657ecca48c7777"
|
||||
|
||||
"@types/node@^4.2.3":
|
||||
version "4.2.16"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-4.2.16.tgz#4eb9b218643a03e317535447e13bf78856cbf8ce"
|
||||
version "4.2.18"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-4.2.18.tgz#e1854ae6eff1843f40de8c0559e547eb8b992865"
|
||||
|
||||
"@types/node@^6.0.0", "@types/node@^6.0.31", "@types/node@^6.0.41", "@types/node@^6.0.77":
|
||||
version "6.0.85"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-6.0.85.tgz#ec02bfe54a61044f2be44f13b389c6a0e8ee05ae"
|
||||
version "6.0.86"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-6.0.86.tgz#ae0fff49f6fc13d7ddcd322362581c52e8755ff9"
|
||||
|
||||
"@types/opn@^3.0.28":
|
||||
version "3.0.28"
|
||||
@@ -246,8 +246,8 @@
|
||||
resolved "https://registry.yarnpkg.com/@webcomponents/shadycss/-/shadycss-1.0.5.tgz#ff8537dd06c46f33eccee082cdecd9507bf39f56"
|
||||
|
||||
"@webcomponents/shadydom@^1.0.0":
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@webcomponents/shadydom/-/shadydom-1.0.1.tgz#dd4dd1bada9bc55800a38f800b356809ad513fda"
|
||||
version "1.0.3"
|
||||
resolved "https://registry.yarnpkg.com/@webcomponents/shadydom/-/shadydom-1.0.3.tgz#dae8628c5f0c599e4a5b32365a16486324f50e3b"
|
||||
|
||||
"@webcomponents/template@^1.0.0":
|
||||
version "1.0.0"
|
||||
|
||||
Reference in New Issue
Block a user