@ohif/ui 3.13.0-beta.133 → 3.13.0-beta.135

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.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("gl-matrix/esm/vec3.js"),require("React"),require("gl-matrix"),require("ReactDOM"),require("dcmjs")):"function"==typeof define&&define.amd?define(["gl-matrix/esm/vec3.js","React","gl-matrix","ReactDOM","dcmjs"],t):"object"==typeof exports?exports["ohif-ui"]=t(require("gl-matrix/esm/vec3.js"),require("React"),require("gl-matrix"),require("ReactDOM"),require("dcmjs")):e["ohif-ui"]=t(e["gl-matrix/esm/vec3.js"],e.React,e["gl-matrix"],e.ReactDOM,e.dcmjs)}(globalThis,(e,t,r,n,a)=>(()=>{var i,o,s={7017(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.abort_add=function(e,t){t._abortedFlag||t._abortAlgorithms.add(e)},t.abort_remove=function(e,t){t._abortAlgorithms.delete(e)},t.abort_signalAbort=function(e){if(!e._abortedFlag){for(let t of(e._abortedFlag=!0,e._abortAlgorithms))t.call(e);e._abortAlgorithms.clear(),(0,n.event_fireAnEvent)("abort",e)}};let n=r(331)},644(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attr_setAnExistingAttributeValue=function(e,t){null===e._element?e._value=t:(0,n.element_change)(e,e._element,t)};let n=r(6419)},3819(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boundaryPoint_position=function e(t,r){let i=t[0],o=t[1],s=r[0],l=r[1];if(console.assert((0,a.tree_rootNode)(i)===(0,a.tree_rootNode)(s),"Boundary points must share the same root node."),i===s)if(o===l)return n.BoundaryPosition.Equal;else if(o<l)return n.BoundaryPosition.Before;else return n.BoundaryPosition.After;if((0,a.tree_isFollowing)(s,i)){let t=e([s,l],[i,o]);if(t===n.BoundaryPosition.Before)return n.BoundaryPosition.After;if(t===n.BoundaryPosition.After)return n.BoundaryPosition.Before}if((0,a.tree_isAncestorOf)(s,i)){let e=s;for(;!(0,a.tree_isChildOf)(i,e);)null!==e._parent&&(e=e._parent);if((0,a.tree_index)(e)<o)return n.BoundaryPosition.After}return n.BoundaryPosition.Before};let n=r(3841),a=r(9693)},8966(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.characterData_replaceData=function(e,t,r,u){let d=(0,o.tree_nodeLength)(e);if(t>d)throw new i.IndexSizeError(`Offset exceeds character data length. Offset: ${t}, Length: ${d}, Node is ${e.nodeName}.`);t+r>d&&(r=d-t),n.dom.features.mutationObservers&&(0,s.observer_queueMutationRecord)("characterData",e,null,null,e._data,[],[],null,null);let c=e._data.substring(0,t)+u+e._data.substring(t+r);for(let a of(e._data=c,n.dom.rangeList))a._start[0]===e&&a._start[1]>t&&a._start[1]<=t+r&&(a._start[1]=t),a._end[0]===e&&a._end[1]>t&&a._end[1]<=t+r&&(a._end[1]=t),a._start[0]===e&&a._start[1]>t+r&&(a._start[1]+=u.length-r),a._end[0]===e&&a._end[1]>t+r&&(a._end[1]+=u.length-r);n.dom.features.steps&&a.Guard.isTextNode(e)&&null!==e._parent&&(0,l.dom_runChildTextContentChangeSteps)(e._parent)},t.characterData_substringData=function(e,t,r){let n=(0,o.tree_nodeLength)(e);if(t>n)throw new i.IndexSizeError(`Offset exceeds character data length. Offset: ${t}, Length: ${n}, Node is ${e.nodeName}.`);return t+r>n?e._data.substr(t):e._data.substr(t,r)};let n=r(9091),a=r(8723),i=r(8036),o=r(9693),s=r(6594),l=r(3935)},725(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create_domImplementation=function(e){return n.DOMImplementationImpl._create(e)},t.create_window=function(){return a.WindowImpl._create()},t.create_xmlDocument=function(){return new i.XMLDocumentImpl},t.create_document=function(){return new o.DocumentImpl},t.create_abortController=function(){return new s.AbortControllerImpl},t.create_abortSignal=function(){return l.AbortSignalImpl._create()},t.create_documentType=function(e,t,r,n){return u.DocumentTypeImpl._create(e,t,r,n)},t.create_element=function(e,t,r,n){return d.ElementImpl._create(e,t,r,n)},t.create_htmlElement=function(e,t,r,n){return d.ElementImpl._create(e,t,r,n)},t.create_htmlUnknownElement=function(e,t,r,n){return d.ElementImpl._create(e,t,r,n)},t.create_documentFragment=function(e){return c.DocumentFragmentImpl._create(e)},t.create_shadowRoot=function(e,t){return h.ShadowRootImpl._create(e,t)},t.create_attr=function(e,t){return p.AttrImpl._create(e,t)},t.create_text=function(e,t){return m.TextImpl._create(e,t)},t.create_cdataSection=function(e,t){return f.CDATASectionImpl._create(e,t)},t.create_comment=function(e,t){return g.CommentImpl._create(e,t)},t.create_processingInstruction=function(e,t,r){return y.ProcessingInstructionImpl._create(e,t,r)},t.create_htmlCollection=function(e,t=()=>!0){return v.HTMLCollectionImpl._create(e,t)},t.create_nodeList=function(e){return b.NodeListImpl._create(e)},t.create_nodeListStatic=function(e,t){return w.NodeListStaticImpl._create(e,t)},t.create_namedNodeMap=function(e){return x.NamedNodeMapImpl._create(e)},t.create_range=function(e,t){return C.RangeImpl._create(e,t)},t.create_nodeIterator=function(e,t,r){return k.NodeIteratorImpl._create(e,t,r)},t.create_treeWalker=function(e,t){return M.TreeWalkerImpl._create(e,t)},t.create_nodeFilter=function(){return S.NodeFilterImpl._create()},t.create_mutationRecord=function(e,t,r,n,a,i,o,s,l){return E.MutationRecordImpl._create(e,t,r,n,a,i,o,s,l)},t.create_domTokenList=function(e,t){return T.DOMTokenListImpl._create(e,t)};let n=r(9173),a=r(3243),i=r(8135),o=r(8034),s=r(3813),l=r(745),u=r(7466),d=r(7207),c=r(5714),h=r(4483),p=r(6648),m=r(3800),f=r(7331),g=r(7090),y=r(8326),v=r(6714),b=r(8071),w=r(8993),x=r(6202),C=r(1466),k=r(7765),M=r(1933),S=r(7601),E=r(6609),T=r(1374)},4384(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.customElement_isValidCustomElementName=function(e){return!(!r.test(e)||n.has(e))},t.customElement_isValidElementName=function(e){return a.has(e)},t.customElement_isVoidElementName=function(e){return i.has(e)},t.customElement_isValidShadowHostName=function(e){return o.has(e)},t.customElement_enqueueACustomElementUpgradeReaction=function(e,t){},t.customElement_enqueueACustomElementCallbackReaction=function(e,t,r){},t.customElement_upgrade=function(e,t){},t.customElement_tryToUpgrade=function(e){},t.customElement_lookUpACustomElementDefinition=function(e,t,r,n){return null};let r=/[a-z]([\0-\t\x2D\._a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*-([\0-\t\x2D\._a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*/,n=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),a=new Set(["article","aside","blockquote","body","div","footer","h1","h2","h3","h4","h5","h6","header","main","nav","p","section","span"]),i=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]),o=new Set(["article","aside","blockquote","body","div","footer","h1","h2","h3","h4","h5","h6","header","main","nav","p","section","span"])},3935(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dom_runRemovingSteps=function(e,t){},t.dom_runCloningSteps=function(e,t,r,n){},t.dom_runAdoptingSteps=function(e,t){},t.dom_runAttributeChangeSteps=function(e,t,r,a,i){for(let o of(n.dom.features.slots&&(d.call(e,e,t,r,a,i),u.call(e,e,t,r,a,i)),c.call(e,e,t,a,i),e._attributeChangeSteps))o.call(e,e,t,r,a,i)},t.dom_runInsertionSteps=function(e){},t.dom_runNodeIteratorPreRemovingSteps=function(e,t){l.call(e,e,t)},t.dom_hasSupportedTokens=function(e){return s.has(e)},t.dom_getSupportedTokens=function(e){return s.get(e)||new Set},t.dom_runEventConstructingSteps=function(e){},t.dom_runChildTextContentChangeSteps=function(e){};let n=r(9091),a=r(9693),i=r(8723),o=r(9057),s=new Map;function l(e,t){if(t!==e._root&&(0,a.tree_isAncestorOf)(e._reference,t,!0)){if(e._pointerBeforeReference)for(;;){let r=(0,a.tree_getFollowingNode)(e._root,t);if(null!==r&&(0,a.tree_isDescendantOf)(e._root,r,!0)&&!(0,a.tree_isDescendantOf)(t,r,!0)){e._reference=r;return}if(null===r){e._pointerBeforeReference=!1;return}}if(null===t._previousSibling)null!==t._parent&&(e._reference=t._parent);else{let r=t._previousSibling,n=(0,a.tree_getFirstDescendantNode)(t._previousSibling,!0,!1);for(;null!==n;)null!==n&&(r=n),n=(0,a.tree_getNextDescendantNode)(t._previousSibling,n,!0,!1);e._reference=r}}}function u(e,t,r,n,s){i.Guard.isSlot(e)&&"name"===t&&null===s&&n!==r&&(null!==n||""!==r)&&(""!==n||null!==r)&&(null===n||""===n?e._name="":e._name=n,(0,o.shadowTree_assignSlotablesForATree)((0,a.tree_rootNode)(e)))}function d(e,t,r,n,a){i.Guard.isSlotable(e)&&"slot"===t&&null===a&&n!==r&&(null!==n||""!==r)&&(""!==n||null!==r)&&(null===n||""===n?e._name="":e._name=n,(0,o.shadowTree_isAssigned)(e)&&(0,o.shadowTree_assignSlotables)(e._assignedSlot),(0,o.shadowTree_assignASlot)(e))}function c(e,t,r,n){"id"===t&&null===n&&(r?e._uniqueIdentifier=r:e._uniqueIdentifier=void 0)}},3326(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tokenList_validationSteps=function(e,t){if(!(0,a.dom_hasSupportedTokens)(e._attribute._localName))throw TypeError(`There are no supported tokens defined for attribute name: '${e._attribute._localName}'.`);return(0,a.dom_getSupportedTokens)(e._attribute._localName).has(t.toLowerCase())},t.tokenList_updateSteps=function(e){(e._element.hasAttribute(e._attribute._localName)||0!==e._tokenSet.size)&&(0,i.element_setAnAttributeValue)(e._element,e._attribute._localName,(0,n.orderedSet_serialize)(e._tokenSet))},t.tokenList_serializeSteps=function(e){return(0,i.element_getAnAttributeValue)(e._element,e._attribute._localName)};let n=r(4048),a=r(3935),i=r(6419)},1978(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.document_elementInterface=function(e,t){return o.ElementImpl},t.document_internalCreateElementNS=function(e,t,r,n){let[a,o,s]=(0,u.namespace_validateAndExtract)(t,r),l=null;return void 0!==n&&(l=(0,i.isString)(n)?n:n.is),(0,c.element_createAnElement)(e,s,a,o,l,!0)},t.document_adopt=function(e,t){if(e._nodeDocument===t&&null===e._parent)return;let r=e._nodeDocument;if(e._parent&&(0,h.mutation_remove)(e,e._parent),t!==r){let i=(0,l.tree_getFirstDescendantNode)(e,!0,!0);for(;null!==i;){if(i._nodeDocument=t,a.Guard.isElementNode(i))for(let e of i._attributeList._asArray())e._nodeDocument=t;n.dom.features.customElements&&a.Guard.isElementNode(i)&&"custom"===i._customElementState&&(0,s.customElement_enqueueACustomElementCallbackReaction)(i,"adoptedCallback",[r,t]),n.dom.features.steps&&(0,d.dom_runAdoptingSteps)(i,r),i=(0,l.tree_getNextDescendantNode)(e,i,!0,!0)}}};let n=r(9091),a=r(8723),i=r(3738),o=r(7207),s=r(4384),l=r(9693),u=r(254),d=r(3935),c=r(6419),h=r(1028)},6419(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.element_has=function(e,t){return -1!==t._attributeList._asArray().indexOf(e)},t.element_change=p,t.element_append=m,t.element_remove=f,t.element_replace=g,t.element_getAnAttributeByName=y,t.element_getAnAttributeByNamespaceAndLocalName=v,t.element_getAnAttributeValue=function(e,t,r=""){let n=v(r,t,e);return null===n?"":n._value},t.element_setAnAttribute=function(e,t){if(null!==e._element&&e._element!==t)throw new o.InUseAttributeError(`This attribute already exists in the document: ${e._qualifiedName} as a child of ${e._element._qualifiedName}.`);let r=v(e._namespace||"",e._localName,t);return r===e?e:(null!==r?g(r,e,t):m(e,t),r)},t.element_setAnAttributeValue=function(e,t,r,n=null,a=null){let i=v(a||"",t,e);if(null===i){let i=(0,s.create_attr)(e._nodeDocument,t);i._namespace=a,i._namespacePrefix=n,i._value=r,m(i,e);return}p(i,e,r)},t.element_removeAnAttributeByName=function(e,t){let r=y(e,t);return null!==r&&f(r,t),r},t.element_removeAnAttributeByNamespaceAndLocalName=function(e,t,r){let n=v(e,t,r);return null!==n&&f(n,r),n},t.element_createAnElement=function(e,t,r,i=null,u=null,d=!1){let c=null;if(!n.dom.features.customElements)return(c=(0,s.create_element)(e,t,r,i))._customElementState="uncustomized",c._customElementDefinition=null,c._is=u,c;let p=(0,l.customElement_lookUpACustomElementDefinition)(e,r,t,u);if(null!==p&&p.name!==p.localName)(c=new((0,h.document_elementInterface)(t,a.namespace.HTML)))._localName=t,c._namespace=a.namespace.HTML,c._namespacePrefix=i,c._customElementState="undefined",c._customElementDefinition=null,c._is=u,c._nodeDocument=e,d?(0,l.customElement_upgrade)(p,c):(0,l.customElement_enqueueACustomElementUpgradeReaction)(c,p);else if(null!==p)if(d)try{let r=new p.constructor;if(console.assert(void 0!==r._customElementState),console.assert(void 0!==r._customElementDefinition),console.assert(r._namespace===a.namespace.HTML),0!==r._attributeList.length)throw new o.NotSupportedError("Custom element already has attributes.");if(0!==r._children.size)throw new o.NotSupportedError("Custom element already has child nodes.");if(null!==r._parent)throw new o.NotSupportedError("Custom element already has a parent node.");if(r._nodeDocument!==e)throw new o.NotSupportedError("Custom element is already in a document.");if(r._localName!==t)throw new o.NotSupportedError("Custom element has a different local name.");r._namespacePrefix=i,r._is=null}catch(r){(c=(0,s.create_htmlUnknownElement)(e,t,a.namespace.HTML,i))._customElementState="failed",c._customElementDefinition=null,c._is=null}else(c=(0,s.create_htmlElement)(e,t,a.namespace.HTML,i))._customElementState="undefined",c._customElementDefinition=null,c._is=null,(0,l.customElement_enqueueACustomElementUpgradeReaction)(c,p);else(c=new((0,h.document_elementInterface)(t,r)))._localName=t,c._namespace=r,c._namespacePrefix=i,c._customElementState="uncustomized",c._customElementDefinition=null,c._is=u,c._nodeDocument=e,r===a.namespace.HTML&&(null!==u||(0,l.customElement_isValidCustomElementName)(t))&&(c._customElementState="undefined");if(null===c)throw Error("Unable to create element.");return c},t.element_insertAdjacent=function(e,t,r){switch(t.toLowerCase()){case"beforebegin":if(null===e._parent)return null;return(0,c.mutation_preInsert)(r,e._parent,e);case"afterbegin":return(0,c.mutation_preInsert)(r,e,e._firstChild);case"beforeend":return(0,c.mutation_preInsert)(r,e,null);case"afterend":if(null===e._parent)return null;return(0,c.mutation_preInsert)(r,e._parent,e._nextSibling);default:throw new o.SyntaxError('Invalid \'where\' argument. "beforebegin", "afterbegin", "beforeend" or "afterend" expected')}};let n=r(9091),a=r(360),i=r(8723),o=r(8036),s=r(725),l=r(4384),u=r(6594),d=r(3935),c=r(1028),h=r(1978);function p(e,t,r){n.dom.features.mutationObservers&&(0,u.observer_queueAttributeMutationRecord)(t,e._localName,e._namespace,e._value),n.dom.features.customElements&&i.Guard.isCustomElementNode(t)&&(0,l.customElement_enqueueACustomElementCallbackReaction)(t,"attributeChangedCallback",[e._localName,e._value,r,e._namespace]),n.dom.features.steps&&(0,d.dom_runAttributeChangeSteps)(t,e._localName,e._value,r,e._namespace),e._value=r}function m(e,t){n.dom.features.mutationObservers&&(0,u.observer_queueAttributeMutationRecord)(t,e._localName,e._namespace,null),n.dom.features.customElements&&i.Guard.isCustomElementNode(t)&&(0,l.customElement_enqueueACustomElementCallbackReaction)(t,"attributeChangedCallback",[e._localName,null,e._value,e._namespace]),n.dom.features.steps&&(0,d.dom_runAttributeChangeSteps)(t,e._localName,null,e._value,e._namespace),t._attributeList._asArray().push(e),e._element=t,t._nodeDocument._hasNamespaces||null===e._namespace&&null===e._namespacePrefix&&"xmlns"!==e._localName||(t._nodeDocument._hasNamespaces=!0)}function f(e,t){n.dom.features.mutationObservers&&(0,u.observer_queueAttributeMutationRecord)(t,e._localName,e._namespace,e._value),n.dom.features.customElements&&i.Guard.isCustomElementNode(t)&&(0,l.customElement_enqueueACustomElementCallbackReaction)(t,"attributeChangedCallback",[e._localName,e._value,null,e._namespace]),n.dom.features.steps&&(0,d.dom_runAttributeChangeSteps)(t,e._localName,e._value,null,e._namespace);let r=t._attributeList._asArray().indexOf(e);t._attributeList._asArray().splice(r,1),e._element=null}function g(e,t,r){n.dom.features.mutationObservers&&(0,u.observer_queueAttributeMutationRecord)(r,e._localName,e._namespace,e._value),n.dom.features.customElements&&i.Guard.isCustomElementNode(r)&&(0,l.customElement_enqueueACustomElementCallbackReaction)(r,"attributeChangedCallback",[e._localName,e._value,t._value,e._namespace]),n.dom.features.steps&&(0,d.dom_runAttributeChangeSteps)(r,e._localName,e._value,t._value,e._namespace);let a=r._attributeList._asArray().indexOf(e);-1!==a&&(r._attributeList._asArray()[a]=t),e._element=null,t._element=r,r._nodeDocument._hasNamespaces||null===t._namespace&&null===t._namespacePrefix&&"xmlns"!==t._localName||(r._nodeDocument._hasNamespaces=!0)}function y(e,t){return t._namespace===a.namespace.HTML&&"html"===t._nodeDocument._type&&(e=e.toLowerCase()),t._attributeList._asArray().find(t=>t._qualifiedName===e)||null}function v(e,t,r){let n=e||null;return r._attributeList._asArray().find(e=>e._namespace===n&&e._localName===t)||null}},331(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.event_setTheCanceledFlag=function(e){e._cancelable&&!e._inPassiveListenerFlag&&(e._canceledFlag=!0)},t.event_initialize=function(e,t,r,n){e._initializedFlag=!0,e._stopPropagationFlag=!1,e._stopImmediatePropagationFlag=!1,e._canceledFlag=!1,e._isTrusted=!1,e._target=null,e._type=t,e._bubbles=r,e._cancelable=n},t.event_createAnEvent=h,t.event_innerEventCreationSteps=p,t.event_dispatch=m,t.event_appendToAnEventPath=f,t.event_invoke=g,t.event_innerInvoke=y,t.event_fireAnEvent=function(e,t,r,n,a){void 0===r&&(r=s.EventImpl);let i=h(r);if(i._type=e,n)for(let e in n)i[e]=n[e];return m(i,t,a)},t.event_createLegacyEvent=function(e){let t=null;switch(e.toLowerCase()){case"beforeunloadevent":case"compositionevent":case"devicemotionevent":case"deviceorientationevent":case"dragevent":case"focusevent":case"hashchangeevent":case"htmlevents":case"keyboardevent":case"messageevent":case"mouseevent":case"mouseevents":case"storageevent":case"svgevents":case"textevent":case"touchevent":case"uievent":break;case"customevent":t=o.CustomEventImpl;break;case"event":case"events":t=s.EventImpl}if(null===t)throw new l.NotSupportedError(`Event constructor not found for interface ${e}.`);let r=new t("");return r._type="",r._timeStamp=new Date().getTime(),r._isTrusted=!1,r._initializedFlag=!1,r},t.event_getterEventHandlerIDLAttribute=function(e,t){let r=function(e,t){return null}(e,t);return null===r?null:function(e,t){return null}(r,t)},t.event_setterEventHandlerIDLAttribute=function(e,t,r){let n=function(e,t){return null}(e,t);if(null!==n)if(null===r);else{let e=n._eventHandlerMap.onabort;void 0!==e&&(e.value=r)}},t.event_determineTheTargetOfAnEventHandler=v,t.event_getTheCurrentValueOfAnEventHandler=b,t.event_activateAnEventHandler=function(e,t){},t.event_deactivateAnEventHandler=function(e,t){};let n=r(9091),a=r(3841),i=r(8723),o=r(5945),s=r(9971),l=r(8036),u=r(9693),d=r(9057),c=r(3935);function h(e,t){void 0===t&&(t=null);let r=p(e,t,new Date,{});return r._isTrusted=!0,r}function p(e,t,r,a){let i=new e("");return i._initializedFlag=!0,i._timeStamp=r.getTime(),Object.assign(i,a),n.dom.features.steps&&(0,c.dom_runEventConstructingSteps)(i),i}function m(e,t,r=!1,n={value:!1}){let o=!1;e._dispatchFlag=!0;let s=t;if(r){let e=t._associatedDocument;i.Guard.isDocumentNode(e)&&(s=e)}let l=null,c=(0,u.tree_retarget)(e._relatedTarget,t);if(t!==c||t===e._relatedTarget){let r=[];for(let n of e._touchTargetList)r.push((0,u.tree_retarget)(n,t));f(e,t,s,c,r,!1);let h=i.Guard.isMouseEvent(e)&&"click"===e._type;h&&void 0!==t._activationBehavior&&(l=t);let p=i.Guard.isSlotable(t)&&(0,d.shadowTree_isAssigned)(t)?t:null,m=!1,y=t._getTheParent(e);for(;null!==y&&i.Guard.isNode(y);){if(null!==p){if(!i.Guard.isSlot(y))throw Error("Parent node of a slotable should be a slot.");p=null;let e=(0,u.tree_rootNode)(y,!0);i.Guard.isShadowRoot(e)&&"closed"===e._mode&&(m=!0)}for(let t of(i.Guard.isSlotable(y)&&(0,d.shadowTree_isAssigned)(y)&&(p=y),c=(0,u.tree_retarget)(e._relatedTarget,y),r=[],e._touchTargetList))r.push((0,u.tree_retarget)(t,y));i.Guard.isWindow(y)||i.Guard.isNode(y)&&i.Guard.isNode(t)&&(0,u.tree_isAncestorOf)((0,u.tree_rootNode)(t,!0),y,!0,!0)?(h&&e._bubbles&&null===l&&y._activationBehavior&&(l=y),f(e,y,null,c,r,m)):y===c?y=null:(t=y,h&&null===l&&t._activationBehavior&&(l=t),f(e,y,t,c,r,m)),null!==y&&(y=y._getTheParent(e)),m=!1}let v=null,b=e._path;for(let e=b.length-1;e>=0;e--){let t=b[e];if(null!==t.shadowAdjustedTarget){v=t;break}}if(null!==v)if(i.Guard.isNode(v.shadowAdjustedTarget)&&i.Guard.isShadowRoot((0,u.tree_rootNode)(v.shadowAdjustedTarget,!0)))o=!0;else if(i.Guard.isNode(v.relatedTarget)&&i.Guard.isShadowRoot((0,u.tree_rootNode)(v.relatedTarget,!0)))o=!0;else for(let e=0;e<v.touchTargetList.length;e++){let t=v.touchTargetList[e];if(i.Guard.isNode(t)&&i.Guard.isShadowRoot((0,u.tree_rootNode)(t,!0))){o=!0;break}}null!==l&&void 0!==l._legacyPreActivationBehavior&&l._legacyPreActivationBehavior(e);for(let t=b.length-1;t>=0;t--){let r=b[t];null!==r.shadowAdjustedTarget?e._eventPhase=a.EventPhase.AtTarget:e._eventPhase=a.EventPhase.Capturing,g(r,e,"capturing",n)}for(let t=0;t<b.length;t++){let r=b[t];if(null!==r.shadowAdjustedTarget)e._eventPhase=a.EventPhase.AtTarget;else{if(!e._bubbles)continue;e._eventPhase=a.EventPhase.Bubbling}g(r,e,"bubbling",n)}}return e._eventPhase=a.EventPhase.None,e._currentTarget=null,e._path=[],e._dispatchFlag=!1,e._stopPropagationFlag=!1,e._stopImmediatePropagationFlag=!1,o&&(e._target=null,e._relatedTarget=null,e._touchTargetList=[]),null!==l&&(e._canceledFlag||void 0===l._activationBehavior?void 0!==l._legacyCanceledActivationBehavior&&l._legacyCanceledActivationBehavior(e):l._activationBehavior(e)),!e._canceledFlag}function f(e,t,r,n,a,o){let s=!1;i.Guard.isNode(t)&&i.Guard.isShadowRoot((0,u.tree_rootNode)(t))&&(s=!0);let l=!1;i.Guard.isShadowRoot(t)&&"closed"===t._mode&&(l=!0),e._path.push({invocationTarget:t,invocationTargetInShadowTree:s,shadowAdjustedTarget:r,relatedTarget:n,touchTargetList:a,rootOfClosedTree:l,slotInClosedTree:o})}function g(e,t,r,n={value:!1}){let a=t._path,i=-1;for(let t=0;t<a.length;t++)if(a[t]===e){i=t;break}if(-1!==i){let e=a[i];null!==e.shadowAdjustedTarget?t._target=e.shadowAdjustedTarget:i>0&&null!==(e=a[i-1]).shadowAdjustedTarget&&(t._target=e.shadowAdjustedTarget)}if(t._relatedTarget=e.relatedTarget,t._touchTargetList=e.touchTargetList,t._stopPropagationFlag)return;t._currentTarget=e.invocationTarget;let o=Array(...t._currentTarget._eventListenerList);if(!y(t,o,r,e,n)&&t._isTrusted){let a=t._type;"animationend"===a?t._type="webkitAnimationEnd":"animationiteration"===a?t._type="webkitAnimationIteration":"animationstart"===a?t._type="webkitAnimationStart":"transitionend"===a&&(t._type="webkitTransitionEnd"),y(t,o,r,e,n),t._type=a}}function y(e,t,r,n,a={value:!1}){let o=!1;for(let s=0;s<t.length;s++){let l=t[s];if(!l.removed){let t,s;if(e._type!==l.type||(o=!0,"capturing"===r&&!l.capture||"bubbling"===r&&l.capture))continue;if(l.once&&null!==e._currentTarget){let t=e._currentTarget,r=-1;for(let e=0;e<t._eventListenerList.length;e++)if(t._eventListenerList[e]===l){r=e;break}-1!==r&&t._eventListenerList.splice(r,1)}i.Guard.isWindow(s)&&(t=s._currentEvent,!1===n.invocationTargetInShadowTree&&(s._currentEvent=e)),l.passive&&(e._inPassiveListenerFlag=!0);try{l.callback.handleEvent.call(e._currentTarget,e)}catch(e){a.value=!0}if(l.passive&&(e._inPassiveListenerFlag=!1),i.Guard.isWindow(s)&&(s._currentEvent=t),e._stopImmediatePropagationFlag)break}}return o}function v(e,t){return null}function b(e,t){return null}},436(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eventTarget_flatten=a,t.eventTarget_flattenMore=function(e){let t=a(e),r=!1,i=!1;return(0,n.isBoolean)(e)||(r=e.once||!1,i=e.passive||!1),[t,i,r]},t.eventTarget_addEventListener=function(e,t){if(null!==t.callback){for(let r=0;r<e._eventListenerList.length;r++){let n=e._eventListenerList[r];if(n.type===t.type&&n.callback.handleEvent===t.callback.handleEvent&&n.capture===t.capture)return}e._eventListenerList.push(t)}},t.eventTarget_removeEventListener=function(e,t,r){t.removed=!0,e._eventListenerList.splice(r,1)},t.eventTarget_removeAllEventListeners=function(e){for(let t of e._eventListenerList)t.removed=!0;e._eventListenerList.length=0};let n=r(3738);function a(e){return(0,n.isBoolean)(e)?e:e.capture||!1}},1028(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mutation_ensurePreInsertionValidity=g,t.mutation_preInsert=y,t.mutation_insert=v,t.mutation_append=function(e,t){return y(e,t,null)},t.mutation_replace=function(e,t,r){if(r._nodeType!==i.NodeType.Document&&r._nodeType!==i.NodeType.DocumentFragment&&r._nodeType!==i.NodeType.Element)throw new a.HierarchyRequestError(`Only document, document fragment and element nodes can contain child nodes. Parent node is ${r.nodeName}.`);if((0,d.tree_isHostIncludingAncestorOf)(r,t,!0))throw new a.HierarchyRequestError(`The node to be inserted cannot be an ancestor of parent node. Node is ${t.nodeName}, parent node is ${r.nodeName}.`);if(e._parent!==r)throw new a.NotFoundError(`The reference child node cannot be found under parent node. Child node is ${e.nodeName}, parent node is ${r.nodeName}.`);if(t._nodeType!==i.NodeType.DocumentFragment&&t._nodeType!==i.NodeType.DocumentType&&t._nodeType!==i.NodeType.Element&&t._nodeType!==i.NodeType.Text&&t._nodeType!==i.NodeType.ProcessingInstruction&&t._nodeType!==i.NodeType.CData&&t._nodeType!==i.NodeType.Comment)throw new a.HierarchyRequestError(`Only document fragment, document type, element, text, processing instruction, cdata section or comment nodes can be inserted. Node is ${t.nodeName}.`);if(t._nodeType===i.NodeType.Text&&r._nodeType===i.NodeType.Document)throw new a.HierarchyRequestError(`Cannot insert a text node as a child of a document node. Node is ${t.nodeName}.`);if(t._nodeType===i.NodeType.DocumentType&&r._nodeType!==i.NodeType.Document)throw new a.HierarchyRequestError(`A document type node can only be inserted under a document node. Parent node is ${r.nodeName}.`);if(r._nodeType===i.NodeType.Document){if(t._nodeType===i.NodeType.DocumentFragment){let n=0;for(let e of t._children)if(e._nodeType===i.NodeType.Element)n++;else if(e._nodeType===i.NodeType.Text)throw new a.HierarchyRequestError(`Cannot insert text a node as a child of a document node. Node is ${e.nodeName}.`);if(n>1)throw new a.HierarchyRequestError(`A document node can only have one document element node. Document fragment to be inserted has ${n} element nodes.`);if(1===n){for(let t of r._children)if(t._nodeType===i.NodeType.Element&&t!==e)throw new a.HierarchyRequestError("The document node already has a document element node.");let t=e._nextSibling;for(;t;){if(t._nodeType===i.NodeType.DocumentType)throw new a.HierarchyRequestError("Cannot insert an element node before a document type node.");t=t._nextSibling}}}else if(t._nodeType===i.NodeType.Element){for(let n of r._children)if(n._nodeType===i.NodeType.Element&&n!==e)throw new a.HierarchyRequestError(`Document already has a document element node. Node is ${t.nodeName}.`);let n=e._nextSibling;for(;n;){if(n._nodeType===i.NodeType.DocumentType)throw new a.HierarchyRequestError(`Cannot insert an element node before a document type node. Node is ${t.nodeName}.`);n=n._nextSibling}}else if(t._nodeType===i.NodeType.DocumentType){for(let n of r._children)if(n._nodeType===i.NodeType.DocumentType&&n!==e)throw new a.HierarchyRequestError(`Document already has a document type node. Node is ${t.nodeName}.`);let n=e._previousSibling;for(;n;){if(n._nodeType===i.NodeType.Element)throw new a.HierarchyRequestError(`Cannot insert a document type node before an element node. Node is ${t.nodeName}.`);n=n._previousSibling}}}let o=e._nextSibling;o===t&&(o=t._nextSibling);let s=e._previousSibling;(0,f.document_adopt)(t,r._nodeDocument);let l=[];null!==e._parent&&(l.push(e),b(e,e._parent,!0));let u=[];return t._nodeType===i.NodeType.DocumentFragment?u=Array.from(t._children):u.push(t),v(t,r,o,!0),n.dom.features.mutationObservers&&(0,p.observer_queueTreeMutationRecord)(r,u,l,s,o),e},t.mutation_replaceAll=function(e,t){null!==e&&(0,f.document_adopt)(e,t._nodeDocument);let r=Array.from(t._children),a=[];for(let n of(e&&e._nodeType===i.NodeType.DocumentFragment?a=Array.from(e._children):null!==e&&a.push(e),r))b(n,t,!0);null!==e&&v(e,t,null,!0),n.dom.features.mutationObservers&&(0,p.observer_queueTreeMutationRecord)(t,a,r,null,null)},t.mutation_preRemove=function(e,t){if(e._parent!==t)throw new a.NotFoundError(`The child node cannot be found under parent node. Child node is ${e.nodeName}, parent node is ${t.nodeName}.`);return b(e,t),e},t.mutation_remove=b;let n=r(9091),a=r(8036),i=r(3841),o=r(8723),s=r(3738),l=r(360),u=r(4384),d=r(9693),c=r(7875),h=r(9057),p=r(6594),m=r(3935),f=r(1978);function g(e,t,r){let n=t._nodeType,o=e._nodeType,s=r?r._nodeType:null;if(n!==i.NodeType.Document&&n!==i.NodeType.DocumentFragment&&n!==i.NodeType.Element)throw new a.HierarchyRequestError(`Only document, document fragment and element nodes can contain child nodes. Parent node is ${t.nodeName}.`);if((0,d.tree_isHostIncludingAncestorOf)(t,e,!0))throw new a.HierarchyRequestError(`The node to be inserted cannot be an inclusive ancestor of parent node. Node is ${e.nodeName}, parent node is ${t.nodeName}.`);if(null!==r&&r._parent!==t)throw new a.NotFoundError(`The reference child node cannot be found under parent node. Child node is ${r.nodeName}, parent node is ${t.nodeName}.`);if(o!==i.NodeType.DocumentFragment&&o!==i.NodeType.DocumentType&&o!==i.NodeType.Element&&o!==i.NodeType.Text&&o!==i.NodeType.ProcessingInstruction&&o!==i.NodeType.CData&&o!==i.NodeType.Comment)throw new a.HierarchyRequestError(`Only document fragment, document type, element, text, processing instruction, cdata section or comment nodes can be inserted. Node is ${e.nodeName}.`);if(o===i.NodeType.Text&&n===i.NodeType.Document)throw new a.HierarchyRequestError(`Cannot insert a text node as a child of a document node. Node is ${e.nodeName}.`);if(o===i.NodeType.DocumentType&&n!==i.NodeType.Document)throw new a.HierarchyRequestError(`A document type node can only be inserted under a document node. Parent node is ${t.nodeName}.`);if(n===i.NodeType.Document){if(o===i.NodeType.DocumentFragment){let n=0;for(let t of e._children)if(t._nodeType===i.NodeType.Element)n++;else if(t._nodeType===i.NodeType.Text)throw new a.HierarchyRequestError(`Cannot insert text a node as a child of a document node. Node is ${t.nodeName}.`);if(n>1)throw new a.HierarchyRequestError(`A document node can only have one document element node. Document fragment to be inserted has ${n} element nodes.`);if(1===n){for(let e of t._children)if(e._nodeType===i.NodeType.Element)throw new a.HierarchyRequestError("The document node already has a document element node.");if(r){if(s===i.NodeType.DocumentType)throw new a.HierarchyRequestError("Cannot insert an element node before a document type node.");let e=r._nextSibling;for(;e;){if(e._nodeType===i.NodeType.DocumentType)throw new a.HierarchyRequestError("Cannot insert an element node before a document type node.");e=e._nextSibling}}}}else if(o===i.NodeType.Element){for(let r of t._children)if(r._nodeType===i.NodeType.Element)throw new a.HierarchyRequestError(`Document already has a document element node. Node is ${e.nodeName}.`);if(r){if(s===i.NodeType.DocumentType)throw new a.HierarchyRequestError(`Cannot insert an element node before a document type node. Node is ${e.nodeName}.`);let t=r._nextSibling;for(;t;){if(t._nodeType===i.NodeType.DocumentType)throw new a.HierarchyRequestError(`Cannot insert an element node before a document type node. Node is ${e.nodeName}.`);t=t._nextSibling}}}else if(o===i.NodeType.DocumentType){for(let r of t._children)if(r._nodeType===i.NodeType.DocumentType)throw new a.HierarchyRequestError(`Document already has a document type node. Node is ${e.nodeName}.`);if(r){let t=r._previousSibling;for(;t;){if(t._nodeType===i.NodeType.Element)throw new a.HierarchyRequestError(`Cannot insert a document type node before an element node. Node is ${e.nodeName}.`);t=t._previousSibling}}else{let r=t._firstChild;for(;r;){if(r._nodeType===i.NodeType.Element)throw new a.HierarchyRequestError(`Cannot insert a document type node before an element node. Node is ${e.nodeName}.`);r=r._nextSibling}}}}}function y(e,t,r){g(e,t,r);let n=r;return n===e&&(n=e._nextSibling),(0,f.document_adopt)(e,t._nodeDocument),v(e,t,n),e}function v(e,t,r,a){if(null===r&&e._nodeType!==i.NodeType.DocumentFragment)return void function(e,t,r){let a=t._lastChild;if(o.Guard.isElementNode(e)&&(o.Guard.isDocumentNode(t)&&(t._documentElement=e),e._nodeDocument._hasNamespaces||null===e._namespace&&null===e._namespacePrefix||(e._nodeDocument._hasNamespaces=!0)),e._parent=t,t._children.add(e),null===t._firstChild)e._previousSibling=null,e._nextSibling=null,t._firstChild=e,t._lastChild=e;else{let r=t._lastChild;e._previousSibling=r,e._nextSibling=null,r&&(r._nextSibling=e),r||(t._firstChild=e),t._lastChild=e}n.dom.features.slots&&null!==t._shadowRoot&&o.Guard.isSlotable(e)&&(0,h.shadowTree_assignASlot)(e),n.dom.features.steps&&o.Guard.isTextNode(e)&&(0,m.dom_runChildTextContentChangeSteps)(t),n.dom.features.slots&&o.Guard.isShadowRoot((0,d.tree_rootNode)(t))&&o.Guard.isSlot(t)&&(0,s.isEmpty)(t._assignedNodes)&&(0,h.shadowTree_signalASlotChange)(t),n.dom.features.slots&&(0,h.shadowTree_assignSlotablesForATree)((0,d.tree_rootNode)(e)),n.dom.features.steps&&(0,m.dom_runInsertionSteps)(e),n.dom.features.customElements&&o.Guard.isElementNode(e)&&(0,h.shadowTree_isConnected)(e)&&(o.Guard.isCustomElementNode(e)?(0,u.customElement_enqueueACustomElementCallbackReaction)(e,"connectedCallback",[]):(0,u.customElement_tryToUpgrade)(e)),n.dom.features.mutationObservers&&!r&&(0,p.observer_queueTreeMutationRecord)(t,[e],[],a,null)}(e,t,a);let c=e._nodeType===i.NodeType.DocumentFragment?e._children.size:1;if(null!==r&&0!==n.dom.rangeList.size){let e=(0,d.tree_index)(r);for(let r of n.dom.rangeList)r._start[0]===t&&r._start[1]>e&&(r._start[1]+=c),r._end[0]===t&&r._end[1]>e&&(r._end[1]+=c)}let f=e._nodeType===i.NodeType.DocumentFragment?Array(...e._children):[e];if(e._nodeType===i.NodeType.DocumentFragment)for(;e._firstChild;)b(e._firstChild,e,!0);n.dom.features.mutationObservers&&e._nodeType===i.NodeType.DocumentFragment&&(0,p.observer_queueTreeMutationRecord)(e,[],f,null,null);let g=r?r._previousSibling:t._lastChild,y=null===r?-1:(0,d.tree_index)(r);for(let e=0;e<f.length;e++){let a=f[e];if(o.Guard.isElementNode(a)&&(o.Guard.isDocumentNode(t)&&(t._documentElement=a),a._nodeDocument._hasNamespaces||null===a._namespace&&null===a._namespacePrefix||(a._nodeDocument._hasNamespaces=!0)),a._parent=t,null===r?l.set.append(t._children,a):(l.set.insert(t._children,a,y),y++),null===t._firstChild)a._previousSibling=null,a._nextSibling=null,t._firstChild=a,t._lastChild=a;else{let e=r?r._previousSibling:t._lastChild,n=r||null;a._previousSibling=e,a._nextSibling=n,e&&(e._nextSibling=a),n&&(n._previousSibling=a),e||(t._firstChild=a),n||(t._lastChild=a)}n.dom.features.slots&&null!==t._shadowRoot&&o.Guard.isSlotable(a)&&(0,h.shadowTree_assignASlot)(a),n.dom.features.steps&&o.Guard.isTextNode(a)&&(0,m.dom_runChildTextContentChangeSteps)(t),n.dom.features.slots&&o.Guard.isShadowRoot((0,d.tree_rootNode)(t))&&o.Guard.isSlot(t)&&(0,s.isEmpty)(t._assignedNodes)&&(0,h.shadowTree_signalASlotChange)(t),n.dom.features.slots&&(0,h.shadowTree_assignSlotablesForATree)((0,d.tree_rootNode)(a));let i=(0,d.tree_getFirstDescendantNode)(a,!0,!0);for(;null!==i;)n.dom.features.steps&&(0,m.dom_runInsertionSteps)(i),n.dom.features.customElements&&o.Guard.isElementNode(i)&&(0,h.shadowTree_isConnected)(i)&&(o.Guard.isCustomElementNode(i)?(0,u.customElement_enqueueACustomElementCallbackReaction)(i,"connectedCallback",[]):(0,u.customElement_tryToUpgrade)(i)),i=(0,d.tree_getNextDescendantNode)(a,i,!0,!0)}n.dom.features.mutationObservers&&!a&&(0,p.observer_queueTreeMutationRecord)(t,f,[],g,r)}function b(e,t,r){if(0!==n.dom.rangeList.size){let r=(0,d.tree_index)(e);for(let a of n.dom.rangeList)(0,d.tree_isDescendantOf)(e,a._start[0],!0)&&(a._start=[t,r]),(0,d.tree_isDescendantOf)(e,a._end[0],!0)&&(a._end=[t,r]),a._start[0]===t&&a._start[1]>r&&a._start[1]--,a._end[0]===t&&a._end[1]>r&&a._end[1]--;for(let e of n.dom.rangeList)e._start[0]===t&&e._start[1]>r&&(e._start[1]-=1),e._end[0]===t&&e._end[1]>r&&(e._end[1]-=1)}if(n.dom.features.steps)for(let t of(0,c.nodeIterator_iteratorList)())t._root._nodeDocument===e._nodeDocument&&(0,m.dom_runNodeIteratorPreRemovingSteps)(t,e);let a=e._previousSibling,i=e._nextSibling;o.Guard.isDocumentNode(t)&&o.Guard.isElementNode(e)&&(t._documentElement=null),e._parent=null,t._children.delete(e);let l=e._previousSibling,f=e._nextSibling;e._previousSibling=null,e._nextSibling=null,l&&(l._nextSibling=f),f&&(f._previousSibling=l),l||(t._firstChild=f),f||(t._lastChild=l),n.dom.features.slots&&o.Guard.isSlotable(e)&&null!==e._assignedSlot&&(0,h.shadowTree_isAssigned)(e)&&(0,h.shadowTree_assignSlotables)(e._assignedSlot),n.dom.features.slots&&o.Guard.isShadowRoot((0,d.tree_rootNode)(t))&&o.Guard.isSlot(t)&&(0,s.isEmpty)(t._assignedNodes)&&(0,h.shadowTree_signalASlotChange)(t),n.dom.features.slots&&null!==(0,d.tree_getFirstDescendantNode)(e,!0,!1,e=>o.Guard.isSlot(e))&&((0,h.shadowTree_assignSlotablesForATree)((0,d.tree_rootNode)(t)),(0,h.shadowTree_assignSlotablesForATree)(e)),n.dom.features.steps&&(0,m.dom_runRemovingSteps)(e,t),n.dom.features.customElements&&o.Guard.isCustomElementNode(e)&&(0,u.customElement_enqueueACustomElementCallbackReaction)(e,"disconnectedCallback",[]);let g=(0,d.tree_getFirstDescendantNode)(e,!1,!0);for(;null!==g;)n.dom.features.steps&&(0,m.dom_runRemovingSteps)(g,e),n.dom.features.customElements&&o.Guard.isCustomElementNode(g)&&(0,u.customElement_enqueueACustomElementCallbackReaction)(g,"disconnectedCallback",[]),g=(0,d.tree_getNextDescendantNode)(e,g,!1,!0);if(n.dom.features.mutationObservers){let r=(0,d.tree_getFirstAncestorNode)(t,!0);for(;null!==r;){for(let t of r._registeredObserverList)t.options.subtree&&e._registeredObserverList.push({observer:t.observer,options:t.options,source:t});r=(0,d.tree_getNextAncestorNode)(t,r,!0)}}n.dom.features.mutationObservers&&!r&&(0,p.observer_queueTreeMutationRecord)(t,[],[e],a,i),n.dom.features.steps&&o.Guard.isTextNode(e)&&(0,m.dom_runChildTextContentChangeSteps)(t)}},6594(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observer_queueAMutationObserverMicrotask=u,t.observer_notifyMutationObservers=d,t.observer_queueMutationRecord=c,t.observer_queueTreeMutationRecord=function(e,t,r,n,a){c("childList",e,null,null,null,t,r,n,a)},t.observer_queueAttributeMutationRecord=function(e,t,r,n){c("attributes",e,t,r,n,[],[],null,null)};let n=r(9091),a=r(8723),i=r(360),o=r(725),s=r(9693),l=r(331);function u(){let e=n.dom.window;e._mutationObserverMicrotaskQueued||(e._mutationObserverMicrotaskQueued=!0,Promise.resolve().then(()=>{d()}))}function d(){let e=n.dom.window;e._mutationObserverMicrotaskQueued=!1;let t=i.set.clone(e._mutationObservers),r=i.set.clone(e._signalSlots);for(let r of(i.set.empty(e._signalSlots),t)){let e=i.list.clone(r._recordQueue);i.list.empty(r._recordQueue);for(let e=0;e<r._nodeList.length;e++){let t=r._nodeList[e];i.list.remove(t._registeredObserverList,e=>a.Guard.isTransientRegisteredObserver(e)&&e.observer===r)}if(!i.list.isEmpty(e))try{r._callback.call(r,e,r)}catch(e){}}if(n.dom.features.slots)for(let e of r)(0,l.event_fireAnEvent)("slotchange",e,void 0,{bubbles:!0})}function c(e,t,r,n,a,i,l,d,c){let h=new Map,p=(0,s.tree_getFirstAncestorNode)(t,!0);for(;null!==p;){for(let i=0;i<p._registeredObserverList.length;i++){let o=p._registeredObserverList[i],s=o.options;if(p!==t&&!s.subtree||"attributes"===e&&!s.attributes||"attributes"===e&&s.attributeFilter&&(!s.attributeFilter.indexOf(r||"")||null!==n)||"characterData"===e&&!s.characterData||"childList"===e&&!s.childList)continue;let l=o.observer;h.has(l)||h.set(l,null),("attributes"===e&&s.attributeOldValue||"characterData"===e&&s.characterDataOldValue)&&h.set(l,a)}p=(0,s.tree_getNextAncestorNode)(t,p,!0)}for(let[a,s]of h){let u=(0,o.create_mutationRecord)(e,t,(0,o.create_nodeListStatic)(t,i),(0,o.create_nodeListStatic)(t,l),d,c,r,n,s);a._recordQueue.push(u)}u()}},254(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.namespace_validate=o,t.namespace_validateAndExtract=function(e,t){e||(e=null),o(t);let r=t.split(":"),i=2===r.length?r[0]:null,s=2===r.length?r[1]:t;if(i&&null===e)throw new n.NamespaceError("Qualified name includes a prefix but the namespace is null.");if("xml"===i&&e!==a.namespace.XML)throw new n.NamespaceError('Qualified name includes the "xml" prefix but the namespace is not the XML namespace.');if(e!==a.namespace.XMLNS&&("xmlns"===i||"xmlns"===t))throw new n.NamespaceError('Qualified name includes the "xmlns" prefix but the namespace is not the XMLNS namespace.');if(e===a.namespace.XMLNS&&"xmlns"!==i&&"xmlns"!==t)throw new n.NamespaceError('Qualified name does not include the "xmlns" prefix but the namespace is the XMLNS namespace.');return[e,i,s]},t.namespace_extractQName=function(e){o(e);let t=e.split(":");return[2===t.length?t[0]:null,2===t.length?t[1]:e]};let n=r(8036),a=r(360),i=r(9e3);function o(e){if(!(0,i.xml_isName)(e))throw new n.InvalidCharacterError(`Invalid XML name: ${e}`);if(!(0,i.xml_isQName)(e))throw new n.InvalidCharacterError(`Invalid XML qualified name: ${e}.`)}},4349(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.node_stringReplaceAll=function(e,t){let r=null;""!==e&&(r=(0,o.create_text)(t._nodeDocument,e)),(0,u.mutation_replaceAll)(r,t)},t.node_clone=function e(t,r=null,i=!1){let s;if(null===r&&(r=t._nodeDocument),a.Guard.isElementNode(t))for(let n of(s=(0,d.element_createAnElement)(r,t._localName,t._namespace,t._namespacePrefix,t._is,!1),t._attributeList)){let t=e(n,r);(0,d.element_append)(t,s)}else if(a.Guard.isDocumentNode(t)){let e=(0,o.create_document)();e._encoding=t._encoding,e._contentType=t._contentType,e._URL=t._URL,e._origin=t._origin,e._type=t._type,e._mode=t._mode,s=e}else if(a.Guard.isDocumentTypeNode(t))s=(0,o.create_documentType)(r,t._name,t._publicId,t._systemId);else if(a.Guard.isAttrNode(t)){let e=(0,o.create_attr)(r,t.localName);e._namespace=t._namespace,e._namespacePrefix=t._namespacePrefix,e._value=t._value,s=e}else s=a.Guard.isExclusiveTextNode(t)?(0,o.create_text)(r,t._data):a.Guard.isCDATASectionNode(t)?(0,o.create_cdataSection)(r,t._data):a.Guard.isCommentNode(t)?(0,o.create_comment)(r,t._data):a.Guard.isProcessingInstructionNode(t)?(0,o.create_processingInstruction)(r,t._target,t._data):a.Guard.isDocumentFragmentNode(t)?(0,o.create_documentFragment)(r):Object.create(t);if(a.Guard.isDocumentNode(s)?(s._nodeDocument=s,r=s):s._nodeDocument=r,n.dom.features.steps&&(0,l.dom_runCloningSteps)(s,t,r,i),i)for(let n of t._children){let t=e(n,r,!0);(0,u.mutation_append)(t,s)}return s},t.node_equals=function e(t,r){if(t._nodeType!==r._nodeType)return!1;if(a.Guard.isDocumentTypeNode(t)&&a.Guard.isDocumentTypeNode(r)){if(t._name!==r._name||t._publicId!==r._publicId||t._systemId!==r._systemId)return!1}else if(a.Guard.isElementNode(t)&&a.Guard.isElementNode(r)){if(t._namespace!==r._namespace||t._namespacePrefix!==r._namespacePrefix||t._localName!==r._localName||t._attributeList.length!==r._attributeList.length)return!1}else if(a.Guard.isAttrNode(t)&&a.Guard.isAttrNode(r)){if(t._namespace!==r._namespace||t._localName!==r._localName||t._value!==r._value)return!1}else if(a.Guard.isProcessingInstructionNode(t)&&a.Guard.isProcessingInstructionNode(r)){if(t._target!==r._target||t._data!==r._data)return!1}else if(a.Guard.isCharacterDataNode(t)&&a.Guard.isCharacterDataNode(r)&&t._data!==r._data)return!1;if(a.Guard.isElementNode(t)&&a.Guard.isElementNode(r)){let n={};for(let e of t._attributeList)n[e._localName]=e;for(let t of r._attributeList){let r=n[t._localName];if(!r||!e(r,t))return!1}}if(t._children.size!==r._children.size)return!1;let n=t._children[Symbol.iterator](),i=r._children[Symbol.iterator](),o=n.next(),s=i.next();for(;!o.done&&!s.done;){if(!e(o.value,s.value))return!1;o=n.next(),s=i.next()}return!0},t.node_listOfElementsWithQualifiedName=function(e,t){return"*"===e?(0,o.create_htmlCollection)(t):"html"===t._nodeDocument._type?(0,o.create_htmlCollection)(t,function(t){return t._namespace===i.namespace.HTML&&t._qualifiedName===e.toLowerCase()||t._namespace!==i.namespace.HTML&&t._qualifiedName===e}):(0,o.create_htmlCollection)(t,function(t){return t._qualifiedName===e})},t.node_listOfElementsWithNamespace=function(e,t,r){return(""===e&&(e=null),"*"===e&&"*"===t)?(0,o.create_htmlCollection)(r):"*"===e?(0,o.create_htmlCollection)(r,function(e){return e._localName===t}):"*"===t?(0,o.create_htmlCollection)(r,function(t){return t._namespace===e}):(0,o.create_htmlCollection)(r,function(r){return r._localName===t&&r._namespace===e})},t.node_listOfElementsWithClassNames=function(e,t){let r=(0,s.orderedSet_parse)(e);if(0===r.size)return(0,o.create_htmlCollection)(t,()=>!1);let n="quirks"!==t._nodeDocument._mode;return(0,o.create_htmlCollection)(t,function(e){let t=e.classList;return(0,s.orderedSet_contains)(t._tokenSet,r,n)})},t.node_locateANamespacePrefix=function e(t,r){if(t._namespace===r&&null!==t._namespacePrefix)return t._namespacePrefix;for(let e=0;e<t._attributeList.length;e++){let n=t._attributeList[e];if("xmlns"===n._namespacePrefix&&n._value===r)return n._localName}return t._parent&&a.Guard.isElementNode(t._parent)?e(t._parent,r):null},t.node_locateANamespace=function e(t,r){if(a.Guard.isElementNode(t)){if(null!==t._namespace&&t._namespacePrefix===r)return t._namespace;for(let e=0;e<t._attributeList.length;e++){let n=t._attributeList[e];if(n._namespace===i.namespace.XMLNS&&"xmlns"===n._namespacePrefix&&n._localName===r||null===r&&n._namespace===i.namespace.XMLNS&&null===n._namespacePrefix&&"xmlns"===n._localName)return n._value||null}return null===t.parentElement?null:e(t.parentElement,r)}return a.Guard.isDocumentNode(t)?null===t.documentElement?null:e(t.documentElement,r):a.Guard.isDocumentTypeNode(t)||a.Guard.isDocumentFragmentNode(t)?null:a.Guard.isAttrNode(t)?null===t._element?null:e(t._element,r):t._parent&&a.Guard.isElementNode(t._parent)?e(t._parent,r):null};let n=r(9091),a=r(8723),i=r(360),o=r(725),s=r(4048),l=r(3935),u=r(1028),d=r(6419)},7875(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodeIterator_traverse=function(e,t){let r=e._reference,n=e._pointerBeforeReference;for(;;){if(t)if(n)n=!1;else{let t=(0,o.tree_getFollowingNode)(e._root,r);if(!t)return null;r=t}else if(n){let t=(0,o.tree_getPrecedingNode)(e.root,r);if(!t)return null;r=t}else n=!0;if((0,i.traversal_filter)(e,r)===a.FilterResult.Accept)break}return e._reference=r,e._pointerBeforeReference=n,r},t.nodeIterator_iteratorList=function(){return n.dom.window._iteratorList};let n=r(9091),a=r(3841),i=r(3697),o=r(9693)},4048(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.orderedSet_parse=a,t.orderedSet_serialize=i,t.orderedSet_sanitize=function(e){return i(a(e))},t.orderedSet_contains=function(e,t,r){for(let n of t){let t=!1;for(let a of e)if(r){if(a===n){t=!0;break}}else if(a.toUpperCase()===n.toUpperCase()){t=!0;break}if(!t)return!1}return!0};let n=r(360);function a(e){return new Set(n.string.splitAStringOnASCIIWhitespace(e))}function i(e){return[...e].join(" ")}},5261(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parentNode_convertNodesIntoANode=function(e,t){let r=null;for(let r=0;r<e.length;r++){let i=e[r];if((0,n.isString)(i)){let n=(0,a.create_text)(t,i);e[r]=n}}if(1===e.length)r=e[0];else{let n=r=(0,a.create_documentFragment)(t);for(let t of e)n.appendChild(t)}return r};let n=r(3738),a=r(725)},8068(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range_collapsed=p,t.range_root=m,t.range_isContained=f,t.range_isPartiallyContained=g,t.range_setTheStart=function(e,t,r){if(i.Guard.isDocumentTypeNode(t))throw new a.InvalidNodeTypeError;if(r>(0,s.tree_nodeLength)(t))throw new a.IndexSizeError;let o=[t,r];(m(e)!==(0,s.tree_rootNode)(t)||(0,l.boundaryPoint_position)(o,e._end)===n.BoundaryPosition.After)&&(e._end=o),e._start=o},t.range_setTheEnd=function(e,t,r){if(i.Guard.isDocumentTypeNode(t))throw new a.InvalidNodeTypeError;if(r>(0,s.tree_nodeLength)(t))throw new a.IndexSizeError;let o=[t,r];(m(e)!==(0,s.tree_rootNode)(t)||(0,l.boundaryPoint_position)(o,e._start)===n.BoundaryPosition.Before)&&(e._start=o),e._end=o},t.range_select=function(e,t){let r=e._parent;if(null===r)throw new a.InvalidNodeTypeError;let n=(0,s.tree_index)(e);t._start=[r,n],t._end=[r,n+1]},t.range_extract=y,t.range_cloneTheContents=function e(t){let r=(0,o.create_documentFragment)(t._startNode._nodeDocument);if(p(t))return r;let n=t._startNode,l=t._startOffset,h=t._endNode,m=t._endOffset;if(n===h&&i.Guard.isCharacterDataNode(n)){let e=(0,d.node_clone)(n);e._data=(0,u.characterData_substringData)(n,l,m-l),(0,c.mutation_append)(e,r)}let v=n;for(;!(0,s.tree_isAncestorOf)(h,v,!0);){if(null===v._parent)throw Error("Parent node is null.");v=v._parent}let b=null;if(!(0,s.tree_isAncestorOf)(h,n,!0)){for(let e of v._children)if(g(e,t)){b=e;break}}let w=null;if(!(0,s.tree_isAncestorOf)(n,h,!0)){let e=[...v._children];for(let r=e.length-1;r>0;r--){let n=e[r];if(g(n,t)){w=n;break}}}let x=[];for(let e of v._children)if(f(e,t)){if(i.Guard.isDocumentTypeNode(e))throw new a.HierarchyRequestError;x.push(e)}if(i.Guard.isCharacterDataNode(b)){let e=(0,d.node_clone)(n);e._data=(0,u.characterData_substringData)(n,l,(0,s.tree_nodeLength)(n)-l),(0,c.mutation_append)(e,r)}else if(null!==b){let t=(0,d.node_clone)(b);(0,c.mutation_append)(t,r);let a=e((0,o.create_range)([n,l],[b,(0,s.tree_nodeLength)(b)]));(0,c.mutation_append)(a,t)}for(let e of x){let t=(0,d.node_clone)(e);(0,c.mutation_append)(t,r)}if(i.Guard.isCharacterDataNode(w)){let e=(0,d.node_clone)(h);e._data=(0,u.characterData_substringData)(h,0,m),(0,c.mutation_append)(e,r)}else if(null!==w){let e=(0,d.node_clone)(w);r.append(e);let t=y((0,o.create_range)([w,0],[h,m]));(0,c.mutation_append)(t,e)}return r},t.range_insert=function(e,t){let r;if(i.Guard.isProcessingInstructionNode(t._startNode)||i.Guard.isCommentNode(t._startNode)||i.Guard.isTextNode(t._startNode)&&null===t._startNode._parent||t._startNode===e)throw new a.HierarchyRequestError;let n=null;if(i.Guard.isTextNode(t._startNode))n=t._startNode;else{let e=0;for(let r of t._startNode._children){if(e===t._startOffset){n=r;break}e++}}if(null===n)r=t._startNode;else{if(null===n._parent)throw Error("Parent node is null.");r=n._parent}(0,c.mutation_ensurePreInsertionValidity)(e,r,n),i.Guard.isTextNode(t._startNode)&&(n=(0,h.text_split)(t._startNode,t._startOffset)),e===n&&(n=e._nextSibling),null!==e._parent&&(0,c.mutation_remove)(e,e._parent);let o=null===n?(0,s.tree_nodeLength)(r):(0,s.tree_index)(n);i.Guard.isDocumentFragmentNode(e)?o+=(0,s.tree_nodeLength)(e):o++,(0,c.mutation_preInsert)(e,r,n),p(t)&&(t._end=[r,o])},t.range_getContainedNodes=function(e){return{[Symbol.iterator]:()=>{let t=e.commonAncestorContainer,r=(0,s.tree_getFirstDescendantNode)(t);return{next:()=>{for(;r&&!f(r,e);)r=(0,s.tree_getNextDescendantNode)(t,r);if(null===r)return{done:!0,value:null};{let e={done:!1,value:r};return r=(0,s.tree_getNextDescendantNode)(t,r),e}}}}}},t.range_getPartiallyContainedNodes=function(e){return{[Symbol.iterator]:()=>{let t=e.commonAncestorContainer,r=(0,s.tree_getFirstDescendantNode)(t);return{next:()=>{for(;r&&!g(r,e);)r=(0,s.tree_getNextDescendantNode)(t,r);if(null===r)return{done:!0,value:null};{let e={done:!1,value:r};return r=(0,s.tree_getNextDescendantNode)(t,r),e}}}}}};let n=r(3841),a=r(8036),i=r(8723),o=r(725),s=r(9693),l=r(3819),u=r(8966),d=r(4349),c=r(1028),h=r(864);function p(e){return e._startNode===e._endNode&&e._startOffset===e._endOffset}function m(e){return(0,s.tree_rootNode)(e._startNode)}function f(e,t){return(0,s.tree_rootNode)(e)===m(t)&&(0,l.boundaryPoint_position)([e,0],t._start)===n.BoundaryPosition.After&&(0,l.boundaryPoint_position)([e,(0,s.tree_nodeLength)(e)],t._end)===n.BoundaryPosition.Before}function g(e,t){let r=(0,s.tree_isAncestorOf)(t._startNode,e,!0),n=(0,s.tree_isAncestorOf)(t._endNode,e,!0);return r&&!n||!r&&n}function y(e){let t,r,n=(0,o.create_documentFragment)(e._startNode._nodeDocument);if(p(e))return n;let l=e._startNode,h=e._startOffset,m=e._endNode,v=e._endOffset;if(l===m&&i.Guard.isCharacterDataNode(l)){let e=(0,d.node_clone)(l);return e._data=(0,u.characterData_substringData)(l,h,v-h),(0,c.mutation_append)(e,n),(0,u.characterData_replaceData)(l,h,v-h,""),n}let b=l;for(;!(0,s.tree_isAncestorOf)(m,b,!0);){if(null===b._parent)throw Error("Parent node is null.");b=b._parent}let w=null;if(!(0,s.tree_isAncestorOf)(m,l,!0)){for(let t of b._children)if(g(t,e)){w=t;break}}let x=null;if(!(0,s.tree_isAncestorOf)(l,m,!0)){let t=[...b._children];for(let r=t.length-1;r>0;r--){let n=t[r];if(g(n,e)){x=n;break}}}let C=[];for(let t of b._children)if(f(t,e)){if(i.Guard.isDocumentTypeNode(t))throw new a.HierarchyRequestError;C.push(t)}if((0,s.tree_isAncestorOf)(m,l,!0))t=l,r=h;else{let e=l;for(;null!==e._parent&&!(0,s.tree_isAncestorOf)(m,e._parent);)e=e._parent;if(null===e._parent)throw Error("Parent node is null.");t=e._parent,r=1+(0,s.tree_index)(e)}if(i.Guard.isCharacterDataNode(w)){let e=(0,d.node_clone)(l);e._data=(0,u.characterData_substringData)(l,h,(0,s.tree_nodeLength)(l)-h),(0,c.mutation_append)(e,n),(0,u.characterData_replaceData)(l,h,(0,s.tree_nodeLength)(l)-h,"")}else if(null!==w){let e=(0,d.node_clone)(w);(0,c.mutation_append)(e,n);let t=y((0,o.create_range)([l,h],[w,(0,s.tree_nodeLength)(w)]));(0,c.mutation_append)(t,e)}for(let e of C)(0,c.mutation_append)(e,n);if(i.Guard.isCharacterDataNode(x)){let e=(0,d.node_clone)(m);e._data=(0,u.characterData_substringData)(m,0,v),(0,c.mutation_append)(e,n),(0,u.characterData_replaceData)(m,0,v,"")}else if(null!==x){let e=(0,d.node_clone)(x);(0,c.mutation_append)(e,n);let t=y((0,o.create_range)([x,0],[m,v]));(0,c.mutation_append)(t,e)}return e._start=[t,r],e._end=[t,r],n}},1869(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectors_scopeMatchASelectorsString=function(e,t){throw new n.NotSupportedError};let n=r(8036)},9057(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shadowTree_signalASlotChange=l,t.shadowTree_isConnected=function(e){return a.Guard.isDocumentNode((0,o.tree_rootNode)(e,!0))},t.shadowTree_isAssigned=function(e){return null!==e._assignedSlot},t.shadowTree_findASlot=u,t.shadowTree_findSlotables=d,t.shadowTree_findFlattenedSlotables=function e(t){let r=[],n=(0,o.tree_rootNode)(t);if(!a.Guard.isShadowRoot(n))return r;let s=d(t);if((0,i.isEmpty)(s))for(let e of t._children)a.Guard.isSlotable(e)&&s.push(e);for(let t of s)if(a.Guard.isSlot(t)&&a.Guard.isShadowRoot((0,o.tree_rootNode)(t))){let n=e(t);r.push(...n)}else r.push(t);return r},t.shadowTree_assignSlotables=c,t.shadowTree_assignSlotablesForATree=function(e){let t=(0,o.tree_getFirstDescendantNode)(e,!0,!1,e=>a.Guard.isSlot(e));for(;null!==t;)c(t),t=(0,o.tree_getNextDescendantNode)(e,t,!0,!1,e=>a.Guard.isSlot(e))},t.shadowTree_assignASlot=function(e){let t=u(e);null!==t&&c(t)};let n=r(9091),a=r(8723),i=r(3738),o=r(9693),s=r(6594);function l(e){n.dom.window._signalSlots.add(e),(0,s.observer_queueAMutationObserverMicrotask)()}function u(e,t=!1){let r=a.Cast.asNode(e)._parent;if(null===r)return null;let n=r._shadowRoot||null;if(null===n||t&&"open"!==n._mode)return null;let i=(0,o.tree_getFirstDescendantNode)(n,!1,!0,e=>a.Guard.isSlot(e));for(;null!==i;){if(i._name===e._name)return i;i=(0,o.tree_getNextDescendantNode)(n,i,!1,!0,e=>a.Guard.isSlot(e))}return null}function d(e){let t=[],r=(0,o.tree_rootNode)(e);if(!a.Guard.isShadowRoot(r))return t;for(let n of r._host._children)a.Guard.isSlotable(n)&&u(n)===e&&t.push(n);return t}function c(e){let t=d(e);if(t.length===e._assignedNodes.length){let r=!0;for(let n=0;n<t.length;n++)if(t[n]!==e._assignedNodes[n]){r=!1;break}r||l(e)}for(let r of(e._assignedNodes=t,t))r._assignedSlot=e}},864(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.text_contiguousTextNodes=function(e,t=!1){return{[Symbol.iterator](){let r=e;for(;r&&a.Guard.isTextNode(r._previousSibling);)r=r._previousSibling;return{next(){if(r&&!t&&r===e&&(r=a.Guard.isTextNode(r._nextSibling)?r._nextSibling:null),null===r)return{done:!0,value:null};{let e={done:!1,value:r};return r=a.Guard.isTextNode(r._nextSibling)?r._nextSibling:null,e}}}}}},t.text_contiguousExclusiveTextNodes=function(e,t=!1){return{[Symbol.iterator](){let r=e;for(;r&&a.Guard.isExclusiveTextNode(r._previousSibling);)r=r._previousSibling;return{next(){if(r&&!t&&r===e&&(r=a.Guard.isExclusiveTextNode(r._nextSibling)?r._nextSibling:null),null===r)return{done:!0,value:null};{let e={done:!1,value:r};return r=a.Guard.isExclusiveTextNode(r._nextSibling)?r._nextSibling:null,e}}}}}},t.text_descendantTextContent=function(e){let t="",r=(0,s.tree_getFirstDescendantNode)(e,!1,!1,e=>a.Guard.isTextNode(e));for(;null!==r;)t+=r._data,r=(0,s.tree_getNextDescendantNode)(e,r,!1,!1,e=>a.Guard.isTextNode(e));return t},t.text_split=function(e,t){let r=e._data.length;if(t>r)throw new i.IndexSizeError;let a=r-t,d=(0,l.characterData_substringData)(e,t,a),c=(0,o.create_text)(e._nodeDocument,d),h=e._parent;if(null!==h)for(let r of((0,u.mutation_insert)(c,h,e._nextSibling),n.dom.rangeList)){r._start[0]===e&&r._start[1]>t&&(r._start[0]=c,r._start[1]-=t),r._end[0]===e&&r._end[1]>t&&(r._end[0]=c,r._end[1]-=t);let n=(0,s.tree_index)(e);r._start[0]===h&&r._start[1]===n+1&&r._start[1]++,r._end[0]===h&&r._end[1]===n+1&&r._end[1]++}return(0,l.characterData_replaceData)(e,t,a,""),c};let n=r(9091),a=r(8723),i=r(8036),o=r(725),s=r(9693),l=r(8966),u=r(1028)},3697(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.traversal_filter=function(e,t){if(e._activeFlag)throw new a.InvalidStateError;let r=t._nodeType-1;if((e.whatToShow&1<<r)==0)return n.FilterResult.Skip;if(!e.filter)return n.FilterResult.Accept;e._activeFlag=!0;let i=n.FilterResult.Reject;try{i=e.filter.acceptNode(t)}catch(t){throw e._activeFlag=!1,t}return e._activeFlag=!1,i};let n=r(3841),a=r(8036)},9693(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tree_getFirstDescendantNode=s,t.tree_getNextDescendantNode=l,t.tree_getDescendantNodes=u,t.tree_getDescendantElements=function(e,t=!1,r=!1,a){return t||0!==e._children.size?{[Symbol.iterator]:()=>{let i=u(e,t,r,e=>n.Guard.isElementNode(e))[Symbol.iterator](),o=i.next().value;return{next(){for(;o&&a&&!a(o);)o=i.next().value;if(null===o)return{done:!0,value:null};{let e={done:!1,value:o};return o=i.next().value,e}}}}}:o()},t.tree_getSiblingNodes=function(e,t=!1,r){return e._parent&&0!==e._parent._children.size?{[Symbol.iterator](){let n=e._parent?e._parent._firstChild:null;return{next(){for(;n&&(r&&!r(n)||!t&&n===e);)n=n._nextSibling;if(null===n)return{done:!0,value:null};{let e={done:!1,value:n};return n=n._nextSibling,e}}}}}:o()},t.tree_getFirstAncestorNode=d,t.tree_getNextAncestorNode=c,t.tree_getAncestorNodes=function(e,t=!1,r){return t||e._parent?{[Symbol.iterator](){let n=d(e,t,r);return{next(){if(null===n)return{done:!0,value:null};{let a={done:!1,value:n};return n=c(e,n,t,r),a}}}}}:o()},t.tree_getCommonAncestor=function(e,t){if(e===t)return e._parent;let r=[],n=[],a=d(e,!0);for(;null!==a;)r.push(a),a=c(e,a,!0);let i=d(t,!0);for(;null!==i;)n.push(i),i=c(t,i,!0);let o=r.length,s=n.length,l=null;for(let e=Math.min(o,s);e>0;e--){let e=r[--o];if(e!==n[--s])break;l=e}return l},t.tree_getFollowingNode=function(e,t){if(t._firstChild)return t._firstChild;if(t._nextSibling)return t._nextSibling;for(;;){let r=t._parent;if(null===r||r===e)return null;if(r._nextSibling)return r._nextSibling;t=r}},t.tree_getPrecedingNode=function(e,t){return t===e?null:t._previousSibling?(t=t._previousSibling)._lastChild?t._lastChild:t:t._parent},t.tree_isConstrained=function e(t){switch(t._nodeType){case a.NodeType.Document:let r=!1,n=!1;for(let e of t._children)switch(e._nodeType){case a.NodeType.ProcessingInstruction:case a.NodeType.Comment:break;case a.NodeType.DocumentType:if(r||n)return!1;r=!0;break;case a.NodeType.Element:if(n)return!1;n=!0;break;default:return!1}break;case a.NodeType.DocumentFragment:case a.NodeType.Element:for(let e of t._children)switch(e._nodeType){case a.NodeType.Element:case a.NodeType.Text:case a.NodeType.ProcessingInstruction:case a.NodeType.CData:case a.NodeType.Comment:break;default:return!1}break;case a.NodeType.DocumentType:case a.NodeType.Text:case a.NodeType.ProcessingInstruction:case a.NodeType.CData:case a.NodeType.Comment:return!t.hasChildNodes()}for(let r of t._children)if(!e(r))return!1;return!0},t.tree_nodeLength=h,t.tree_isEmpty=function(e){return 0===h(e)},t.tree_rootNode=p,t.tree_isDescendantOf=function(e,t,r=!1,n=!1){let a=s(e,r,n);for(;null!==a;){if(a===t)return!0;a=l(e,a,r,n)}return!1},t.tree_isAncestorOf=m,t.tree_isHostIncludingAncestorOf=function e(t,r,a=!1){if(m(t,r,a))return!0;let i=p(t);return!!(n.Guard.isDocumentFragmentNode(i)&&null!==i._host&&e(i._host,r,a))},t.tree_isSiblingOf=function(e,t,r=!1){return e!==t?null!==e._parent&&e._parent===t._parent:!!r},t.tree_isPreceding=function(e,t){let r=f(e),n=f(t);return -1!==r&&-1!==n&&p(e)===p(t)&&n<r},t.tree_isFollowing=function(e,t){let r=f(e),n=f(t);return -1!==r&&-1!==n&&p(e)===p(t)&&n>r},t.tree_isParentOf=function(e,t){return e._parent===t},t.tree_isChildOf=function(e,t){return t._parent===e},t.tree_previousSibling=function(e){return e._previousSibling},t.tree_nextSibling=function(e){return e._nextSibling},t.tree_firstChild=function(e){return e._firstChild},t.tree_lastChild=function(e){return e._lastChild},t.tree_treePosition=f,t.tree_index=function(e){let t=0;for(;null!==e._previousSibling;)t++,e=e._previousSibling;return t},t.tree_retarget=function(e,t){for(;;){if(!e||!n.Guard.isNode(e))return e;let r=p(e);if(!n.Guard.isShadowRoot(r)||t&&n.Guard.isNode(t)&&m(r,t,!0,!0))return e;e=r.host}};let n=r(8723),a=r(3841);function i(e,t,r=!1){if(r&&n.Guard.isElementNode(t)&&n.Guard.isShadowRoot(t.shadowRoot)&&t.shadowRoot._firstChild)return t.shadowRoot._firstChild;if(t._firstChild)return t._firstChild;if(t===e)return null;if(t._nextSibling)return t._nextSibling;let a=t._parent;for(;a&&a!==e;){if(a._nextSibling)return a._nextSibling;a=a._parent}return null}function o(){return{[Symbol.iterator]:()=>({next:()=>({done:!0,value:null})})}}function s(e,t=!1,r=!1,n){let a=t?e:i(e,e,r);for(;a&&n&&!n(a);)a=i(e,a,r);return a}function l(e,t,r=!1,n=!1,a){let o=i(e,t,n);for(;o&&a&&!a(o);)o=i(e,o,n);return o}function u(e,t=!1,r=!1,n){return t||0!==e._children.size?{[Symbol.iterator]:()=>{let a=t?e:i(e,e,r);return{next:()=>{for(;a&&n&&!n(a);)a=i(e,a,r);if(null===a)return{done:!0,value:null};{let t={done:!1,value:a};return a=i(e,a,r),t}}}}}:o()}function d(e,t=!1,r){let n=t?e:e._parent;for(;n&&r&&!r(n);)n=n._parent;return n}function c(e,t,r=!1,n){let a=t._parent;for(;a&&n&&!n(a);)a=a._parent;return a}function h(e){return n.Guard.isDocumentTypeNode(e)?0:n.Guard.isCharacterDataNode(e)?e._data.length:e._children.size}function p(e,t=!1){if(t){let t=p(e,!1);return n.Guard.isShadowRoot(t)?p(t._host,!0):t}return e._parent?p(e._parent):e}function m(e,t,r=!1,a=!1){let i=r?e:a&&n.Guard.isShadowRoot(e)?e._host:e._parent;for(;null!==i;){if(i===t)return!0;i=a&&n.Guard.isShadowRoot(i)?i._host:i._parent}return!1}function f(e){let t=p(e),r=0,n=s(t);for(;null!==n;){if(r++,n===e)return r;n=l(t,n)}return -1}},2035(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.treeWalker_traverseChildren=function(e,t){let r=t?e._current._firstChild:e._current._lastChild;for(;null!==r;){let i=(0,a.traversal_filter)(e,r);if(i===n.FilterResult.Accept)return e._current=r,r;if(i===n.FilterResult.Skip){let e=t?r._firstChild:r._lastChild;if(null!==e){r=e;continue}}for(;null!==r;){let n=t?r._nextSibling:r._previousSibling;if(null!==n){r=n;break}let a=r._parent;if(null===a||a===e._root||a===e._current)return null;r=a}}return null},t.treeWalker_traverseSiblings=function(e,t){let r=e._current;if(r===e._root)return null;for(;;){let i=t?r._nextSibling:r._previousSibling;for(;null!==i;){r=i;let o=(0,a.traversal_filter)(e,r);if(o===n.FilterResult.Accept)return e._current=r,r;i=t?r._firstChild:r._lastChild,(o===n.FilterResult.Reject||null===i)&&(i=t?r._nextSibling:r._previousSibling)}if(null===(r=r._parent)||r===e._root||(0,a.traversal_filter)(e,r)===n.FilterResult.Accept)return null}};let n=r(3841),a=r(3697)},270(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.idl_defineConst=function(e,t,r){Object.defineProperty(e,t,{writable:!1,enumerable:!0,configurable:!1,value:r})}},9e3(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xml_isName=function(e){for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if((!(r>=97)||!(r<=122))&&(!(r>=65)||!(r<=90))&&58!==r&&95!==r&&(!(r>=192)||!(r<=214))&&(!(r>=216)||!(r<=246))&&(!(r>=248)||!(r<=767))&&(!(r>=880)||!(r<=893))&&(!(r>=895)||!(r<=8191))&&(!(r>=8204)||!(r<=8205))&&(!(r>=8304)||!(r<=8591))&&(!(r>=11264)||!(r<=12271))&&(!(r>=12289)||!(r<=55295))&&(!(r>=63744)||!(r<=64975))&&(!(r>=65008)||!(r<=65533))){if(0===t||45!==r&&46!==r&&(!(r>=48)||!(r<=57))&&183!==r&&(!(r>=768)||!(r<=879))&&(!(r>=8255)||!(r<=8256))){if(r>=55296&&r<=56319&&t<e.length-1){let n=e.charCodeAt(t+1);if(n>=56320&&n<=57343&&(r=(r-55296)*1024+n-56320+65536,t++,r>=65536&&r<=983039))continue}return!1}}}return!0},t.xml_isQName=function(e){let t=!1;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if((!(n>=97)||!(n<=122))&&(!(n>=65)||!(n<=90))&&95!==n&&(!(n>=192)||!(n<=214))&&(!(n>=216)||!(n<=246))&&(!(n>=248)||!(n<=767))&&(!(n>=880)||!(n<=893))&&(!(n>=895)||!(n<=8191))&&(!(n>=8204)||!(n<=8205))&&(!(n>=8304)||!(n<=8591))&&(!(n>=11264)||!(n<=12271))&&(!(n>=12289)||!(n<=55295))&&(!(n>=63744)||!(n<=64975))&&(!(n>=65008)||!(n<=65533))){if(0!==r&&(45===n||46===n||n>=48&&n<=57||183===n||n>=768&&n<=879||n>=8255&&n<=8256))continue;if(0!==r&&58===n){if(t||r===e.length-1)return!1;t=!0;continue}if(n>=55296&&n<=56319&&r<e.length-1){let t=e.charCodeAt(r+1);if(t>=56320&&t<=57343&&(n=(n-55296)*1024+t-56320+65536,r++,n>=65536&&n<=983039))continue}return!1}}return!0},t.xml_isLegalChar=function(e){for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if(9!==r&&10!==r&&13!==r&&(!(r>=32)||!(r<=55295))&&(!(r>=57344)||!(r<=65533))){if(r>=55296&&r<=56319&&t<e.length-1){let n=e.charCodeAt(t+1);if(n>=56320&&n<=57343&&(r=(r-55296)*1024+n-56320+65536,t++,r>=65536&&r<=1114111))continue}return!1}}return!0},t.xml_isPubidChar=function(e){for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if((!(r>=97)||!(r<=122))&&(!(r>=65)||!(r<=90))&&(!(r>=39)||!(r<=59))&&32!==r&&13!==r&&10!==r&&(!(r>=35)||!(r<=37))&&33!==r&&61!==r&&63!==r&&64!==r&&95!==r)return!1}return!0}},8792(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(7017),t),a(r(644),t),a(r(3819),t),a(r(8966),t),a(r(725),t),a(r(4384),t),a(r(1978),t),a(r(3935),t),a(r(3326),t),a(r(6419),t),a(r(331),t),a(r(436),t),a(r(1028),t),a(r(6594),t),a(r(254),t),a(r(4349),t),a(r(7875),t),a(r(4048),t),a(r(5261),t),a(r(8068),t),a(r(1869),t),a(r(9057),t),a(r(864),t),a(r(3697),t),a(r(9693),t),a(r(2035),t),a(r(270),t),a(r(9e3),t)},3813(e,t,r){"use strict";t.AbortControllerImpl=void 0;let n=r(8792);t.AbortControllerImpl=class{_signal;constructor(){this._signal=(0,n.create_abortSignal)()}get signal(){return this._signal}abort(){(0,n.abort_signalAbort)(this._signal)}}},745(e,t,r){"use strict";t.AbortSignalImpl=void 0;let n=r(3466),a=r(8792);class i extends n.EventTargetImpl{_abortedFlag=!1;_abortAlgorithms=new Set;constructor(){super()}get aborted(){return this._abortedFlag}get onabort(){return(0,a.event_getterEventHandlerIDLAttribute)(this,"onabort")}set onabort(e){(0,a.event_setterEventHandlerIDLAttribute)(this,"onabort",e)}static _create(){return new i}}t.AbortSignalImpl=i},2044(e,t){"use strict";t.AbstractRangeImpl=void 0,t.AbstractRangeImpl=class{get _startNode(){return this._start[0]}get _startOffset(){return this._start[1]}get _endNode(){return this._end[0]}get _endOffset(){return this._end[1]}get _collapsed(){return this._start[0]===this._end[0]&&this._start[1]===this._end[1]}get startContainer(){return this._startNode}get startOffset(){return this._startOffset}get endContainer(){return this._endNode}get endOffset(){return this._endOffset}get collapsed(){return this._collapsed}}},6648(e,t,r){"use strict";t.AttrImpl=void 0;let n=r(3841),a=r(579),i=r(8792),o=r(270);class s extends a.NodeImpl{_nodeType=n.NodeType.Attribute;_localName;_namespace=null;_namespacePrefix=null;_element=null;_value="";constructor(e){super(),this._localName=e}specified;get ownerElement(){return this._element}get namespaceURI(){return this._namespace}get prefix(){return this._namespacePrefix}get localName(){return this._localName}get name(){return this._qualifiedName}get value(){return this._value}set value(e){(0,i.attr_setAnExistingAttributeValue)(this,e)}get _qualifiedName(){return null!==this._namespacePrefix?this._namespacePrefix+":"+this._localName:this._localName}static _create(e,t){let r=new s(t);return r._nodeDocument=e,r}}t.AttrImpl=s,(0,o.idl_defineConst)(s.prototype,"_nodeType",n.NodeType.Attribute),(0,o.idl_defineConst)(s.prototype,"specified",!0)},7331(e,t,r){"use strict";t.CDATASectionImpl=void 0;let n=r(3800),a=r(3841),i=r(270);class o extends n.TextImpl{_nodeType=a.NodeType.CData;constructor(e){super(e)}static _create(e,t=""){let r=new o(t);return r._nodeDocument=e,r}}t.CDATASectionImpl=o,(0,i.idl_defineConst)(o.prototype,"_nodeType",a.NodeType.CData)},1628(e,t,r){"use strict";t.CharacterDataImpl=void 0;let n=r(579),a=r(8792);class i extends n.NodeImpl{_data;constructor(e){super(),this._data=e}get data(){return this._data}set data(e){(0,a.characterData_replaceData)(this,0,this._data.length,e)}get length(){return this._data.length}substringData(e,t){return(0,a.characterData_substringData)(this,e,t)}appendData(e){return(0,a.characterData_replaceData)(this,this._data.length,0,e)}insertData(e,t){(0,a.characterData_replaceData)(this,e,0,t)}deleteData(e,t){(0,a.characterData_replaceData)(this,e,t,"")}replaceData(e,t,r){(0,a.characterData_replaceData)(this,e,t,r)}get previousElementSibling(){throw Error("Mixin: NonDocumentTypeChildNode not implemented.")}get nextElementSibling(){throw Error("Mixin: NonDocumentTypeChildNode not implemented.")}before(){throw Error("Mixin: ChildNode not implemented.")}after(){throw Error("Mixin: ChildNode not implemented.")}replaceWith(){throw Error("Mixin: ChildNode not implemented.")}remove(){throw Error("Mixin: ChildNode not implemented.")}}t.CharacterDataImpl=i},9629(e,t,r){"use strict";t.ChildNodeImpl=void 0;let n=r(8723),a=r(8792);t.ChildNodeImpl=class{before(...e){let t=n.Cast.asNode(this),r=t._parent;if(null===r)return;let i=t._previousSibling,o=!0;for(;o&&i;){o=!1;for(let t=0;t<e.length;t++)if(e[t]===i){i=i._previousSibling,o=!0;break}}let s=(0,a.parentNode_convertNodesIntoANode)(e,t._nodeDocument);i=null===i?r._firstChild:i._nextSibling,(0,a.mutation_preInsert)(s,r,i)}after(...e){let t=n.Cast.asNode(this),r=t._parent;if(!r)return;let i=t._nextSibling,o=!0;for(;o&&i;){o=!1;for(let t=0;t<e.length;t++)if(e[t]===i){i=i._nextSibling,o=!0;break}}let s=(0,a.parentNode_convertNodesIntoANode)(e,t._nodeDocument);(0,a.mutation_preInsert)(s,r,i)}replaceWith(...e){let t=n.Cast.asNode(this),r=t._parent;if(!r)return;let i=t._nextSibling,o=!0;for(;o&&i;){o=!1;for(let t=0;t<e.length;t++)if(e[t]===i){i=i._nextSibling,o=!0;break}}let s=(0,a.parentNode_convertNodesIntoANode)(e,t._nodeDocument);t._parent===r?(0,a.mutation_replace)(t,s,r):(0,a.mutation_preInsert)(s,r,i)}remove(){let e=n.Cast.asNode(this),t=e._parent;t&&(0,a.mutation_remove)(e,t)}}},7090(e,t,r){"use strict";t.CommentImpl=void 0;let n=r(3841),a=r(1628),i=r(270);class o extends a.CharacterDataImpl{_nodeType=n.NodeType.Comment;constructor(e=""){super(e)}static _create(e,t=""){let r=new o(t);return r._nodeDocument=e,r}}t.CommentImpl=o,(0,i.idl_defineConst)(o.prototype,"_nodeType",n.NodeType.Comment)},5945(e,t,r){"use strict";t.CustomEventImpl=void 0;let n=r(9971),a=r(8792);class i extends n.EventImpl{_detail=null;constructor(e,t){super(e,t),this._detail=t&&t.detail||null}get detail(){return this._detail}initCustomEvent(e,t=!1,r=!1,n=null){this._dispatchFlag||((0,a.event_initialize)(this,e,t,r),this._detail=n)}}t.CustomEventImpl=i},8036(e,t){"use strict";t.InvalidCharacterError=t.SyntaxError=t.IndexSizeError=t.NotFoundError=t.HierarchyRequestError=t.NotImplementedError=t.InvalidNodeTypeError=t.NamespaceError=t.InvalidStateError=t.InUseAttributeError=t.NotSupportedError=t.WrongDocumentError=void 0;class r extends Error{name;constructor(e,t=""){super(t),this.name=e}}t.WrongDocumentError=class extends r{constructor(e=""){super("WrongDocumentError","The object is in the wrong document. "+e)}},t.NotSupportedError=class extends r{constructor(e=""){super("NotSupportedError","The operation is not supported. "+e)}},t.InUseAttributeError=class extends r{constructor(e=""){super("InUseAttributeError",e)}},t.InvalidStateError=class extends r{constructor(e=""){super("InvalidStateError","The object is in an invalid state. "+e)}},t.NamespaceError=class extends r{constructor(e=""){super("NamespaceError","The operation is not allowed by Namespaces in XML. [XMLNS] "+e)}},t.InvalidNodeTypeError=class extends r{constructor(e=""){super("InvalidNodeTypeError","The supplied node is incorrect or has an incorrect ancestor for this operation. "+e)}},t.NotImplementedError=class extends r{constructor(e=""){super("NotImplementedError","The DOM method is not implemented by this module. "+e)}},t.HierarchyRequestError=class extends r{constructor(e=""){super("HierarchyRequestError","The operation would yield an incorrect node tree. "+e)}},t.NotFoundError=class extends r{constructor(e=""){super("NotFoundError","The object can not be found here. "+e)}},t.IndexSizeError=class extends r{constructor(e=""){super("IndexSizeError","The index is not in the allowed range. "+e)}},t.SyntaxError=class extends r{constructor(e=""){super("SyntaxError","The string did not match the expected pattern. "+e)}},t.InvalidCharacterError=class extends r{constructor(e=""){super("InvalidCharacterError","The string contains invalid characters. "+e)}}},9091(e,t,r){"use strict";t.dom=void 0;let n=r(3738),a=r(725);class i{static _instance;_features={mutationObservers:!0,customElements:!0,slots:!0,steps:!0};_window=null;_compareCache;_rangeList;constructor(){this._compareCache=new n.CompareCache,this._rangeList=new n.FixedSizeSet}setFeatures(e){if(void 0===e&&(e=!0),(0,n.isObject)(e))for(let t in e)this._features[t]=e[t]||!1;else for(let t in this._features)this._features[t]=e}get features(){return this._features}get window(){return null===this._window&&(this._window=(0,a.create_window)()),this._window}get compareCache(){return this._compareCache}get rangeList(){return this._rangeList}static get instance(){return i._instance||(i._instance=new i),i._instance}}t.dom=i.instance},9173(e,t,r){"use strict";t.DOMImplementationImpl=void 0;let n=r(9091),a=r(360),i=r(8792),o=r(270);class s{_ID="@oozcitak/dom";_associatedDocument;constructor(e){this._associatedDocument=e||n.dom.window.document}createDocumentType(e,t,r){return(0,i.namespace_validate)(e),(0,i.create_documentType)(this._associatedDocument,e,t,r)}createDocument(e,t,r=null){let n=(0,i.create_xmlDocument)(),o=null;return t&&(o=(0,i.document_internalCreateElementNS)(n,e,t)),r&&n.appendChild(r),o&&n.appendChild(o),n._origin=this._associatedDocument._origin,e===a.namespace.HTML?n._contentType="application/xhtml+xml":e===a.namespace.SVG?n._contentType="image/svg+xml":n._contentType="application/xml",n}createHTMLDocument(e){let t=(0,i.create_document)();t._type="html",t._contentType="text/html",t.appendChild((0,i.create_documentType)(t,"html","",""));let r=(0,i.element_createAnElement)(t,"html",a.namespace.HTML);t.appendChild(r);let n=(0,i.element_createAnElement)(t,"head",a.namespace.HTML);if(r.appendChild(n),void 0!==e){let r=(0,i.element_createAnElement)(t,"title",a.namespace.HTML);n.appendChild(r);let o=(0,i.create_text)(t,e);r.appendChild(o)}let o=(0,i.element_createAnElement)(t,"body",a.namespace.HTML);return r.appendChild(o),t._origin=this._associatedDocument._origin,t}hasFeature(){return!0}static _create(e){return new s(e)}}t.DOMImplementationImpl=s,(0,o.idl_defineConst)(s.prototype,"_ID","@oozcitak/dom")},1374(e,t,r){"use strict";t.DOMTokenListImpl=void 0;let n=r(9091),a=r(8036),i=r(360),o=r(8792);class s{_element;_attribute;_tokenSet;constructor(e,t){this._element=e,this._attribute=t,this._tokenSet=new Set;const r=t._localName,a=(0,o.element_getAnAttributeValue)(e,r),i=this;this._element._attributeChangeSteps.push(function(e,t,r,n,a){t===i._attribute._localName&&null===a&&(n?i._tokenSet=(0,o.orderedSet_parse)(n):i._tokenSet.clear())}),n.dom.features.steps&&(0,o.dom_runAttributeChangeSteps)(e,r,a,a,null)}get length(){return this._tokenSet.size}item(e){let t=0;for(let r of this._tokenSet){if(t===e)return r;t++}return null}contains(e){return this._tokenSet.has(e)}add(...e){for(let t of e)if(""===t)throw new a.SyntaxError("Cannot add an empty token.");else if(i.codePoint.ASCIIWhiteSpace.test(t))throw new a.InvalidCharacterError("Token cannot contain whitespace.");else this._tokenSet.add(t);(0,o.tokenList_updateSteps)(this)}remove(...e){for(let t of e)if(""===t)throw new a.SyntaxError("Cannot remove an empty token.");else if(i.codePoint.ASCIIWhiteSpace.test(t))throw new a.InvalidCharacterError("Token cannot contain whitespace.");else this._tokenSet.delete(t);(0,o.tokenList_updateSteps)(this)}toggle(e,t){if(""===e)throw new a.SyntaxError("Cannot toggle an empty token.");if(i.codePoint.ASCIIWhiteSpace.test(e))throw new a.InvalidCharacterError("Token cannot contain whitespace.");return this._tokenSet.has(e)?void 0!==t&&!1!==t||(this._tokenSet.delete(e),(0,o.tokenList_updateSteps)(this),!1):(void 0===t||!0===t)&&(this._tokenSet.add(e),(0,o.tokenList_updateSteps)(this),!0)}replace(e,t){if(""===e||""===t)throw new a.SyntaxError("Cannot replace an empty token.");if(i.codePoint.ASCIIWhiteSpace.test(e)||i.codePoint.ASCIIWhiteSpace.test(t))throw new a.InvalidCharacterError("Token cannot contain whitespace.");return!!this._tokenSet.has(e)&&(i.set.replace(this._tokenSet,e,t),(0,o.tokenList_updateSteps)(this),!0)}supports(e){return(0,o.tokenList_validationSteps)(this,e)}get value(){return(0,o.tokenList_serializeSteps)(this)}set value(e){(0,o.element_setAnAttributeValue)(this._element,this._attribute._localName,e)}[Symbol.iterator](){let e=this._tokenSet[Symbol.iterator]();return{next:()=>e.next()}}static _create(e,t){return new s(e,t)}}t.DOMTokenListImpl=s},5714(e,t,r){"use strict";t.DocumentFragmentImpl=void 0;let n=r(3841),a=r(579),i=r(270);class o extends a.NodeImpl{_nodeType=n.NodeType.DocumentFragment;_children=new Set;_host;constructor(e=null){super(),this._host=e}getElementById(e){throw Error("Mixin: NonElementParentNode not implemented.")}get children(){throw Error("Mixin: ParentNode not implemented.")}get firstElementChild(){throw Error("Mixin: ParentNode not implemented.")}get lastElementChild(){throw Error("Mixin: ParentNode not implemented.")}get childElementCount(){throw Error("Mixin: ParentNode not implemented.")}prepend(){throw Error("Mixin: ParentNode not implemented.")}append(){throw Error("Mixin: ParentNode not implemented.")}querySelector(e){throw Error("Mixin: ParentNode not implemented.")}querySelectorAll(e){throw Error("Mixin: ParentNode not implemented.")}static _create(e,t=null){let r=new o(t);return r._nodeDocument=e,r}}t.DocumentFragmentImpl=o,(0,i.idl_defineConst)(o.prototype,"_nodeType",n.NodeType.DocumentFragment)},8034(e,t,r){"use strict";t.DocumentImpl=void 0;let n=r(9091),a=r(3841),i=r(8036),o=r(579),s=r(8723),l=r(3738),u=r(360),d=r(2694),c=r(8792),h=r(270);class p extends o.NodeImpl{_nodeType=a.NodeType.Document;_children=new Set;_encoding={name:"UTF-8",labels:["unicode-1-1-utf-8","utf-8","utf8"]};_contentType="application/xml";_URL={scheme:"about",username:"",password:"",host:null,port:null,path:["blank"],query:null,fragment:null,_cannotBeABaseURLFlag:!0,_blobURLEntry:null};_origin=null;_type="xml";_mode="no-quirks";_implementation;_documentElement=null;_hasNamespaces=!1;_nodeDocumentOverwrite=null;get _nodeDocument(){return this._nodeDocumentOverwrite||this}set _nodeDocument(e){this._nodeDocumentOverwrite=e}constructor(){super()}get implementation(){return this._implementation||(this._implementation=(0,c.create_domImplementation)(this))}get URL(){return(0,d.urlSerializer)(this._URL)}get documentURI(){return this.URL}get origin(){return"null"}get compatMode(){return"quirks"===this._mode?"BackCompat":"CSS1Compat"}get characterSet(){return this._encoding.name}get charset(){return this._encoding.name}get inputEncoding(){return this._encoding.name}get contentType(){return this._contentType}get doctype(){for(let e of this._children)if(s.Guard.isDocumentTypeNode(e))return e;return null}get documentElement(){return this._documentElement}getElementsByTagName(e){return(0,c.node_listOfElementsWithQualifiedName)(e,this)}getElementsByTagNameNS(e,t){return(0,c.node_listOfElementsWithNamespace)(e,t,this)}getElementsByClassName(e){return(0,c.node_listOfElementsWithClassNames)(e,this)}createElement(e,t){if(!(0,c.xml_isName)(e))throw new i.InvalidCharacterError;"html"===this._type&&(e=e.toLowerCase());let r=null;void 0!==t&&(r=(0,l.isString)(t)?t:t.is);let n="html"===this._type||"application/xhtml+xml"===this._contentType?u.namespace.HTML:null;return(0,c.element_createAnElement)(this,e,n,null,r,!0)}createElementNS(e,t,r){return(0,c.document_internalCreateElementNS)(this,e,t,r)}createDocumentFragment(){return(0,c.create_documentFragment)(this)}createTextNode(e){return(0,c.create_text)(this,e)}createCDATASection(e){if("html"===this._type)throw new i.NotSupportedError;if(-1!==e.indexOf("]]>"))throw new i.InvalidCharacterError;return(0,c.create_cdataSection)(this,e)}createComment(e){return(0,c.create_comment)(this,e)}createProcessingInstruction(e,t){if(!(0,c.xml_isName)(e)||-1!==t.indexOf("?>"))throw new i.InvalidCharacterError;return(0,c.create_processingInstruction)(this,e,t)}importNode(e,t=!1){if(s.Guard.isDocumentNode(e)||s.Guard.isShadowRoot(e))throw new i.NotSupportedError;return(0,c.node_clone)(e,this,t)}adoptNode(e){if(s.Guard.isDocumentNode(e))throw new i.NotSupportedError;if(s.Guard.isShadowRoot(e))throw new i.HierarchyRequestError;return(0,c.document_adopt)(e,this),e}createAttribute(e){if(!(0,c.xml_isName)(e))throw new i.InvalidCharacterError;return"html"===this._type&&(e=e.toLowerCase()),(0,c.create_attr)(this,e)}createAttributeNS(e,t){let[r,n,a]=(0,c.namespace_validateAndExtract)(e,t),i=(0,c.create_attr)(this,a);return i._namespace=r,i._namespacePrefix=n,i}createEvent(e){return(0,c.event_createLegacyEvent)(e)}createRange(){let e=(0,c.create_range)();return e._start=[this,0],e._end=[this,0],e}createNodeIterator(e,t=a.WhatToShow.All,r=null){let n=(0,c.create_nodeIterator)(e,e,!0);return n._whatToShow=t,n._iteratorCollection=(0,c.create_nodeList)(e),(0,l.isFunction)(r)?(n._filter=(0,c.create_nodeFilter)(),n._filter.acceptNode=r):n._filter=r,n}createTreeWalker(e,t=a.WhatToShow.All,r=null){let n=(0,c.create_treeWalker)(e,e);return n._whatToShow=t,(0,l.isFunction)(r)?(n._filter=(0,c.create_nodeFilter)(),n._filter.acceptNode=r):n._filter=r,n}_getTheParent(e){return"load"===e._type?null:n.dom.window}getElementById(e){throw Error("Mixin: NonElementParentNode not implemented.")}get children(){throw Error("Mixin: ParentNode not implemented.")}get firstElementChild(){throw Error("Mixin: ParentNode not implemented.")}get lastElementChild(){throw Error("Mixin: ParentNode not implemented.")}get childElementCount(){throw Error("Mixin: ParentNode not implemented.")}prepend(){throw Error("Mixin: ParentNode not implemented.")}append(){throw Error("Mixin: ParentNode not implemented.")}querySelector(e){throw Error("Mixin: ParentNode not implemented.")}querySelectorAll(e){throw Error("Mixin: ParentNode not implemented.")}}t.DocumentImpl=p,(0,h.idl_defineConst)(p.prototype,"_nodeType",a.NodeType.Document)},6175(e,t){"use strict";t.DocumentOrShadowRootImpl=void 0,t.DocumentOrShadowRootImpl=class{}},7466(e,t,r){"use strict";t.DocumentTypeImpl=void 0;let n=r(3841),a=r(579),i=r(270);class o extends a.NodeImpl{_nodeType=n.NodeType.DocumentType;_name="";_publicId="";_systemId="";constructor(e,t,r){super(),this._name=e,this._publicId=t,this._systemId=r}get name(){return this._name}get publicId(){return this._publicId}get systemId(){return this._systemId}before(){throw Error("Mixin: ChildNode not implemented.")}after(){throw Error("Mixin: ChildNode not implemented.")}replaceWith(){throw Error("Mixin: ChildNode not implemented.")}remove(){throw Error("Mixin: ChildNode not implemented.")}static _create(e,t,r="",n=""){let a=new o(t,r,n);return a._nodeDocument=e,a}}t.DocumentTypeImpl=o,(0,i.idl_defineConst)(o.prototype,"_nodeType",n.NodeType.DocumentType)},7207(e,t,r){"use strict";t.ElementImpl=void 0;let n=r(3841),a=r(579),i=r(8036),o=r(360),s=r(8792),l=r(270);class u extends a.NodeImpl{_nodeType=n.NodeType.Element;_children=new Set;_namespace=null;_namespacePrefix=null;_localName="";_customElementState="undefined";_customElementDefinition=null;_is=null;_shadowRoot=null;_attributeList=(0,s.create_namedNodeMap)(this);_uniqueIdentifier;_attributeChangeSteps=[];_name="";_assignedSlot=null;constructor(){super()}get namespaceURI(){return this._namespace}get prefix(){return this._namespacePrefix}get localName(){return this._localName}get tagName(){return this._htmlUppercasedQualifiedName}get id(){return(0,s.element_getAnAttributeValue)(this,"id")}set id(e){(0,s.element_setAnAttributeValue)(this,"id",e)}get className(){return(0,s.element_getAnAttributeValue)(this,"class")}set className(e){(0,s.element_setAnAttributeValue)(this,"class",e)}get classList(){let e=(0,s.element_getAnAttributeByName)("class",this);return null===e&&(e=(0,s.create_attr)(this._nodeDocument,"class")),(0,s.create_domTokenList)(this,e)}get slot(){return(0,s.element_getAnAttributeValue)(this,"slot")}set slot(e){(0,s.element_setAnAttributeValue)(this,"slot",e)}hasAttributes(){return 0!==this._attributeList.length}get attributes(){return this._attributeList}getAttributeNames(){let e=[];for(let t of this._attributeList)e.push(t._qualifiedName);return e}getAttribute(e){let t=(0,s.element_getAnAttributeByName)(e,this);return t?t._value:null}getAttributeNS(e,t){let r=(0,s.element_getAnAttributeByNamespaceAndLocalName)(e,t,this);return r?r._value:null}setAttribute(e,t){if(!(0,s.xml_isName)(e))throw new i.InvalidCharacterError;this._namespace===o.namespace.HTML&&"html"===this._nodeDocument._type&&(e=e.toLowerCase());let r=null;for(let t=0;t<this._attributeList.length;t++){let n=this._attributeList[t];if(n._qualifiedName===e){r=n;break}}if(null===r){(r=(0,s.create_attr)(this._nodeDocument,e))._value=t,(0,s.element_append)(r,this);return}(0,s.element_change)(r,this,t)}setAttributeNS(e,t,r){let[n,a,i]=(0,s.namespace_validateAndExtract)(e,t);(0,s.element_setAnAttributeValue)(this,i,r,a,n)}removeAttribute(e){(0,s.element_removeAnAttributeByName)(e,this)}removeAttributeNS(e,t){(0,s.element_removeAnAttributeByNamespaceAndLocalName)(e,t,this)}hasAttribute(e){this._namespace===o.namespace.HTML&&"html"===this._nodeDocument._type&&(e=e.toLowerCase());for(let t=0;t<this._attributeList.length;t++)if(this._attributeList[t]._qualifiedName===e)return!0;return!1}toggleAttribute(e,t){if(!(0,s.xml_isName)(e))throw new i.InvalidCharacterError;this._namespace===o.namespace.HTML&&"html"===this._nodeDocument._type&&(e=e.toLowerCase());let r=null;for(let t=0;t<this._attributeList.length;t++){let n=this._attributeList[t];if(n._qualifiedName===e){r=n;break}}return null===r?(void 0===t||!0===t)&&((r=(0,s.create_attr)(this._nodeDocument,e))._value="",(0,s.element_append)(r,this),!0):void 0!==t&&!1!==t||((0,s.element_removeAnAttributeByName)(e,this),!1)}hasAttributeNS(e,t){let r=e||null;for(let e=0;e<this._attributeList.length;e++){let n=this._attributeList[e];if(n._namespace===r&&n._localName===t)return!0}return!1}getAttributeNode(e){return(0,s.element_getAnAttributeByName)(e,this)}getAttributeNodeNS(e,t){return(0,s.element_getAnAttributeByNamespaceAndLocalName)(e,t,this)}setAttributeNode(e){return(0,s.element_setAnAttribute)(e,this)}setAttributeNodeNS(e){return(0,s.element_setAnAttribute)(e,this)}removeAttributeNode(e){let t=!1;for(let r=0;r<this._attributeList.length;r++)if(this._attributeList[r]===e){t=!0;break}if(!t)throw new i.NotFoundError;return(0,s.element_remove)(e,this),e}attachShadow(e){if(this._namespace!==o.namespace.HTML||!(0,s.customElement_isValidCustomElementName)(this._localName)&&!(0,s.customElement_isValidShadowHostName)(this._localName))throw new i.NotSupportedError;if((0,s.customElement_isValidCustomElementName)(this._localName)||null!==this._is){let e=(0,s.customElement_lookUpACustomElementDefinition)(this._nodeDocument,this._namespace,this._localName,this._is);if(null!==e&&!0===e.disableShadow)throw new i.NotSupportedError}if(null!==this._shadowRoot)throw new i.NotSupportedError;let t=(0,s.create_shadowRoot)(this._nodeDocument,this);return t._mode=e.mode,this._shadowRoot=t,t}get shadowRoot(){let e=this._shadowRoot;return null===e||"closed"===e.mode?null:e}closest(e){throw new i.NotImplementedError}matches(e){throw new i.NotImplementedError}webkitMatchesSelector(e){return this.matches(e)}getElementsByTagName(e){return(0,s.node_listOfElementsWithQualifiedName)(e,this)}getElementsByTagNameNS(e,t){return(0,s.node_listOfElementsWithNamespace)(e,t,this)}getElementsByClassName(e){return(0,s.node_listOfElementsWithClassNames)(e,this)}insertAdjacentElement(e,t){return(0,s.element_insertAdjacent)(this,e,t)}insertAdjacentText(e,t){let r=(0,s.create_text)(this._nodeDocument,t);(0,s.element_insertAdjacent)(this,e,r)}get _qualifiedName(){return this._namespacePrefix?this._namespacePrefix+":"+this._localName:this._localName}get _htmlUppercasedQualifiedName(){let e=this._qualifiedName;return this._namespace===o.namespace.HTML&&"html"===this._nodeDocument._type&&(e=e.toUpperCase()),e}get children(){throw Error("Mixin: ParentNode not implemented.")}get firstElementChild(){throw Error("Mixin: ParentNode not implemented.")}get lastElementChild(){throw Error("Mixin: ParentNode not implemented.")}get childElementCount(){throw Error("Mixin: ParentNode not implemented.")}prepend(){throw Error("Mixin: ParentNode not implemented.")}append(){throw Error("Mixin: ParentNode not implemented.")}querySelector(e){throw Error("Mixin: ParentNode not implemented.")}querySelectorAll(e){throw Error("Mixin: ParentNode not implemented.")}get previousElementSibling(){throw Error("Mixin: NonDocumentTypeChildNode not implemented.")}get nextElementSibling(){throw Error("Mixin: NonDocumentTypeChildNode not implemented.")}before(){throw Error("Mixin: ChildNode not implemented.")}after(){throw Error("Mixin: ChildNode not implemented.")}replaceWith(){throw Error("Mixin: ChildNode not implemented.")}remove(){throw Error("Mixin: ChildNode not implemented.")}get assignedSlot(){throw Error("Mixin: Slotable not implemented.")}static _create(e,t,r=null,n=null){let a=new u;return a._localName=t,a._namespace=r,a._namespacePrefix=n,a._nodeDocument=e,a}}t.ElementImpl=u,(0,l.idl_defineConst)(u.prototype,"_nodeType",n.NodeType.Element)},9971(e,t,r){"use strict";t.EventImpl=void 0;let n=r(3841),a=r(8792),i=r(270);class o{static NONE=0;static CAPTURING_PHASE=1;static AT_TARGET=2;static BUBBLING_PHASE=3;NONE=0;CAPTURING_PHASE=1;AT_TARGET=2;BUBBLING_PHASE=3;_target=null;_relatedTarget=null;_touchTargetList=[];_path=[];_currentTarget=null;_eventPhase=n.EventPhase.None;_stopPropagationFlag=!1;_stopImmediatePropagationFlag=!1;_canceledFlag=!1;_inPassiveListenerFlag=!1;_composedFlag=!1;_initializedFlag=!1;_dispatchFlag=!1;_isTrusted=!1;_type;_bubbles=!1;_cancelable=!1;_timeStamp;constructor(e,t){this._type=e,t&&(this._bubbles=t.bubbles||!1,this._cancelable=t.cancelable||!1,this._composedFlag=t.composed||!1),this._initializedFlag=!0,this._timeStamp=new Date().getTime()}get type(){return this._type}get target(){return this._target}get srcElement(){return this._target}get currentTarget(){return this._currentTarget}composedPath(){let e=[],t=this._path;if(0===t.length)return e;let r=this._currentTarget;if(null===r)throw Error("Event currentTarget is null.");e.push(r);let n=0,a=0,i=t.length-1;for(;i>=0;){if(t[i].rootOfClosedTree&&a++,t[i].invocationTarget===r){n=i;break}t[i].slotInClosedTree&&a--,i--}let o=a,s=a;for(i=n-1;i>=0;)t[i].rootOfClosedTree&&o++,o<=s&&e.unshift(t[i].invocationTarget),t[i].slotInClosedTree&&--o<s&&(s=o),i--;for(o=a,s=a,i=n+1;i<t.length;)t[i].slotInClosedTree&&o++,o<=s&&e.push(t[i].invocationTarget),t[i].rootOfClosedTree&&--o<s&&(s=o),i++;return e}get eventPhase(){return this._eventPhase}stopPropagation(){this._stopPropagationFlag=!0}get cancelBubble(){return this._stopPropagationFlag}set cancelBubble(e){e&&this.stopPropagation()}stopImmediatePropagation(){this._stopPropagationFlag=!0,this._stopImmediatePropagationFlag=!0}get bubbles(){return this._bubbles}get cancelable(){return this._cancelable}get returnValue(){return!this._canceledFlag}set returnValue(e){e||(0,a.event_setTheCanceledFlag)(this)}preventDefault(){(0,a.event_setTheCanceledFlag)(this)}get defaultPrevented(){return this._canceledFlag}get composed(){return this._composedFlag}get isTrusted(){return this._isTrusted}get timeStamp(){return this._timeStamp}initEvent(e,t=!1,r=!1){this._dispatchFlag||(0,a.event_initialize)(this,e,t,r)}}t.EventImpl=o,(0,i.idl_defineConst)(o.prototype,"NONE",0),(0,i.idl_defineConst)(o.prototype,"CAPTURING_PHASE",1),(0,i.idl_defineConst)(o.prototype,"AT_TARGET",2),(0,i.idl_defineConst)(o.prototype,"BUBBLING_PHASE",3)},3466(e,t,r){"use strict";t.EventTargetImpl=void 0;let n=r(8036),a=r(8723),i=r(8792);t.EventTargetImpl=class{__eventListenerList;get _eventListenerList(){return this.__eventListenerList||(this.__eventListenerList=[])}__eventHandlerMap;get _eventHandlerMap(){return this.__eventHandlerMap||(this.__eventHandlerMap={})}addEventListener(e,t,r={passive:!1,once:!1,capture:!1}){let n,[o,s,l]=(0,i.eventTarget_flattenMore)(r);t&&(n=a.Guard.isEventListener(t)?t:{handleEvent:t},(0,i.eventTarget_addEventListener)(this,{type:e,callback:n,capture:o,passive:s,once:l,removed:!1}))}removeEventListener(e,t,r={capture:!1}){let n=(0,i.eventTarget_flatten)(r);if(t)for(let r=0;r<this._eventListenerList.length;r++){let o=this._eventListenerList[r];if(o.type===e&&o.capture===n){if(a.Guard.isEventListener(t)&&o.callback===t){(0,i.eventTarget_removeEventListener)(this,o,r);break}else if(t&&o.callback.handleEvent===t){(0,i.eventTarget_removeEventListener)(this,o,r);break}}}}dispatchEvent(e){if(e._dispatchFlag||!e._initializedFlag)throw new n.InvalidStateError;return e._isTrusted=!1,(0,i.event_dispatch)(e,this)}_getTheParent(e){return null}}},6714(e,t,r){"use strict";t.HTMLCollectionImpl=void 0;let n=r(360),a=r(8792),i=r(8723),o=r(3738);class s{_live=!0;_root;_filter;static reservedNames=["_root","_live","_filter","length","item","namedItem","get","set"];constructor(e,t){return this._root=e,this._filter=t,new Proxy(this,this)}get length(){let e=0,t=(0,a.tree_getFirstDescendantNode)(this._root,!1,!1,e=>i.Guard.isElementNode(e)&&this._filter(e));for(;null!==t;)e++,t=(0,a.tree_getNextDescendantNode)(this._root,t,!1,!1,e=>i.Guard.isElementNode(e)&&this._filter(e));return e}item(e){let t=0,r=(0,a.tree_getFirstDescendantNode)(this._root,!1,!1,e=>i.Guard.isElementNode(e)&&this._filter(e));for(;null!==r;){if(t===e)return r;t++,r=(0,a.tree_getNextDescendantNode)(this._root,r,!1,!1,e=>i.Guard.isElementNode(e)&&this._filter(e))}return null}namedItem(e){if(""===e)return null;let t=(0,a.tree_getFirstDescendantNode)(this._root,!1,!1,e=>i.Guard.isElementNode(e)&&this._filter(e));for(;null!=t;){if(t._uniqueIdentifier===e)return t;if(t._namespace===n.namespace.HTML)for(let r=0;r<t._attributeList.length;r++){let n=t._attributeList[r];if("name"===n._localName&&null===n._namespace&&null===n._namespacePrefix&&n._value===e)return t}t=(0,a.tree_getNextDescendantNode)(this._root,t,!1,!1,e=>i.Guard.isElementNode(e)&&this._filter(e))}return null}[Symbol.iterator](){let e=this._root,t=this._filter,r=(0,a.tree_getFirstDescendantNode)(e,!1,!1,e=>i.Guard.isElementNode(e)&&t(e));return{next(){if(null===r)return{done:!0,value:null};{let n={done:!1,value:r};return r=(0,a.tree_getNextDescendantNode)(e,r,!1,!1,e=>i.Guard.isElementNode(e)&&t(e)),n}}}}get(e,t,r){if(!(0,o.isString)(t)||-1!==s.reservedNames.indexOf(t))return Reflect.get(e,t,r);let n=Number(t);return isNaN(n)?e.namedItem(t)||void 0:e.item(n)||void 0}set(e,t,r,n){if(!(0,o.isString)(t)||-1!==s.reservedNames.indexOf(t))return Reflect.set(e,t,r,n);let i=Number(t),l=isNaN(i)?e.namedItem(t)||void 0:e.item(i)||void 0;return!!l&&!!l._parent&&((0,a.mutation_replace)(l,r,l._parent),!0)}static _create(e,t=()=>!0){return new s(e,t)}}t.HTMLCollectionImpl=s},998(e,t,r){"use strict";t.MutationObserverImpl=void 0;let n=r(9091),a=r(8723),i=r(360);t.MutationObserverImpl=class{_callback;_nodeList=[];_recordQueue=[];constructor(e){this._callback=e;const t=n.dom.window;i.set.append(t._mutationObservers,this)}observe(e,t){if((void 0!==(t=t||{childList:!1,subtree:!1}).attributeOldValue||void 0!==t.attributeFilter)&&void 0===t.attributes&&(t.attributes=!0),void 0!==t.characterDataOldValue&&void 0===t.characterData&&(t.characterData=!0),!t.childList&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||void 0!==t.attributeFilter&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw TypeError();let r=!1,n=t;for(let t of e._registeredObserverList)if(t.observer===this){for(let e of(r=!0,this._nodeList))i.list.remove(e._registeredObserverList,e=>a.Guard.isTransientRegisteredObserver(e)&&e.source===t);t.options=n}r||(e._registeredObserverList.push({observer:this,options:t}),this._nodeList.push(e))}disconnect(){for(let e of this._nodeList)i.list.remove(e._registeredObserverList,e=>e.observer===this);this._recordQueue=[]}takeRecords(){let e=this._recordQueue;return this._recordQueue=[],e}}},6609(e,t){"use strict";t.MutationRecordImpl=void 0,t.MutationRecordImpl=class e{_type;_target;_addedNodes;_removedNodes;_previousSibling;_nextSibling;_attributeName;_attributeNamespace;_oldValue;constructor(e,t,r,n,a,i,o,s,l){this._type=e,this._target=t,this._addedNodes=r,this._removedNodes=n,this._previousSibling=a,this._nextSibling=i,this._attributeName=o,this._attributeNamespace=s,this._oldValue=l}get type(){return this._type}get target(){return this._target}get addedNodes(){return this._addedNodes}get removedNodes(){return this._removedNodes}get previousSibling(){return this._previousSibling}get nextSibling(){return this._nextSibling}get attributeName(){return this._attributeName}get attributeNamespace(){return this._attributeNamespace}get oldValue(){return this._oldValue}static _create(t,r,n,a,i,o,s,l,u){return new e(t,r,n,a,i,o,s,l,u)}}},6202(e,t,r){"use strict";t.NamedNodeMapImpl=void 0;let n=r(8036),a=r(8792);t.NamedNodeMapImpl=class e extends Array{_element;constructor(t){super(),this._element=t,Object.setPrototypeOf(this,e.prototype)}_asArray(){return this}item(e){return this[e]||null}getNamedItem(e){return(0,a.element_getAnAttributeByName)(e,this._element)}getNamedItemNS(e,t){return(0,a.element_getAnAttributeByNamespaceAndLocalName)(e||"",t,this._element)}setNamedItem(e){return(0,a.element_setAnAttribute)(e,this._element)}setNamedItemNS(e){return(0,a.element_setAnAttribute)(e,this._element)}removeNamedItem(e){let t=(0,a.element_removeAnAttributeByName)(e,this._element);if(null===t)throw new n.NotFoundError;return t}removeNamedItemNS(e,t){let r=(0,a.element_removeAnAttributeByNamespaceAndLocalName)(e||"",t,this._element);if(null===r)throw new n.NotFoundError;return r}static _create(t){return new e(t)}}},7601(e,t,r){"use strict";t.NodeFilterImpl=void 0;let n=r(3841),a=r(270);class i{static FILTER_ACCEPT=1;static FILTER_REJECT=2;static FILTER_SKIP=3;static SHOW_ALL=0xffffffff;static SHOW_ELEMENT=1;static SHOW_ATTRIBUTE=2;static SHOW_TEXT=4;static SHOW_CDATA_SECTION=8;static SHOW_ENTITY_REFERENCE=16;static SHOW_ENTITY=32;static SHOW_PROCESSING_INSTRUCTION=64;static SHOW_COMMENT=128;static SHOW_DOCUMENT=256;static SHOW_DOCUMENT_TYPE=512;static SHOW_DOCUMENT_FRAGMENT=1024;static SHOW_NOTATION=2048;FILTER_ACCEPT=1;FILTER_REJECT=2;FILTER_SKIP=3;SHOW_ALL=0xffffffff;SHOW_ELEMENT=1;SHOW_ATTRIBUTE=2;SHOW_TEXT=4;SHOW_CDATA_SECTION=8;SHOW_ENTITY_REFERENCE=16;SHOW_ENTITY=32;SHOW_PROCESSING_INSTRUCTION=64;SHOW_COMMENT=128;SHOW_DOCUMENT=256;SHOW_DOCUMENT_TYPE=512;SHOW_DOCUMENT_FRAGMENT=1024;SHOW_NOTATION=2048;acceptNode(e){return n.FilterResult.Accept}static _create(){return new i}}t.NodeFilterImpl=i,(0,a.idl_defineConst)(i.prototype,"FILTER_ACCEPT",1),(0,a.idl_defineConst)(i.prototype,"FILTER_REJECT",2),(0,a.idl_defineConst)(i.prototype,"FILTER_SKIP",3),(0,a.idl_defineConst)(i.prototype,"SHOW_ALL",0xffffffff),(0,a.idl_defineConst)(i.prototype,"SHOW_ELEMENT",1),(0,a.idl_defineConst)(i.prototype,"SHOW_ATTRIBUTE",2),(0,a.idl_defineConst)(i.prototype,"SHOW_TEXT",4),(0,a.idl_defineConst)(i.prototype,"SHOW_CDATA_SECTION",8),(0,a.idl_defineConst)(i.prototype,"SHOW_ENTITY_REFERENCE",16),(0,a.idl_defineConst)(i.prototype,"SHOW_ENTITY",32),(0,a.idl_defineConst)(i.prototype,"SHOW_PROCESSING_INSTRUCTION",64),(0,a.idl_defineConst)(i.prototype,"SHOW_COMMENT",128),(0,a.idl_defineConst)(i.prototype,"SHOW_DOCUMENT",256),(0,a.idl_defineConst)(i.prototype,"SHOW_DOCUMENT_TYPE",512),(0,a.idl_defineConst)(i.prototype,"SHOW_DOCUMENT_FRAGMENT",1024),(0,a.idl_defineConst)(i.prototype,"SHOW_NOTATION",2048)},579(e,t,r){"use strict";t.NodeImpl=void 0;let n=r(9091),a=r(3841),i=r(3466),o=r(8723),s=r(8036),l=r(8792),u=r(2694),d=r(270);class c extends i.EventTargetImpl{static ELEMENT_NODE=1;static ATTRIBUTE_NODE=2;static TEXT_NODE=3;static CDATA_SECTION_NODE=4;static ENTITY_REFERENCE_NODE=5;static ENTITY_NODE=6;static PROCESSING_INSTRUCTION_NODE=7;static COMMENT_NODE=8;static DOCUMENT_NODE=9;static DOCUMENT_TYPE_NODE=10;static DOCUMENT_FRAGMENT_NODE=11;static NOTATION_NODE=12;static DOCUMENT_POSITION_DISCONNECTED=1;static DOCUMENT_POSITION_PRECEDING=2;static DOCUMENT_POSITION_FOLLOWING=4;static DOCUMENT_POSITION_CONTAINS=8;static DOCUMENT_POSITION_CONTAINED_BY=16;static DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;ELEMENT_NODE=1;ATTRIBUTE_NODE=2;TEXT_NODE=3;CDATA_SECTION_NODE=4;ENTITY_REFERENCE_NODE=5;ENTITY_NODE=6;PROCESSING_INSTRUCTION_NODE=7;COMMENT_NODE=8;DOCUMENT_NODE=9;DOCUMENT_TYPE_NODE=10;DOCUMENT_FRAGMENT_NODE=11;NOTATION_NODE=12;DOCUMENT_POSITION_DISCONNECTED=1;DOCUMENT_POSITION_PRECEDING=2;DOCUMENT_POSITION_FOLLOWING=4;DOCUMENT_POSITION_CONTAINS=8;DOCUMENT_POSITION_CONTAINED_BY=16;DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;__childNodes;get _childNodes(){return this.__childNodes||(this.__childNodes=(0,l.create_nodeList)(this))}_nodeDocumentOverride;get _nodeDocument(){return this._nodeDocumentOverride||n.dom.window._associatedDocument}set _nodeDocument(e){this._nodeDocumentOverride=e}__registeredObserverList;get _registeredObserverList(){return this.__registeredObserverList||(this.__registeredObserverList=[])}_parent=null;_children=new o.EmptySet;_firstChild=null;_lastChild=null;_previousSibling=null;_nextSibling=null;constructor(){super()}get nodeType(){return this._nodeType}get nodeName(){if(o.Guard.isElementNode(this))return this._htmlUppercasedQualifiedName;if(o.Guard.isAttrNode(this))return this._qualifiedName;if(o.Guard.isExclusiveTextNode(this))return"#text";if(o.Guard.isCDATASectionNode(this))return"#cdata-section";if(o.Guard.isProcessingInstructionNode(this))return this._target;else if(o.Guard.isCommentNode(this))return"#comment";else if(o.Guard.isDocumentNode(this))return"#document";else if(o.Guard.isDocumentTypeNode(this))return this._name;else if(o.Guard.isDocumentFragmentNode(this))return"#document-fragment";else return""}get baseURI(){return(0,u.urlSerializer)(this._nodeDocument._URL)}get isConnected(){return o.Guard.isElementNode(this)&&(0,l.shadowTree_isConnected)(this)}get ownerDocument(){return this._nodeType===a.NodeType.Document?null:this._nodeDocument}getRootNode(e){return(0,l.tree_rootNode)(this,!!e&&e.composed)}get parentNode(){return this._nodeType===a.NodeType.Attribute?null:this._parent}get parentElement(){return this._parent&&o.Guard.isElementNode(this._parent)?this._parent:null}hasChildNodes(){return null!==this._firstChild}get childNodes(){return this._childNodes}get firstChild(){return this._firstChild}get lastChild(){return this._lastChild}get previousSibling(){return this._previousSibling}get nextSibling(){return this._nextSibling}get nodeValue(){return o.Guard.isAttrNode(this)?this._value:o.Guard.isCharacterDataNode(this)?this._data:null}set nodeValue(e){null===e&&(e=""),o.Guard.isAttrNode(this)?(0,l.attr_setAnExistingAttributeValue)(this,e):o.Guard.isCharacterDataNode(this)&&(0,l.characterData_replaceData)(this,0,this._data.length,e)}get textContent(){return o.Guard.isDocumentFragmentNode(this)||o.Guard.isElementNode(this)?(0,l.text_descendantTextContent)(this):o.Guard.isAttrNode(this)?this._value:o.Guard.isCharacterDataNode(this)?this._data:null}set textContent(e){null===e&&(e=""),o.Guard.isDocumentFragmentNode(this)||o.Guard.isElementNode(this)?(0,l.node_stringReplaceAll)(e,this):o.Guard.isAttrNode(this)?(0,l.attr_setAnExistingAttributeValue)(this,e):o.Guard.isCharacterDataNode(this)&&(0,l.characterData_replaceData)(this,0,(0,l.tree_nodeLength)(this),e)}normalize(){let e=[],t=(0,l.tree_getFirstDescendantNode)(this,!1,!1,e=>o.Guard.isExclusiveTextNode(e));for(;null!==t;)e.push(t),t=(0,l.tree_getNextDescendantNode)(this,t,!1,!1,e=>o.Guard.isExclusiveTextNode(e));for(let t=0;t<e.length;t++){let r=e[t];if(null===r._parent)continue;let a=(0,l.tree_nodeLength)(r);if(0===a){(0,l.mutation_remove)(r,r._parent);continue}let i=[],s="";for(let e of(0,l.text_contiguousExclusiveTextNodes)(r))i.push(e),s+=e._data;if((0,l.characterData_replaceData)(r,a,0,s),0!==n.dom.rangeList.size){let e=r._nextSibling;for(;null!==e&&o.Guard.isExclusiveTextNode(e);){let t=e,i=(0,l.tree_index)(t);for(let e of n.dom.rangeList)e._start[0]===t&&(e._start[0]=r,e._start[1]+=a),e._end[0]===t&&(e._end[0]=r,e._end[1]+=a),e._start[0]===t._parent&&e._start[1]===i&&(e._start[0]=r,e._start[1]=a),e._end[0]===t._parent&&e._end[1]===i&&(e._end[0]=r,e._end[1]=a);a+=(0,l.tree_nodeLength)(e),e=e._nextSibling}}for(let e=0;e<i.length;e++){let t=i[e];null!==t._parent&&(0,l.mutation_remove)(t,t._parent)}}}cloneNode(e=!1){if(o.Guard.isShadowRoot(this))throw new s.NotSupportedError;return(0,l.node_clone)(this,null,e)}isEqualNode(e=null){return null!==e&&(0,l.node_equals)(this,e)}isSameNode(e=null){return this===e}compareDocumentPosition(e){if(e===this)return a.Position.SameNode;let t=e,r=this,i=null,s=null;if(o.Guard.isAttrNode(t)&&(t=(i=t)._element),o.Guard.isAttrNode(r)&&(r=(s=r)._element,i&&t&&t===r))for(let e=0;e<r._attributeList.length;e++){let t=r._attributeList[e];if((0,l.node_equals)(t,i))return a.Position.ImplementationSpecific|a.Position.Preceding;if((0,l.node_equals)(t,s))return a.Position.ImplementationSpecific|a.Position.Following}return null===t||null===r||(0,l.tree_rootNode)(t)!==(0,l.tree_rootNode)(r)?a.Position.Disconnected|a.Position.ImplementationSpecific|(n.dom.compareCache.check(this,e)?a.Position.Preceding:a.Position.Following):!i&&(0,l.tree_isAncestorOf)(r,t)||s&&t===r?a.Position.Contains|a.Position.Preceding:!s&&(0,l.tree_isDescendantOf)(r,t)||i&&t===r?a.Position.ContainedBy|a.Position.Following:(0,l.tree_isPreceding)(r,t)?a.Position.Preceding:a.Position.Following}contains(e){return null!==e&&(0,l.tree_isDescendantOf)(this,e,!0)}lookupPrefix(e){if(!e)return null;if(o.Guard.isElementNode(this))return(0,l.node_locateANamespacePrefix)(this,e);if(o.Guard.isDocumentNode(this))if(null===this.documentElement)return null;else return(0,l.node_locateANamespacePrefix)(this.documentElement,e);if(o.Guard.isDocumentTypeNode(this)||o.Guard.isDocumentFragmentNode(this))return null;if(o.Guard.isAttrNode(this))if(null===this._element)return null;else return(0,l.node_locateANamespacePrefix)(this._element,e);if(null!==this._parent&&o.Guard.isElementNode(this._parent))return(0,l.node_locateANamespacePrefix)(this._parent,e);else return null}lookupNamespaceURI(e){return(0,l.node_locateANamespace)(this,e||null)}isDefaultNamespace(e){return e||(e=null),(0,l.node_locateANamespace)(this,null)===e}insertBefore(e,t){return(0,l.mutation_preInsert)(e,this,t)}appendChild(e){return(0,l.mutation_append)(e,this)}replaceChild(e,t){return(0,l.mutation_replace)(t,e,this)}removeChild(e){return(0,l.mutation_preRemove)(e,this)}_getTheParent(e){return o.Guard.isSlotable(this)&&(0,l.shadowTree_isAssigned)(this)?this._assignedSlot:this._parent}}t.NodeImpl=c,c.prototype._children=new o.EmptySet,(0,d.idl_defineConst)(c.prototype,"ELEMENT_NODE",1),(0,d.idl_defineConst)(c.prototype,"ATTRIBUTE_NODE",2),(0,d.idl_defineConst)(c.prototype,"TEXT_NODE",3),(0,d.idl_defineConst)(c.prototype,"CDATA_SECTION_NODE",4),(0,d.idl_defineConst)(c.prototype,"ENTITY_REFERENCE_NODE",5),(0,d.idl_defineConst)(c.prototype,"ENTITY_NODE",6),(0,d.idl_defineConst)(c.prototype,"PROCESSING_INSTRUCTION_NODE",7),(0,d.idl_defineConst)(c.prototype,"COMMENT_NODE",8),(0,d.idl_defineConst)(c.prototype,"DOCUMENT_NODE",9),(0,d.idl_defineConst)(c.prototype,"DOCUMENT_TYPE_NODE",10),(0,d.idl_defineConst)(c.prototype,"DOCUMENT_FRAGMENT_NODE",11),(0,d.idl_defineConst)(c.prototype,"NOTATION_NODE",12),(0,d.idl_defineConst)(c.prototype,"DOCUMENT_POSITION_DISCONNECTED",1),(0,d.idl_defineConst)(c.prototype,"DOCUMENT_POSITION_PRECEDING",2),(0,d.idl_defineConst)(c.prototype,"DOCUMENT_POSITION_FOLLOWING",4),(0,d.idl_defineConst)(c.prototype,"DOCUMENT_POSITION_CONTAINS",8),(0,d.idl_defineConst)(c.prototype,"DOCUMENT_POSITION_CONTAINED_BY",16),(0,d.idl_defineConst)(c.prototype,"DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC",32)},7765(e,t,r){"use strict";t.NodeIteratorImpl=void 0;let n=r(5459),a=r(8792);class i extends n.TraverserImpl{_iteratorCollection;_reference;_pointerBeforeReference;constructor(e,t,r){super(e),this._iteratorCollection=void 0,this._reference=t,this._pointerBeforeReference=r,(0,a.nodeIterator_iteratorList)().add(this)}get referenceNode(){return this._reference}get pointerBeforeReferenceNode(){return this._pointerBeforeReference}nextNode(){return(0,a.nodeIterator_traverse)(this,!0)}previousNode(){return(0,a.nodeIterator_traverse)(this,!1)}detach(){(0,a.nodeIterator_iteratorList)().delete(this)}static _create(e,t,r){return new i(e,t,r)}}t.NodeIteratorImpl=i},8071(e,t,r){"use strict";t.NodeListImpl=void 0;let n=r(9091),a=r(3738),i=r(8792);class o{_live=!0;_root;_filter=null;_length=0;constructor(e){return this._root=e,new Proxy(this,this)}get length(){return this._root._children.size}item(e){if(e<0||e>this.length-1)return null;if(e<this.length/2){let t=0,r=this._root._firstChild;for(;null!==r&&t!==e;)r=r._nextSibling,t++;return r}{let t=this.length-1,r=this._root._lastChild;for(;null!==r&&t!==e;)r=r._previousSibling,t--;return r}}keys(){return{[Symbol.iterator]:(function(){let e=0;return{next:(function(){return e===this.length?{done:!0,value:null}:{done:!1,value:e++}}).bind(this)}}).bind(this)}}values(){return{[Symbol.iterator]:(function(){let e=this[Symbol.iterator]();return{next:()=>e.next()}}).bind(this)}}entries(){return{[Symbol.iterator]:(function(){let e=this[Symbol.iterator](),t=0;return{next(){let r=e.next();return r.done?{done:!0,value:null}:{done:!1,value:[t++,r.value]}}}}).bind(this)}}[Symbol.iterator](){return this._root._children[Symbol.iterator]()}forEach(e,t){void 0===t&&(t=n.dom.window);let r=0;for(let n of this._root._children)e.call(t,n,r++,this)}get(e,t,r){if(!(0,a.isString)(t))return Reflect.get(e,t,r);let n=Number(t);return isNaN(n)?Reflect.get(e,t,r):e.item(n)||void 0}set(e,t,r,n){if(!(0,a.isString)(t))return Reflect.set(e,t,r,n);let o=Number(t);if(isNaN(o))return Reflect.set(e,t,r,n);let s=e.item(o)||void 0;return!!s&&!!s._parent&&((0,i.mutation_replace)(s,r,s._parent),!0)}static _create(e){return new o(e)}}t.NodeListImpl=o},8993(e,t,r){"use strict";t.NodeListStaticImpl=void 0;let n=r(9091),a=r(3738);class i{_live=!1;_root;_filter;_items=[];_length=0;constructor(e){return this._root=e,this._items=[],this._filter=function(e){return!0},new Proxy(this,this)}get length(){return this._items.length}item(e){return e<0||e>this.length-1?null:this._items[e]}keys(){return{[Symbol.iterator]:(function(){let e=0;return{next:(function(){return e===this.length?{done:!0,value:null}:{done:!1,value:e++}}).bind(this)}}).bind(this)}}values(){return{[Symbol.iterator]:(function(){let e=this[Symbol.iterator]();return{next:()=>e.next()}}).bind(this)}}entries(){return{[Symbol.iterator]:(function(){let e=this[Symbol.iterator](),t=0;return{next(){let r=e.next();return r.done?{done:!0,value:null}:{done:!1,value:[t++,r.value]}}}}).bind(this)}}[Symbol.iterator](){let e=this._items[Symbol.iterator]();return{next:()=>e.next()}}forEach(e,t){void 0===t&&(t=n.dom.window);let r=0;for(let n of this._items)e.call(t,n,r++,this)}get(e,t,r){if(!(0,a.isString)(t))return Reflect.get(e,t,r);let n=Number(t);return isNaN(n)?Reflect.get(e,t,r):e._items[n]||void 0}set(e,t,r,n){if(!(0,a.isString)(t))return Reflect.set(e,t,r,n);let i=Number(t);return isNaN(i)?Reflect.set(e,t,r,n):i>=0&&i<e._items.length&&(e._items[i]=r,!0)}static _create(e,t){let r=new i(e);return r._items=t,r}}t.NodeListStaticImpl=i},6403(e,t,r){"use strict";t.NonDocumentTypeChildNodeImpl=void 0;let n=r(8723);t.NonDocumentTypeChildNodeImpl=class{get previousElementSibling(){let e=n.Cast.asNode(this)._previousSibling;for(;e;)if(n.Guard.isElementNode(e))return e;else e=e._previousSibling;return null}get nextElementSibling(){let e=n.Cast.asNode(this)._nextSibling;for(;e;)if(n.Guard.isElementNode(e))return e;else e=e._nextSibling;return null}}},3106(e,t,r){"use strict";t.NonElementParentNodeImpl=void 0;let n=r(8723),a=r(8792);t.NonElementParentNodeImpl=class{getElementById(e){let t=(0,a.tree_getFirstDescendantNode)(n.Cast.asNode(this),!1,!1,e=>n.Guard.isElementNode(e));for(;null!==t;){if(t._uniqueIdentifier===e)return t;t=(0,a.tree_getNextDescendantNode)(n.Cast.asNode(this),t,!1,!1,e=>n.Guard.isElementNode(e))}return null}}},7091(e,t,r){"use strict";t.ParentNodeImpl=void 0;let n=r(8723),a=r(8792);t.ParentNodeImpl=class{get children(){return(0,a.create_htmlCollection)(n.Cast.asNode(this))}get firstElementChild(){let e=n.Cast.asNode(this)._firstChild;for(;e;)if(n.Guard.isElementNode(e))return e;else e=e._nextSibling;return null}get lastElementChild(){let e=n.Cast.asNode(this)._lastChild;for(;e;)if(n.Guard.isElementNode(e))return e;else e=e._previousSibling;return null}get childElementCount(){let e=0;for(let t of n.Cast.asNode(this)._children)n.Guard.isElementNode(t)&&e++;return e}prepend(...e){let t=n.Cast.asNode(this),r=(0,a.parentNode_convertNodesIntoANode)(e,t._nodeDocument);(0,a.mutation_preInsert)(r,t,t._firstChild)}append(...e){let t=n.Cast.asNode(this),r=(0,a.parentNode_convertNodesIntoANode)(e,t._nodeDocument);(0,a.mutation_append)(r,t)}querySelector(e){let t=n.Cast.asNode(this),r=(0,a.selectors_scopeMatchASelectorsString)(e,t);return 0===r.length?null:r[0]}querySelectorAll(e){let t=n.Cast.asNode(this),r=(0,a.selectors_scopeMatchASelectorsString)(e,t);return(0,a.create_nodeListStatic)(t,r)}}},8326(e,t,r){"use strict";t.ProcessingInstructionImpl=void 0;let n=r(3841),a=r(1628),i=r(270);class o extends a.CharacterDataImpl{_nodeType=n.NodeType.ProcessingInstruction;_target;constructor(e,t){super(t),this._target=e}get target(){return this._target}static _create(e,t,r){let n=new o(t,r);return n._nodeDocument=e,n}}t.ProcessingInstructionImpl=o,(0,i.idl_defineConst)(o.prototype,"_nodeType",n.NodeType.ProcessingInstruction)},1466(e,t,r){"use strict";t.RangeImpl=void 0;let n=r(9091),a=r(3841),i=r(2044),o=r(8036),s=r(8792),l=r(270),u=r(8723);class d extends i.AbstractRangeImpl{static START_TO_START=0;static START_TO_END=1;static END_TO_END=2;static END_TO_START=3;START_TO_START=0;START_TO_END=1;END_TO_END=2;END_TO_START=3;_start;_end;constructor(){super();const e=n.dom.window._associatedDocument;this._start=[e,0],this._end=[e,0],n.dom.rangeList.add(this)}get commonAncestorContainer(){let e=this._start[0];for(;!(0,s.tree_isAncestorOf)(this._end[0],e,!0);){if(null===e._parent)throw Error("Parent node is null.");e=e._parent}return e}setStart(e,t){(0,s.range_setTheStart)(this,e,t)}setEnd(e,t){(0,s.range_setTheEnd)(this,e,t)}setStartBefore(e){let t=e._parent;if(null===t)throw new o.InvalidNodeTypeError;(0,s.range_setTheStart)(this,t,(0,s.tree_index)(e))}setStartAfter(e){let t=e._parent;if(null===t)throw new o.InvalidNodeTypeError;(0,s.range_setTheStart)(this,t,(0,s.tree_index)(e)+1)}setEndBefore(e){let t=e._parent;if(null===t)throw new o.InvalidNodeTypeError;(0,s.range_setTheEnd)(this,t,(0,s.tree_index)(e))}setEndAfter(e){let t=e._parent;if(null===t)throw new o.InvalidNodeTypeError;(0,s.range_setTheEnd)(this,t,(0,s.tree_index)(e)+1)}collapse(e){e?this._end=this._start:this._start=this._end}selectNode(e){(0,s.range_select)(e,this)}selectNodeContents(e){if(u.Guard.isDocumentTypeNode(e))throw new o.InvalidNodeTypeError;let t=(0,s.tree_nodeLength)(e);this._start=[e,0],this._end=[e,t]}compareBoundaryPoints(e,t){let r,n;if(e!==a.HowToCompare.StartToStart&&e!==a.HowToCompare.StartToEnd&&e!==a.HowToCompare.EndToEnd&&e!==a.HowToCompare.EndToStart)throw new o.NotSupportedError;if((0,s.range_root)(this)!==(0,s.range_root)(t))throw new o.WrongDocumentError;switch(e){case a.HowToCompare.StartToStart:r=this._start,n=t._start;break;case a.HowToCompare.StartToEnd:r=this._end,n=t._start;break;case a.HowToCompare.EndToEnd:r=this._end,n=t._end;break;case a.HowToCompare.EndToStart:r=this._start,n=t._end;break;default:throw new o.NotSupportedError}let i=(0,s.boundaryPoint_position)(r,n);return i===a.BoundaryPosition.Before?-1:+(i===a.BoundaryPosition.After)}deleteContents(){let e,t;if((0,s.range_collapsed)(this))return;let r=this._startNode,n=this._startOffset,a=this._endNode,i=this._endOffset;if(r===a&&u.Guard.isCharacterDataNode(r))return void(0,s.characterData_replaceData)(r,n,i-n,"");let o=[];for(let e of(0,s.range_getContainedNodes)(this)){let t=e._parent;null!==t&&(0,s.range_isContained)(t,this)||o.push(e)}if((0,s.tree_isAncestorOf)(a,r,!0))e=r,t=n;else{let n=r;for(;null!==n._parent&&!(0,s.tree_isAncestorOf)(a,n._parent,!0);)n=n._parent;if(null===n._parent)throw Error("Parent node is null.");e=n._parent,t=(0,s.tree_index)(n)+1}for(let e of(u.Guard.isCharacterDataNode(r)&&(0,s.characterData_replaceData)(r,n,(0,s.tree_nodeLength)(r)-n,""),o))e._parent&&(0,s.mutation_remove)(e,e._parent);u.Guard.isCharacterDataNode(a)&&(0,s.characterData_replaceData)(a,0,i,""),this._start=[e,t],this._end=[e,t]}extractContents(){return(0,s.range_extract)(this)}cloneContents(){return(0,s.range_cloneTheContents)(this)}insertNode(e){return(0,s.range_insert)(e,this)}surroundContents(e){for(let e of(0,s.range_getPartiallyContainedNodes)(this))if(!u.Guard.isTextNode(e))throw new o.InvalidStateError;if(u.Guard.isDocumentNode(e)||u.Guard.isDocumentTypeNode(e)||u.Guard.isDocumentFragmentNode(e))throw new o.InvalidNodeTypeError;let t=(0,s.range_extract)(this);0!==e._children.size&&(0,s.mutation_replaceAll)(null,e),(0,s.range_insert)(e,this),(0,s.mutation_append)(t,e),(0,s.range_select)(e,this)}cloneRange(){return(0,s.create_range)(this._start,this._end)}detach(){n.dom.rangeList.delete(this)}isPointInRange(e,t){if((0,s.tree_rootNode)(e)!==(0,s.range_root)(this))return!1;if(u.Guard.isDocumentTypeNode(e))throw new o.InvalidNodeTypeError;if(t>(0,s.tree_nodeLength)(e))throw new o.IndexSizeError;let r=[e,t];return(0,s.boundaryPoint_position)(r,this._start)!==a.BoundaryPosition.Before&&(0,s.boundaryPoint_position)(r,this._end)!==a.BoundaryPosition.After}comparePoint(e,t){if((0,s.tree_rootNode)(e)!==(0,s.range_root)(this))throw new o.WrongDocumentError;if(u.Guard.isDocumentTypeNode(e))throw new o.InvalidNodeTypeError;if(t>(0,s.tree_nodeLength)(e))throw new o.IndexSizeError;let r=[e,t];return(0,s.boundaryPoint_position)(r,this._start)===a.BoundaryPosition.Before?-1:+((0,s.boundaryPoint_position)(r,this._end)===a.BoundaryPosition.After)}intersectsNode(e){if((0,s.tree_rootNode)(e)!==(0,s.range_root)(this))return!1;let t=e._parent;if(null===t)return!0;let r=(0,s.tree_index)(e);return(0,s.boundaryPoint_position)([t,r],this._end)===a.BoundaryPosition.Before&&(0,s.boundaryPoint_position)([t,r+1],this._start)===a.BoundaryPosition.After}toString(){let e="";if(this._startNode===this._endNode&&u.Guard.isTextNode(this._startNode))return this._startNode._data.substring(this._startOffset,this._endOffset);for(let t of(u.Guard.isTextNode(this._startNode)&&(e+=this._startNode._data.substring(this._startOffset)),(0,s.range_getContainedNodes)(this)))u.Guard.isTextNode(t)&&(e+=t._data);return u.Guard.isTextNode(this._endNode)&&(e+=this._endNode._data.substring(0,this._endOffset)),e}static _create(e,t){let r=new d;return e&&(r._start=e),t&&(r._end=t),r}}t.RangeImpl=d,(0,l.idl_defineConst)(d.prototype,"START_TO_START",0),(0,l.idl_defineConst)(d.prototype,"START_TO_END",1),(0,l.idl_defineConst)(d.prototype,"END_TO_END",2),(0,l.idl_defineConst)(d.prototype,"END_TO_START",3)},4483(e,t,r){"use strict";t.ShadowRootImpl=void 0;let n=r(5714),a=r(3738),i=r(8792);class o extends n.DocumentFragmentImpl{_host;_mode;constructor(e,t){super(),this._host=e,this._mode=t}get mode(){return this._mode}get host(){return this._host}_getTheParent(e){return e._composedFlag||(0,a.isEmpty)(e._path)||(0,i.tree_rootNode)(e._path[0].invocationTarget)!==this?this._host:null}static _create(e,t){return new o(t,"closed")}}t.ShadowRootImpl=o},9183(e,t,r){"use strict";t.SlotableImpl=void 0;let n=r(8792);t.SlotableImpl=class{__name;__assignedSlot;get _name(){return this.__name||""}set _name(e){this.__name=e}get _assignedSlot(){return this.__assignedSlot||null}set _assignedSlot(e){this.__assignedSlot=e}get assignedSlot(){return(0,n.shadowTree_findASlot)(this,!0)}}},1396(e,t,r){"use strict";t.StaticRangeImpl=void 0;let n=r(2044),a=r(8036),i=r(8723);class o extends n.AbstractRangeImpl{_start;_end;constructor(e){if(super(),i.Guard.isDocumentTypeNode(e.startContainer)||i.Guard.isAttrNode(e.startContainer)||i.Guard.isDocumentTypeNode(e.endContainer)||i.Guard.isAttrNode(e.endContainer))throw new a.InvalidNodeTypeError;this._start=[e.startContainer,e.startOffset],this._end=[e.endContainer,e.endOffset]}}t.StaticRangeImpl=o},3800(e,t,r){"use strict";t.TextImpl=void 0;let n=r(3841),a=r(1628),i=r(8792),o=r(270);class s extends a.CharacterDataImpl{_nodeType=n.NodeType.Text;_name="";_assignedSlot=null;constructor(e=""){super(e)}get wholeText(){let e="";for(let t of(0,i.text_contiguousTextNodes)(this,!0))e+=t._data;return e}splitText(e){return(0,i.text_split)(this,e)}get assignedSlot(){throw Error("Mixin: Slotable not implemented.")}static _create(e,t=""){let r=new s(t);return r._nodeDocument=e,r}}t.TextImpl=s,(0,o.idl_defineConst)(s.prototype,"_nodeType",n.NodeType.Text)},5459(e,t,r){"use strict";t.TraverserImpl=void 0;let n=r(3841);t.TraverserImpl=class{_activeFlag;_root;_whatToShow;_filter;constructor(e){this._activeFlag=!1,this._root=e,this._whatToShow=n.WhatToShow.All,this._filter=null}get root(){return this._root}get whatToShow(){return this._whatToShow}get filter(){return this._filter}}},1933(e,t,r){"use strict";t.TreeWalkerImpl=void 0;let n=r(3841),a=r(5459),i=r(8792);class o extends a.TraverserImpl{_current;constructor(e,t){super(e),this._current=t}get currentNode(){return this._current}set currentNode(e){this._current=e}parentNode(){let e=this._current;for(;null!==e&&e!==this._root;)if(null!==(e=e._parent)&&(0,i.traversal_filter)(this,e)===n.FilterResult.Accept)return this._current=e,e;return null}firstChild(){return(0,i.treeWalker_traverseChildren)(this,!0)}lastChild(){return(0,i.treeWalker_traverseChildren)(this,!1)}nextSibling(){return(0,i.treeWalker_traverseSiblings)(this,!0)}previousNode(){let e=this._current;for(;e!==this._root;){let t=e._previousSibling;for(;t;){e=t;let r=(0,i.traversal_filter)(this,e);for(;r!==n.FilterResult.Reject&&e._lastChild;)e=e._lastChild,r=(0,i.traversal_filter)(this,e);if(r===n.FilterResult.Accept)return this._current=e,e;t=e._previousSibling}if(e===this._root||null===e._parent)break;if(e=e._parent,(0,i.traversal_filter)(this,e)===n.FilterResult.Accept)return this._current=e,e}return null}previousSibling(){return(0,i.treeWalker_traverseSiblings)(this,!1)}nextNode(){let e=this._current,t=n.FilterResult.Accept;for(;;){for(;t!==n.FilterResult.Reject&&e._firstChild;)if(e=e._firstChild,(t=(0,i.traversal_filter)(this,e))===n.FilterResult.Accept)return this._current=e,e;let r=null,a=e;for(;null!==a;){if(a===this._root)return null;if(null!==(r=a._nextSibling)){e=r;break}a=a._parent}if((t=(0,i.traversal_filter)(this,e))===n.FilterResult.Accept)return this._current=e,e}}static _create(e,t){return new o(e,t)}}t.TreeWalkerImpl=o},3243(e,t,r){"use strict";t.WindowImpl=void 0;let n=r(3466),a=r(3738),i=r(8792);class o extends n.EventTargetImpl{_currentEvent;_signalSlots=new Set;_mutationObserverMicrotaskQueued=!1;_mutationObservers=new Set;_associatedDocument;_iteratorList=new a.FixedSizeSet;constructor(){super(),this._associatedDocument=(0,i.create_document)()}get document(){return this._associatedDocument}get event(){return this._currentEvent}static _create(){return new o}}t.WindowImpl=o},8135(e,t,r){"use strict";t.XMLDocumentImpl=void 0;let n=r(8034);class a extends n.DocumentImpl{constructor(){super()}}t.XMLDocumentImpl=a},5313(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLDocument=t.Window=t.TreeWalker=t.Traverser=t.Text=t.StaticRange=t.ShadowRoot=t.Range=t.ProcessingInstruction=t.NodeListStatic=t.NodeList=t.NodeIterator=t.Node=t.NodeFilter=t.NamedNodeMap=t.MutationRecord=t.MutationObserver=t.HTMLCollection=t.EventTarget=t.Event=t.Element=t.DOMTokenList=t.DOMImplementation=t.dom=t.DocumentType=t.Document=t.DocumentFragment=t.CustomEvent=t.Comment=t.CharacterData=t.CDATASection=t.Attr=t.AbstractRange=t.AbortSignal=t.AbortController=void 0;let n=r(3738),a=r(3813);Object.defineProperty(t,"AbortController",{enumerable:!0,get:function(){return a.AbortControllerImpl}});let i=r(745);Object.defineProperty(t,"AbortSignal",{enumerable:!0,get:function(){return i.AbortSignalImpl}});let o=r(2044);Object.defineProperty(t,"AbstractRange",{enumerable:!0,get:function(){return o.AbstractRangeImpl}});let s=r(6648);Object.defineProperty(t,"Attr",{enumerable:!0,get:function(){return s.AttrImpl}});let l=r(7331);Object.defineProperty(t,"CDATASection",{enumerable:!0,get:function(){return l.CDATASectionImpl}});let u=r(1628);Object.defineProperty(t,"CharacterData",{enumerable:!0,get:function(){return u.CharacterDataImpl}});let d=r(9629),c=r(7090);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return c.CommentImpl}});let h=r(5945);Object.defineProperty(t,"CustomEvent",{enumerable:!0,get:function(){return h.CustomEventImpl}});let p=r(5714);Object.defineProperty(t,"DocumentFragment",{enumerable:!0,get:function(){return p.DocumentFragmentImpl}});let m=r(8034);Object.defineProperty(t,"Document",{enumerable:!0,get:function(){return m.DocumentImpl}});let f=r(6175),g=r(7466);Object.defineProperty(t,"DocumentType",{enumerable:!0,get:function(){return g.DocumentTypeImpl}});let y=r(9091);Object.defineProperty(t,"dom",{enumerable:!0,get:function(){return y.dom}});let v=r(9173);Object.defineProperty(t,"DOMImplementation",{enumerable:!0,get:function(){return v.DOMImplementationImpl}});let b=r(1374);Object.defineProperty(t,"DOMTokenList",{enumerable:!0,get:function(){return b.DOMTokenListImpl}});let w=r(7207);Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return w.ElementImpl}});let x=r(9971);Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return x.EventImpl}});let C=r(3466);Object.defineProperty(t,"EventTarget",{enumerable:!0,get:function(){return C.EventTargetImpl}});let k=r(6714);Object.defineProperty(t,"HTMLCollection",{enumerable:!0,get:function(){return k.HTMLCollectionImpl}});let M=r(998);Object.defineProperty(t,"MutationObserver",{enumerable:!0,get:function(){return M.MutationObserverImpl}});let S=r(6609);Object.defineProperty(t,"MutationRecord",{enumerable:!0,get:function(){return S.MutationRecordImpl}});let E=r(6202);Object.defineProperty(t,"NamedNodeMap",{enumerable:!0,get:function(){return E.NamedNodeMapImpl}});let T=r(7601);Object.defineProperty(t,"NodeFilter",{enumerable:!0,get:function(){return T.NodeFilterImpl}});let I=r(579);Object.defineProperty(t,"Node",{enumerable:!0,get:function(){return I.NodeImpl}});let P=r(7765);Object.defineProperty(t,"NodeIterator",{enumerable:!0,get:function(){return P.NodeIteratorImpl}});let _=r(8071);Object.defineProperty(t,"NodeList",{enumerable:!0,get:function(){return _.NodeListImpl}});let D=r(8993);Object.defineProperty(t,"NodeListStatic",{enumerable:!0,get:function(){return D.NodeListStaticImpl}});let O=r(6403),A=r(3106),R=r(7091),L=r(8326);Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return L.ProcessingInstructionImpl}});let N=r(1466);Object.defineProperty(t,"Range",{enumerable:!0,get:function(){return N.RangeImpl}});let V=r(4483);Object.defineProperty(t,"ShadowRoot",{enumerable:!0,get:function(){return V.ShadowRootImpl}});let F=r(9183),B=r(1396);Object.defineProperty(t,"StaticRange",{enumerable:!0,get:function(){return B.StaticRangeImpl}});let j=r(3800);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return j.TextImpl}});let W=r(5459);Object.defineProperty(t,"Traverser",{enumerable:!0,get:function(){return W.TraverserImpl}});let U=r(1933);Object.defineProperty(t,"TreeWalker",{enumerable:!0,get:function(){return U.TreeWalkerImpl}});let z=r(3243);Object.defineProperty(t,"Window",{enumerable:!0,get:function(){return z.WindowImpl}});let H=r(8135);Object.defineProperty(t,"XMLDocument",{enumerable:!0,get:function(){return H.XMLDocumentImpl}}),(0,n.applyMixin)(w.ElementImpl,d.ChildNodeImpl),(0,n.applyMixin)(u.CharacterDataImpl,d.ChildNodeImpl),(0,n.applyMixin)(g.DocumentTypeImpl,d.ChildNodeImpl),(0,n.applyMixin)(m.DocumentImpl,f.DocumentOrShadowRootImpl),(0,n.applyMixin)(V.ShadowRootImpl,f.DocumentOrShadowRootImpl),(0,n.applyMixin)(w.ElementImpl,O.NonDocumentTypeChildNodeImpl),(0,n.applyMixin)(u.CharacterDataImpl,O.NonDocumentTypeChildNodeImpl),(0,n.applyMixin)(m.DocumentImpl,A.NonElementParentNodeImpl),(0,n.applyMixin)(p.DocumentFragmentImpl,A.NonElementParentNodeImpl),(0,n.applyMixin)(m.DocumentImpl,R.ParentNodeImpl),(0,n.applyMixin)(p.DocumentFragmentImpl,R.ParentNodeImpl),(0,n.applyMixin)(w.ElementImpl,R.ParentNodeImpl),(0,n.applyMixin)(j.TextImpl,F.SlotableImpl),(0,n.applyMixin)(w.ElementImpl,F.SlotableImpl)},3841(e,t){"use strict";var r,n,a,i,o,s,l,u,d,c,h,p,m,f;t.HowToCompare=t.WhatToShow=t.FilterResult=t.Position=t.NodeType=t.EventPhase=t.BoundaryPosition=void 0,(u=r||(t.BoundaryPosition=r={}))[u.Before=0]="Before",u[u.Equal=1]="Equal",u[u.After=2]="After",(d=n||(t.EventPhase=n={}))[d.None=0]="None",d[d.Capturing=1]="Capturing",d[d.AtTarget=2]="AtTarget",d[d.Bubbling=3]="Bubbling",(c=a||(t.NodeType=a={}))[c.Element=1]="Element",c[c.Attribute=2]="Attribute",c[c.Text=3]="Text",c[c.CData=4]="CData",c[c.EntityReference=5]="EntityReference",c[c.Entity=6]="Entity",c[c.ProcessingInstruction=7]="ProcessingInstruction",c[c.Comment=8]="Comment",c[c.Document=9]="Document",c[c.DocumentType=10]="DocumentType",c[c.DocumentFragment=11]="DocumentFragment",c[c.Notation=12]="Notation",(h=i||(t.Position=i={}))[h.SameNode=0]="SameNode",h[h.Disconnected=1]="Disconnected",h[h.Preceding=2]="Preceding",h[h.Following=4]="Following",h[h.Contains=8]="Contains",h[h.ContainedBy=16]="ContainedBy",h[h.ImplementationSpecific=32]="ImplementationSpecific",(p=o||(t.FilterResult=o={}))[p.Accept=1]="Accept",p[p.Reject=2]="Reject",p[p.Skip=3]="Skip",(m=s||(t.WhatToShow=s={}))[m.All=0xffffffff]="All",m[m.Element=1]="Element",m[m.Attribute=2]="Attribute",m[m.Text=4]="Text",m[m.CDataSection=8]="CDataSection",m[m.EntityReference=16]="EntityReference",m[m.Entity=32]="Entity",m[m.ProcessingInstruction=64]="ProcessingInstruction",m[m.Comment=128]="Comment",m[m.Document=256]="Document",m[m.DocumentType=512]="DocumentType",m[m.DocumentFragment=1024]="DocumentFragment",m[m.Notation=2048]="Notation",(f=l||(t.HowToCompare=l={}))[f.StartToStart=0]="StartToStart",f[f.StartToEnd=1]="StartToEnd",f[f.EndToEnd=2]="EndToEnd",f[f.EndToStart=3]="EndToStart"},1362(e,t,r){"use strict";t.DOMImplementation=void 0,r(5313).dom.setFeatures(!0);var n=r(5313);Object.defineProperty(t,"DOMImplementation",{enumerable:!0,get:function(){return n.DOMImplementation}}),r(8884),r(963)},8649(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DOMParserImpl=void 0;let n=r(8792),a=r(8764);t.DOMParserImpl=class{parseFromString(e,t){if("text/html"===t)throw Error("HTML parser not implemented.");try{let r=new a.XMLParserImpl().parse(e);return r._contentType=t,r}catch(i){let e="http://www.mozilla.org/newlayout/xml/parsererror.xml",t=(0,n.create_xmlDocument)(),r=t.createElementNS(e,"parsererror"),a=t.createElementNS(e,"error");return a.setAttribute("message",i.message),r.appendChild(a),t.appendChild(r),t}}}},8764(e,t,r){"use strict";t.XMLParserImpl=void 0;let n=r(9460),a=r(2854),i=r(360),o=r(8792),s=r(2351);t.XMLParserImpl=class{parse(e){let t=new n.XMLStringLexer(e,{skipWhitespaceOnlyText:!0}),r=(0,o.create_document)(),l=r,u=t.nextToken();for(;u.type!==a.TokenType.EOF;){switch(u.type){case a.TokenType.Declaration:let e=u;if("1.0"!==e.version)throw Error("Invalid xml version: "+e.version);break;case a.TokenType.DocType:let n=u;if(!(0,o.xml_isPubidChar)(n.pubId))throw Error("DocType public identifier does not match PubidChar construct.");if(!(0,o.xml_isLegalChar)(n.sysId)||-1!==n.sysId.indexOf('"')&&-1!==n.sysId.indexOf("'"))throw Error("DocType system identifier contains invalid characters.");l.appendChild(r.implementation.createDocumentType(n.name,n.pubId,n.sysId));break;case a.TokenType.CDATA:let d=u;if(!(0,o.xml_isLegalChar)(d.data)||-1!==d.data.indexOf("]]>"))throw Error("CDATA contains invalid characters.");l.appendChild(r.createCDATASection(d.data));break;case a.TokenType.Comment:let c=u;if(!(0,o.xml_isLegalChar)(c.data)||-1!==c.data.indexOf("--")||c.data.endsWith("-"))throw Error("Comment data contains invalid characters.");l.appendChild(r.createComment(c.data));break;case a.TokenType.PI:let h=u;if(-1!==h.target.indexOf(":")||/^xml$/i.test(h.target))throw Error("Processing instruction target contains invalid characters.");if(!(0,o.xml_isLegalChar)(h.data)||-1!==h.data.indexOf("?>"))throw Error("Processing instruction data contains invalid characters.");l.appendChild(r.createProcessingInstruction(h.target,h.data));break;case a.TokenType.Text:let p=u;if(!(0,o.xml_isLegalChar)(p.data))throw Error("Text data contains invalid characters.");l.appendChild(r.createTextNode(this._decodeText(p.data)));break;case a.TokenType.Element:let m=u,[f,g]=(0,o.namespace_extractQName)(m.name);if(-1!==g.indexOf(":")||!(0,o.xml_isName)(g))throw Error("Node local name contains invalid characters.");if("xmlns"===f)throw Error("An element cannot have the 'xmlns' prefix.");let y=l.lookupNamespaceURI(f),v={};for(let[e,t]of m.attributes)if("xmlns"===e)y=t;else{let[r,n]=(0,o.namespace_extractQName)(e);"xmlns"===r&&(n===f&&(y=t),v[n]=t)}let b=null!==y?r.createElementNS(y,m.name):r.createElement(m.name);l.appendChild(b);let w=new s.LocalNameSet;for(let[e,t]of m.attributes){let[r,n]=(0,o.namespace_extractQName)(e),a=null;if("xmlns"===r||null===r&&"xmlns"===n?a=i.namespace.XMLNS:null!==(a=b.lookupNamespaceURI(r))&&b.isDefaultNamespace(a)?a=null:null===a&&null!==r&&(a=v[r]||null),w.has(a,n))throw Error("Element contains duplicate attributes.");if(w.set(a,n),a===i.namespace.XMLNS&&t===i.namespace.XMLNS)throw Error("XMLNS namespace is reserved.");if(-1!==n.indexOf(":")||!(0,o.xml_isName)(n))throw Error("Attribute local name contains invalid characters.");if("xmlns"===r&&""===t)throw Error("Empty XML namespace is not allowed.");null!==a?b.setAttributeNS(a,e,this._decodeAttributeValue(t)):b.setAttribute(e,this._decodeAttributeValue(t))}m.selfClosing||(l=b);break;case a.TokenType.ClosingTag:if(u.name!==l.nodeName)throw Error("Closing tag name does not match opening tag name.");l._parent&&(l=l._parent)}u=t.nextToken()}return r}_decodeText(e){return null==e?e:e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")}_decodeAttributeValue(e){return null==e?e:e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")}}},9460(e,t,r){"use strict";t.XMLStringLexer=void 0;let n=r(2854);class a{_str;_index;_length;_options={skipWhitespaceOnlyText:!1};err={line:-1,col:-1,index:-1,str:""};constructor(e,t){this._str=e,this._index=0,this._length=e.length,t&&(this._options.skipWhitespaceOnlyText=t.skipWhitespaceOnlyText||!1)}nextToken(){if(this.eof())return{type:n.TokenType.EOF};let e=this.skipIfStartsWith("<")?this.openBracket():this.text();return this._options.skipWhitespaceOnlyText&&e.type===n.TokenType.Text&&a.isWhiteSpaceToken(e)&&(e=this.nextToken()),e}openBracket(){if(this.skipIfStartsWith("?"))if(!this.skipIfStartsWith("xml"))return this.pi();else if(a.isSpace(this._str[this._index]))return this.declaration();else return this.seek(-3),this.pi();if(this.skipIfStartsWith("!"))if(this.skipIfStartsWith("--"))return this.comment();else{if(this.skipIfStartsWith("[CDATA["))return this.cdata();if(this.skipIfStartsWith("DOCTYPE"))return this.doctype();this.throwError("Invalid '!' in opening tag.")}else if(this.skipIfStartsWith("/"))return this.closeTag();else return this.openTag()}declaration(){let e="",t="",r="";for(;!this.eof();){if(this.skipSpace(),this.skipIfStartsWith("?>"))return{type:n.TokenType.Declaration,version:e,encoding:t,standalone:r};{let[n,a]=this.attribute();"version"===n?e=a:"encoding"===n?t=a:"standalone"===n?r=a:this.throwError("Invalid attribute name: "+n)}}this.throwError("Missing declaration end symbol `?>`")}doctype(){let e="",t="";this.skipSpace();let r=this.takeUntil2("[",">",!0);return this.skipSpace(),this.skipIfStartsWith("PUBLIC")?(e=this.quotedString(),t=this.quotedString()):this.skipIfStartsWith("SYSTEM")&&(t=this.quotedString()),this.skipSpace(),this.skipIfStartsWith("[")&&(this.skipUntil("]"),this.skipIfStartsWith("]")||this.throwError("Missing end bracket of DTD internal subset")),this.skipSpace(),this.skipIfStartsWith(">")||this.throwError("Missing doctype end symbol `>`"),{type:n.TokenType.DocType,name:r,pubId:e,sysId:t}}pi(){let e=this.takeUntilStartsWith("?>",!0);if(this.eof()&&this.throwError("Missing processing instruction end symbol `?>`"),this.skipSpace(),this.skipIfStartsWith("?>"))return{type:n.TokenType.PI,target:e,data:""};let t=this.takeUntilStartsWith("?>");return this.eof()&&this.throwError("Missing processing instruction end symbol `?>`"),this.seek(2),{type:n.TokenType.PI,target:e,data:t}}text(){let e=this.takeUntil("<");return{type:n.TokenType.Text,data:e}}comment(){let e=this.takeUntilStartsWith("--\x3e");return this.eof()&&this.throwError("Missing comment end symbol `--\x3e`"),this.seek(3),{type:n.TokenType.Comment,data:e}}cdata(){let e=this.takeUntilStartsWith("]]>");return this.eof()&&this.throwError("Missing CDATA end symbol `]>`"),this.seek(3),{type:n.TokenType.CDATA,data:e}}openTag(){this.skipSpace();let e=this.takeUntil2(">","/",!0);if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:n.TokenType.Element,name:e,attributes:[],selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:n.TokenType.Element,name:e,attributes:[],selfClosing:!0};let t=[];for(;!this.eof();){if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:n.TokenType.Element,name:e,attributes:t,selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:n.TokenType.Element,name:e,attributes:t,selfClosing:!0};let r=this.attribute();t.push(r)}this.throwError("Missing opening element tag end symbol `>`")}closeTag(){this.skipSpace();let e=this.takeUntil(">",!0);return this.skipSpace(),this.skipIfStartsWith(">")||this.throwError("Missing closing element tag end symbol `>`"),{type:n.TokenType.ClosingTag,name:e}}attribute(){this.skipSpace();let e=this.takeUntil("=",!0);return this.skipSpace(),this.skipIfStartsWith("=")||this.throwError("Missing equals sign before attribute value"),[e,this.quotedString()]}quotedString(){this.skipSpace();let e=this.take(1);a.isQuote(e)||this.throwError("Missing start quote character before quoted value");let t=this.takeUntil(e);return this.skipIfStartsWith(e)||this.throwError("Missing end quote character after quoted value"),t}eof(){return this._index>=this._length}skipIfStartsWith(e){let t=e.length;if(1===t)if(this._str[this._index]===e)return this._index++,!0;else return!1;for(let r=0;r<t;r++)if(this._str[this._index+r]!==e[r])return!1;return this._index+=t,!0}seek(e){this._index+=e,this._index<0&&(this._index=0),this._index>this._length&&(this._index=this._length)}skipSpace(){for(;!this.eof()&&a.isSpace(this._str[this._index]);)this._index++}take(e){if(1===e)return this._str[this._index++];let t=this._index;return this.seek(e),this._str.slice(t,this._index)}takeUntil(e,t=!1){let r=this._index;for(;this._index<this._length;){let r=this._str[this._index];if(r===e||t&&a.isSpace(r))break;this._index++}return this._str.slice(r,this._index)}takeUntil2(e,t,r=!1){let n=this._index;for(;this._index<this._length;){let n=this._str[this._index];if(n===e||n===t||r&&a.isSpace(n))break;this._index++}return this._str.slice(n,this._index)}takeUntilStartsWith(e,t=!1){let r=this._index,n=e.length;for(;this._index<this._length;){let i=!0;for(let o=0;o<n;o++){let n=this._str[this._index+o],s=e[o];if(t&&a.isSpace(n))return this._str.slice(r,this._index);if(n!==s){this._index++,i=!1;break}}if(i)return this._str.slice(r,this._index)}return this._index=this._length,this._str.slice(r)}skipUntil(e){for(;this._index<this._length;)if(this._str[this._index]!==e)this._index++;else break}static isWhiteSpaceToken(e){let t=e.data;for(let e=0;e<t.length;e++){let r=t[e];if(" "!==r&&"\n"!==r&&"\r"!==r&&" "!==r&&"\f"!==r)return!1}return!0}static isSpace(e){return" "===e||"\n"===e||"\r"===e||" "===e}static isQuote(e){return'"'===e||"'"===e}throwError(e){let t=/\r\n|\r|\n/g,r=null,n=0,a=0,i=this._str.length;for(;null!==(r=t.exec(this._str))&&null!==r;)if(n++,r.index<this._index&&(a=t.lastIndex),r.index>this._index){i=r.index;break}throw this.err={line:n,col:this._index-a,index:this._index,str:this._str.substring(a,i)},Error(e+"\nIndex: "+this.err.index+"\nLn: "+this.err.line+", Col: "+this.err.col+"\nInput: "+this.err.str)}[Symbol.iterator](){return this._index=0,{next:(function(){let e=this.nextToken();return e.type===n.TokenType.EOF?{done:!0,value:null}:{done:!1,value:e}}).bind(this)}}}t.XMLStringLexer=a},8884(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DOMParser=void 0;var n=r(8649);Object.defineProperty(t,"DOMParser",{enumerable:!0,get:function(){return n.DOMParserImpl}})},2854(e,t){"use strict";var r,n;t.TokenType=void 0,(n=r||(t.TokenType=r={}))[n.EOF=0]="EOF",n[n.Declaration=1]="Declaration",n[n.DocType=2]="DocType",n[n.Element=3]="Element",n[n.Text=4]="Text",n[n.CDATA=5]="CDATA",n[n.PI=6]="PI",n[n.Comment=7]="Comment",n[n.ClosingTag=8]="ClosingTag"},2351(e,t){"use strict";t.LocalNameSet=void 0,t.LocalNameSet=class{_items={};_nullItems={};set(e,t){null===e?this._nullItems[t]=!0:(this._items[e]||(this._items[e]={}),this._items[e][t]=!0)}has(e,t){return null===e?!0===this._nullItems[t]:!!this._items[e]&&!0===this._items[e][t]}}},7280(e,t){"use strict";t.NamespacePrefixMap=void 0,t.NamespacePrefixMap=class e{_items={};_nullItems=[];copy(){let t=new e;for(let e in this._items)t._items[e]=this._items[e].slice(0);return t._nullItems=this._nullItems.slice(0),t}get(e,t){let r=null===t?this._nullItems:this._items[t]||null;if(null===r)return null;let n=null;for(let t=0;t<r.length&&(n=r[t])!==e;t++);return n}has(e,t){let r=null===t?this._nullItems:this._items[t]||null;return null!==r&&-1!==r.indexOf(e)}hasPrefix(e){if(-1!==this._nullItems.indexOf(e))return!0;for(let t in this._items)if(-1!==this._items[t].indexOf(e))return!0;return!1}set(e,t){let r=null===t?this._nullItems:this._items[t]||null;null!==t&&null===r?this._items[t]=[e]:r.push(e)}}},9620(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLSerializerImpl=void 0;let n=r(3841),a=r(2351),i=r(7280),o=r(8036),s=r(360),l=r(8792);class u{static _VoidElementNames=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]);serializeToString(e){return this._xmlSerialization(e,!1)}_xmlSerialization(e,t){if(void 0===e._nodeDocument||e._nodeDocument._hasNamespaces){let r=new i.NamespacePrefixMap;r.set("xml",s.namespace.XML);try{return this._serializeNodeNS(e,null,r,{value:1},t)}catch{throw new o.InvalidStateError}}try{return this._serializeNode(e,t)}catch{throw new o.InvalidStateError}}_serializeNodeNS(e,t,r,a,i){switch(e.nodeType){case n.NodeType.Element:return this._serializeElementNS(e,t,r,a,i);case n.NodeType.Document:return this._serializeDocumentNS(e,t,r,a,i);case n.NodeType.Comment:return this._serializeComment(e,i);case n.NodeType.Text:return this._serializeText(e,i);case n.NodeType.DocumentFragment:return this._serializeDocumentFragmentNS(e,t,r,a,i);case n.NodeType.DocumentType:return this._serializeDocumentType(e,i);case n.NodeType.ProcessingInstruction:return this._serializeProcessingInstruction(e,i);case n.NodeType.CData:return this._serializeCData(e,i);default:throw Error(`Unknown node type: ${e.nodeType}`)}}_serializeNode(e,t){switch(e.nodeType){case n.NodeType.Element:return this._serializeElement(e,t);case n.NodeType.Document:return this._serializeDocument(e,t);case n.NodeType.Comment:return this._serializeComment(e,t);case n.NodeType.Text:return this._serializeText(e,t);case n.NodeType.DocumentFragment:return this._serializeDocumentFragment(e,t);case n.NodeType.DocumentType:return this._serializeDocumentType(e,t);case n.NodeType.ProcessingInstruction:return this._serializeProcessingInstruction(e,t);case n.NodeType.CData:return this._serializeCData(e,t);default:throw Error(`Unknown node type: ${e.nodeType}`)}}_serializeElementNS(e,t,r,n,a){if(a&&(-1!==e.localName.indexOf(":")||!(0,l.xml_isName)(e.localName)))throw Error("Node local name contains invalid characters (well-formed required).");let i="<",o="",d=!1,c=!1,h=r.copy(),p={},m=this._recordNamespaceInformation(e,h,p),f=t,g=e.namespaceURI;if(f===g)null!==m&&(c=!0),i+=o=g===s.namespace.XML?"xml:"+e.localName:e.localName;else{let t=e.prefix,r=null;if((null!==t||g!==m)&&(r=h.get(t,g)),"xmlns"===t){if(a)throw Error("An element cannot have the 'xmlns' prefix (well-formed required).");r=t}null!==r?(o=r+":"+e.localName,null!==m&&m!==s.namespace.XML&&(f=m||null),i+=o):null!==t?(t in p&&(t=this._generatePrefix(g,h,n)),h.set(t,g),o+=t+":"+e.localName,i+=o,i+=" xmlns:"+t+'="'+this._serializeAttributeValue(g,a)+'"',null!==m&&(f=m||null)):null===m||null!==m&&m!==g?(c=!0,o+=e.localName,f=g,i+=o,i+=' xmlns="'+this._serializeAttributeValue(g,a)+'"'):(o+=e.localName,f=g,i+=o)}i+=this._serializeAttributesNS(e,h,n,p,c,a);let y=g===s.namespace.HTML;if(y&&0===e.childNodes.length&&u._VoidElementNames.has(e.localName)?(i+=" /",d=!0):y||0!==e.childNodes.length||(i+="/",d=!0),i+=">",d)return i;if(y&&"template"===e.localName);else for(let t of e._children||e.childNodes)i+=this._serializeNodeNS(t,f,h,n,a);return i+("</"+o+">")}_serializeDocumentNS(e,t,r,n,a){if(a&&null===e.documentElement)throw Error("Missing document element (well-formed required).");let i="";for(let o of e._children||e.childNodes)i+=this._serializeNodeNS(o,t,r,n,a);return i}_serializeComment(e,t){if(t&&(!(0,l.xml_isLegalChar)(e.data)||-1!==e.data.indexOf("--")||e.data.endsWith("-")))throw Error("Comment data contains invalid characters (well-formed required).");return"\x3c!--"+e.data+"--\x3e"}_serializeText(e,t){if(t&&!(0,l.xml_isLegalChar)(e.data))throw Error("Text data contains invalid characters (well-formed required).");let r="";for(let t=0;t<e.data.length;t++){let n=e.data[t];"&"===n?r+="&amp;":"<"===n?r+="&lt;":">"===n?r+="&gt;":r+=n}return r}_serializeDocumentFragmentNS(e,t,r,n,a){let i="";for(let o of e._children||e.childNodes)i+=this._serializeNodeNS(o,t,r,n,a);return i}_serializeDocumentType(e,t){if(t&&!(0,l.xml_isPubidChar)(e.publicId))throw Error("DocType public identifier does not match PubidChar construct (well-formed required).");if(t&&(!(0,l.xml_isLegalChar)(e.systemId)||-1!==e.systemId.indexOf('"')&&-1!==e.systemId.indexOf("'")))throw Error("DocType system identifier contains invalid characters (well-formed required).");return e.publicId&&e.systemId?"<!DOCTYPE "+e.name+' PUBLIC "'+e.publicId+'" "'+e.systemId+'">':e.publicId?"<!DOCTYPE "+e.name+' PUBLIC "'+e.publicId+'">':e.systemId?"<!DOCTYPE "+e.name+' SYSTEM "'+e.systemId+'">':"<!DOCTYPE "+e.name+">"}_serializeProcessingInstruction(e,t){if(t&&(-1!==e.target.indexOf(":")||/^xml$/i.test(e.target)))throw Error("Processing instruction target contains invalid characters (well-formed required).");if(t&&(!(0,l.xml_isLegalChar)(e.data)||-1!==e.data.indexOf("?>")))throw Error("Processing instruction data contains invalid characters (well-formed required).");return"<?"+(""===e.data?e.target:e.target+" "+e.data)+"?>"}_serializeCData(e,t){if(t&&-1!==e.data.indexOf("]]>"))throw Error("CDATA contains invalid characters (well-formed required).");return"<![CDATA["+e.data+"]]>"}_serializeAttributesNS(e,t,r,n,i,o){let u="",d=o?new a.LocalNameSet:void 0;for(let a of e.attributes){if(!i&&!o&&null===a.namespaceURI){u+=" "+a.localName+'="'+this._serializeAttributeValue(a.value,o)+'"';continue}if(o&&d&&d.has(a.namespaceURI,a.localName))throw Error("Element contains duplicate attributes (well-formed required).");o&&d&&d.set(a.namespaceURI,a.localName);let e=a.namespaceURI,c=null;if(null!==e)if(c=t.get(a.prefix,e),e===s.namespace.XMLNS){if(a.value===s.namespace.XML||null===a.prefix&&i||null!==a.prefix&&(!(a.localName in n)||n[a.localName]!==a.value)&&t.has(a.localName,a.value))continue;if(o&&a.value===s.namespace.XMLNS)throw Error("XMLNS namespace is reserved (well-formed required).");if(o&&""===a.value)throw Error("Namespace prefix declarations cannot be used to undeclare a namespace (well-formed required).");"xmlns"===a.prefix&&(c="xmlns")}else null===c&&(u+=" xmlns:"+(c=null!==a.prefix&&(!t.hasPrefix(a.prefix)||t.has(a.prefix,e))?a.prefix:this._generatePrefix(e,t,r))+'="'+this._serializeAttributeValue(e,o)+'"');if(u+=" ",null!==c&&(u+=c+":"),o&&(-1!==a.localName.indexOf(":")||!(0,l.xml_isName)(a.localName)||"xmlns"===a.localName&&null===e))throw Error("Attribute local name contains invalid characters (well-formed required).");u+=a.localName+'="'+this._serializeAttributeValue(a.value,o)+'"'}return u}_recordNamespaceInformation(e,t,r){let n=null;for(let a of e.attributes){let e=a.namespaceURI,i=a.prefix;if(e===s.namespace.XMLNS)if(null===i){n=a.value;continue}else{let e=a.localName,n=a.value;if(n===s.namespace.XML||(""===n&&(n=null),t.has(e,n)))continue;t.set(e,n),r[e]=n||""}}return n}_generatePrefix(e,t,r){let n="ns"+r.value;return r.value++,t.set(n,e),n}_serializeAttributeValue(e,t){if(t&&null!==e&&!(0,l.xml_isLegalChar)(e))throw Error("Invalid characters in attribute value.");if(null===e)return"";let r="";for(let t=0;t<e.length;t++){let n=e[t];'"'===n?r+="&quot;":"&"===n?r+="&amp;":"<"===n?r+="&lt;":">"===n?r+="&gt;":r+=n}return r}_serializeElement(e,t){if(t&&(-1!==e.localName.indexOf(":")||!(0,l.xml_isName)(e.localName)))throw Error("Node local name contains invalid characters (well-formed required).");let r=!1,n=e.localName,a="<"+n;if(a+=this._serializeAttributes(e,t),0===e._children.size&&(a+="/",r=!0),a+=">",r)return a;for(let r of e._children)a+=this._serializeNode(r,t);return a+("</"+n+">")}_serializeDocument(e,t){if(t&&null===e.documentElement)throw Error("Missing document element (well-formed required).");let r="";for(let n of e._children)r+=this._serializeNode(n,t);return r}_serializeDocumentFragment(e,t){let r="";for(let n of e._children)r+=this._serializeNode(n,t);return r}_serializeAttributes(e,t){let r="",n=t?{}:void 0;for(let a of e.attributes){if(t&&n&&a.localName in n)throw Error("Element contains duplicate attributes (well-formed required).");if(t&&n&&(n[a.localName]=!0),t&&(-1!==a.localName.indexOf(":")||!(0,l.xml_isName)(a.localName)))throw Error("Attribute local name contains invalid characters (well-formed required).");r+=" "+a.localName+'="'+this._serializeAttributeValue(a.value,t)+'"'}return r}}t.XMLSerializerImpl=u},963(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLSerializer=void 0;var n=r(9620);Object.defineProperty(t,"XMLSerializer",{enumerable:!0,get:function(){return n.XMLSerializerImpl}})},4308(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cast=void 0;let n=r(4489);t.Cast=class{static asNode(e){if(n.Guard.isNode(e))return e;throw Error("Invalid object. Node expected.")}}},9964(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptySet=void 0;class r{get size(){return 0}add(e){throw Error("Cannot add to an empty set.")}clear(){}delete(e){return!1}forEach(e,t){}has(e){return!1}[Symbol.iterator](){return new n}entries(){return new n}keys(){return new n}values(){return new n}get[Symbol.toStringTag](){return"EmptySet"}}t.EmptySet=r;class n{[Symbol.iterator](){return this}next(){return{done:!0,value:null}}}},4489(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Guard=void 0;let n=r(3841);t.Guard=class e{static isNode(e){return!!e&&void 0!==e._nodeType}static isDocumentNode(t){return e.isNode(t)&&t._nodeType===n.NodeType.Document}static isDocumentTypeNode(t){return e.isNode(t)&&t._nodeType===n.NodeType.DocumentType}static isDocumentFragmentNode(t){return e.isNode(t)&&t._nodeType===n.NodeType.DocumentFragment}static isAttrNode(t){return e.isNode(t)&&t._nodeType===n.NodeType.Attribute}static isCharacterDataNode(t){if(!e.isNode(t))return!1;let r=t._nodeType;return r===n.NodeType.Text||r===n.NodeType.ProcessingInstruction||r===n.NodeType.Comment||r===n.NodeType.CData}static isTextNode(t){return e.isNode(t)&&(t._nodeType===n.NodeType.Text||t._nodeType===n.NodeType.CData)}static isExclusiveTextNode(t){return e.isNode(t)&&t._nodeType===n.NodeType.Text}static isCDATASectionNode(t){return e.isNode(t)&&t._nodeType===n.NodeType.CData}static isCommentNode(t){return e.isNode(t)&&t._nodeType===n.NodeType.Comment}static isProcessingInstructionNode(t){return e.isNode(t)&&t._nodeType===n.NodeType.ProcessingInstruction}static isElementNode(t){return e.isNode(t)&&t._nodeType===n.NodeType.Element}static isCustomElementNode(t){return e.isElementNode(t)&&"custom"===t._customElementState}static isShadowRoot(e){return!!e&&void 0!==e.host}static isMouseEvent(e){return!!e&&void 0!==e.screenX&&void 0!=e.screenY}static isSlotable(t){return!!t&&void 0!==t._name&&void 0!==t._assignedSlot&&(e.isTextNode(t)||e.isElementNode(t))}static isSlot(t){return!!t&&void 0!==t._name&&void 0!==t._assignedNodes&&e.isElementNode(t)}static isWindow(e){return!!e&&void 0!==e.navigator}static isEventListener(e){return!!e&&void 0!==e.handleEvent}static isRegisteredObserver(e){return!!e&&void 0!==e.observer&&void 0!==e.options}static isTransientRegisteredObserver(t){return!!t&&void 0!==t.source&&e.isRegisteredObserver(t)}}},8723(e,t,r){"use strict";t.EmptySet=t.Guard=t.Cast=void 0;var n=r(4308);Object.defineProperty(t,"Cast",{enumerable:!0,get:function(){return n.Cast}});var a=r(4489);Object.defineProperty(t,"Guard",{enumerable:!0,get:function(){return a.Guard}});var i=r(9964);Object.defineProperty(t,"EmptySet",{enumerable:!0,get:function(){return i.EmptySet}})},3053(e,t,r){"use strict";var n=r(1429).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.forgivingBase64Encode=function(e){return n.from(e).toString("base64")},t.forgivingBase64Decode=function(e){return""===e?"":((e=e.replace(a.ASCIIWhiteSpace,"")).length%4==0&&(e.endsWith("==")?e=e.substr(0,e.length-2):e.endsWith("=")&&(e=e.substr(0,e.length-1))),e.length%4!=1&&/[0-9A-Za-z+/]/.test(e))?n.from(e,"base64").toString("utf8"):null};let a=r(4776)},8292(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isASCIIByte=function(e){return e>=0&&e<=127}},5089(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.length=function(e){return e.length},t.byteLowercase=function(e){for(let t=0;t<e.length;t++){let r=e[t];r>=65&&r<=90&&(e[t]=r+32)}},t.byteUppercase=function(e){for(let t=0;t<e.length;t++){let r=e[t];r>=97&&r<=122&&(e[t]=r-32)}},t.byteCaseInsensitiveMatch=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],a=t[r];if(n>=65&&n<=90&&(n+=32),a>=65&&a<=90&&(a+=32),n!==a)return!1}return!0},t.startsWith=function(e,t){let r=0;for(;;){if(r>=e.length)return!1;if(r>=t.length)return!0;if(e[r]!==t[r])return!1;r++}},t.byteLessThan=function(e,t){let r=0;for(;;){if(r>=e.length)return!1;if(r>=t.length)return!0;let n=e[r],a=t[r];if(n<a)return!0;if(n>a)return!1;r++}},t.isomorphicDecode=function(e){return String.fromCodePoint(...e)}},4776(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ASCIIAlphanumeric=t.ASCIIAlpha=t.ASCIILowerAlpha=t.ASCIIUpperAlpha=t.ASCIIHexDigit=t.ASCIILowerHexDigit=t.ASCIIUpperHexDigit=t.ASCIIDigit=t.Control=t.C0ControlOrSpace=t.C0Control=t.ASCIIWhiteSpace=t.ASCIITabOrNewLine=t.ASCIICodePoint=t.NonCharacter=t.ScalarValue=t.Surrogate=void 0,t.Surrogate=/[\uD800-\uDFFF]/,t.ScalarValue=/[\uD800-\uDFFF]/,t.NonCharacter=/[\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]/,t.ASCIICodePoint=/[\u0000-\u007F]/,t.ASCIITabOrNewLine=/[\t\n\r]/,t.ASCIIWhiteSpace=/[\t\n\f\r ]/,t.C0Control=/[\u0000-\u001F]/,t.C0ControlOrSpace=/[\u0000-\u001F ]/,t.Control=/[\u0000-\u001F\u007F-\u009F]/,t.ASCIIDigit=/[0-9]/,t.ASCIIUpperHexDigit=/[0-9A-F]/,t.ASCIILowerHexDigit=/[0-9a-f]/,t.ASCIIHexDigit=/[0-9A-Fa-f]/,t.ASCIIUpperAlpha=/[A-Z]/,t.ASCIILowerAlpha=/[a-z]/,t.ASCIIAlpha=/[A-Za-z]/,t.ASCIIAlphanumeric=/[0-9A-Za-z]/},480(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSONFromBytes=function(e){let t=(0,n.utf8Decode)(e);return JSON.parse.call(void 0,t)},t.serializeJSONToBytes=function(e){let t=JSON.stringify.call(void 0,e);return(0,n.utf8Encode)(t)},t.parseJSONIntoInfraValues=function(e){return a(JSON.parse.call(void 0,e))},t.convertAJSONDerivedJavaScriptValueToAnInfraValue=a;let n=r(3738);function a(e){if(null===e||(0,n.isString)(e)||(0,n.isNumber)(e))return e;if((0,n.isArray)(e)){let t=[];for(let r of e)t.push(a(r));return t}if((0,n.isObject)(e)){let t=new Map;for(let r in e)if(e.hasOwnProperty(r)){let n=e[r];t.set(r,a(n))}return t}return e}},7570(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.append=function(e,t){e.push(t)},t.extend=function(e,t){e.push(...t)},t.prepend=function(e,t){e.unshift(t)},t.replace=function(e,t,r){let a=0;for(let i of e){if((0,n.isFunction)(t))t.call(null,i)&&(e[a]=r);else if(i===t){e[a]=r;return}a++}},t.insert=function(e,t,r){e.splice(r,0,t)},t.remove=function(e,t){let r=e.length;for(;r--;){let a=e[r];if((0,n.isFunction)(t))t.call(null,a)&&e.splice(r,1);else if(a===t)return void e.splice(r,1)}},t.empty=function(e){e.length=0},t.contains=function(e,t){for(let r of e)if((0,n.isFunction)(t)){if(t.call(null,r))return!0}else if(r===t)return!0;return!1},t.size=function(e,t){if(void 0===t)return e.length;{let r=0;for(let n of e)t.call(null,n)&&r++;return r}},t.isEmpty=function(e){return 0===e.length},t.forEach=function*(e,t){if(void 0===t)yield*e;else for(let r of e)t.call(null,r)&&(yield r)},t.clone=function(e){return Array(...e)},t.sortInAscendingOrder=function(e,t){return e.sort((e,r)=>t.call(null,e,r)?-1:1)},t.sortInDescendingOrder=function(e,t){return e.sort((e,r)=>t.call(null,e,r)?1:-1)};let n=r(3738)},8946(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.get=function(e,t){return e.get(t)},t.set=function(e,t,r){e.set(t,r)},t.remove=function(e,t){if((0,n.isFunction)(t)){let r=[];for(let n of e)t.call(null,n)&&r.push(n[0]);for(let t of r)e.delete(t)}else e.delete(t)},t.contains=function(e,t){if(!(0,n.isFunction)(t))return e.has(t);for(let r of e)if(t.call(null,r))return!0;return!1},t.keys=function(e){return new Set(e.keys())},t.values=function(e){return[...e.values()]},t.size=function(e,t){if(void 0===t)return e.size;{let r=0;for(let n of e)t.call(null,n)&&r++;return r}},t.isEmpty=function(e){return 0===e.size},t.forEach=function*(e,t){if(void 0===t)yield*e;else for(let r of e)t.call(null,r)&&(yield r)},t.clone=function(e){return new Map(e)},t.sortInAscendingOrder=function(e,t){let r=Array(...e);return r.sort((e,r)=>t.call(null,e,r)?-1:1),new Map(r)},t.sortInDescendingOrder=function(e,t){let r=Array(...e);return r.sort((e,r)=>t.call(null,e,r)?1:-1),new Map(r)};let n=r(3738)},9055(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XLink=t.SVG=t.MathML=t.XMLNS=t.XML=t.HTML=void 0,t.HTML="http://www.w3.org/1999/xhtml",t.XML="http://www.w3.org/XML/1998/namespace",t.XMLNS="http://www.w3.org/2000/xmlns/",t.MathML="http://www.w3.org/1998/Math/MathML",t.SVG="http://www.w3.org/2000/svg",t.XLink="http://www.w3.org/1999/xlink"},3975(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.enqueue=function(e,t){e.push(t)},t.dequeue=function(e){return e.shift()||null}},8344(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.append=function(e,t){e.add(t)},t.extend=function(e,t){t.forEach(e.add,e)},t.prepend=function(e,t){let r=new Set(e);e.clear(),e.add(t),r.forEach(e.add,e)},t.replace=function(e,t,r){let a=new Set;for(let i of e)(0,n.isFunction)(t)?t.call(null,i)?a.add(r):a.add(i):i===t?a.add(r):a.add(i);e.clear(),a.forEach(e.add,e)},t.insert=function(e,t,r){let n=new Set,a=0;for(let i of e)a===r&&n.add(t),n.add(i),a++;e.clear(),n.forEach(e.add,e)},t.remove=function(e,t){if((0,n.isFunction)(t)){let r=[];for(let n of e)t.call(null,n)&&r.push(n);for(let t of r)e.delete(t)}else e.delete(t)},t.empty=function(e){e.clear()},t.contains=function(e,t){if(!(0,n.isFunction)(t))return e.has(t);for(let r of e)if(t.call(null,r))return!0;return!1},t.size=function(e,t){if(void 0===t)return e.size;{let r=0;for(let n of e)t.call(null,n)&&r++;return r}},t.isEmpty=function(e){return 0===e.size},t.forEach=function*(e,t){if(void 0===t)yield*e;else for(let r of e)t.call(null,r)&&(yield r)},t.clone=function(e){return new Set(e)},t.sortInAscendingOrder=function(e,t){let r=Array(...e);return r.sort((e,r)=>t.call(null,e,r)?-1:1),new Set(r)},t.sortInDescendingOrder=function(e,t){let r=Array(...e);return r.sort((e,r)=>t.call(null,e,r)?1:-1),new Set(r)},t.isSubsetOf=a,t.isSupersetOf=function(e,t){return a(t,e)},t.intersection=function(e,t){let r=new Set;for(let n of e)t.has(n)&&r.add(n);return r},t.union=function(e,t){let r=new Set(e);return t.forEach(r.add,r),r},t.range=function(e,t){let r=new Set;for(let n=e;n<=t;n++)r.add(n);return r};let n=r(3738);function a(e,t){for(let r of e)if(!t.has(r))return!1;return!0}},9924(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.push=function(e,t){e.push(t)},t.pop=function(e){return e.pop()||null}},9927(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCodeUnitPrefix=s,t.isCodeUnitLessThan=function(e,t){if(s(t,e))return!1;if(s(e,t))return!0;for(let r=0;r<Math.min(e.length,t.length);r++){let n=e.charCodeAt(r),a=t.charCodeAt(r);if(n!==a)return n<a}return!1},t.isomorphicEncode=l,t.isASCIIString=u,t.asciiLowercase=d,t.asciiUppercase=function(e){let t="";for(let r of e){let e=r.codePointAt(0);void 0!==e&&e>=97&&e<=122?t+=String.fromCodePoint(e-32):t+=r}return t},t.asciiCaseInsensitiveMatch=function(e,t){return d(e)===d(t)},t.asciiEncode=function(e){return console.assert(u(e),"asciiEncode requires an ASCII string."),l(e)},t.asciiDecode=function(e){for(let t of e)console.assert((0,i.isASCIIByte)(t),"asciiDecode requires an ASCII byte sequence.");return(0,a.isomorphicDecode)(e)},t.stripNewlines=function(e){return e.replace(/[\n\r]/g,"")},t.normalizeNewlines=function(e){return e.replace(/\r\n/g,"\n").replace(/\r/g,"\n")},t.stripLeadingAndTrailingASCIIWhitespace=c,t.stripAndCollapseASCIIWhitespace=function(e){return c(e.replace(/[\t\n\f\r ]{2,}/g," "))},t.collectASequenceOfCodePoints=h,t.skipASCIIWhitespace=p,t.strictlySplit=function e(t,r){if(!(0,o.isArray)(t))return e(Array.from(t),r);let n={position:0},a=[],i=h(e=>r!==e,t,n);for(a.push(i);n.position<t.length;)console.assert(t[n.position]===r,"strictlySplit found no delimiter in input string."),n.position++,a.push(i=h(e=>r!==e,t,n));return a},t.splitAStringOnASCIIWhitespace=function e(t){if(!(0,o.isArray)(t))return e(Array.from(t));let r={position:0},a=[];for(p(t,r);r.position<t.length;){let e=h(e=>!n.ASCIIWhiteSpace.test(e),t,r);a.push(e),p(t,r)}return a},t.splitAStringOnCommas=function e(t){if(!(0,o.isArray)(t))return e(Array.from(t));let r={position:0},n=[];for(;r.position<t.length;){let e=h(e=>","!==e,t,r);n.push(c(e)),r.position<t.length&&(console.assert(","===t[r.position],"splitAStringOnCommas found no delimiter in input string."),r.position++)}return n},t.concatenate=function(e,t=""){return 0===e.length?"":e.join(t)};let n=r(4776),a=r(5089),i=r(8292),o=r(3738);function s(e,t){let r=0;for(;;){let n=r<e.length?e.charCodeAt(r):null,a=r<t.length?t.charCodeAt(r):null;if(null===n)return!0;if(n!==a)return!1;r++}}function l(e){let t=new Uint8Array(Array.from(e).length),r=0;for(let n of e){let e=n.codePointAt(0);console.assert(void 0!==e&&e<=255,"isomorphicEncode requires string bytes to be less than or equal to 0x00FF."),void 0!==e&&e<=255&&(t[r++]=e)}return t}function u(e){return/^[\u0000-\u007F]*$/.test(e)}function d(e){let t="";for(let r of e){let e=r.codePointAt(0);void 0!==e&&e>=65&&e<=90?t+=String.fromCodePoint(e+32):t+=r}return t}function c(e){return e.replace(/^[\t\n\f\r ]+/,"").replace(/[\t\n\f\r ]+$/,"")}function h(e,t,r){if(!(0,o.isArray)(t))return h(e,Array.from(t),r);let n="";for(;r.position<t.length&&e.call(null,t[r.position]);)n+=t[r.position],r.position++;return n}function p(e,t){h(e=>n.ASCIIWhiteSpace.test(e),e,t)}},360(e,t,r){"use strict";var n,a=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(n=function(e){return(n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),o=0;o<r.length;o++)"default"!==r[o]&&a(t,e,r[o]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.stack=t.set=t.queue=t.namespace=t.map=t.list=t.json=t.codePoint=t.byteSequence=t.byte=t.base64=void 0,t.base64=o(r(3053)),t.byte=o(r(8292)),t.byteSequence=o(r(5089)),t.codePoint=o(r(4776)),t.json=o(r(480)),t.list=o(r(7570)),t.map=o(r(8946)),t.namespace=o(r(9055)),t.queue=o(r(3975)),t.set=o(r(8344)),t.stack=o(r(9924)),t.string=o(r(9927))},2694(e,t,r){"use strict";t.urlSerializer=function(e,t=!1){let r=e.scheme+":";if(null!==e.host?(r+="//",s(e)&&(r+=e.username,""!==e.password&&(r+=":"+e.password),r+="@"),r+=function(e){return(0,n.isNumber)(e)?function(e){let t="",r=e;for(let e=1;e<=4;e++)t=(r%256).toString()+t,4!==e&&(t="."+t),r=Math.floor(r/256);return t}(e):(0,n.isArray)(e)?"["+function(e){let t="",r=null,n=-1,a=0,i=0;for(let t=0;t<8;t++)if(0===e[t]){a=1;for(let r=t+1;r<8&&0===e[r];r++)a++;a>i&&(i=a,n=t)}i>1&&(r=n);let o=!1;for(let n=0;n<8;n++)if(!o||0!==e[n]){if(o&&(o=!1),r===n){t+=0===n?"::":":",o=!0;continue}t+=e[n].toString(16),7!==n&&(t+=":")}return t}(e)+"]":e}(e.host),null!==e.port&&(r+=":"+e.port)):null===e.host&&"file"===e.scheme&&(r+="//"),e._cannotBeABaseURLFlag)r+=e.path[0];else for(let t of e.path)r+="/"+t;return null!==e.query&&(r+="?"+e.query),t||null===e.fragment||(r+="#"+e.fragment),r};let n=r(3738),a=r(7287),i=r(360),o=r(2841);function s(e){return""!==e.username||""!==e.password}},7287(e,t){"use strict";var r,n;t.OpaqueOrigin=t.ParserState=void 0,(n=r||(t.ParserState=r={}))[n.SchemeStart=0]="SchemeStart",n[n.Scheme=1]="Scheme",n[n.NoScheme=2]="NoScheme",n[n.SpecialRelativeOrAuthority=3]="SpecialRelativeOrAuthority",n[n.PathOrAuthority=4]="PathOrAuthority",n[n.Relative=5]="Relative",n[n.RelativeSlash=6]="RelativeSlash",n[n.SpecialAuthoritySlashes=7]="SpecialAuthoritySlashes",n[n.SpecialAuthorityIgnoreSlashes=8]="SpecialAuthorityIgnoreSlashes",n[n.Authority=9]="Authority",n[n.Host=10]="Host",n[n.Hostname=11]="Hostname",n[n.Port=12]="Port",n[n.File=13]="File",n[n.FileSlash=14]="FileSlash",n[n.FileHost=15]="FileHost",n[n.PathStart=16]="PathStart",n[n.Path=17]="Path",n[n.CannotBeABaseURLPath=18]="CannotBeABaseURLPath",n[n.Query=19]="Query",n[n.Fragment=20]="Fragment",t.OpaqueOrigin=["","",null,null]},1799(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompareCache=void 0;class r{_limit;_items=new Map;constructor(e=1e3){this._limit=e}check(e,t){if(this._items.get(e)===t)return!0;if(this._items.get(t)===e)return!1;let r=.5>Math.random();if(r?this._items.set(e,t):this._items.set(t,e),this._items.size>this._limit){let e=this._items.keys().next();e.done||this._items.delete(e.value)}return r}}t.CompareCache=r},5585(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedSizeSet=void 0;class r{_limit;_items=new Set;constructor(e=1e3){this._limit=e}add(e){if(this._items.add(e),this._items.size>this._limit){let e=this._items.values().next();e.done||this._items.delete(e.value)}return this}delete(e){return this._items.delete(e)}has(e){return this._items.has(e)}clear(){this._items.clear()}get size(){return this._items.size}forEach(e,t){this._items.forEach(r=>e.call(t,r,r,this))}*keys(){yield*this._items.keys()}*values(){yield*this._items.values()}*entries(){yield*this._items.entries()}*[Symbol.iterator](){yield*this._items}get[Symbol.toStringTag](){return"FixedSizeSet"}}t.FixedSizeSet=r},3362(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lazy=void 0,t.Lazy=class{_initialized=!1;_initFunc;_value;constructor(e){this._value=void 0,this._initFunc=e}get value(){return this._initialized||(this._value=this._initFunc(),this._initialized=!0),this._value}}},2293(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectCache=void 0;class r{_limit;_items=new Map;constructor(e=1e3){this._limit=e}get(e){return this._items.get(e)}set(e,t){if(this._items.set(e,t),this._items.size>this._limit){let e=this._items.keys().next();e.done||this._items.delete(e.value)}}delete(e){return this._items.delete(e)}has(e){return this._items.has(e)}clear(){this._items.clear()}get size(){return this._items.size}forEach(e,t){this._items.forEach((r,n)=>e.call(t,n,r))}*keys(){yield*this._items.keys()}*values(){yield*this._items.values()}*entries(){yield*this._items.entries()}*[Symbol.iterator](){yield*this._items}get[Symbol.toStringTag](){return"ObjectCache"}}t.ObjectCache=r},1251(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringWalker=void 0,t.StringWalker=class{_chars;_length;_pointer=0;_codePoint;_c;_remaining;_substring;constructor(e){this._chars=Array.from(e),this._length=this._chars.length}get eof(){return this._pointer>=this._length}get length(){return this._length}codePoint(){if(void 0===this._codePoint)if(this.eof)this._codePoint=-1;else{let e=this._chars[this._pointer].codePointAt(0);void 0!==e?this._codePoint=e:this._codePoint=-1}return this._codePoint}c(){return void 0===this._c&&(this._c=this.eof?"":this._chars[this._pointer]),this._c}remaining(){return void 0===this._remaining&&(this._remaining=this.eof?"":this._chars.slice(this._pointer+1).join("")),this._remaining}substring(){return void 0===this._substring&&(this._substring=this.eof?"":this._chars.slice(this._pointer).join("")),this._substring}get pointer(){return this._pointer}set pointer(e){e!==this._pointer&&(this._pointer=e,this._codePoint=void 0,this._c=void 0,this._remaining=void 0,this._substring=void 0)}}},3738(e,t,r){"use strict";t.StringWalker=t.CompareCache=t.FixedSizeSet=void 0,t.applyMixin=function(e,t,...r){Object.getOwnPropertyNames(t.prototype).forEach(n=>{if("constructor"!==n){if(-1!==r.indexOf(n)){let t=Object.getOwnPropertyDescriptor(e.prototype,n);t&&Object.defineProperty(e.prototype,"_"+n,t)}let a=Object.getOwnPropertyDescriptor(t.prototype,n);a&&Object.defineProperty(e.prototype,n,a)}})},t.applyDefaults=function e(t,r,n=!1){let a=function e(t){if(s(t))return t;if(u(t)){let r=[];for(let n of t)r.push(e(n));return r}if(!h(t))return t;{let r={};for(let n in t)if(t.hasOwnProperty(n)){let a=t[n];r[n]=e(a)}return r}}(t||{});return o(r,(t,r)=>{h(r)?a[t]=e(a[t],r,n):(n||void 0===a[t])&&(a[t]=r)}),a},t.forEachArray=function(e,t,r){e.forEach(t,r)},t.forEachObject=o,t.objectLength=function(e){return c(e)?e.size:Object.keys(e).length},t.isBoolean=function(e){return"boolean"==typeof e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isFunction=s,t.isObject=l,t.isArray=u,t.isSet=d,t.isMap=c,t.isEmpty=function(e){if(u(e))return!e.length;if(d(e))return!e.size;if(c(e))return!e.size;if(l(e)){for(let t in e)if(e.hasOwnProperty(t))return!1;return!0}return!1},t.isPlainObject=h,t.getValue=function(e){return s(e.valueOf)?e.valueOf():e},t.utf8Encode=function(e){let t=new Uint8Array(4*e.length),r=0;for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(a<128){t[r++]=a;continue}if(a<2048)t[r++]=a>>6|192;else{if(a>55295&&a<56320){if(++n>=e.length)throw Error("Incomplete surrogate pair.");let i=e.charCodeAt(n);if(i<56320||i>57343)throw Error("Invalid surrogate character.");a=65536+((1023&a)<<10)+(1023&i),t[r++]=a>>18|240,t[r++]=a>>12&63|128}else t[r++]=a>>12|224;t[r++]=a>>6&63|128}t[r++]=63&a|128}return t.subarray(0,r)},t.utf8Decode=function(e){let t="",r=0;for(;r<e.length;){var n=e[r++];if(n>127)if(n>191&&n<224){if(r>=e.length)throw Error("Incomplete 2-byte sequence.");n=(31&n)<<6|63&e[r++]}else if(n>223&&n<240){if(r+1>=e.length)throw Error("Incomplete 3-byte sequence.");n=(15&n)<<12|(63&e[r++])<<6|63&e[r++]}else if(n>239&&n<248){if(r+2>=e.length)throw Error("Incomplete 4-byte sequence.");n=(7&n)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++]}else throw Error("Unknown multi-byte start.");if(n<=65535)t+=String.fromCharCode(n);else if(n<=1114111)n-=65536,t+=String.fromCharCode(n>>10|55296),t+=String.fromCharCode(1023&n|56320);else throw Error("Code point exceeds UTF-16 limit.")}return t};var n=r(5585);Object.defineProperty(t,"FixedSizeSet",{enumerable:!0,get:function(){return n.FixedSizeSet}}),r(2293);var a=r(1799);Object.defineProperty(t,"CompareCache",{enumerable:!0,get:function(){return a.CompareCache}}),r(3362);var i=r(1251);function o(e,t,r){if(c(e))e.forEach((e,n)=>t.call(r,n,e));else for(let n in e)e.hasOwnProperty(n)&&t.call(r,n,e[n])}Object.defineProperty(t,"StringWalker",{enumerable:!0,get:function(){return i.StringWalker}});function s(e){return!!e&&"function"==typeof e}function l(e){let t=typeof e;return!!e&&("function"===t||"object"===t)}function u(e){return Array.isArray(e)}function d(e){return e instanceof Set}function c(e){return e instanceof Map}function h(e){if(l(e)){let t=Object.getPrototypeOf(e),r=t.constructor;return t&&r&&"function"==typeof r&&r instanceof r&&Function.prototype.toString.call(r)===Function.prototype.toString.call(Object)}return!1}},6366(e){"use strict";function t(){return null}function r(){return t}t.isRequired=t,e.exports={and:r,between:r,booleanSome:r,childrenHavePropXorChildren:r,childrenOf:r,childrenOfType:r,childrenSequenceOf:r,componentWithName:r,disallowedIf:r,elementType:r,empty:r,explicitNull:r,forbidExtraProps:Object,integer:r,keysOf:r,mutuallyExclusiveProps:r,mutuallyExclusiveTrueProps:r,nChildren:r,nonNegativeInteger:t,nonNegativeNumber:r,numericString:r,object:r,or:r,predicate:r,range:r,ref:r,requiredBy:r,restrictedProp:r,sequenceOf:r,shape:r,stringEndsWith:r,stringStartsWith:r,uniqueArray:r,uniqueArrayOf:r,valuesOf:r,withShape:r}},6221(e,t,r){e.exports=r(6366)},4028(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=l(e),o=i[0],s=i[1],u=new a((o+s)*3/4-s),d=0,c=s>0?o-4:o;for(r=0;r<c;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[d++]=t>>16&255,u[d++]=t>>8&255,u[d++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[d++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[d++]=t>>8&255,u[d++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,a=n%3,i=[],o=0,s=n-a;o<s;o+=16383)i.push(function(e,t,n){for(var a,i=[],o=t;o<n;o+=3)a=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(r[a>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return i.join("")}(e,o,o+16383>s?s:o+16383));return 1===a?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===a&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],a="u">typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=i.length;o<s;++o)r[o]=i[o],n[i.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},1429(e,t,r){"use strict";var n=r(4028),a=r(5801),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var n=e,a=t;if(("string"!=typeof a||""===a)&&(a="utf8"),!s.isEncoding(a))throw TypeError("Unknown encoding: "+a);var i=0|m(n,a),l=o(i),u=l.write(n,a);return u!==i&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(e)){var d=e;if(P(d,Uint8Array)){var f=new Uint8Array(d);return h(f.buffer,f.byteOffset,f.byteLength)}return c(d)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var g=e.valueOf&&e.valueOf();if(null!=g&&g!==e)return s.from(g,t,r);var y=function(e){if(s.isBuffer(e)){var t=0|p(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(y)return y;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),o(e<0?0:0|p(e))}function c(e){for(var t=e.length<0?0:0|p(e.length),r=o(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function m(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return E(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return T(e).length;default:if(a)return n?-1:E(e).length;t=(""+t).toLowerCase(),a=!0}}function f(e,t,r){var a,i,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var a="",i=t;i<r;++i)a+=_[e[i]];return a}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(127&e[a]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(e[a]);return n}(this,t,r);case"base64":return a=this,i=t,o=r,0===i&&o===a.length?n.fromByteArray(a):n.fromByteArray(a.slice(i,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),a="",i=0;i<n.length-1;i+=2)a+=String.fromCharCode(n[i]+256*n[i+1]);return a}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,a){var i;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r*=1)!=i&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(a)return -1;else r=e.length-1;else if(r<0)if(!a)return -1;else r=0;if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,a);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(a)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return v(e,[t],r,n,a)}throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,a){var i,o=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var d=-1;for(i=r;i<s;i++)if(u(e,i)===u(t,-1===d?0:i-d)){if(-1===d&&(d=i),i-d+1===l)return d*o}else -1!==d&&(i-=i-d),d=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){for(var c=!0,h=0;h<l;h++)if(u(e,i+h)!==u(t,h)){c=!1;break}if(c)return i}return -1}function b(e,t,r){r=Math.min(e.length,r);for(var n=[],a=t;a<r;){var i,o,s,l,u=e[a],d=null,c=u>239?4:u>223?3:u>191?2:1;if(a+c<=r)switch(c){case 1:u<128&&(d=u);break;case 2:(192&(i=e[a+1]))==128&&(l=(31&u)<<6|63&i)>127&&(d=l);break;case 3:i=e[a+1],o=e[a+2],(192&i)==128&&(192&o)==128&&(l=(15&u)<<12|(63&i)<<6|63&o)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:i=e[a+1],o=e[a+2],s=e[a+3],(192&i)==128&&(192&o)==128&&(192&s)==128&&(l=(15&u)<<18|(63&i)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(d=l)}null===d?(d=65533,c=1):d>65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|1023&d),n.push(d),a+=c}var h=n,p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var m="",f=0;f<p;)m+=String.fromCharCode.apply(String,h.slice(f,f+=4096));return m}function w(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function x(e,t,r,n,a,i){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function C(e,t,r,n,a,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function k(e,t,r,n,i){return t*=1,r>>>=0,i||C(e,t,r,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,r,n,23,4),r+4}function M(e,t,r,n,i){return t*=1,r>>>=0,i||C(e,t,r,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,r,n,52,8),r+8}t.hp=s,t.IS=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!s.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(P(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),P(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,a=0,i=Math.min(r,n);a<i;++a)if(e[a]!==t[a]){r=e[a],n=t[a];break}return r<n?-1:+(n<r)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),a=0;for(r=0;r<e.length;++r){var i=e[r];if(P(i,Uint8Array))a+i.length>n.length?s.from(i).copy(n,a):Uint8Array.prototype.set.call(n,i,a);else if(s.isBuffer(i))i.copy(n,a);else throw TypeError('"list" argument must be an Array of Buffers');a+=i.length}return n},s.byteLength=m,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):f.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,a){if(P(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,a>>>=0,this===e)return 0;for(var i=a-n,o=r-t,l=Math.min(i,o),u=this.slice(n,a),d=e.slice(t,r),c=0;c<l;++c)if(u[c]!==d[c]){i=u[c],o=d[c];break}return i<o?-1:+(o<i)},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a,i,o,s,l,u,d,c,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var a=e.length-r;n?(n=Number(n))>a&&(n=a):n=a;var i=t.length;n>i/2&&(n=i/2);for(var o=0;o<n;++o){var s,l=parseInt(t.substr(2*o,2),16);if((s=l)!=s)break;e[r+o]=l}return o}(this,e,t,r);case"utf8":case"utf-8":return a=t,i=r,I(E(e,this.length-a),this,a,i);case"ascii":case"latin1":case"binary":return o=t,s=r,I(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,o,s);case"base64":return l=t,u=r,I(T(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=t,c=r,I(function(e,t){for(var r,n,a=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,a.push(r%256),a.push(n);return a}(e,this.length-d),this,d,c);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],a=1,i=0;++i<t&&(a*=256);)n+=this[e+i]*a;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e+--t],a=1;t>0&&(a*=256);)n+=this[e+--t]*a;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],a=1,i=0;++i<t&&(a*=256);)n+=this[e+i]*a;return n>=(a*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=t,a=1,i=this[e+--n];n>0&&(a*=256);)i+=this[e+--n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),a.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),a.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),a.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),a.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var a=Math.pow(2,8*r)-1;x(this,e,t,r,a,0)}var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var a=Math.pow(2,8*r)-1;x(this,e,t,r,a,0)}var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var a=Math.pow(2,8*r-1);x(this,e,t,r,a-1,-a)}var i=0,o=1,s=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var a=Math.pow(2,8*r-1);x(this,e,t,r,a-1,-a)}var i=r-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return M(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return M(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var a=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),a},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var a,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var o=s.isBuffer(e)?e:s.from(e,n),l=o.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=o[a%l]}return this};var S=/[^+/0-9A-Za-z-_]/g;function E(e,t){t=t||1/0;for(var r,n=e.length,a=null,i=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!a){if(r>56319||o+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=(a-55296<<10|r-56320)+65536}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function T(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function I(e,t,r,n){for(var a=0;a<n&&!(a+r>=t.length)&&!(a>=e.length);++a)t[a+r]=e[a];return a}function P(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var _=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,a=0;a<16;++a)t[n+a]=e[r]+e[a];return t}()},9630(e,t,r){"use strict";var n=r(469),a=r(24),i=r(1530);e.exports=r(7009)||n.call(i,a)},4983(e,t,r){"use strict";var n=r(469),a=r(24),i=r(9630);e.exports=function(){return i(n,a,arguments)}},24(e){"use strict";e.exports=Function.prototype.apply},1530(e){"use strict";e.exports=Function.prototype.call},7196(e,t,r){"use strict";var n=r(469),a=r(6757),i=r(1530),o=r(9630);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new a("a function is required");return o(n,i,e)}},7009(e){"use strict";e.exports="u">typeof Reflect&&Reflect&&Reflect.apply},8682(e,t,r){"use strict";var n=r(4295),a=r(7196),i=a([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?a([r]):r}},6515(e,t,r){"use strict";r.r(t),r.d(t,{addEventListener:()=>l});var n=!!("u">typeof window&&window.document&&window.document.createElement),a=void 0;function i(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function o(e){this.target=e,this.events={}}o.prototype.getEventHandlers=function(e,t){var r=String(e)+" "+String(t?!0===t?100:(0|t.capture)+(t.passive<<1)+(t.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]},o.prototype.handleEvent=function(e,t,r){var n=this.getEventHandlers(e,t);n.handlers=n.nextHandlers,n.handlers.forEach(function(e){e&&e(r)})},o.prototype.add=function(e,t,r){var n=this,a=this.getEventHandlers(e,r);i(a),0===a.nextHandlers.length&&(a.handleEvent=this.handleEvent.bind(this,e,r),this.target.addEventListener(e,a.handleEvent,r)),a.nextHandlers.push(t);var o=!0;return function(){if(o){o=!1,i(a);var s=a.nextHandlers.indexOf(t);a.nextHandlers.splice(s,1),0===a.nextHandlers.length&&(n.target&&n.target.removeEventListener(e,a.handleEvent,r),a.handleEvent=void 0)}}};var s="__consolidated_events_handlers__";function l(e,t,r,i){e[s]||(e[s]=new o(e));var l=function(e){if(e)return(void 0===a&&(a=function(){if(!n||!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),r=function(){};window.addEventListener("testPassiveEventSupport",r,t),window.removeEventListener("testPassiveEventSupport",r,t)}catch(e){}return e}()),a)?e:!!e.capture}(i);return e[s].add(t,r,l)}},5956(e){"use strict";var t="%[a-f0-9]{2}",r=RegExp("("+t+")|([^%]+?)","gi"),n=RegExp("("+t+")+","gi");e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},a=n.exec(e);a;){try{t[a[0]]=decodeURIComponent(a[0])}catch(e){var i=function(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=(function e(t,r){try{return[decodeURIComponent(t.join(""))]}catch(e){}if(1===t.length)return t;r=r||1;var n=t.slice(0,r),a=t.slice(r);return Array.prototype.concat.call([],e(n),e(a))})(t,n).join("")).match(r)||[];return e}}(a[0]);i!==a[0]&&(t[a[0]]=i)}a=n.exec(e)}t["%C2"]="�";for(var o=Object.keys(t),s=0;s<o.length;s++){var l=o[s];e=e.replace(RegExp(l,"g"),t[l])}return e}(e)}}},75(e,t,r){"use strict";var n=r(9997),a=r(1742),i=r(6757),o=r(1233);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,d=arguments.length>6&&arguments[6],c=!!o&&o(e,t);if(n)n(e,t,{configurable:null===u&&c?c.configurable:!u,enumerable:null===s&&c?c.enumerable:!s,value:r,writable:null===l&&c?c.writable:!l});else if(!d&&(s||l||u))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},5806(e,t,r){"use strict";var n=r(3735),a="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,o=Array.prototype.concat,s=r(75),l=r(9118)(),u=function(e,t,r,n){if(t in e){if(!0===n){if(e[t]===r)return}else if("function"!=typeof n||"[object Function]"!==i.call(n)||!n())return}l?s(e,t,r,!0):s(e,t,r)},d=function(e,t){var r=arguments.length>2?arguments[2]:{},i=n(t);a&&(i=o.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;s+=1)u(e,i[s],t[i[s]],r[i[s]])};d.supportsDescriptors=!!l,e.exports=d},313(e,t,r){var n=r(1429).hp;e.exports=function(e){var t,r;return r={},a.m=t=[function(t,r){t.exports=e},function(e,t,r){"use strict";r.r(t),r.d(t,"isStringVr",function(){return i}),r.d(t,"isPrivateTag",function(){return o}),r.d(t,"parsePN",function(){return s}),r.d(t,"parseTM",function(){return l}),r.d(t,"parseDA",function(){return u}),r.d(t,"explicitElementToString",function(){return d}),r.d(t,"explicitDataSetToJS",function(){return c}),r.d(t,"createJPEGBasicOffsetTable",function(){return p}),r.d(t,"parseDicomDataSetExplicit",function(){return P}),r.d(t,"parseDicomDataSetImplicit",function(){return _}),r.d(t,"readFixedString",function(){return y}),r.d(t,"alloc",function(){return D}),r.d(t,"version",function(){return O}),r.d(t,"bigEndianByteArrayParser",function(){return A}),r.d(t,"ByteStream",function(){return N}),r.d(t,"sharedCopy",function(){return R}),r.d(t,"DataSet",function(){return w}),r.d(t,"findAndSetUNElementLength",function(){return g}),r.d(t,"findEndOfEncapsulatedElement",function(){return f}),r.d(t,"findItemDelimitationItemAndSetElementLength",function(){return x}),r.d(t,"littleEndianByteArrayParser",function(){return V}),r.d(t,"parseDicom",function(){return B}),r.d(t,"readDicomElementExplicit",function(){return I}),r.d(t,"readDicomElementImplicit",function(){return C}),r.d(t,"readEncapsulatedImageFrame",function(){return H}),r.d(t,"readEncapsulatedPixelData",function(){return q}),r.d(t,"readEncapsulatedPixelDataFromFragments",function(){return W}),r.d(t,"readPart10Header",function(){return F}),r.d(t,"readSequenceItemsExplicit",function(){return T}),r.d(t,"readSequenceItemsImplicit",function(){return S}),r.d(t,"readSequenceItem",function(){return k}),r.d(t,"readTag",function(){return m});var a={AE:!0,AS:!0,AT:!1,CS:!0,DA:!0,DS:!0,DT:!0,FL:!1,FD:!1,IS:!0,LO:!0,LT:!0,OB:!1,OD:!1,OF:!1,OW:!1,PN:!0,SH:!0,SL:!1,SQ:!1,SS:!1,ST:!0,TM:!0,UI:!0,UL:!1,UN:void 0,UR:!0,US:!1,UT:!0},i=function(e){return a[e]},o=function(e){if(isNaN(e=parseInt(e[4],16)))throw"dicomParser.isPrivateTag: cannot parse last character of group";return e%2==1},s=function(e){if(void 0!==e)return{familyName:(e=e.split("^"))[0],givenName:e[1],middleName:e[2],prefix:e[3],suffix:e[4]}};function l(e,t){if(2<=e.length){var r=parseInt(e.substring(0,2),10),n=4<=e.length?parseInt(e.substring(2,4),10):void 0,a=6<=e.length?parseInt(e.substring(4,6),10):void 0,i=8<=e.length?e.substring(7,13):void 0,i=i?parseInt(i,10)*Math.pow(10,6-i.length):void 0;if(t&&(isNaN(r)||void 0!==n&&isNaN(n)||void 0!==a&&isNaN(a)||void 0!==i&&isNaN(i)||r<0||23<r||n&&(n<0||59<n)||a&&(a<0||59<a)||i&&(i<0||999999<i)))throw"invalid TM '".concat(e,"'");return{hours:r,minutes:n,seconds:a,fractionalSeconds:i}}if(t)throw"invalid TM '".concat(e,"'")}function u(e,t){if(e&&8===e.length){var r=parseInt(e.substring(0,4),10),n=parseInt(e.substring(4,6),10),a=parseInt(e.substring(6,8),10);if(t&&!0!=(!isNaN(r)&&0<n&&n<=12&&0<a&&a<=function(e,t){switch(e){case 2:return t%4==0&&t%100||t%400==0?29:28;case 9:case 4:case 6:case 11:return 30;default:return 31}}(n,r)))throw"invalid DA '".concat(e,"'");return{year:r,month:n,day:a}}if(t)throw"invalid DA '".concat(e,"'")}function d(e,t){if(void 0===e||void 0===t)throw"dicomParser.explicitElementToString: missing required parameters";if(void 0===t.vr)throw"dicomParser.explicitElementToString: cannot convert implicit element to string";var r,n=t.vr,a=t.tag;function o(t,r){for(var n="",i=0;i<t;i++)0!==i&&(n+="/"),n+=r.call(e,a,i).toString();return n}if(!0===i(n))r=e.string(a);else{if("AT"===n){var s=e.uint32(a);return void 0===s?void 0:"x".concat((s=s<0?0xffffffff+s+1:s).toString(16).toUpperCase())}"US"===n?r=o(t.length/2,e.uint16):"SS"===n?r=o(t.length/2,e.int16):"UL"===n?r=o(t.length/4,e.uint32):"SL"===n?r=o(t.length/4,e.int32):"FD"===n?r=o(t.length/8,e.double):"FL"===n&&(r=o(t.length/4,e.float))}return r}function c(e,t){if(void 0===e)throw"dicomParser.explicitDataSetToJS: missing required parameter dataSet";t=t||{omitPrivateAttibutes:!0,maxElementLength:128};var r,n={};for(r in e.elements){var a=e.elements[r];if(!0!==t.omitPrivateAttibutes||!o(r))if(a.items){for(var i=[],s=0;s<a.items.length;s++)i.push(c(a.items[s].dataSet,t));n[r]=i}else{var l=void 0;a.length<t.maxElementLength&&(l=d(e,a)),n[r]=void 0!==l?l:{dataOffset:a.dataOffset,length:a.length}}}return n}function h(e,t){return 255===e.byteArray[t]&&217===e.byteArray[t+1]}function p(e,t,r){if(void 0===e)throw"dicomParser.createJPEGBasicOffsetTable: missing required parameter dataSet";if(void 0===t)throw"dicomParser.createJPEGBasicOffsetTable: missing required parameter pixelDataElement";if("x7fe00010"!==t.tag)throw"dicomParser.createJPEGBasicOffsetTable: parameter 'pixelDataElement' refers to non pixel data tag (expected tag = x7fe00010'";if(!0!==t.encapsulatedPixelData||!0!==t.hadUndefinedLength||void 0===t.basicOffsetTable||void 0===t.fragments||t.fragments.length<=0)throw"dicomParser.createJPEGBasicOffsetTable: parameter 'pixelDataElement' refers to pixel data element that does not have encapsulated pixel data";if(r&&r.length<=0)throw"dicomParser.createJPEGBasicOffsetTable: parameter 'fragments' must not be zero length";r=r||t.fragments;for(var n=[],a=0;;){n.push(t.fragments[a].offset);var i=function(e,t,r){for(var n,a=r;a<t.fragments.length;a++)if(n=a,!(!h(e,(n=t.fragments[n]).position+n.length-2)&&!h(e,n.position+n.length-3)))return a}(e,t,a);if(void 0===i||i===t.fragments.length-1)return n;a=i+1}}function m(e){if(void 0===e)throw"dicomParser.readTag: missing required parameter 'byteStream'";var t=256*e.readUint16()*256,e=e.readUint16();return"x".concat("00000000".concat((t+e).toString(16)).substr(-8))}function f(e,t,r){if(void 0===e)throw"dicomParser.findEndOfEncapsulatedElement: missing required parameter 'byteStream'";if(void 0===t)throw"dicomParser.findEndOfEncapsulatedElement: missing required parameter 'element'";if(t.encapsulatedPixelData=!0,t.basicOffsetTable=[],t.fragments=[],"xfffee000"!==m(e))throw"dicomParser.findEndOfEncapsulatedElement: basic offset table not found";for(var n=e.readUint32()/4,a=0;a<n;a++){var i=e.readUint32();t.basicOffsetTable.push(i)}for(var o=e.position;e.position<e.byteArray.length;){var s=m(e),l=e.readUint32();if("xfffee0dd"===s)return e.seek(l),void(t.length=e.position-t.dataOffset);if("xfffee000"!==s)return r&&r.push("unexpected tag ".concat(s," while searching for end of pixel data element with undefined length")),l>e.byteArray.length-e.position&&(l=e.byteArray.length-e.position),t.fragments.push({offset:e.position-o-8,position:e.position,length:l}),e.seek(l),void(t.length=e.position-t.dataOffset);t.fragments.push({offset:e.position-o-8,position:e.position,length:l}),e.seek(l)}r&&r.push("pixel data element ".concat(t.tag," missing sequence delimiter tag xfffee0dd"))}function g(e,t){if(void 0===e)throw"dicomParser.findAndSetUNElementLength: missing required parameter 'byteStream'";for(var r=e.byteArray.length-8;e.position<=r;)if(65534===e.readUint16()&&57565===e.readUint16())return 0!==e.readUint32()&&e.warnings("encountered non zero length following item delimiter at position ".concat(e.position-4," while reading element of undefined length with tag ").concat(t.tag)),void(t.length=e.position-t.dataOffset);t.length=e.byteArray.length-t.dataOffset,e.seek(e.byteArray.length-e.position)}function y(e,t,r){if(r<0)throw"dicomParser.readFixedString - length cannot be less than 0";if(t+r>e.length)throw"dicomParser.readFixedString: attempt to read past end of buffer";for(var n,a="",i=0;i<r;i++){if(0===(n=e[t+i]))return t+=r,a;a+=String.fromCharCode(n)}return a}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t){return void 0!==e.parser?e.parser:t}var w=function(){var e,t;function r(e,t,n){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),this.byteArrayParser=e,this.byteArray=t,this.elements=n}return e=[{key:"uint16",value:function(e,t){if(t=void 0!==t?t:0,(e=this.elements[e])&&0!==e.length)return b(e,this.byteArrayParser).readUint16(this.byteArray,e.dataOffset+2*t)}},{key:"int16",value:function(e,t){if(t=void 0!==t?t:0,(e=this.elements[e])&&0!==e.length)return b(e,this.byteArrayParser).readInt16(this.byteArray,e.dataOffset+2*t)}},{key:"uint32",value:function(e,t){if(t=void 0!==t?t:0,(e=this.elements[e])&&0!==e.length)return b(e,this.byteArrayParser).readUint32(this.byteArray,e.dataOffset+4*t)}},{key:"int32",value:function(e,t){if(t=void 0!==t?t:0,(e=this.elements[e])&&0!==e.length)return b(e,this.byteArrayParser).readInt32(this.byteArray,e.dataOffset+4*t)}},{key:"float",value:function(e,t){if(t=void 0!==t?t:0,(e=this.elements[e])&&0!==e.length)return b(e,this.byteArrayParser).readFloat(this.byteArray,e.dataOffset+4*t)}},{key:"double",value:function(e,t){if(t=void 0!==t?t:0,(e=this.elements[e])&&0!==e.length)return b(e,this.byteArrayParser).readDouble(this.byteArray,e.dataOffset+8*t)}},{key:"numStringValues",value:function(e){if((e=this.elements[e])&&0<e.length)return null===(e=y(this.byteArray,e.dataOffset,e.length).match(/\\/g))?1:e.length+1}},{key:"string",value:function(e,t){return(e=this.elements[e])&&e.Value?e.Value:e&&0<e.length?(e=y(this.byteArray,e.dataOffset,e.length),0<=t?e.split("\\")[t].trim():e.trim()):void 0}},{key:"text",value:function(e,t){if((e=this.elements[e])&&0<e.length)return e=y(this.byteArray,e.dataOffset,e.length),0<=t?e.split("\\")[t].replace(/ +$/,""):e.replace(/ +$/,"")}},{key:"floatString",value:function(e,t){var r=this.elements[e];if(r&&0<r.length&&void 0!==(t=this.string(e,t=void 0!==t?t:0)))return parseFloat(t)}},{key:"intString",value:function(e,t){var r=this.elements[e];if(r&&0<r.length&&void 0!==(t=this.string(e,t=void 0!==t?t:0)))return parseInt(t)}},{key:"attributeTag",value:function(e){var t=this.elements[e];if(t&&4===t.length){var r=b(t,this.byteArrayParser).readUint16,e=this.byteArray,t=t.dataOffset;return"x".concat("00000000".concat((256*r(e,t)*256+r(e,t+2)).toString(16)).substr(-8))}}}],v(r.prototype,e),t&&v(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}();function x(e,t){if(void 0===e)throw"dicomParser.readDicomElementImplicit: missing required parameter 'byteStream'";for(var r=e.byteArray.length-8;e.position<=r;)if(65534===e.readUint16()&&57357===e.readUint16())return 0!==e.readUint32()&&e.warnings("encountered non zero length following item delimiter at position ".concat(e.position-4," while reading element of undefined length with tag ").concat(t.tag)),void(t.length=e.position-t.dataOffset);t.length=e.byteArray.length-t.dataOffset,e.seek(e.byteArray.length-e.position)}function C(e,t,r){if(void 0===e)throw"dicomParser.readDicomElementImplicit: missing required parameter 'byteStream'";var n,a=m(e),a={tag:a,vr:void 0!==r?r(a):void 0,length:e.readUint32(),dataOffset:e.position};return 0xffffffff===a.length&&(a.hadUndefinedLength=!0),a.tag===t||((void 0!==(n=a).vr?"SQ"!==n.vr:e.position+4<=e.byteArray.length?(n=m(e),e.seek(-4),"xfffee000"!==n&&"xfffee0dd"!==n):(e.warnings.push("eof encountered before finding sequence item tag or sequence delimiter tag in peeking to determine VR"),!0))||o(a.tag)&&!a.hadUndefinedLength?a.hadUndefinedLength?x(e,a):e.seek(a.length):(S(e,a,r),o(a.tag)&&(a.items=void 0))),a}function k(e){if(void 0===e)throw"dicomParser.readSequenceItem: missing required parameter 'byteStream'";var t={tag:m(e),length:e.readUint32(),dataOffset:e.position};if("xfffee000"!==t.tag)throw"dicomParser.readSequenceItem: item tag (FFFE,E000) not found at offset ".concat(e.position);return t}function M(e,t){var r=k(e);return 0xffffffff===r.length?(r.hadUndefinedLength=!0,r.dataSet=function(e,t){for(var r={};e.position<e.byteArray.length;){var n=C(e,void 0,t);if("xfffee00d"===(r[n.tag]=n).tag)return new w(e.byteArrayParser,e.byteArray,r)}return e.warnings.push("eof encountered before finding sequence item delimiter in sequence item of undefined length"),new w(e.byteArrayParser,e.byteArray,r)}(e,t),r.length=e.position-r.dataOffset):(r.dataSet=new w(e.byteArrayParser,e.byteArray,{}),_(r.dataSet,e,e.position+r.length,{vrCallback:t})),r}function S(e,t,r){if(void 0===e)throw"dicomParser.readSequenceItemsImplicit: missing required parameter 'byteStream'";if(void 0===t)throw"dicomParser.readSequenceItemsImplicit: missing required parameter 'element'";t.items=[],(0xffffffff===t.length?function(e,t,r){for(;e.position+4<=e.byteArray.length;){var n=m(e);if(e.seek(-4),"xfffee0dd"===n)return t.length=e.position-t.dataOffset,e.seek(8);n=M(e,r),t.items.push(n)}e.warnings.push("eof encountered before finding sequence delimiter in sequence of undefined length"),t.length=e.byteArray.length-t.dataOffset}:function(e,t,r){for(var n=t.dataOffset+t.length;e.position<n;){var a=M(e,r);t.items.push(a)}})(e,t,r)}function E(e,t){var r=k(e);return 0xffffffff===r.length?(r.hadUndefinedLength=!0,r.dataSet=function(e,t){for(var r={};e.position<e.byteArray.length;){var n=I(e,t);if("xfffee00d"===(r[n.tag]=n).tag)return new w(e.byteArrayParser,e.byteArray,r)}return t.push("eof encountered before finding item delimiter tag while reading sequence item of undefined length"),new w(e.byteArrayParser,e.byteArray,r)}(e,t),r.length=e.position-r.dataOffset):(r.dataSet=new w(e.byteArrayParser,e.byteArray,{}),P(r.dataSet,e,e.position+r.length)),r}function T(e,t,r){if(void 0===e)throw"dicomParser.readSequenceItemsExplicit: missing required parameter 'byteStream'";if(void 0===t)throw"dicomParser.readSequenceItemsExplicit: missing required parameter 'element'";t.items=[],(0xffffffff===t.length?function(e,t,r){for(;e.position+4<=e.byteArray.length;){var n=m(e);if(e.seek(-4),"xfffee0dd"===n)return t.length=e.position-t.dataOffset,e.seek(8);n=E(e,r),t.items.push(n)}r.push("eof encountered before finding sequence delimitation tag while reading sequence of undefined length"),t.length=e.position-t.dataOffset}:function(e,t,r){for(var n=t.dataOffset+t.length;e.position<n;){var a=E(e,r);t.items.push(a)}})(e,t,r)}function I(e,t,r){if(void 0===e)throw"dicomParser.readDicomElementExplicit: missing required parameter 'byteStream'";var n,a={tag:m(e),vr:e.readFixedString(2)};return 2==("OB"===(n=a.vr)||"OD"===n||"OL"===n||"OW"===n||"SQ"===n||"OF"===n||"UC"===n||"UR"===n||"UT"===n||"UN"===n?4:2)?a.length=e.readUint16():(e.seek(2),a.length=e.readUint32()),a.dataOffset=e.position,0xffffffff===a.length&&(a.hadUndefinedLength=!0),a.tag===r||("SQ"===a.vr?T(e,a,t):0xffffffff===a.length?"x7fe00010"===a.tag?f(e,a,t):("UN"===a.vr?S:x)(e,a):e.seek(a.length)),a}function P(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};if(r=void 0===r?t.byteArray.length:r,void 0===t)throw"dicomParser.parseDicomDataSetExplicit: missing required parameter 'byteStream'";if(r<t.position||r>t.byteArray.length)throw"dicomParser.parseDicomDataSetExplicit: invalid value for parameter 'maxP osition'";for(var a=e.elements;t.position<r;){var i=I(t,e.warnings,n.untilTag);if((a[i.tag]=i).tag===n.untilTag)return}if(t.position>r)throw"dicomParser:parseDicomDataSetExplicit: buffer overrun"}function _(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};if(r=void 0===r?e.byteArray.length:r,void 0===t)throw"dicomParser.parseDicomDataSetImplicit: missing required parameter 'byteStream'";if(r<t.position||r>t.byteArray.length)throw"dicomParser.parseDicomDataSetImplicit: invalid value for parameter 'maxPosition'";for(var a=e.elements;t.position<r;){var i=C(t,n.untilTag,n.vrCallback);if((a[i.tag]=i).tag===n.untilTag)return}}function D(e,t){if(void 0!==n&&e instanceof n)return n.alloc(t);if(e instanceof Uint8Array)return new Uint8Array(t);throw"dicomParser.alloc: unknown type for byteArray"}var O="1.8.12",A={readUint16:function(e,t){if(t<0)throw"bigEndianByteArrayParser.readUint16: position cannot be less than 0";if(t+2>e.length)throw"bigEndianByteArrayParser.readUint16: attempt to read past end of buffer";return(e[t]<<8)+e[t+1]},readInt16:function(e,t){if(t<0)throw"bigEndianByteArrayParser.readInt16: position cannot be less than 0";if(t+2>e.length)throw"bigEndianByteArrayParser.readInt16: attempt to read past end of buffer";return 32768&(t=(e[t]<<8)+e[t+1])?t-65535-1:t},readUint32:function(e,t){if(t<0)throw"bigEndianByteArrayParser.readUint32: position cannot be less than 0";if(t+4>e.length)throw"bigEndianByteArrayParser.readUint32: attempt to read past end of buffer";return 256*(256*(256*e[t]+e[t+1])+e[t+2])+e[t+3]},readInt32:function(e,t){if(t<0)throw"bigEndianByteArrayParser.readInt32: position cannot be less than 0";if(t+4>e.length)throw"bigEndianByteArrayParser.readInt32: attempt to read past end of buffer";return(e[t]<<24)+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]},readFloat:function(e,t){if(t<0)throw"bigEndianByteArrayParser.readFloat: position cannot be less than 0";if(t+4>e.length)throw"bigEndianByteArrayParser.readFloat: attempt to read past end of buffer";var r=new Uint8Array(4);return r[3]=e[t],r[2]=e[t+1],r[1]=e[t+2],r[0]=e[t+3],new Float32Array(r.buffer)[0]},readDouble:function(e,t){if(t<0)throw"bigEndianByteArrayParser.readDouble: position cannot be less than 0";if(t+8>e.length)throw"bigEndianByteArrayParser.readDouble: attempt to read past end of buffer";var r=new Uint8Array(8);return r[7]=e[t],r[6]=e[t+1],r[5]=e[t+2],r[4]=e[t+3],r[3]=e[t+4],r[2]=e[t+5],r[1]=e[t+6],r[0]=e[t+7],new Float64Array(r.buffer)[0]}};function R(e,t,r){if(void 0!==n&&e instanceof n)return e.slice(t,t+r);if(e instanceof Uint8Array)return new Uint8Array(e.buffer,e.byteOffset+t,r);throw"dicomParser.from: unknown type for byteArray"}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var N=function(){var e,t;function r(e,t,a){if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),void 0===e)throw"dicomParser.ByteStream: missing required parameter 'byteArrayParser'";if(void 0===t)throw"dicomParser.ByteStream: missing required parameter 'byteArray'";if(t instanceof Uint8Array==!1&&(void 0===n||t instanceof n==!1))throw"dicomParser.ByteStream: parameter byteArray is not of type Uint8Array or Buffer";if(a<0)throw"dicomParser.ByteStream: parameter 'position' cannot be less than 0";if(a>=t.length)throw"dicomParser.ByteStream: parameter 'position' cannot be greater than or equal to 'byteArray' length";this.byteArrayParser=e,this.byteArray=t,this.position=a||0,this.warnings=[]}return e=[{key:"seek",value:function(e){if(this.position+e<0)throw"dicomParser.ByteStream.prototype.seek: cannot seek to position < 0";this.position+=e}},{key:"readByteStream",value:function(e){if(this.position+e>this.byteArray.length)throw"dicomParser.ByteStream.prototype.readByteStream: readByteStream - buffer overread";var t=R(this.byteArray,this.position,e);return this.position+=e,new r(this.byteArrayParser,t)}},{key:"getSize",value:function(){return this.byteArray.length}},{key:"readUint16",value:function(){var e=this.byteArrayParser.readUint16(this.byteArray,this.position);return this.position+=2,e}},{key:"readUint32",value:function(){var e=this.byteArrayParser.readUint32(this.byteArray,this.position);return this.position+=4,e}},{key:"readFixedString",value:function(e){var t=y(this.byteArray,this.position,e);return this.position+=e,t}}],L(r.prototype,e),t&&L(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}(),V={readUint16:function(e,t){if(t<0)throw"littleEndianByteArrayParser.readUint16: position cannot be less than 0";if(t+2>e.length)throw"littleEndianByteArrayParser.readUint16: attempt to read past end of buffer";return e[t]+256*e[t+1]},readInt16:function(e,t){if(t<0)throw"littleEndianByteArrayParser.readInt16: position cannot be less than 0";if(t+2>e.length)throw"littleEndianByteArrayParser.readInt16: attempt to read past end of buffer";return 32768&(t=e[t]+(e[t+1]<<8))?t-65535-1:t},readUint32:function(e,t){if(t<0)throw"littleEndianByteArrayParser.readUint32: position cannot be less than 0";if(t+4>e.length)throw"littleEndianByteArrayParser.readUint32: attempt to read past end of buffer";return e[t]+256*e[t+1]+256*e[t+2]*256+256*e[t+3]*65536},readInt32:function(e,t){if(t<0)throw"littleEndianByteArrayParser.readInt32: position cannot be less than 0";if(t+4>e.length)throw"littleEndianByteArrayParser.readInt32: attempt to read past end of buffer";return e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24)},readFloat:function(e,t){if(t<0)throw"littleEndianByteArrayParser.readFloat: position cannot be less than 0";if(t+4>e.length)throw"littleEndianByteArrayParser.readFloat: attempt to read past end of buffer";var r=new Uint8Array(4);return r[0]=e[t],r[1]=e[t+1],r[2]=e[t+2],r[3]=e[t+3],new Float32Array(r.buffer)[0]},readDouble:function(e,t){if(t<0)throw"littleEndianByteArrayParser.readDouble: position cannot be less than 0";if(t+8>e.length)throw"littleEndianByteArrayParser.readDouble: attempt to read past end of buffer";var r=new Uint8Array(8);return r[0]=e[t],r[1]=e[t+1],r[2]=e[t+2],r[3]=e[t+3],r[4]=e[t+4],r[5]=e[t+5],r[6]=e[t+6],r[7]=e[t+7],new Float64Array(r.buffer)[0]}};function F(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e)throw"dicomParser.readPart10Header: missing required parameter 'byteArray'";var r=t.TransferSyntaxUID,n=new N(V,e);return function(){var e=function(){if(132>=n.getSize()&&r)return!1;if(n.seek(128),"DICM"===n.readFixedString(4))return!0;if(!(t||{}).TransferSyntaxUID)throw"dicomParser.readPart10Header: DICM prefix not found at location 132 - this is not a valid DICOM P10 file.";return n.seek(0),!1}(),a=[],i={};if(!e)return n.position=0,{elements:{x00020010:{tag:"x00020010",vr:"UI",Value:r}},warnings:a};for(;n.position<n.byteArray.length;){var o=n.position,s=I(n,a);if("x0002ffff"<s.tag){n.position=o;break}s.parser=V,i[s.tag]=s}return(e=new w(n.byteArrayParser,n.byteArray,i)).warnings=n.warnings,e.position=n.position,e}()}function B(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e)throw Error("dicomParser.parseDicom: missing required parameter 'byteArray'");var n,a=function(t){if(void 0===t.elements.x00020010)throw Error("dicomParser.parseDicom: missing required meta header attribute 0002,0010");return(t=t.elements.x00020010)&&t.Value||y(e,t.dataOffset,t.length)},i=n=F(e,t),o=function(n){var i=a(n),o="1.2.840.10008.1.2"!==i,i=function(n,a){var i="[object process]"===Object.prototype.toString.call("u">typeof process?process:0);if("1.2.840.10008.1.2.1.99"!==n)return new N("1.2.840.10008.1.2.2"===n?A:V,e,a);if(t&&t.inflater)return new N(V,n=t.inflater(e,a),0);if(!0==i){var o=r(0),s=R(e,a,e.length-a),o=o.inflateRawSync(s),s=D(e,o.length+a);return e.copy(s,0,0,a),o.copy(s,a),new N(V,s,0)}if("u"<typeof pako)throw"dicomParser.parseDicom: no inflater available to handle deflate transfer syntax";return o=e.slice(a),(o=D(e,(s=pako.inflateRaw(o)).length+a)).set(e.slice(0,a),0),o.set(s,a),new N(V,o,0)}(i,n.position),n=new w(i.byteArrayParser,i.byteArray,{});n.warnings=i.warnings;try{(o?P:_)(n,i,i.byteArray.length,t)}catch(e){throw{exception:e,dataSet:n}}return n}(n);for(var s in i.elements)i.elements.hasOwnProperty(s)&&(o.elements[s]=i.elements[s]);return void 0!==i.warnings&&(o.warnings=i.warnings.concat(o.warnings)),o}var j=function(e,t,r){for(var n=0,a=t;a<t+r;a++)n+=e[a].length;return n};function W(e,t,r,n,a){if(a=a||t.fragments,void 0===e)throw"dicomParser.readEncapsulatedPixelDataFromFragments: missing required parameter 'dataSet'";if(void 0===t)throw"dicomParser.readEncapsulatedPixelDataFromFragments: missing required parameter 'pixelDataElement'";if(void 0===r)throw"dicomParser.readEncapsulatedPixelDataFromFragments: missing required parameter 'startFragmentIndex'";if(void 0===(n=n||1))throw"dicomParser.readEncapsulatedPixelDataFromFragments: missing required parameter 'numFragments'";if("x7fe00010"!==t.tag)throw"dicomParser.readEncapsulatedPixelDataFromFragments: parameter 'pixelDataElement' refers to non pixel data tag (expected tag = x7fe00010";if(!0!==t.encapsulatedPixelData||!0!==t.hadUndefinedLength||void 0===t.basicOffsetTable||void 0===t.fragments||t.fragments.length<=0)throw"dicomParser.readEncapsulatedPixelDataFromFragments: parameter 'pixelDataElement' refers to pixel data element that does not have encapsulated pixel data";if(r<0)throw"dicomParser.readEncapsulatedPixelDataFromFragments: parameter 'startFragmentIndex' must be >= 0";if(r>=t.fragments.length)throw"dicomParser.readEncapsulatedPixelDataFromFragments: parameter 'startFragmentIndex' must be < number of fragments";if(n<1)throw"dicomParser.readEncapsulatedPixelDataFromFragments: parameter 'numFragments' must be > 0";if(r+n>t.fragments.length)throw"dicomParser.readEncapsulatedPixelDataFromFragments: parameter 'startFragment' + 'numFragments' < number of fragments";var i=new N(e.byteArrayParser,e.byteArray,t.dataOffset),t=k(i);if("xfffee000"!==t.tag)throw"dicomParser.readEncapsulatedPixelData: missing basic offset table xfffee000";i.seek(t.length);var o=i.position;if(1===n)return R(i.byteArray,o+a[r].offset+8,a[r].length);for(var t=j(a,r,n),s=D(i.byteArray,t),l=0,u=r;u<r+n;u++)for(var d=o+a[u].offset+8,c=0;c<a[u].length;c++)s[l++]=i.byteArray[d++];return s}var U=function(e,t){for(var r=0;r<e.length;r++)if(e[r].offset===t)return r},z=function(e,t,r,n){if(e===t.length-1)return r.length-n;for(var a=t[e+1],i=n+1;i<r.length;i++)if(r[i].offset===a)return i-n;throw"dicomParser.calculateNumberOfFragmentsForFrame: could not find fragment with offset matching basic offset table"};function H(e,t,r,n,a){if(n=n||t.basicOffsetTable,a=a||t.fragments,void 0===e)throw"dicomParser.readEncapsulatedImageFrame: missing required parameter 'dataSet'";if(void 0===t)throw"dicomParser.readEncapsulatedImageFrame: missing required parameter 'pixelDataElement'";if(void 0===r)throw"dicomParser.readEncapsulatedImageFrame: missing required parameter 'frameIndex'";if(void 0===n)throw"dicomParser.readEncapsulatedImageFrame: parameter 'pixelDataElement' does not have basicOffsetTable";if("x7fe00010"!==t.tag)throw"dicomParser.readEncapsulatedImageFrame: parameter 'pixelDataElement' refers to non pixel data tag (expected tag = x7fe00010)";if(!0!==t.encapsulatedPixelData)throw"dicomParser.readEncapsulatedImageFrame: parameter 'pixelDataElement' refers to pixel data element that does not have encapsulated pixel data";if(!0!==t.hadUndefinedLength)throw"dicomParser.readEncapsulatedImageFrame: parameter 'pixelDataElement' refers to pixel data element that does not have undefined length";if(void 0===t.fragments)throw"dicomParser.readEncapsulatedImageFrame: parameter 'pixelDataElement' refers to pixel data element that does not have fragments";if(0===n.length)throw"dicomParser.readEncapsulatedImageFrame: basicOffsetTable has zero entries";if(r<0)throw"dicomParser.readEncapsulatedImageFrame: parameter 'frameIndex' must be >= 0";if(r>=n.length)throw"dicomParser.readEncapsulatedImageFrame: parameter 'frameIndex' must be < basicOffsetTable.length";var i=n[r],i=U(a,i);if(void 0===i)throw"dicomParser.readEncapsulatedImageFrame: unable to find fragment that matches basic offset table entry";return W(e,t,i,z(r,n,a,i),a)}var G=!1;function q(e,t,r){if(G||(G=!0,console&&console.log&&console.log("WARNING: dicomParser.readEncapsulatedPixelData() has been deprecated")),void 0===e)throw"dicomParser.readEncapsulatedPixelData: missing required parameter 'dataSet'";if(void 0===t)throw"dicomParser.readEncapsulatedPixelData: missing required parameter 'element'";if(void 0===r)throw"dicomParser.readEncapsulatedPixelData: missing required parameter 'frame'";if("x7fe00010"!==t.tag)throw"dicomParser.readEncapsulatedPixelData: parameter 'element' refers to non pixel data tag (expected tag = x7fe00010)";if(!0!==t.encapsulatedPixelData||!0!==t.hadUndefinedLength||void 0===t.basicOffsetTable||void 0===t.fragments)throw"dicomParser.readEncapsulatedPixelData: parameter 'element' refers to pixel data element that does not have encapsulated pixel data";if(r<0)throw"dicomParser.readEncapsulatedPixelData: parameter 'frame' must be >= 0";return 0!==t.basicOffsetTable.length?H(e,t,r):W(e,t,0,t.fragments.length)}t.default={isStringVr:i,isPrivateTag:o,parsePN:s,parseTM:l,parseDA:u,explicitElementToString:d,explicitDataSetToJS:c,createJPEGBasicOffsetTable:p,parseDicomDataSetExplicit:P,parseDicomDataSetImplicit:_,readFixedString:y,alloc:D,version:O,bigEndianByteArrayParser:A,ByteStream:N,sharedCopy:R,DataSet:w,findAndSetUNElementLength:g,findEndOfEncapsulatedElement:f,findItemDelimitationItemAndSetElementLength:x,littleEndianByteArrayParser:V,parseDicom:B,readDicomElementExplicit:I,readDicomElementImplicit:C,readEncapsulatedImageFrame:H,readEncapsulatedPixelData:q,readEncapsulatedPixelDataFromFragments:W,readPart10Header:F,readSequenceItemsExplicit:T,readSequenceItemsImplicit:S,readSequenceItem:k,readTag:m,LEI:"1.2.840.10008.1.2",LEE:"1.2.840.10008.1.2.1"}}],a.c=r,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,(function(t){return e[t]}).bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=1);function a(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,a),n.l=!0,n.exports}}(r(2534))},9123(e){"use strict";e.exports=function(e){if(arguments.length<1)throw TypeError("1 argument is required");if("object"!=typeof e)throw TypeError("Argument 1 (”other“) to Node.contains must be an instance of Node");var t=e;do{if(this===t)return!0;t&&(t=t.parentNode)}while(t);return!1}},5325(e,t,r){"use strict";var n=r(5806),a=r(9123),i=r(5306),o=i(),s=r(4248),l=function(e,t){return o.apply(e,[t])};n(l,{getPolyfill:i,implementation:a,shim:s}),e.exports=l},5306(e,t,r){"use strict";var n=r(9123);e.exports=function(){if("u">typeof document){if(document.contains)return document.contains;if(document.body&&document.body.contains)try{if("boolean"==typeof document.body.contains.call(document,""))return document.body.contains}catch(e){}}return n}},4248(e,t,r){"use strict";var n=r(5806),a=r(5306);e.exports=function(){var e=a();return"u">typeof document&&(n(document,{contains:e},{contains:function(){return document.contains!==e}}),"u">typeof Element&&n(Element.prototype,{contains:e},{contains:function(){return Element.prototype.contains!==e}})),e}},714(e,t,r){"use strict";var n,a=r(7196),i=r(1233);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!n&&i&&i(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=o&&"function"==typeof o.get?a([o.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},9997(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},155(e){"use strict";e.exports=EvalError},593(e){"use strict";e.exports=Error},7180(e){"use strict";e.exports=RangeError},9304(e){"use strict";e.exports=ReferenceError},1742(e){"use strict";e.exports=SyntaxError},6757(e){"use strict";e.exports=TypeError},4923(e){"use strict";e.exports=URIError},6542(e,t,r){"use strict";var n=r(6757);e.exports=function(e){if(null==e)throw new n(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}},802(e){"use strict";e.exports=Object},8621(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(r,n){var a,i,o;function s(r){e.removeListener(t,l),n(r)}function l(){"function"==typeof e.removeListener&&e.removeListener("error",s),r([].slice.call(arguments))}f(e,t,l,{once:!0}),"error"!==t&&(a=e,i=s,o={once:!0},"function"==typeof a.on&&f(a,"error",i,o))})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function s(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){if(s(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),o=i[t]),void 0===o)o=i[t]=r,++e._eventsCount;else if("function"==typeof o?o=i[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(a=l(e))>0&&o.length>a&&!o.warned){o.warned=!0;var a,i,o,u=Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,console&&console.warn&&console.warn(u)}return e}function d(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=d.bind(n);return a.listener=r,n.wrapFn=a,a}function h(e,t,r){var n=e._events;if(void 0===n)return[];var a=n[t];return void 0===a?[]:"function"==typeof a?r?[a.listener||a]:[a]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(a):m(a,a.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function f(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function a(i){n.once&&e.removeEventListener(t,a),r(i)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||a(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),i.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var a="error"===e,i=this._events;if(void 0!==i)a=a&&void 0===i.error;else if(!a)return!1;if(a){if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var o,s=Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else for(var u=l.length,d=m(l,u),r=0;r<u;++r)n(d[r],this,t);return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,c(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,c(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,a,i,o;if(s(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(a=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){o=r[i].listener,a=i;break}if(a<0)return this;0===a?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,a),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var a,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(a=i[n])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return h(this,e,!0)},i.prototype.rawListeners=function(e){return h(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},5043(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(a=n;0!=a--;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(a=n;0!=a--;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;0!=a--;){var n,a,i,o=i[a];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}},9913(e){"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),i=0;i<n.length;i++){var o=n[i],s=e[o];(a?-1!==t.indexOf(o):t(o,s,e))&&(r[o]=s)}return r}},9691(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var a=0;a<t.length;a+=1)r[a+e.length]=t[a];return r},a=function(e,t){for(var r=[],n=t||0,a=0;n<e.length;n+=1,a+=1)r[a]=e[n];return r},i=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var o,s=this;if("function"!=typeof s||"[object Function]"!==t.apply(s))throw TypeError("Function.prototype.bind called on incompatible "+s);for(var l=a(arguments,1),u=r(0,s.length-l.length),d=[],c=0;c<u;c++)d[c]="$"+c;if(o=Function("binder","return function ("+i(d,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var t=s.apply(this,n(l,arguments));return Object(t)===t?t:this}return s.apply(e,n(l,arguments))}),s.prototype){var h=function(){};h.prototype=s.prototype,o.prototype=new h,h.prototype=null}return o}},469(e,t,r){"use strict";var n=r(9691);e.exports=Function.prototype.bind||n},4295(e,t,r){"use strict";var n,a=r(802),i=r(593),o=r(155),s=r(7180),l=r(9304),u=r(1742),d=r(6757),c=r(4923),h=r(7256),p=r(5414),m=r(7954),f=r(3452),g=r(1358),y=r(5720),v=r(3515),b=Function,w=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},x=r(1233),C=r(9997),k=function(){throw new d},M=x?function(){try{return arguments.callee,k}catch(e){try{return x(arguments,"callee").get}catch(e){return k}}}():k,S=r(8573)(),E=r(7582),T=r(2170),I=r(9090),P=r(24),_=r(1530),D={},O="u">typeof Uint8Array&&E?E(Uint8Array):n,A={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":S&&E?E([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":D,"%AsyncGenerator%":D,"%AsyncGeneratorFunction%":D,"%AsyncIteratorPrototype%":D,"%Atomics%":"u"<typeof Atomics?n:Atomics,"%BigInt%":"u"<typeof BigInt?n:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"u"<typeof Float16Array?n:Float16Array,"%Float32Array%":"u"<typeof Float32Array?n:Float32Array,"%Float64Array%":"u"<typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":D,"%Int8Array%":"u"<typeof Int8Array?n:Int8Array,"%Int16Array%":"u"<typeof Int16Array?n:Int16Array,"%Int32Array%":"u"<typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&E?E(E([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"u"<typeof Map?n:Map,"%MapIteratorPrototype%":"u">typeof Map&&S&&E?E(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":a,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?n:Promise,"%Proxy%":"u"<typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"u"<typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?n:Set,"%SetIteratorPrototype%":"u">typeof Set&&S&&E?E(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&E?E(""[Symbol.iterator]()):n,"%Symbol%":S?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":M,"%TypedArray%":O,"%TypeError%":d,"%Uint8Array%":"u"<typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?n:Uint32Array,"%URIError%":c,"%WeakMap%":"u"<typeof WeakMap?n:WeakMap,"%WeakRef%":"u"<typeof WeakRef?n:WeakRef,"%WeakSet%":"u"<typeof WeakSet?n:WeakSet,"%Function.prototype.call%":_,"%Function.prototype.apply%":P,"%Object.defineProperty%":C,"%Object.getPrototypeOf%":T,"%Math.abs%":h,"%Math.floor%":p,"%Math.max%":m,"%Math.min%":f,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":v,"%Reflect.getPrototypeOf%":I};if(E)try{null.error}catch(e){var R=E(E(e));A["%Error.prototype%"]=R}var L=function e(t){var r;if("%AsyncFunction%"===t)r=w("async function () {}");else if("%GeneratorFunction%"===t)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=w("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&E&&(r=E(a.prototype))}return A[t]=r,r},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},V=r(469),F=r(2235),B=V.call(_,Array.prototype.concat),j=V.call(P,Array.prototype.splice),W=V.call(_,String.prototype.replace),U=V.call(_,String.prototype.slice),z=V.call(_,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,q=function(e){var t=U(e,0,1),r=U(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return W(e,H,function(e,t,r,a){n[n.length]=r?W(a,G,"$1"):t||e}),n},$=function(e,t){var r,n=e;if(F(N,n)&&(n="%"+(r=N[n])[0]+"%"),F(A,n)){var a=A[n];if(a===D&&(a=L(n)),void 0===a&&!t)throw new d("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:a}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new d('"allowMissing" argument must be a boolean');if(null===z(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=q(e),n=r.length>0?r[0]:"",a=$("%"+n+"%",t),i=a.name,o=a.value,s=!1,l=a.alias;l&&(n=l[0],j(r,B([0,1],l)));for(var c=1,h=!0;c<r.length;c+=1){var p=r[c],m=U(p,0,1),f=U(p,-1);if(('"'===m||"'"===m||"`"===m||'"'===f||"'"===f||"`"===f)&&m!==f)throw new u("property names with quotes must have matching quotes");if("constructor"!==p&&h||(s=!0),n+="."+p,F(A,i="%"+n+"%"))o=A[i];else if(null!=o){if(!(p in o)){if(!t)throw new d("base intrinsic for "+e+" exists, but the property is not available.");return}if(x&&c+1>=r.length){var g=x(o,p);o=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:o[p]}else h=F(o,p),o=o[p];h&&!s&&(A[i]=o)}}return o}},2235(e,t,r){"use strict";var n=Function.prototype.call,a=Object.prototype.hasOwnProperty;e.exports=r(469).call(n,a)},2170(e,t,r){"use strict";e.exports=r(802).getPrototypeOf||null},9090(e){"use strict";e.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},7582(e,t,r){"use strict";var n=r(9090),a=r(2170),i=r(714);e.exports=n?function(e){return n(e)}:a?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return a(e)}:i?function(e){return i(e)}:null},1067(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},1233(e,t,r){"use strict";var n=r(1067);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},9118(e,t,r){"use strict";var n=r(9997),a=function(){return!!n};a.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=a},8573(e,t,r){"use strict";var n="u">typeof Symbol&&Symbol,a=r(9535);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&a()}},9535(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},2396(e,t,r){"use strict";var n=r(261),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?o:s[e.$$typeof]||a}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=o;var u=Object.defineProperty,d=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(m){var a=p(r);a&&a!==m&&e(t,a,n)}var o=d(r);c&&(o=o.concat(c(r)));for(var s=l(t),f=l(r),g=0;g<o.length;++g){var y=o[g];if(!i[y]&&!(n&&n[y])&&!(f&&f[y])&&!(s&&s[y])){var v=h(r,y);try{u(t,y,v)}catch(e){}}}}return t}},5801(e,t){t.read=function(e,t,r,n,a){var i,o,s=8*a-n-1,l=(1<<s)-1,u=l>>1,d=-7,c=r?a-1:0,h=r?-1:1,p=e[t+c];for(c+=h,i=p&(1<<-d)-1,p>>=-d,d+=s;d>0;i=256*i+e[t+c],c+=h,d-=8);for(o=i&(1<<-d)-1,i>>=-d,d+=n;d>0;o=256*o+e[t+c],c+=h,d-=8);if(0===i)i=1-u;else{if(i===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),i-=u}return(p?-1:1)*o*Math.pow(2,i-n)},t.write=function(e,t,r,n,a,i){var o,s,l,u=8*i-a-1,d=(1<<u)-1,c=d>>1,h=5960464477539062e-23*(23===a),p=n?0:i-1,m=n?1:-1,f=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+c>=1?t+=h/l:t+=h*Math.pow(2,1-c),t*l>=2&&(o++,l/=2),o+c>=d?(s=0,o=d):o+c>=1?(s=(t*l-1)*Math.pow(2,a),o+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,a),o=0));a>=8;e[r+p]=255&s,p+=m,s/=256,a-=8);for(o=o<<a|s,u+=a;u>0;e[r+p]=255&o,p+=m,o/=256,u-=8);e[r+p-m]|=128*f}},1752(e,t){"use strict";function r(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var n="object"==typeof process;function a(e,t){if(!e){if(n)throw Error("Invariant failed");throw Error(t())}}t.invariant=a;var i=Object.prototype.hasOwnProperty,o=Array.prototype.splice,s=Object.prototype.toString;function l(e){return s.call(e).slice(8,-1)}var u=Object.assign||function(e,t){return d(t).forEach(function(r){i.call(t,r)&&(e[r]=t[r])}),e},d="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function c(e){return Array.isArray(e)?u(e.constructor(e.length),e):"Map"===l(e)?new Map(e):"Set"===l(e)?new Set(e):e&&"object"==typeof e?u(Object.create(Object.getPrototypeOf(e)),e):e}var h=function(){function e(){this.commands=u({},p),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return new e().update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var r=this,n="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(n)||a(!Array.isArray(n),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),a("object"==typeof n&&null!==n,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(r.commands).join(", ")+"."});var o=e;return d(n).forEach(function(t){if(i.call(r.commands,t)){var a=e===o;o=r.commands[t](n[t],o,n,e),a&&r.isEquals(o,e)&&(o=e)}else{var s="Map"===l(e)?r.update(e.get(t),n[t]):r.update(e[t],n[t]),u="Map"===l(o)?o.get(t):o[t];r.isEquals(s,u)&&(void 0!==s||i.call(e,t))||(o===e&&(o=c(e)),"Map"===l(o)?o.set(t,s):o[t]=s)}}),o},e}();t.Context=h;var p={$push:function(e,t,r){return f(t,r,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,r){return f(t,r,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,i){var s,l;return s=t,l=n,a(Array.isArray(s),function(){return"Expected $splice target to be an array; got "+r(s)}),y(l.$splice),e.forEach(function(e){y(e),t===i&&e.length&&(t=c(i)),o.apply(t,e)}),t},$set:function(e,t,r){return a(1===Object.keys(r).length,function(){return"Cannot have more than one key in an object with $set"}),e},$toggle:function(e,t){g(e,"$toggle");var r=e.length?c(t):t;return e.forEach(function(e){r[e]=!t[e]}),r},$unset:function(e,t,r,n){return g(e,"$unset"),e.forEach(function(e){Object.hasOwnProperty.call(t,e)&&(t===n&&(t=c(n)),delete t[e])}),t},$add:function(e,t,r,n){return v(t,"$add"),g(e,"$add"),"Map"===l(t)?e.forEach(function(e){var r=e[0],a=e[1];t===n&&t.get(r)!==a&&(t=c(n)),t.set(r,a)}):e.forEach(function(e){t!==n||t.has(e)||(t=c(n)),t.add(e)}),t},$remove:function(e,t,r,n){return v(t,"$remove"),g(e,"$remove"),e.forEach(function(e){t===n&&t.has(e)&&(t=c(n)),t.delete(e)}),t},$merge:function(e,t,n,i){var o,s;return o=t,a((s=e)&&"object"==typeof s,function(){return"update(): $merge expects a spec of type 'object'; got "+r(s)}),a(o&&"object"==typeof o,function(){return"update(): $merge expects a target of type 'object'; got "+r(o)}),d(e).forEach(function(r){e[r]!==t[r]&&(t===i&&(t=c(i)),t[r]=e[r])}),t},$apply:function(e,t){var n;return a("function"==typeof(n=e),function(){return"update(): expected spec of $apply to be a function; got "+r(n)+"."}),e(t)}},m=new h;function f(e,t,n){a(Array.isArray(e),function(){return"update(): expected target of "+r(n)+" to be an array; got "+r(e)+"."}),g(t[n],n)}function g(e,t){a(Array.isArray(e),function(){return"update(): expected spec of "+r(t)+" to be an array; got "+r(e)+". Did you forget to wrap your parameter in an array?"})}function y(e){a(Array.isArray(e),function(){return"update(): expected spec of $splice to be an array of arrays; got "+r(e)+". Did you forget to wrap your parameters in an array?"})}function v(e,t){var n=l(e);a("Map"===n||"Set"===n,function(){return"update(): "+r(t)+" expects a target of type Set or Map; got "+r(n)})}t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=u(t.default,t)},6642(e,t){"use strict";self.atob.bind(self),self.btoa.bind(self)},5388(e,t,r){"use strict";var n=r(1741),a=r(8475);function i(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}r(1862),r(5257),r(9133),r(1610),r(4455),r(4019),e.exports.load=n.load,n.loadAll,a.dump,r(9289),r(6940),r(5075),r(7703),r(4684),r(8652),r(4278),r(6273),r(589),r(8836),r(9793),r(3e3),r(7142),r(7690),i("safeLoad","load"),i("safeLoadAll","loadAll"),i("safeDump","dump")},7851(e){"use strict";function t(e){return null==e}e.exports.isNothing=t,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:t(e)?[]:[e]},e.exports.repeat=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},e.exports.isNegativeZero=function(e){return 0===e&&-1/0==1/e},e.exports.extend=function(e,t){var r,n,a,i;if(t)for(r=0,n=(i=Object.keys(t)).length;r<n;r+=1)e[a=i[r]]=t[a];return e}},8475(e,t,r){"use strict";var n=r(7851),a=r(9289),i=r(4019),o=Object.prototype.toString,s=Object.prototype.hasOwnProperty,l={};l[0]="\\0",l[7]="\\a",l[8]="\\b",l[9]="\\t",l[10]="\\n",l[11]="\\v",l[12]="\\f",l[13]="\\r",l[27]="\\e",l[34]='\\"',l[92]="\\\\",l[133]="\\N",l[160]="\\_",l[8232]="\\L",l[8233]="\\P";var u=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],d=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function c(e){this.schema=e.schema||i,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=n.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,a,i,o,l,u;if(null===t)return{};for(a=0,r={},i=(n=Object.keys(t)).length;a<i;a+=1)l=String(t[o=n[a]]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(u=e.compiledTypeMap.fallback[o])&&s.call(u.styleAliases,l)&&(l=u.styleAliases[l]),r[o]=l;return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function h(e,t){for(var r,a=n.repeat(" ",t),i=0,o=-1,s="",l=e.length;i<l;)-1===(o=e.indexOf("\n",i))?(r=e.slice(i),i=l):(r=e.slice(i,o+1),i=o+1),r.length&&"\n"!==r&&(s+=a),s+=r;return s}function p(e,t){return"\n"+n.repeat(" ",e.indent*t)}function m(e){return 32===e||9===e}function f(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function g(e){return f(e)&&65279!==e&&13!==e&&10!==e}function y(e,t,r){var n=g(e),a=n&&!m(e);return(r?n:n&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!a)||g(t)&&!m(t)&&35===e||58===t&&a}function v(e,t){var r,n=e.charCodeAt(t);return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?(n-55296)*1024+r-56320+65536:n}function b(e){return/^\n* /.test(e)}function w(e,t){var r=b(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function x(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function C(e,t){if(""===e||" "===e[0])return e;for(var r,n,a=/ [^ ]/g,i=0,o=0,s=0,l="";r=a.exec(e);)(s=r.index)-i>t&&(n=o>i?o:s,l+="\n"+e.slice(i,n),i=n+1),o=s;return l+="\n",e.length-i>t&&o>i?l+=e.slice(i,o)+"\n"+e.slice(o+1):l+=e.slice(i),l.slice(1)}function k(e,t,r,n){var a,i,o,s="",l=e.tag;for(a=0,i=r.length;a<i;a+=1)o=r[a],e.replacer&&(o=e.replacer.call(r,String(a),o)),(S(e,t+1,o,!0,!0,!1,!0)||void 0===o&&S(e,t+1,null,!0,!0,!1,!0))&&(n&&""===s||(s+=p(e,t)),e.dump&&10===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=l,e.dump=s||"[]"}function M(e,t,r){var n,i,l,u,d,c;for(l=0,u=(i=r?e.explicitTypes:e.implicitTypes).length;l<u;l+=1)if(((d=i[l]).instanceOf||d.predicate)&&(!d.instanceOf||"object"==typeof t&&t instanceof d.instanceOf)&&(!d.predicate||d.predicate(t))){if(r?d.multi&&d.representName?e.tag=d.representName(t):e.tag=d.tag:e.tag="?",d.represent){if(c=e.styleMap[d.tag]||d.defaultStyle,"[object Function]"===o.call(d.represent))n=d.represent(t,c);else if(s.call(d.represent,c))n=d.represent[c](t,c);else throw new a("!<"+d.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function S(e,t,r,i,s,c,g){e.tag=null,e.dump=r,M(e,r,!1)||M(e,r,!0);var E,T=o.call(e.dump),I=i;i&&(i=e.flowLevel<0||e.flowLevel>t);var P,_,D,O="[object Object]"===T||"[object Array]"===T;if(O&&(D=-1!==(_=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||D||2!==e.indent&&t>0)&&(s=!1),D&&e.usedDuplicates[_])e.dump="*ref_"+_;else{if(O&&D&&!e.usedDuplicates[_]&&(e.usedDuplicates[_]=!0),"[object Object]"===T)i&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var i,o,s,l,u,d,c="",h=e.tag,m=Object.keys(r);if(!0===e.sortKeys)m.sort();else if("function"==typeof e.sortKeys)m.sort(e.sortKeys);else if(e.sortKeys)throw new a("sortKeys must be a boolean or a function");for(i=0,o=m.length;i<o;i+=1)d="",n&&""===c||(d+=p(e,t)),l=r[s=m[i]],e.replacer&&(l=e.replacer.call(r,s,l)),S(e,t+1,s,!0,!0,!0)&&((u=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,u&&(d+=p(e,t)),S(e,t+1,l,!0,u)&&(e.dump&&10===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,c+=d));e.tag=h,e.dump=c||"{}"}(e,t,e.dump,s),D&&(e.dump="&ref_"+_+e.dump)):(!function(e,t,r){var n,a,i,o,s,l="",u=e.tag,d=Object.keys(r);for(n=0,a=d.length;n<a;n+=1)s="",""!==l&&(s+=", "),e.condenseFlow&&(s+='"'),o=r[i=d[n]],e.replacer&&(o=e.replacer.call(r,i,o)),S(e,t,i,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),S(e,t,o,!1,!1)&&(s+=e.dump,l+=s));e.tag=u,e.dump="{"+l+"}"}(e,t,e.dump),D&&(e.dump="&ref_"+_+" "+e.dump));else if("[object Array]"===T)i&&0!==e.dump.length?(e.noArrayIndent&&!g&&t>0?k(e,t-1,e.dump,s):k(e,t,e.dump,s),D&&(e.dump="&ref_"+_+e.dump)):(!function(e,t,r){var n,a,i,o="",s=e.tag;for(n=0,a=r.length;n<a;n+=1)i=r[n],e.replacer&&(i=e.replacer.call(r,String(n),i)),(S(e,t,i,!1,!1)||void 0===i&&S(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=s,e.dump="["+o+"]"}(e,t,e.dump),D&&(e.dump="&ref_"+_+" "+e.dump));else if("[object String]"===T)"?"!==e.tag&&(E=e.dump,e.dump=function(){if(0===E.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==u.indexOf(E)||d.test(E)))return 2===e.quotingType?'"'+E+'"':"'"+E+"'";var r=e.indent*Math.max(1,t),i=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-r);switch(function(e,t,r,n,a,i,o,s){var l,u,d,c=0,h=null,p=!1,g=!1,w=-1!==n,x=-1,C=f(l=v(e,0))&&65279!==l&&!m(l)&&45!==l&&63!==l&&58!==l&&44!==l&&91!==l&&93!==l&&123!==l&&125!==l&&35!==l&&38!==l&&42!==l&&33!==l&&124!==l&&61!==l&&62!==l&&39!==l&&34!==l&&37!==l&&64!==l&&96!==l&&!m(u=v(e,e.length-1))&&58!==u;if(t||o)for(d=0;d<e.length;c>=65536?d+=2:d++){if(!f(c=v(e,d)))return 5;C=C&&y(c,h,s),h=c}else{for(d=0;d<e.length;c>=65536?d+=2:d++){if(10===(c=v(e,d)))p=!0,w&&(g=g||d-x-1>n&&" "!==e[x+1],x=d);else if(!f(c))return 5;C=C&&y(c,h,s),h=c}g=g||w&&d-x-1>n&&" "!==e[x+1]}return p||g?r>9&&b(e)?5:o?2===i?5:2:g?4:3:!C||o||a(e)?2===i?5:2:1}(E,c||e.flowLevel>-1&&t>=e.flowLevel,e.indent,i,function(t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1},e.quotingType,e.forceQuotes&&!c,I)){case 1:return E;case 2:return"'"+E.replace(/'/g,"''")+"'";case 3:return"|"+w(E,e.indent)+x(h(E,r));case 4:return">"+w(E,e.indent)+x(h(function(e,t){for(var r,n,a,i=/(\n+)([^\n]*)/g,o=(i.lastIndex=r=-1!==(r=e.indexOf("\n"))?r:e.length,C(e.slice(0,r),t)),s="\n"===e[0]||" "===e[0];a=i.exec(e);){var l=a[1],u=a[2];n=" "===u[0],o+=l+(s||n||""===u?"":"\n")+C(u,t),s=n}return o}(E,i),r));case 5:return'"'+function(e){for(var t,r="",i=0,o=0;o<e.length;i>=65536?o+=2:o++)!(t=l[i=v(e,o)])&&f(i)?(r+=e[o],i>=65536&&(r+=e[o+1])):r+=t||function(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=0xffffffff)r="U",i=8;else throw new a("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+n.repeat("0",i-t.length)+t}(i);return r}(E)+'"';default:throw new a("impossible error: invalid scalar style")}}());else{if("[object Undefined]"===T||e.skipInvalid)return!1;throw new a("unacceptable kind of an object to dump "+T)}null!==e.tag&&"?"!==e.tag&&(P=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),P="!"===e.tag[0]?"!"+P:"tag:yaml.org,2002:"===P.slice(0,18)?"!!"+P.slice(18):"!<"+P+">",e.dump=P+" "+e.dump)}return!0}e.exports.dump=function(e,t){var r=new c(t=t||{});r.noRefs||function(e,t){var r,n,a=[],i=[];for(function e(t,r,n){var a,i,o;if(null!==t&&"object"==typeof t)if(-1!==(i=r.indexOf(t)))-1===n.indexOf(i)&&n.push(i);else if(r.push(t),Array.isArray(t))for(i=0,o=t.length;i<o;i+=1)e(t[i],r,n);else for(i=0,o=(a=Object.keys(t)).length;i<o;i+=1)e(t[a[i]],r,n)}(e,a,i),r=0,n=i.length;r<n;r+=1)t.duplicates.push(a[i[r]]);t.usedDuplicates=Array(n)}(e,r);var n=e;return(r.replacer&&(n=r.replacer.call({"":n},"",n)),S(r,0,n,!0,!0))?r.dump+"\n":""}},9289(e){"use strict";function t(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function r(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.toString=function(e){return this.name+": "+t(this,e)},e.exports=r},1741(e,t,r){"use strict";var n=r(7851),a=r(9289),i=r(6513),o=r(4019),s=Object.prototype.hasOwnProperty,l=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,u=/[\x85\u2028\u2029]/,d=/[,\[\]\{\}]/,c=/^(?:!|!!|![a-z\-]+!)$/i,h=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function p(e){return Object.prototype.toString.call(e)}function m(e){return 10===e||13===e}function f(e){return 9===e||32===e}function g(e){return 9===e||32===e||10===e||13===e}function y(e){return 44===e||91===e||93===e||123===e||125===e}function v(e){return 48===e?"\0":97===e?"\x07":98===e?"\b":116===e||9===e?" ":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"\x1b":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"\x85":95===e?"\xa0":76===e?"\u2028":80===e?"\u2029":""}function b(e,t,r){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}for(var w=Array(256),x=Array(256),C=0;C<256;C++)w[C]=+!!v(C),x[C]=v(C);function k(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||o,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function M(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=i(r),new a(t,r)}function S(e,t){throw M(e,t)}function E(e,t){e.onWarning&&e.onWarning.call(null,M(e,t))}var T={YAML:function(e,t,r){var n,a,i;null!==e.version&&S(e,"duplication of %YAML directive"),1!==r.length&&S(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&S(e,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),i=parseInt(n[2],10),1!==a&&S(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&E(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,a;2!==r.length&&S(e,"TAG directive accepts exactly two arguments"),n=r[0],a=r[1],c.test(n)||S(e,"ill-formed tag handle (first argument) of the TAG directive"),s.call(e.tagMap,n)&&S(e,'there is a previously declared suffix for "'+n+'" tag handle'),h.test(a)||S(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch(t){S(e,"tag prefix is malformed: "+a)}e.tagMap[n]=a}};function I(e,t,r,n){var a,i,o,s;if(t<r){if(s=e.input.slice(t,r),n)for(a=0,i=s.length;a<i;a+=1)9===(o=s.charCodeAt(a))||32<=o&&o<=1114111||S(e,"expected valid JSON character");else l.test(s)&&S(e,"the stream contains non-printable characters");e.result+=s}}function P(e,t,r,a){var i,o,l,u;for(n.isObject(r)||S(e,"cannot merge mappings; the provided source object is unacceptable"),l=0,u=(i=Object.keys(r)).length;l<u;l+=1)o=i[l],s.call(t,o)||(b(t,o,r[o]),a[o]=!0)}function _(e,t,r,n,a,i,o,l,u){var d,c;if(Array.isArray(a))for(d=0,c=(a=Array.prototype.slice.call(a)).length;d<c;d+=1)Array.isArray(a[d])&&S(e,"nested arrays are not supported inside keys"),"object"==typeof a&&"[object Object]"===p(a[d])&&(a[d]="[object Object]");if("object"==typeof a&&"[object Object]"===p(a)&&(a="[object Object]"),a=String(a),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(d=0,c=i.length;d<c;d+=1)P(e,t,i[d],r);else P(e,t,i,r);else!e.json&&!s.call(r,a)&&s.call(t,a)&&(e.line=o||e.line,e.lineStart=l||e.lineStart,e.position=u||e.position,S(e,"duplicated mapping key")),b(t,a,i),delete r[a];return t}function D(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):S(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function O(e,t,r){for(var n=0,a=e.input.charCodeAt(e.position);0!==a;){for(;f(a);)9===a&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),a=e.input.charCodeAt(++e.position);if(t&&35===a)do a=e.input.charCodeAt(++e.position);while(10!==a&&13!==a&&0!==a);if(m(a))for(D(e),a=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);else break}return -1!==r&&0!==n&&e.lineIndent<r&&E(e,"deficient indentation"),n}function A(e){var t,r=e.position;return!!((45===(t=e.input.charCodeAt(r))||46===t)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,0===(t=e.input.charCodeAt(r))||g(t)))||!1}function R(e,t){1===t?e.result+=" ":t>1&&(e.result+=n.repeat("\n",t-1))}function L(e,t){var r,n,a=e.tag,i=e.anchor,o=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,S(e,"tab characters must not be used in indentation")),45===n&&g(e.input.charCodeAt(e.position+1)));){if(s=!0,e.position++,O(e,!0,-1)&&e.lineIndent<=t){o.push(null),n=e.input.charCodeAt(e.position);continue}if(r=e.line,N(e,t,3,!1,!0),o.push(e.result),O(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)S(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!s&&(e.tag=a,e.anchor=i,e.kind="sequence",e.result=o,!0)}function N(e,t,r,a,i){var o,l,u,p,v,b,C,k,M,E=1,T=!1,P=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=l=u=4===r||3===r,a&&O(e,!0,-1)&&(T=!0,e.lineIndent>t?E=1:e.lineIndent===t?E=0:e.lineIndent<t&&(E=-1)),1===E)for(;function(e){var t,r,n,a,i=!1,o=!1;if(33!==(a=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&S(e,"duplication of a tag property"),60===(a=e.input.charCodeAt(++e.position))?(i=!0,a=e.input.charCodeAt(++e.position)):33===a?(o=!0,r="!!",a=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do a=e.input.charCodeAt(++e.position);while(0!==a&&62!==a);e.position<e.length?(n=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):S(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==a&&!g(a);)33===a&&(o?S(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),c.test(r)||S(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),d.test(n)&&S(e,"tag suffix cannot contain flow indicator characters")}n&&!h.test(n)&&S(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){S(e,"tag name is malformed: "+n)}return i?e.tag=n:s.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:S(e,'undeclared tag handle "'+r+'"'),!0}(e)||function(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&S(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!g(r)&&!y(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&S(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}(e);)O(e,!0,-1)?(T=!0,u=o,e.lineIndent>t?E=1:e.lineIndent===t?E=0:e.lineIndent<t&&(E=-1)):u=!1;if(u&&(u=T||i),(1===E||4===r)&&(k=1===r||2===r?t:t+1,M=e.position-e.lineStart,1===E?u&&(L(e,M)||function(e,t,r){var n,a,i,o,s,l,u,d=e.tag,c=e.anchor,h={},p=Object.create(null),m=null,y=null,v=null,b=!1,w=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=h),u=e.input.charCodeAt(e.position);0!==u;){if(b||-1===e.firstTabInLine||(e.position=e.firstTabInLine,S(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,(63===u||58===u)&&g(n))63===u?(b&&(_(e,h,p,m,y,null,o,s,l),m=y=v=null),w=!0,b=!0,a=!0):b?(b=!1,a=!0):S(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,u=n;else{if(o=e.line,s=e.lineStart,l=e.position,!N(e,r,2,!1,!0))break;if(e.line===i){for(u=e.input.charCodeAt(e.position);f(u);)u=e.input.charCodeAt(++e.position);if(58===u)g(u=e.input.charCodeAt(++e.position))||S(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(_(e,h,p,m,y,null,o,s,l),m=y=v=null),w=!0,b=!1,a=!1,m=e.tag,y=e.result;else{if(!w)return e.tag=d,e.anchor=c,!0;S(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!w)return e.tag=d,e.anchor=c,!0;S(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((e.line===i||e.lineIndent>t)&&(b&&(o=e.line,s=e.lineStart,l=e.position),N(e,t,4,!0,a)&&(b?y=e.result:v=e.result),b||(_(e,h,p,m,y,v,o,s,l),m=y=v=null),O(e,!0,-1),u=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==u)S(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return b&&_(e,h,p,m,y,null,o,s,l),w&&(e.tag=d,e.anchor=c,e.kind="mapping",e.result=h),w}(e,M,k))||function(e,t){var r,n,a,i,o,s,l,u,d,c,h,p,m=!0,f=e.tag,y=e.anchor,v=Object.create(null);if(91===(p=e.input.charCodeAt(e.position)))o=93,u=!1,i=[];else{if(123!==p)return!1;o=125,u=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),p=e.input.charCodeAt(++e.position);0!==p;){if(O(e,!0,t),(p=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=f,e.anchor=y,e.kind=u?"mapping":"sequence",e.result=i,!0;m?44===p&&S(e,"expected the node content, but found ','"):S(e,"missed comma between flow collection entries"),c=d=h=null,s=l=!1,63===p&&g(e.input.charCodeAt(e.position+1))&&(s=l=!0,e.position++,O(e,!0,t)),r=e.line,n=e.lineStart,a=e.position,N(e,t,1,!1,!0),c=e.tag,d=e.result,O(e,!0,t),p=e.input.charCodeAt(e.position),(l||e.line===r)&&58===p&&(s=!0,p=e.input.charCodeAt(++e.position),O(e,!0,t),N(e,t,1,!1,!0),h=e.result),u?_(e,i,v,c,d,h,r,n,a):s?i.push(_(e,null,v,c,d,h,r,n,a)):i.push(d),O(e,!0,t),44===(p=e.input.charCodeAt(e.position))?(m=!0,p=e.input.charCodeAt(++e.position)):m=!1}S(e,"unexpected end of the stream within a flow collection")}(e,k)?P=!0:(l&&function(e,t){var r,a,i,o,s,l=1,u=!1,d=!1,c=t,h=0,p=!1;if(124===(s=e.input.charCodeAt(e.position)))i=!1;else{if(62!==s)return!1;i=!0}for(e.kind="scalar",e.result="";0!==s;)if(43===(s=e.input.charCodeAt(++e.position))||45===s)1===l?l=43===s?3:2:S(e,"repeat of a chomping mode identifier");else if((o=48<=(r=s)&&r<=57?r-48:-1)>=0)0===o?S(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):d?S(e,"repeat of an indentation width identifier"):(c=t+o-1,d=!0);else break;if(f(s)){do s=e.input.charCodeAt(++e.position);while(f(s));if(35===s)do s=e.input.charCodeAt(++e.position);while(!m(s)&&0!==s)}for(;0!==s;){for(D(e),e.lineIndent=0,s=e.input.charCodeAt(e.position);(!d||e.lineIndent<c)&&32===s;)e.lineIndent++,s=e.input.charCodeAt(++e.position);if(!d&&e.lineIndent>c&&(c=e.lineIndent),m(s)){h++;continue}if(e.lineIndent<c){3===l?e.result+=n.repeat("\n",u?1+h:h):1===l&&u&&(e.result+="\n");break}for(i?f(s)?(p=!0,e.result+=n.repeat("\n",u?1+h:h)):p?(p=!1,e.result+=n.repeat("\n",h+1)):0===h?u&&(e.result+=" "):e.result+=n.repeat("\n",h):e.result+=n.repeat("\n",u?1+h:h),u=!0,d=!0,h=0,a=e.position;!m(s)&&0!==s;)s=e.input.charCodeAt(++e.position);I(e,a,e.position,!1)}return!0}(e,k)||function(e,t){var r,n,a;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(I(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,a=e.position}else m(r)?(I(e,n,a,!0),R(e,O(e,!1,t)),n=a=e.position):e.position===e.lineStart&&A(e)?S(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);S(e,"unexpected end of the stream within a single quoted scalar")}(e,k)||function(e,t){var r,n,a,i,o,s,l,u;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(s=e.input.charCodeAt(e.position));)if(34===s)return I(e,r,e.position,!0),e.position++,!0;else if(92===s){if(I(e,r,e.position,!0),m(s=e.input.charCodeAt(++e.position)))O(e,!1,t);else if(s<256&&w[s])e.result+=x[s],e.position++;else if((o=120===(l=s)?2:117===l?4:8*(85===l))>0){for(a=o,i=0;a>0;a--)(o=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(s=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:S(e,"expected hexadecimal character");e.result+=(u=i)<=65535?String.fromCharCode(u):String.fromCharCode((u-65536>>10)+55296,(u-65536&1023)+56320),e.position++}else S(e,"unknown escape sequence");r=n=e.position}else m(s)?(I(e,r,n,!0),R(e,O(e,!1,t)),r=n=e.position):e.position===e.lineStart&&A(e)?S(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position);S(e,"unexpected end of the stream within a double quoted scalar")}(e,k)?P=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!g(n)&&!y(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&S(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),s.call(e.anchorMap,r)||S(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],O(e,!0,-1),!0}(e)?function(e,t,r){var n,a,i,o,s,l,u,d,c=e.kind,h=e.result;if(g(d=e.input.charCodeAt(e.position))||y(d)||35===d||38===d||42===d||33===d||124===d||62===d||39===d||34===d||37===d||64===d||96===d||(63===d||45===d)&&(g(n=e.input.charCodeAt(e.position+1))||r&&y(n)))return!1;for(e.kind="scalar",e.result="",a=i=e.position,o=!1;0!==d;){if(58===d){if(g(n=e.input.charCodeAt(e.position+1))||r&&y(n))break}else if(35===d){if(g(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&A(e)||r&&y(d))break;else if(m(d)){if(s=e.line,l=e.lineStart,u=e.lineIndent,O(e,!1,-1),e.lineIndent>=t){o=!0,d=e.input.charCodeAt(e.position);continue}e.position=i,e.line=s,e.lineStart=l,e.lineIndent=u;break}o&&(I(e,a,i,!1),R(e,e.line-s),a=i=e.position,o=!1),f(d)||(i=e.position+1),d=e.input.charCodeAt(++e.position)}return I(e,a,i,!1),!!e.result||(e.kind=c,e.result=h,!1)}(e,k,1===r)&&(P=!0,null===e.tag&&(e.tag="?")):(P=!0,(null!==e.tag||null!==e.anchor)&&S(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===E&&(P=u&&L(e,M))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&S(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,v=e.implicitTypes.length;p<v;p+=1)if((C=e.implicitTypes[p]).resolve(e.result)){e.result=C.construct(e.result),e.tag=C.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(s.call(e.typeMap[e.kind||"fallback"],e.tag))C=e.typeMap[e.kind||"fallback"][e.tag];else for(p=0,C=null,v=(b=e.typeMap.multi[e.kind||"fallback"]).length;p<v;p+=1)if(e.tag.slice(0,b[p].tag.length)===b[p].tag){C=b[p];break}C||S(e,"unknown tag !<"+e.tag+">"),null!==e.result&&C.kind!==e.kind&&S(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+C.kind+'", not "'+e.kind+'"'),C.resolve(e.result,e.tag)?(e.result=C.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):S(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||P}function V(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new k(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,S(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)!function(e){var t,r,n,a,i=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(a=e.input.charCodeAt(e.position))&&(O(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0)&&37===a);){for(o=!0,a=e.input.charCodeAt(++e.position),t=e.position;0!==a&&!g(a);)a=e.input.charCodeAt(++e.position);for(r=e.input.slice(t,e.position),n=[],r.length<1&&S(e,"directive name must not be less than one character in length");0!==a;){for(;f(a);)a=e.input.charCodeAt(++e.position);if(35===a){do a=e.input.charCodeAt(++e.position);while(0!==a&&!m(a));break}if(m(a))break;for(t=e.position;0!==a&&!g(a);)a=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==a&&D(e),s.call(T,r)?T[r](e,r,n):E(e,'unknown document directive "'+r+'"')}if(O(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,O(e,!0,-1)):o&&S(e,"directives end mark is expected"),N(e,e.lineIndent-1,4,!1,!0),O(e,!0,-1),e.checkLineBreaks&&u.test(e.input.slice(i,e.position))&&E(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&A(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,O(e,!0,-1));return}e.position<e.length-1&&S(e,"end of the stream or a document separator is expected")}(r);return r.documents}e.exports.loadAll=function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=V(e,r);if("function"!=typeof t)return n;for(var a=0,i=n.length;a<i;a+=1)t(n[a])},e.exports.load=function(e,t){var r=V(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new a("expected a single document in the stream, but found more")}}},5257(e,t,r){"use strict";var n=r(9289),a=r(1862);function i(e,t){var r=[];return e[t].forEach(function(e){var t=r.length;r.forEach(function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)}),r[t]=e}),r}function o(e){return this.extend(e)}o.prototype.extend=function(e){var t=[],r=[];if(e instanceof a)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new n("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof a))throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new n("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new n("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(e){if(!(e instanceof a))throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(o.prototype);return s.implicit=(this.implicit||[]).concat(t),s.explicit=(this.explicit||[]).concat(r),s.compiledImplicit=i(s,"implicit"),s.compiledExplicit=i(s,"explicit"),s.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(s.compiledImplicit,s.compiledExplicit),s},e.exports=o},4455(e,t,r){"use strict";e.exports=r(1610)},4019(e,t,r){"use strict";e.exports=r(4455).extend({implicit:[r(6273),r(9793)],explicit:[r(6940),r(3e3),r(8652),r(4278)]})},9133(e,t,r){"use strict";e.exports=new(r(5257))({explicit:[r(7690),r(7142),r(7703)]})},1610(e,t,r){"use strict";e.exports=r(9133).extend({implicit:[r(4684),r(589),r(8836),r(5075)]})},6513(e,t,r){"use strict";var n=r(7851);function a(e,t,r,n,a){var i="",o="",s=Math.floor(a/2)-1;return n-t>s&&(t=n-s+(i=" ... ").length),r-n>s&&(r=n+s-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+i.length}}function i(e,t){return n.repeat(" ",t-e.length)+e}e.exports=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,o=[0],s=[],l=-1;u=r.exec(e.buffer);)s.push(u.index),o.push(u.index+u[0].length),e.position<=u.index&&l<0&&(l=o.length-2);l<0&&(l=o.length-1);var u,d,c,h="",p=Math.min(e.line+t.linesAfter,s.length).toString().length,m=t.maxLength-(t.indent+p+3);for(d=1;d<=t.linesBefore&&!(l-d<0);d++)c=a(e.buffer,o[l-d],s[l-d],e.position-(o[l]-o[l-d]),m),h=n.repeat(" ",t.indent)+i((e.line-d+1).toString(),p)+" | "+c.str+"\n"+h;for(c=a(e.buffer,o[l],s[l],e.position,m),h+=n.repeat(" ",t.indent)+i((e.line+1).toString(),p)+" | "+c.str+"\n"+n.repeat("-",t.indent+p+3+c.pos)+"^\n",d=1;d<=t.linesAfter&&!(l+d>=s.length);d++)c=a(e.buffer,o[l+d],s[l+d],e.position-(o[l]-o[l+d]),m),h+=n.repeat(" ",t.indent)+i((e.line+d+1).toString(),p)+" | "+c.str+"\n";return h.replace(/\n$/,"")}},1862(e,t,r){"use strict";var n=r(9289),a=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],i=["scalar","sequence","mapping"];e.exports=function(e,t){var r,o;if(Object.keys(t=t||{}).forEach(function(t){if(-1===a.indexOf(t))throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(r=t.styleAliases||null,o={},null!==r&&Object.keys(r).forEach(function(e){r[e].forEach(function(t){o[String(t)]=e})}),o),-1===i.indexOf(this.kind))throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},6940(e,t,r){"use strict";var n=r(1862),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,i=e.length;for(r=0;r<i;r++)if(!((t=a.indexOf(e.charAt(r)))>64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)),o=o<<6|a.indexOf(n.charAt(t));return 0==(r=i%4*6)?(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)):18===r?(s.push(o>>10&255),s.push(o>>2&255)):12===r&&s.push(o>>4&255),new Uint8Array(s)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",i=0,o=e.length;for(t=0;t<o;t++)t%3==0&&t&&(n+=a[i>>18&63],n+=a[i>>12&63],n+=a[i>>6&63],n+=a[63&i]),i=(i<<8)+e[t];return 0==(r=o%3)?(n+=a[i>>18&63],n+=a[i>>12&63],n+=a[i>>6&63],n+=a[63&i]):2===r?(n+=a[i>>10&63],n+=a[i>>4&63],n+=a[i<<2&63],n+=a[64]):1===r&&(n+=a[i>>2&63],n+=a[i<<4&63],n+=a[64],n+=a[64]),n}})},589(e,t,r){"use strict";e.exports=new(r(1862))("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},5075(e,t,r){"use strict";var n=r(7851),a=r(1862),i=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),o=/^[-+]?[0-9]+e/;e.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!!i.test(e)&&"_"!==e[e.length-1]},construct:function(e){var t,r;return(r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===r?1/0:-1/0:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||n.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";return r=e.toString(10),o.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})},8836(e,t,r){"use strict";var n=r(7851);e.exports=new(r(1862))("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n,a,i=e.length,o=0,s=!1;if(!i)return!1;if(("-"===(a=e[o])||"+"===a)&&(a=e[++o]),"0"===a){if(o+1===i)return!0;if("b"===(a=e[++o])){for(o++;o<i;o++)if("_"!==(a=e[o])){if("0"!==a&&"1"!==a)return!1;s=!0}return s&&"_"!==a}if("x"===a){for(o++;o<i;o++)if("_"!==(a=e[o])){if(!(48<=(t=e.charCodeAt(o))&&t<=57||65<=t&&t<=70||97<=t&&t<=102))return!1;s=!0}return s&&"_"!==a}if("o"===a){for(o++;o<i;o++)if("_"!==(a=e[o])){if(!(48<=(r=e.charCodeAt(o))&&r<=55))return!1;s=!0}return s&&"_"!==a}}if("_"===a)return!1;for(;o<i;o++)if("_"!==(a=e[o])){if(!(48<=(n=e.charCodeAt(o))&&n<=57))return!1;s=!0}return!!s&&"_"!==a},construct:function(e){var t,r=e,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),("-"===(t=r[0])||"+"===t)&&("-"===t&&(n=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!n.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},7703(e,t,r){"use strict";e.exports=new(r(1862))("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},9793(e,t,r){"use strict";e.exports=new(r(1862))("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},4684(e,t,r){"use strict";e.exports=new(r(1862))("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},3e3(e,t,r){"use strict";var n=r(1862),a=Object.prototype.hasOwnProperty,i=Object.prototype.toString;e.exports=new n("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,o,s,l=[];for(t=0,r=e.length;t<r;t+=1){if(n=e[t],s=!1,"[object Object]"!==i.call(n))return!1;for(o in n)if(a.call(n,o))if(s)return!1;else s=!0;if(!s||-1!==l.indexOf(o))return!1;l.push(o)}return!0},construct:function(e){return null!==e?e:[]}})},8652(e,t,r){"use strict";var n=r(1862),a=Object.prototype.toString;e.exports=new n("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){var t,r,n,i,o;if(null===e)return!0;for(o=Array(e.length),t=0,r=e.length;t<r;t+=1){if(n=e[t],"[object Object]"!==a.call(n)||1!==(i=Object.keys(n)).length)return!1;o[t]=[i[0],n[i[0]]]}return!0},construct:function(e){var t,r,n,a,i;if(null===e)return[];for(i=Array(e.length),t=0,r=e.length;t<r;t+=1)a=Object.keys(n=e[t]),i[t]=[a[0],n[a[0]]];return i}})},7142(e,t,r){"use strict";e.exports=new(r(1862))("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},4278(e,t,r){"use strict";var n=r(1862),a=Object.prototype.hasOwnProperty;e.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){var t;if(null===e)return!0;for(t in e)if(a.call(e,t)&&null!==e[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})},7690(e,t,r){"use strict";e.exports=new(r(1862))("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},6273(e,t,r){"use strict";var n=r(1862),a=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==a.exec(e)||null!==i.exec(e))},construct:function(e){var t,r,n,o,s,l,u,d,c=0,h=null;if(null===(t=a.exec(e))&&(t=i.exec(e)),null===t)throw Error("Date resolve error");if(r=+t[1],n=t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(r,n,o));if(s=+t[4],l=+t[5],u=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c*=1}return t[9]&&(h=(60*t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(h=-h)),d=new Date(Date.UTC(r,n,o,s,l,u,c)),h&&d.setTime(d.getTime()-h),d},instanceOf:Date,represent:function(e){return e.toISOString()}})},3359(e,t,r){e=r.nmd(e);var n,a="__lodash_hash_undefined__",i="[object Arguments]",o="[object Boolean]",s="[object Date]",l="[object Function]",u="[object GeneratorFunction]",d="[object Map]",c="[object Number]",h="[object Object]",p="[object Promise]",m="[object RegExp]",f="[object Set]",g="[object String]",y="[object Symbol]",v="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",x="[object Float32Array]",C="[object Float64Array]",k="[object Int8Array]",M="[object Int16Array]",S="[object Int32Array]",E="[object Uint8Array]",T="[object Uint8ClampedArray]",I="[object Uint16Array]",P="[object Uint32Array]",_=/\w*$/,D=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,A={};A[i]=A["[object Array]"]=A[b]=A[w]=A[o]=A[s]=A[x]=A[C]=A[k]=A[M]=A[S]=A[d]=A[c]=A[h]=A[m]=A[f]=A[g]=A[y]=A[E]=A[T]=A[I]=A[P]=!0,A["[object Error]"]=A[l]=A[v]=!1;var R="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,L="object"==typeof self&&self&&self.Object===Object&&self,N=R||L||Function("return this")(),V=t&&!t.nodeType&&t,F=V&&e&&!e.nodeType&&e,B=F&&F.exports===V;function j(e,t){return e.set(t[0],t[1]),e}function W(e,t){return e.add(t),e}function U(e,t,r,n){var a=-1,i=e?e.length:0;for(n&&i&&(r=e[++a]);++a<i;)r=t(r,e[a],a,e);return r}function z(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function H(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function G(e,t){return function(r){return e(t(r))}}function q(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var $=Array.prototype,K=Function.prototype,Y=Object.prototype,Z=N["__core-js_shared__"],X=(n=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",J=K.toString,Q=Y.hasOwnProperty,ee=Y.toString,et=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),er=B?N.Buffer:void 0,en=N.Symbol,ea=N.Uint8Array,ei=G(Object.getPrototypeOf,Object),eo=Object.create,es=Y.propertyIsEnumerable,el=$.splice,eu=Object.getOwnPropertySymbols,ed=er?er.isBuffer:void 0,ec=G(Object.keys,Object),eh=eR(N,"DataView"),ep=eR(N,"Map"),em=eR(N,"Promise"),ef=eR(N,"Set"),eg=eR(N,"WeakMap"),ey=eR(Object,"create"),ev=eF(eh),eb=eF(ep),ew=eF(em),ex=eF(ef),eC=eF(eg),ek=en?en.prototype:void 0,eM=ek?ek.valueOf:void 0;function eS(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eE(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eT(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eI(e){this.__data__=new eE(e)}function eP(e,t,r){var n=e[t];Q.call(e,t)&&eB(n,r)&&(void 0!==r||t in e)||(e[t]=r)}function e_(e,t){for(var r=e.length;r--;)if(eB(e[r][0],t))return r;return -1}function eD(e){var t=new e.constructor(e.byteLength);return new ea(t).set(new ea(e)),t}function eO(e,t,r,n){r||(r={});for(var a=-1,i=t.length;++a<i;){var o=t[a],s=n?n(r[o],e[o],o,r,e):void 0;eP(r,o,void 0===s?e[o]:s)}return r}function eA(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function eR(e,t){var r,n=null==e?void 0:e[t];return!(!eH(n)||(r=n,X&&X in r))&&(ez(n)||z(n)?et:D).test(eF(n))?n:void 0}eS.prototype.clear=function(){this.__data__=ey?ey(null):{}},eS.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},eS.prototype.get=function(e){var t=this.__data__;if(ey){var r=t[e];return r===a?void 0:r}return Q.call(t,e)?t[e]:void 0},eS.prototype.has=function(e){var t=this.__data__;return ey?void 0!==t[e]:Q.call(t,e)},eS.prototype.set=function(e,t){return this.__data__[e]=ey&&void 0===t?a:t,this},eE.prototype.clear=function(){this.__data__=[]},eE.prototype.delete=function(e){var t=this.__data__,r=e_(t,e);return!(r<0)&&(r==t.length-1?t.pop():el.call(t,r,1),!0)},eE.prototype.get=function(e){var t=this.__data__,r=e_(t,e);return r<0?void 0:t[r][1]},eE.prototype.has=function(e){return e_(this.__data__,e)>-1},eE.prototype.set=function(e,t){var r=this.__data__,n=e_(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},eT.prototype.clear=function(){this.__data__={hash:new eS,map:new(ep||eE),string:new eS}},eT.prototype.delete=function(e){return eA(this,e).delete(e)},eT.prototype.get=function(e){return eA(this,e).get(e)},eT.prototype.has=function(e){return eA(this,e).has(e)},eT.prototype.set=function(e,t){return eA(this,e).set(e,t),this},eI.prototype.clear=function(){this.__data__=new eE},eI.prototype.delete=function(e){return this.__data__.delete(e)},eI.prototype.get=function(e){return this.__data__.get(e)},eI.prototype.has=function(e){return this.__data__.has(e)},eI.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eE){var n=r.__data__;if(!ep||n.length<199)return n.push([e,t]),this;r=this.__data__=new eT(n)}return r.set(e,t),this};var eL=eu?G(eu,Object):function(){return[]},eN=function(e){return ee.call(e)};function eV(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function eF(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eB(e,t){return e===t||e!=e&&t!=t}(eh&&eN(new eh(new ArrayBuffer(1)))!=w||ep&&eN(new ep)!=d||em&&eN(em.resolve())!=p||ef&&eN(new ef)!=f||eg&&eN(new eg)!=v)&&(eN=function(e){var t=ee.call(e),r=t==h?e.constructor:void 0,n=r?eF(r):void 0;if(n)switch(n){case ev:return w;case eb:return d;case ew:return p;case ex:return f;case eC:return v}return t});var ej=Array.isArray;function eW(e){var t;return null!=e&&"number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=0x1fffffffffffff&&!ez(e)}var eU=ed||function(){return!1};function ez(e){var t=eH(e)?ee.call(e):"";return t==l||t==u}function eH(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eG(e){return eW(e)?function(e){var t,r,n,a,o,s=ej(e)||(n=r=t=e)&&"object"==typeof n&&eW(r)&&Q.call(t,"callee")&&(!es.call(t,"callee")||ee.call(t)==i)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=s.length,u=!!l;for(var d in e){Q.call(e,d)&&!(u&&("length"==d||(a=d,(o=null==(o=l)?0x1fffffffffffff:o)&&("number"==typeof a||O.test(a))&&a>-1&&a%1==0&&a<o)))&&s.push(d)}return s}(e):function(e){if(!eV(e))return ec(e);var t=[];for(var r in Object(e))Q.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}e.exports=function(e){return function e(t,r,n,a,p,v,D){if(a&&(O=v?a(t,p,v,D):a(t)),void 0!==O)return O;if(!eH(t))return t;var O,R=ej(t);if(R){if(N=(L=t).length,V=L.constructor(N),N&&"string"==typeof L[0]&&Q.call(L,"index")&&(V.index=L.index,V.input=L.input),O=V,!r){var L,N,V,F=t,B=O,G=-1,$=F.length;for(B||(B=Array($));++G<$;)B[G]=F[G];return B}}else{var K,Y,Z,X,J,ee=eN(t),et=ee==l||ee==u;if(eU(t)){var er=t,en=r;if(en)return er.slice();var ea=new er.constructor(er.length);return er.copy(ea),ea}if(ee==h||ee==i||et&&!v){if(z(t))return v?t:{};if(O="function"!=typeof(K=et?{}:t).constructor||eV(K)?{}:eH(Y=ei(K))?eo(Y):{},!r){return Z=t,X=(J=O)&&eO(t,eG(t),J),eO(Z,eL(Z),X)}}else{if(!A[ee])return v?t:{};O=function(e,t,r,n){var a,i,l,u=e.constructor;switch(t){case b:return eD(e);case o:case s:return new u(+e);case w:return a=n?eD(e.buffer):e.buffer,new e.constructor(a,e.byteOffset,e.byteLength);case x:case C:case k:case M:case S:case E:case T:case I:case P:return i=n?eD(e.buffer):e.buffer,new e.constructor(i,e.byteOffset,e.length);case d:return U(n?r(H(e),!0):H(e),j,new e.constructor);case c:case g:return new u(e);case m:return(l=new e.constructor(e.source,_.exec(e))).lastIndex=e.lastIndex,l;case f:return U(n?r(q(e),!0):q(e),W,new e.constructor);case y:return eM?Object(eM.call(e)):{}}}(t,ee,e,r)}}D||(D=new eI);var es=D.get(t);if(es)return es;if(D.set(t,O),!R)var el=n?function(e){var t;return t=eG(e),ej(e)?t:function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}(t,eL(e))}(t):eG(t);return!function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););}(el||t,function(i,o){el&&(i=t[o=i]),eP(O,o,e(i,r,n,a,o,t,D))}),O}(e,!0,!0)}},2051(e,t,r){var n=0/0,a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,d="object"==typeof self&&self&&self.Object===Object&&self,c=u||d||Function("return this")(),h=Object.prototype.toString,p=Math.max,m=Math.min,f=function(){return c.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==h.call(t))return n;if(g(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=g(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var u=o.test(e);return u||s.test(e)?l(e.slice(2),u?2:8):i.test(e)?n:+e}e.exports=function(e,t,r){var n,a,i,o,s,l,u=0,d=!1,c=!1,h=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var r=n,i=a;return n=a=void 0,u=t,o=e.apply(i,r)}function b(e){var r=e-l,n=e-u;return void 0===l||r>=t||r<0||c&&n>=i}function w(){var e,r,n,a=f();if(b(a))return x(a);s=setTimeout(w,(e=a-l,r=a-u,n=t-e,c?m(n,i-r):n))}function x(e){return(s=void 0,h&&n)?v(e):(n=a=void 0,o)}function C(){var e,r=f(),i=b(r);if(n=arguments,a=this,l=r,i){if(void 0===s)return u=e=l,s=setTimeout(w,t),d?v(e):o;if(c)return s=setTimeout(w,t),v(l)}return void 0===s&&(s=setTimeout(w,t)),o}return t=y(t)||0,g(r)&&(d=!!r.leading,i=(c="maxWait"in r)?p(y(r.maxWait)||0,t):i,h="trailing"in r?!!r.trailing:h),C.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=l=a=s=void 0},C.flush=function(){return void 0===s?o:x(f())},C}},2816(e,t,r){e=r.nmd(e);var n,a,i,o,s,l,u,d,c,h,p,m="__lodash_hash_undefined__",f="[object Arguments]",g="[object Function]",y="[object Object]",v=/^\[object .+?Constructor\]$/,b=/^(?:0|[1-9]\d*)$/,w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w[f]=w["[object Array]"]=w["[object ArrayBuffer]"]=w["[object Boolean]"]=w["[object DataView]"]=w["[object Date]"]=w["[object Error]"]=w[g]=w["[object Map]"]=w["[object Number]"]=w[y]=w["[object RegExp]"]=w["[object Set]"]=w["[object String]"]=w["[object WeakMap]"]=!1;var x="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,C="object"==typeof self&&self&&self.Object===Object&&self,k=x||C||Function("return this")(),M=t&&!t.nodeType&&t,S=M&&e&&!e.nodeType&&e,E=S&&S.exports===M,T=E&&x.process,I=function(){try{var e=S&&S.require&&S.require("util").types;if(e)return e;return T&&T.binding&&T.binding("util")}catch(e){}}(),P=I&&I.isTypedArray,_=Array.prototype,D=Function.prototype,O=Object.prototype,A=k["__core-js_shared__"],R=D.toString,L=O.hasOwnProperty,N=(u=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"",V=O.toString,F=R.call(Object),B=RegExp("^"+R.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=E?k.Buffer:void 0,W=k.Symbol,U=k.Uint8Array,z=j?j.allocUnsafe:void 0,H=(d=Object.getPrototypeOf,c=Object,function(e){return d(c(e))}),G=Object.create,q=O.propertyIsEnumerable,$=_.splice,K=W?W.toStringTag:void 0,Y=function(){try{var e=ep(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Z=j?j.isBuffer:void 0,X=Math.max,J=Date.now,Q=ep(k,"Map"),ee=ep(Object,"create"),et=function(){function e(){}return function(t){if(!eS(t))return{};if(G)return G(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function er(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function en(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ea(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ei(e){var t=this.__data__=new en(e);this.size=t.size}function eo(e,t,r){(void 0===r||ev(e[t],r))&&(void 0!==r||t in e)||el(e,t,r)}function es(e,t){for(var r=e.length;r--;)if(ev(e[r][0],t))return r;return -1}function el(e,t,r){"__proto__"==t&&Y?Y(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}er.prototype.clear=function(){this.__data__=ee?ee(null):{},this.size=0},er.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},er.prototype.get=function(e){var t=this.__data__;if(ee){var r=t[e];return r===m?void 0:r}return L.call(t,e)?t[e]:void 0},er.prototype.has=function(e){var t=this.__data__;return ee?void 0!==t[e]:L.call(t,e)},er.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=ee&&void 0===t?m:t,this},en.prototype.clear=function(){this.__data__=[],this.size=0},en.prototype.delete=function(e){var t=this.__data__,r=es(t,e);return!(r<0)&&(r==t.length-1?t.pop():$.call(t,r,1),--this.size,!0)},en.prototype.get=function(e){var t=this.__data__,r=es(t,e);return r<0?void 0:t[r][1]},en.prototype.has=function(e){return es(this.__data__,e)>-1},en.prototype.set=function(e,t){var r=this.__data__,n=es(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},ea.prototype.clear=function(){this.size=0,this.__data__={hash:new er,map:new(Q||en),string:new er}},ea.prototype.delete=function(e){var t=eh(this,e).delete(e);return this.size-=!!t,t},ea.prototype.get=function(e){return eh(this,e).get(e)},ea.prototype.has=function(e){return eh(this,e).has(e)},ea.prototype.set=function(e,t){var r=eh(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this},ei.prototype.clear=function(){this.__data__=new en,this.size=0},ei.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ei.prototype.get=function(e){return this.__data__.get(e)},ei.prototype.has=function(e){return this.__data__.has(e)},ei.prototype.set=function(e,t){var r=this.__data__;if(r instanceof en){var n=r.__data__;if(!Q||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ea(n)}return r.set(e,t),this.size=r.size,this};var eu=function(e,t,r){for(var n=-1,a=Object(e),i=r(e),o=i.length;o--;){var s=i[++n];if(!1===t(a[s],s,a))break}return e};function ed(e){var t;return null==e?void 0===e?"[object Undefined]":"[object Null]":K&&K in Object(e)?function(e){var t=L.call(e,K),r=e[K];try{e[K]=void 0;var n=!0}catch(e){}var a=V.call(e);return n&&(t?e[K]=r:delete e[K]),a}(e):(t=e,V.call(t))}function ec(e){return eE(e)&&ed(e)==f}function eh(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function ep(e,t){var r,n=null==e?void 0:e[t];return!(!eS(n)||(r=n,N&&N in r))&&(ek(n)?B:v).test(function(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(n))?n:void 0}function em(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&b.test(e))&&e>-1&&e%1==0&&e<t}function ef(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||O)}function eg(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ey=(n=Y?function(e,t){var r;return Y(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0})}:e_,a=0,i=0,function(){var e=J(),t=16-(e-i);if(i=e,t>0){if(++a>=800)return arguments[0]}else a=0;return n.apply(void 0,arguments)});function ev(e,t){return e===t||e!=e&&t!=t}var eb=ec(function(){return arguments}())?ec:function(e){return eE(e)&&L.call(e,"callee")&&!q.call(e,"callee")},ew=Array.isArray;function ex(e){return null!=e&&eM(e.length)&&!ek(e)}var eC=Z||function(){return!1};function ek(e){if(!eS(e))return!1;var t=ed(e);return t==g||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eM(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eS(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eE(e){return null!=e&&"object"==typeof e}var eT=P?function(e){return P(e)}:function(e){return eE(e)&&eM(e.length)&&!!w[ed(e)]};function eI(e){return ex(e)?function(e,t){var r=ew(e),n=!r&&eb(e),a=!r&&!n&&eC(e),i=!r&&!n&&!a&&eT(e),o=r||n||a||i,s=o?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=s.length;for(var u in e)(t||L.call(e,u))&&!(o&&("length"==u||a&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||em(u,l)))&&s.push(u);return s}(e,!0):function(e){if(!eS(e)){var t=e,r=[];if(null!=t)for(var n in Object(t))r.push(n);return r}var a=ef(e),i=[];for(var o in e)"constructor"==o&&(a||!L.call(e,o))||i.push(o);return i}(e)}var eP=(h=function(e,t,r){!function e(t,r,n,a,i){t!==r&&eu(r,function(o,s){if(i||(i=new ei),eS(o))!function(e,t,r,n,a,i,o){var s=eg(e,r),l=eg(t,r),u=o.get(l);if(u)return eo(e,r,u);var d=i?i(s,l,r+"",e,t,o):void 0,c=void 0===d;if(c){var h,p,m,f,g,v,b,w=ew(l),x=!w&&eC(l),C=!w&&!x&&eT(l);d=l,w||x||C?ew(s)?d=s:eE(h=s)&&ex(h)?d=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(s):x?(c=!1,d=function(e,t){if(t)return e.slice();var r=e.length,n=z?z(r):new e.constructor(r);return e.copy(n),n}(l,!0)):C?(c=!1,p=l,g=(new U(f=new(m=p.buffer).constructor(m.byteLength)).set(new U(m)),f),d=new p.constructor(g,p.byteOffset,p.length)):d=[]:function(e){if(!eE(e)||ed(e)!=y)return!1;var t=H(e);if(null===t)return!0;var r=L.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&R.call(r)==F}(l)||eb(l)?(d=s,eb(s)?d=function(e,t,r){var n=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var o=t[a],s=void 0;void 0===s&&(s=e[o]),n?el(r,o,s):function(e,t,r){var n=e[t];L.call(e,t)&&ev(n,r)&&(void 0!==r||t in e)||el(e,t,r)}(r,o,s)}return r}(v=s,eI(v)):(!eS(s)||ek(s))&&(d="function"!=typeof(b=l).constructor||ef(b)?{}:et(H(b)))):c=!1}c&&(o.set(l,d),a(d,l,n,i,o),o.delete(l)),eo(e,r,d)}(t,r,s,n,e,a,i);else{var l=a?a(eg(t,s),o,s+"",t,r,i):void 0;void 0===l&&(l=o),eo(t,s,l)}},eI)}(e,t,r)},ey((o=p=function(e,t){var r=-1,n=t.length,a=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(a=h.length>3&&"function"==typeof a?(n--,a):void 0,i&&function(e,t,r){if(!eS(r))return!1;var n=typeof t;return("number"==n?!!(ex(r)&&em(t,r.length)):"string"==n&&t in r)&&ev(r[t],e)}(t[0],t[1],i)&&(a=n<3?void 0:a,n=1),e=Object(e);++r<n;){var o=t[r];o&&h(e,o,r)}return e},s=void 0,l=e_,s=X(void 0===s?o.length-1:s,0),function(){for(var e=arguments,t=-1,r=X(e.length-s,0),n=Array(r);++t<r;)n[t]=e[s+t];t=-1;for(var a=Array(s+1);++t<s;)a[t]=e[t];a[s]=l(n);switch(a.length){case 0:return o.call(this);case 1:return o.call(this,a[0]);case 2:return o.call(this,a[0],a[1]);case 3:return o.call(this,a[0],a[1],a[2])}return o.apply(this,a)}),p+""));function e_(e){return e}e.exports=eP},7256(e){"use strict";e.exports=Math.abs},5414(e){"use strict";e.exports=Math.floor},981(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},7954(e){"use strict";e.exports=Math.max},3452(e){"use strict";e.exports=Math.min},1358(e){"use strict";e.exports=Math.pow},5720(e){"use strict";e.exports=Math.round},3515(e,t,r){"use strict";var n=r(981);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},4867(e,t,r){e=r.nmd(e),e.exports=function(){"use strict";function t(){return W.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(i(e,t))return!1;return!0}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var r,n=[],a=e.length;for(r=0;r<a;++r)n.push(t(e[r],r));return n}function c(e,t){for(var r in t)i(t,r)&&(e[r]=t[r]);return i(t,"toString")&&(e.toString=t.toString),i(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,r,n){return ti(e,t,r,n,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());return(n&&(t=p(e),r=U.call(t.parsedDateParts,function(e){return null!=e}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e))?n:(e._isValid=n,e._isValid)}function f(e){var t=h(NaN);return null!=e?c(p(t),e):p(t).userInvalidated=!0,t}U=Array.prototype.some?Array.prototype.some:function(e){var t,r=Object(this),n=r.length>>>0;for(t=0;t<n;t++)if(t in r&&e.call(this,r[t],t,r))return!0;return!1};var g,y,v=t.momentProperties=[],b=!1;function w(e,t){var r,n,a,i=v.length;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=p(t)),s(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)s(a=t[n=v[r]])||(e[n]=a);return e}function x(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,t.updateOffset(this),b=!1)}function C(e){return e instanceof x||null!=e&&null!=e._isAMomentObject}function k(e){!1===t.suppressDeprecationWarnings&&"u">typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function M(e,r){var n=!0;return c(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){var a,o,s,l=[],u=arguments.length;for(o=0;o<u;o++){if(a="","object"==typeof arguments[o]){for(s in a+="\n["+o+"] ",arguments[0])i(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[o];l.push(a)}k(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+Error().stack),n=!1}return r.apply(this,arguments)},r)}var S={};function E(e,r){null!=t.deprecationHandler&&t.deprecationHandler(e,r),S[e]||(k(r),S[e]=!0)}function T(e){return"u">typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function I(e,t){var r,n=c({},e);for(r in t)i(t,r)&&(a(e[r])&&a(t[r])?(n[r]={},c(n[r],e[r]),c(n[r],t[r])):null!=t[r]?n[r]=t[r]:delete n[r]);for(r in e)i(e,r)&&!i(t,r)&&a(e[r])&&(n[r]=c({},n[r]));return n}function P(e){null!=e&&this.set(e)}function _(e,t,r){var n=""+Math.abs(e);return(e>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A={},R={};function L(e,t,r,n){var a=n;"string"==typeof n&&(a=function(){return this[n]()}),e&&(R[e]=a),t&&(R[t[0]]=function(){return _(a.apply(this,arguments),t[1],t[2])}),r&&(R[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(A[t=V(t,e.localeData())]=A[t]||function(e){var t,r,n,a=e.match(D);for(r=0,n=a.length;r<n;r++)R[a[r]]?a[r]=R[a[r]]:a[r]=(t=a[r]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){var r,i="";for(r=0;r<n;r++)i+=T(a[r])?a[r].call(t,e):a[r];return i}}(t),A[t](e)):e.localeData().invalidDate()}function V(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(O.lastIndex=0;r>=0&&O.test(e);)e=e.replace(O,n),O.lastIndex=0,r-=1;return e}var F={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function B(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function j(e){var t,r,n={};for(r in e)i(e,r)&&(t=B(r))&&(n[t]=e[r]);return n}var W,U,z,H={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},G=Object.keys?Object.keys:function(e){var t,r=[];for(t in e)i(e,t)&&r.push(t);return r},q=/\d/,$=/\d\d/,K=/\d{3}/,Y=/\d{4}/,Z=/[+-]?\d{6}/,X=/\d\d?/,J=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,ee=/\d{1,3}/,et=/\d{1,4}/,er=/[+-]?\d{1,6}/,en=/\d+/,ea=/[+-]?\d+/,ei=/Z|[+-]\d\d:?\d\d/gi,eo=/Z|[+-]\d\d(?::?\d\d)?/gi,es=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,el=/^[1-9]\d?/,eu=/^([1-9]\d|\d)/;function ed(e,t,r){z[e]=T(t)?t:function(e,n){return e&&r?r:t}}function ec(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function eh(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ep(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=eh(t)),r}z={};var em={};function ef(e,t){var r,n,a=t;for("string"==typeof e&&(e=[e]),l(t)&&(a=function(e,r){r[t]=ep(e)}),n=e.length,r=0;r<n;r++)em[e[r]]=a}function eg(e,t){ef(e,function(e,r,n,a){n._w=n._w||{},t(e,n._w,n,a)})}function ey(e){return e%4==0&&e%100!=0||e%400==0}function ev(e){return ey(e)?366:365}L("Y",0,0,function(){var e=this.year();return e<=9999?_(e,4):"+"+e}),L(0,["YY",2],0,function(){return this.year()%100}),L(0,["YYYY",4],0,"year"),L(0,["YYYYY",5],0,"year"),L(0,["YYYYYY",6,!0],0,"year"),ed("Y",ea),ed("YY",X,$),ed("YYYY",et,Y),ed("YYYYY",er,Z),ed("YYYYYY",er,Z),ef(["YYYYY","YYYYYY"],0),ef("YYYY",function(e,r){r[0]=2===e.length?t.parseTwoDigitYear(e):ep(e)}),ef("YY",function(e,r){r[0]=t.parseTwoDigitYear(e)}),ef("Y",function(e,t){t[0]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return ep(e)+(ep(e)>68?1900:2e3)};var eb=ew("FullYear",!0);function ew(e,r){return function(n){return null!=n?(eC(this,e,n),t.updateOffset(this,r),this):ex(this,e)}}function ex(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function eC(e,t,r){var n,a,i,o;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=e.month(),o=29!==(o=e.date())||1!==i||ey(r)?o:28,a?n.setUTCFullYear(r,i,o):n.setFullYear(r,i,o)}}function ek(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=(t%12+12)%12;return e+=(t-r)/12,1===r?ey(e)?29:28:31-r%7%2}ez=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return -1},L("M",["MM",2],"Mo",function(){return this.month()+1}),L("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),L("MMMM",0,0,function(e){return this.localeData().months(this,e)}),ed("M",X,el),ed("MM",X,$),ed("MMM",function(e,t){return t.monthsShortRegex(e)}),ed("MMMM",function(e,t){return t.monthsRegex(e)}),ef(["M","MM"],function(e,t){t[1]=ep(e)-1}),ef(["MMM","MMMM"],function(e,t,r,n){var a=r._locale.monthsParse(e,n,r._strict);null!=a?t[1]=a:p(r).invalidMonth=e});var eM="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),eS=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function eE(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=h([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();if(r)if("MMM"===t)return -1!==(a=ez.call(this._shortMonthsParse,o))?a:null;else return -1!==(a=ez.call(this._longMonthsParse,o))?a:null;return"MMM"===t?-1!==(a=ez.call(this._shortMonthsParse,o))||-1!==(a=ez.call(this._longMonthsParse,o))?a:null:-1!==(a=ez.call(this._longMonthsParse,o))||-1!==(a=ez.call(this._shortMonthsParse,o))?a:null}function eT(e,t){if(!e.isValid())return e;if("string"==typeof t){if(/^\d+$/.test(t))t=ep(t);else if(!l(t=e.localeData().monthsParse(t)))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,ek(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function eI(e){return null!=e?(eT(this,e),t.updateOffset(this,!0),this):ex(this,"Month")}function eP(){function e(e,t){return t.length-e.length}var t,r,n,a,i=[],o=[],s=[];for(t=0;t<12;t++)r=h([2e3,t]),n=ec(this.monthsShort(r,"")),a=ec(this.months(r,"")),i.push(n),o.push(a),s.push(a),s.push(n);i.sort(e),o.sort(e),s.sort(e),this._monthsRegex=RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+i.join("|")+")","i")}function e_(e,t,r,n,a,i,o){var s;return e<100&&e>=0?isFinite((s=new Date(e+400,t,r,n,a,i,o)).getFullYear())&&s.setFullYear(e):s=new Date(e,t,r,n,a,i,o),s}function eD(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,r))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function eO(e,t,r){var n=7+t-r;return-((7+eD(e,0,n).getUTCDay()-t)%7)+n-1}function eA(e,t,r,n,a){var i,o,s=1+7*(t-1)+(7+r-n)%7+eO(e,n,a);return s<=0?o=ev(i=e-1)+s:s>ev(e)?(i=e+1,o=s-ev(e)):(i=e,o=s),{year:i,dayOfYear:o}}function eR(e,t,r){var n,a,i=eO(e.year(),t,r),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?n=o+eL(a=e.year()-1,t,r):o>eL(e.year(),t,r)?(n=o-eL(e.year(),t,r),a=e.year()+1):(a=e.year(),n=o),{week:n,year:a}}function eL(e,t,r){var n=eO(e,t,r),a=eO(e+1,t,r);return(ev(e)-n+a)/7}function eN(e,t){return e.slice(t,7).concat(e.slice(0,t))}L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),ed("w",X,el),ed("ww",X,$),ed("W",X,el),ed("WW",X,$),eg(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=ep(e)}),L("d",0,"do","day"),L("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),L("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),L("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),L("e",0,0,"weekday"),L("E",0,0,"isoWeekday"),ed("d",X),ed("e",X),ed("E",X),ed("dd",function(e,t){return t.weekdaysMinRegex(e)}),ed("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ed("dddd",function(e,t){return t.weekdaysRegex(e)}),eg(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);null!=a?t.d=a:p(r).invalidWeekday=e}),eg(["d","e","E"],function(e,t,r,n){t[n]=ep(e)});var eV="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eF(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=h([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();if(r)if("dddd"===t)return -1!==(a=ez.call(this._weekdaysParse,o))?a:null;else if("ddd"===t)return -1!==(a=ez.call(this._shortWeekdaysParse,o))?a:null;else return -1!==(a=ez.call(this._minWeekdaysParse,o))?a:null;return"dddd"===t?-1!==(a=ez.call(this._weekdaysParse,o))||-1!==(a=ez.call(this._shortWeekdaysParse,o))||-1!==(a=ez.call(this._minWeekdaysParse,o))?a:null:"ddd"===t?-1!==(a=ez.call(this._shortWeekdaysParse,o))||-1!==(a=ez.call(this._weekdaysParse,o))||-1!==(a=ez.call(this._minWeekdaysParse,o))?a:null:-1!==(a=ez.call(this._minWeekdaysParse,o))||-1!==(a=ez.call(this._weekdaysParse,o))||-1!==(a=ez.call(this._shortWeekdaysParse,o))?a:null}function eB(){function e(e,t){return t.length-e.length}var t,r,n,a,i,o=[],s=[],l=[],u=[];for(t=0;t<7;t++)r=h([2e3,1]).day(t),n=ec(this.weekdaysMin(r,"")),a=ec(this.weekdaysShort(r,"")),i=ec(this.weekdays(r,"")),o.push(n),s.push(a),l.push(i),u.push(n),u.push(a),u.push(i);o.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+o.join("|")+")","i")}function ej(){return this.hours()%12||12}function eW(e,t){L(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eU(e,t){return t._meridiemParse}L("H",["HH",2],0,"hour"),L("h",["hh",2],0,ej),L("k",["kk",2],0,function(){return this.hours()||24}),L("hmm",0,0,function(){return""+ej.apply(this)+_(this.minutes(),2)}),L("hmmss",0,0,function(){return""+ej.apply(this)+_(this.minutes(),2)+_(this.seconds(),2)}),L("Hmm",0,0,function(){return""+this.hours()+_(this.minutes(),2)}),L("Hmmss",0,0,function(){return""+this.hours()+_(this.minutes(),2)+_(this.seconds(),2)}),eW("a",!0),eW("A",!1),ed("a",eU),ed("A",eU),ed("H",X,eu),ed("h",X,el),ed("k",X,el),ed("HH",X,$),ed("hh",X,$),ed("kk",X,$),ed("hmm",J),ed("hmmss",Q),ed("Hmm",J),ed("Hmmss",Q),ef(["H","HH"],3),ef(["k","kk"],function(e,t,r){var n=ep(e);t[3]=24===n?0:n}),ef(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),ef(["h","hh"],function(e,t,r){t[3]=ep(e),p(r).bigHour=!0}),ef("hmm",function(e,t,r){var n=e.length-2;t[3]=ep(e.substr(0,n)),t[4]=ep(e.substr(n)),p(r).bigHour=!0}),ef("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[3]=ep(e.substr(0,n)),t[4]=ep(e.substr(n,2)),t[5]=ep(e.substr(a)),p(r).bigHour=!0}),ef("Hmm",function(e,t,r){var n=e.length-2;t[3]=ep(e.substr(0,n)),t[4]=ep(e.substr(n))}),ef("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[3]=ep(e.substr(0,n)),t[4]=ep(e.substr(n,2)),t[5]=ep(e.substr(a))});var ez,eH,eG=ew("Hours",!0),eq={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:eM,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eV,meridiemParse:/[ap]\.?m?\.?/i},e$={},eK={};function eY(e){return e?e.toLowerCase().replace("_","-"):e}function eZ(t){var n=null;if(void 0===e$[t]&&e&&e.exports&&t&&t.match("^[^/\\\\]*$"))try{n=eH._abbr,r(3118)("./locale/"+t),eX(n)}catch(e){e$[t]=null}return e$[t]}function eX(e,t){var r;return e&&((r=s(t)?eQ(e):eJ(e,t))?eH=r:"u">typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eH._abbr}function eJ(e,t){if(null===t)return delete e$[e],null;var r,n=eq;if(t.abbr=e,null!=e$[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=e$[e]._config;else if(null!=t.parentLocale)if(null!=e$[t.parentLocale])n=e$[t.parentLocale]._config;else{if(null==(r=eZ(t.parentLocale)))return eK[t.parentLocale]||(eK[t.parentLocale]=[]),eK[t.parentLocale].push({name:e,config:t}),null;n=r._config}return e$[e]=new P(I(n,t)),eK[e]&&eK[e].forEach(function(e){eJ(e.name,e.config)}),eX(e),e$[e]}function eQ(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eH;if(!n(e)){if(t=eZ(e))return t;e=[e]}return function(e){for(var t,r,n,a,i=0;i<e.length;){for(t=(a=eY(e[i]).split("-")).length,r=(r=eY(e[i+1]))?r.split("-"):null;t>0;){if(n=eZ(a.slice(0,t).join("-")))return n;if(r&&r.length>=t&&function(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}(a,r)>=t-1)break;t--}i++}return eH}(e)}function e0(e){var t,r=e._a;return r&&-2===p(e).overflow&&(t=r[1]<0||r[1]>11?1:r[2]<1||r[2]>ek(r[0],r[1])?2:r[3]<0||r[3]>24||24===r[3]&&(0!==r[4]||0!==r[5]||0!==r[6])?3:r[4]<0||r[4]>59?4:r[5]<0||r[5]>59?5:r[6]<0||r[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}var e1=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e2=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e5=/Z|[+-]\d\d(?::?\d\d)?/,e3=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],e4=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],e8=/^\/?Date\((-?\d+)/i,e6=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,e9={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function e7(e){var t,r,n,a,i,o,s=e._i,l=e1.exec(s)||e2.exec(s),u=e3.length,d=e4.length;if(l){for(p(e).iso=!0,t=0,r=u;t<r;t++)if(e3[t][1].exec(l[1])){a=e3[t][0],n=!1!==e3[t][2];break}if(null==a){e._isValid=!1;return}if(l[3]){for(t=0,r=d;t<r;t++)if(e4[t][1].exec(l[3])){i=(l[2]||" ")+e4[t][0];break}if(null==i){e._isValid=!1;return}}if(!n&&null!=i){e._isValid=!1;return}if(l[4])if(e5.exec(l[4]))o="Z";else{e._isValid=!1;return}e._f=a+(i||"")+(o||""),tn(e)}else e._isValid=!1}function te(e){var t,r,n,a,i,o,s,l,u,d,c,h=e6.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(h){if(i=h[4],o=h[3],s=h[2],l=h[5],u=h[6],d=h[7],c=[(t=parseInt(i,10))<=49?2e3+t:t<=999?1900+t:t,eM.indexOf(o),parseInt(s,10),parseInt(l,10),parseInt(u,10)],d&&c.push(parseInt(d,10)),r=h[1],n=c,a=e,r&&eV.indexOf(r)!==new Date(n[0],n[1],n[2]).getDay()&&(p(a).weekdayMismatch=!0,a._isValid=!1,1))return;e._a=c,e._tzm=function(e,t,r){if(e)return e9[e];if(t)return 0;var n=parseInt(r,10),a=n%100;return(n-a)/100*60+a}(h[8],h[9],h[10]),e._d=eD.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function tt(e,t,r){return null!=e?e:null!=t?t:r}function tr(e){var r,n,a,i,o,s,l,u,d,c,h,m,f,g,y,v,b=[];if(!e._d){for(h=new Date(t.now()),g=e._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],e._w&&null==e._a[2]&&null==e._a[1]&&(null!=(n=(r=e)._w).GG||null!=n.W||null!=n.E?(s=1,l=4,a=tt(n.GG,r._a[0],eR(to(),1,4).year),i=tt(n.W,1),((o=tt(n.E,1))<1||o>7)&&(d=!0)):(s=r._locale._week.dow,l=r._locale._week.doy,c=eR(to(),s,l),a=tt(n.gg,r._a[0],c.year),i=tt(n.w,c.week),null!=n.d?((o=n.d)<0||o>6)&&(d=!0):null!=n.e?(o=n.e+s,(n.e<0||n.e>6)&&(d=!0)):o=s),i<1||i>eL(a,s,l)?p(r)._overflowWeeks=!0:null!=d?p(r)._overflowWeekday=!0:(u=eA(a,i,o,s,l),r._a[0]=u.year,r._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(v=tt(e._a[0],g[0]),(e._dayOfYear>ev(v)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),f=eD(v,0,e._dayOfYear),e._a[1]=f.getUTCMonth(),e._a[2]=f.getUTCDate()),m=0;m<3&&null==e._a[m];++m)e._a[m]=b[m]=g[m];for(;m<7;m++)e._a[m]=b[m]=null==e._a[m]?+(2===m):e._a[m];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?eD:e_).apply(null,b),y=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==y&&(p(e).weekdayMismatch=!0)}}function tn(e){if(e._f===t.ISO_8601)return void e7(e);if(e._f===t.RFC_2822)return void te(e);e._a=[],p(e).empty=!0;var r,n,a,o,s,l,u,d,c,h,m,f=""+e._i,g=f.length,y=0;for(m=(u=V(e._f,e._locale).match(D)||[]).length,s=0;s<m;s++)if(d=u[s],(l=(f.match(!i(z,d)?new RegExp(ec(d.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,n,a){return t||r||n||a}))):z[d](e._strict,e._locale))||[])[0])&&((c=f.substr(0,f.indexOf(l))).length>0&&p(e).unusedInput.push(c),f=f.slice(f.indexOf(l)+l.length),y+=l.length),R[d])l?p(e).empty=!1:p(e).unusedTokens.push(d),null!=l&&i(em,d)&&em[d](l,e._a,e,d);else e._strict&&!l&&p(e).unusedTokens.push(d);p(e).charsLeftOver=g-y,f.length>0&&p(e).unusedInput.push(f),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=(r=e._locale,n=e._a[3],null==(a=e._meridiem)?n:null!=r.meridiemHour?r.meridiemHour(n,a):(null!=r.isPM&&((o=r.isPM(a))&&n<12&&(n+=12),o||12!==n||(n=0)),n)),null!==(h=p(e).era)&&(e._a[0]=e._locale.erasConvertYear(h,e._a[0])),tr(e),e0(e)}function ta(e){var r=e._i,i=e._f;return(e._locale=e._locale||eQ(e._l),null===r||void 0===i&&""===r)?f({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),C(r))?new x(e0(r)):(u(r)?e._d=r:n(i)?!function(e){var t,r,n,a,i,o,s=!1,l=e._f.length;if(0===l){p(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<l;a++)i=0,o=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],tn(t),m(t)&&(o=!0),i+=p(t).charsLeftOver,i+=10*p(t).unusedTokens.length,p(t).score=i,s?i<n&&(n=i,r=t):(null==n||i<n||o)&&(n=i,r=t,o&&(s=!0));c(e,r||t)}(e):i?tn(e):function(e){var r=e._i;if(s(r))e._d=new Date(t.now());else if(u(r))e._d=new Date(r.valueOf());else if("string"==typeof r)!function(e){var r=e8.exec(e._i);if(null!==r){e._d=new Date(+r[1]);return}e7(e),!1!==e._isValid||(delete e._isValid,te(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e)))}(e);else if(n(r))e._a=d(r.slice(0),function(e){return parseInt(e,10)}),tr(e);else if(a(r)){if(!e._d){var i=j(e._i),o=void 0===i.day?i.date:i.day;e._a=d([i.year,i.month,o,i.hour,i.minute,i.second,i.millisecond],function(e){return e&&parseInt(e,10)}),tr(e)}}else l(r)?e._d=new Date(r):t.createFromInputFallback(e)}(e),m(e)||(e._d=null),e)}function ti(e,t,r,i,s){var l,u={};return(!0===t||!1===t)&&(i=t,t=void 0),(!0===r||!1===r)&&(i=r,r=void 0),(a(e)&&o(e)||n(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=r,u._i=e,u._f=t,u._strict=i,(l=new x(e0(ta(u))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function to(e,t,r,n){return ti(e,t,r,n,!1)}t.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var ts=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=to.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:f()}),tl=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=to.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:f()});function tu(e,t){var r,a;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return to();for(r=t[0],a=1;a<t.length;++a)(!t[a].isValid()||t[a][e](r))&&(r=t[a]);return r}var td=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tc(e){var t=j(e),r=t.year||0,n=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,u=t.minute||0,d=t.second||0,c=t.millisecond||0;this._isValid=function(e){var t,r,n=!1,a=td.length;for(t in e)if(i(e,t)&&!(-1!==ez.call(td,t)&&(null==e[t]||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[td[r]]){if(n)return!1;parseFloat(e[td[r]])!==ep(e[td[r]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*d+6e4*u+1e3*l*3600,this._days=+s+7*o,this._months=+a+3*n+12*r,this._data={},this._locale=eQ(),this._bubble()}function th(e){return e instanceof tc}function tp(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function tm(e,t){L(e,0,0,function(){var e=this.utcOffset(),r="+";return e<0&&(e=-e,r="-"),r+_(~~(e/60),2)+t+_(~~e%60,2)})}tm("Z",":"),tm("ZZ",""),ed("Z",eo),ed("ZZ",eo),ef(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=tg(eo,e)});var tf=/([\+\-]|\d\d)/gi;function tg(e,t){var r,n,a=(t||"").match(e);return null===a?null:0===(n=+(60*(r=((a[a.length-1]||[])+"").match(tf)||["-",0,0])[1])+ep(r[2]))?0:"+"===r[0]?n:-n}function ty(e,r){var n,a;return r._isUTC?(n=r.clone(),a=(C(e)||u(e)?e.valueOf():to(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),t.updateOffset(n,!1),n):to(e).local()}function tv(e){return-Math.round(e._d.getTimezoneOffset())}function tb(){return!!this.isValid()&&this._isUTC&&0===this._offset}t.updateOffset=function(){};var tw=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tx=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function tC(e,t){var r,n,a,o,s,u,d=e,c=null;return th(e)?d={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(d={},t?d[t]=+e:d.milliseconds=+e):(c=tw.exec(e))?(o="-"===c[1]?-1:1,d={y:0,d:ep(c[2])*o,h:ep(c[3])*o,m:ep(c[4])*o,s:ep(c[5])*o,ms:ep(tp(1e3*c[6]))*o}):(c=tx.exec(e))?(o="-"===c[1]?-1:1,d={y:tk(c[2],o),M:tk(c[3],o),w:tk(c[4],o),d:tk(c[5],o),h:tk(c[6],o),m:tk(c[7],o),s:tk(c[8],o)}):null==d?d={}:"object"==typeof d&&("from"in d||"to"in d)&&(r=to(d.from),n=to(d.to),u=r.isValid()&&n.isValid()?(n=ty(n,r),r.isBefore(n)?a=tM(r,n):((a=tM(n,r)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(d={}).ms=u.milliseconds,d.M=u.months),s=new tc(d),th(e)&&i(e,"_locale")&&(s._locale=e._locale),th(e)&&i(e,"_isValid")&&(s._isValid=e._isValid),s}function tk(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function tM(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=t-e.clone().add(r.months,"M"),r}function tS(e,t){return function(r,n){var a;return null===n||isNaN(+n)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=n,n=a),tE(this,tC(r,n),e),this}}function tE(e,r,n,a){var i=r._milliseconds,o=tp(r._days),s=tp(r._months);e.isValid()&&(a=null==a||a,s&&eT(e,ex(e,"Month")+s*n),o&&eC(e,"Date",ex(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),a&&t.updateOffset(e,o||s))}tC.fn=tc.prototype,tC.invalid=function(){return tC(NaN)};var tT=tS(1,"add"),tI=tS(-1,"subtract");function tP(e){return"string"==typeof e||e instanceof String}function t_(e,t){if(e.date()<t.date())return-t_(t,e);var r,n=(t.year()-e.year())*12+(t.month()-e.month()),a=e.clone().add(n,"months");return r=t-a<0?(t-a)/(a-e.clone().add(n-1,"months")):(t-a)/(e.clone().add(n+1,"months")-a),-(n+r)||0}function tD(e){var t;return void 0===e?this._locale._abbr:(null!=(t=eQ(e))&&(this._locale=t),this)}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tO=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function tA(){return this._locale}function tR(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-126227808e5:new Date(e,t,r).valueOf()}function tL(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-126227808e5:Date.UTC(e,t,r)}function tN(e,t){return t.erasAbbrRegex(e)}function tV(){var e,t,r,n,a,i=[],o=[],s=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)r=ec(u[e].name),n=ec(u[e].abbr),a=ec(u[e].narrow),o.push(r),i.push(n),s.push(a),l.push(r),l.push(n),l.push(a);this._erasRegex=RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+s.join("|")+")","i")}function tF(e,t){L(0,[e,e.length],0,t)}function tB(e,t,r,n,a){var i;return null==e?eR(this,n,a).year:(t>(i=eL(e,n,a))&&(t=i),tj.call(this,e,t,r,n,a))}function tj(e,t,r,n,a){var i=eA(e,t,r,n,a),o=eD(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}L("N",0,0,"eraAbbr"),L("NN",0,0,"eraAbbr"),L("NNN",0,0,"eraAbbr"),L("NNNN",0,0,"eraName"),L("NNNNN",0,0,"eraNarrow"),L("y",["y",1],"yo","eraYear"),L("y",["yy",2],0,"eraYear"),L("y",["yyy",3],0,"eraYear"),L("y",["yyyy",4],0,"eraYear"),ed("N",tN),ed("NN",tN),ed("NNN",tN),ed("NNNN",function(e,t){return t.erasNameRegex(e)}),ed("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ef(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?p(r).era=a:p(r).invalidEra=e}),ed("y",en),ed("yy",en),ed("yyy",en),ed("yyyy",en),ed("yo",function(e,t){return t._eraYearOrdinalRegex||en}),ef(["y","yy","yyy","yyyy"],0),ef(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[0]=r._locale.eraYearOrdinalParse(e,a):t[0]=parseInt(e,10)}),L(0,["gg",2],0,function(){return this.weekYear()%100}),L(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tF("gggg","weekYear"),tF("ggggg","weekYear"),tF("GGGG","isoWeekYear"),tF("GGGGG","isoWeekYear"),ed("G",ea),ed("g",ea),ed("GG",X,$),ed("gg",X,$),ed("GGGG",et,Y),ed("gggg",et,Y),ed("GGGGG",er,Z),ed("ggggg",er,Z),eg(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=ep(e)}),eg(["gg","GG"],function(e,r,n,a){r[a]=t.parseTwoDigitYear(e)}),L("Q",0,"Qo","quarter"),ed("Q",q),ef("Q",function(e,t){t[1]=(ep(e)-1)*3}),L("D",["DD",2],"Do","date"),ed("D",X,el),ed("DD",X,$),ed("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ef(["D","DD"],2),ef("Do",function(e,t){t[2]=ep(e.match(X)[0])});var tW=ew("Date",!0);L("DDD",["DDDD",3],"DDDo","dayOfYear"),ed("DDD",ee),ed("DDDD",K),ef(["DDD","DDDD"],function(e,t,r){r._dayOfYear=ep(e)}),L("m",["mm",2],0,"minute"),ed("m",X,eu),ed("mm",X,$),ef(["m","mm"],4);var tU=ew("Minutes",!1);L("s",["ss",2],0,"second"),ed("s",X,eu),ed("ss",X,$),ef(["s","ss"],5);var tz=ew("Seconds",!1);for(L("S",0,0,function(){return~~(this.millisecond()/100)}),L(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),L(0,["SSS",3],0,"millisecond"),L(0,["SSSS",4],0,function(){return 10*this.millisecond()}),L(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),L(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),L(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),L(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),L(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ed("S",ee,q),ed("SS",ee,$),ed("SSS",ee,K),g="SSSS";g.length<=9;g+="S")ed(g,en);function tH(e,t){t[6]=ep(("0."+e)*1e3)}for(g="S";g.length<=9;g+="S")ef(g,tH);y=ew("Milliseconds",!1),L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName");var tG=x.prototype;function tq(e){return e}tG.add=tT,tG.calendar=function(e,r){if(1==arguments.length)if(arguments[0]){var s,d,c,h;if(s=arguments[0],C(s)||u(s)||tP(s)||l(s)||(c=n(d=s),h=!1,c&&(h=0===d.filter(function(e){return!l(e)&&tP(d)}).length),c&&h)||function(e){var t,r,n=a(e)&&!o(e),s=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=l.length;for(t=0;t<u;t+=1)r=l[t],s=s||i(e,r);return n&&s}(s)||null==s)e=arguments[0],r=void 0;else(function(e){var t,r,n=a(e)&&!o(e),s=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<l.length;t+=1)r=l[t],s=s||i(e,r);return n&&s})(arguments[0])&&(r=arguments[0],e=void 0)}else e=void 0,r=void 0;var p=e||to(),m=ty(p,this).startOf("day"),f=t.calendarFormat(this,m)||"sameElse",g=r&&(T(r[f])?r[f].call(this,p):r[f]);return this.format(g||this.localeData().calendar(f,this,to(p)))},tG.clone=function(){return new x(this)},tG.diff=function(e,t,r){var n,a,i;if(!this.isValid()||!(n=ty(e,this)).isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,t=B(t)){case"year":i=t_(this,n)/12;break;case"month":i=t_(this,n);break;case"quarter":i=t_(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-a)/864e5;break;case"week":i=(this-n-a)/6048e5;break;default:i=this-n}return r?i:eh(i)},tG.endOf=function(e){var r,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tL:tR,e){case"year":r=n(this.year()+1,0,1)-1;break;case"quarter":r=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":r=n(this.year(),this.month()+1,1)-1;break;case"week":r=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":r=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":r=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":r=this._d.valueOf(),r+=36e5-((r+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5-1;break;case"minute":r=this._d.valueOf(),r+=6e4-(r%6e4+6e4)%6e4-1;break;case"second":r=this._d.valueOf(),r+=1e3-(r%1e3+1e3)%1e3-1}return this._d.setTime(r),t.updateOffset(this,!0),this},tG.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var r=N(this,e);return this.localeData().postformat(r)},tG.from=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||to(e).isValid())?tC({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tG.fromNow=function(e){return this.from(to(),e)},tG.to=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||to(e).isValid())?tC({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tG.toNow=function(e){return this.to(to(),e)},tG.get=function(e){return T(this[e=B(e)])?this[e]():this},tG.invalidAt=function(){return p(this).overflow},tG.isAfter=function(e,t){var r=C(e)?e:to(e);return!!(this.isValid()&&r.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf())},tG.isBefore=function(e,t){var r=C(e)?e:to(e);return!!(this.isValid()&&r.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf())},tG.isBetween=function(e,t,r,n){var a=C(e)?e:to(e),i=C(t)?t:to(t);return!!(this.isValid()&&a.isValid()&&i.isValid())&&("("===(n=n||"()")[0]?this.isAfter(a,r):!this.isBefore(a,r))&&(")"===n[1]?this.isBefore(i,r):!this.isAfter(i,r))},tG.isSame=function(e,t){var r,n=C(e)?e:to(e);return!!(this.isValid()&&n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()))},tG.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},tG.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},tG.isValid=function(){return m(this)},tG.lang=tO,tG.locale=tD,tG.localeData=tA,tG.max=tl,tG.min=ts,tG.parsingFlags=function(){return c({},p(this))},tG.set=function(e,t){if("object"==typeof e){var r,n=function(e){var t,r=[];for(t in e)i(e,t)&&r.push({unit:t,priority:H[t]});return r.sort(function(e,t){return e.priority-t.priority}),r}(e=j(e)),a=n.length;for(r=0;r<a;r++)this[n[r].unit](e[n[r].unit])}else if(T(this[e=B(e)]))return this[e](t);return this},tG.startOf=function(e){var r,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tL:tR,e){case"year":r=n(this.year(),0,1);break;case"quarter":r=n(this.year(),this.month()-this.month()%3,1);break;case"month":r=n(this.year(),this.month(),1);break;case"week":r=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":r=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":r=n(this.year(),this.month(),this.date());break;case"hour":r=this._d.valueOf(),r-=((r+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5;break;case"minute":r=this._d.valueOf(),r-=(r%6e4+6e4)%6e4;break;case"second":r=this._d.valueOf(),r-=(r%1e3+1e3)%1e3}return this._d.setTime(r),t.updateOffset(this,!0),this},tG.subtract=tI,tG.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},tG.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},tG.toDate=function(){return new Date(this.valueOf())},tG.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,r=t?this.clone().utc():this;if(0>r.year()||r.year()>9999)return N(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(T(Date.prototype.toISOString))if(t)return this.toDate().toISOString();else return new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(r,"Z"));return N(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},tG.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r,n="moment",a="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+n+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",r=a+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+r)},"u">typeof Symbol&&null!=Symbol.for&&(tG[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tG.toJSON=function(){return this.isValid()?this.toISOString():null},tG.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tG.unix=function(){return Math.floor(this.valueOf()/1e3)},tG.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tG.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tG.eraName=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""},tG.eraNarrow=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""},tG.eraAbbr=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""},tG.eraYear=function(){var e,r,n,a,i=this.localeData().eras();for(e=0,r=i.length;e<r;++e)if(n=i[e].since<=i[e].until?1:-1,a=this.clone().startOf("day").valueOf(),i[e].since<=a&&a<=i[e].until||i[e].until<=a&&a<=i[e].since)return(this.year()-t(i[e].since).year())*n+i[e].offset;return this.year()},tG.year=eb,tG.isLeapYear=function(){return ey(this.year())},tG.weekYear=function(e){return tB.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},tG.isoWeekYear=function(e){return tB.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},tG.quarter=tG.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)},tG.month=eI,tG.daysInMonth=function(){return ek(this.year(),this.month())},tG.week=tG.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add((e-t)*7,"d")},tG.isoWeek=tG.isoWeeks=function(e){var t=eR(this,1,4).week;return null==e?t:this.add((e-t)*7,"d")},tG.weeksInYear=function(){var e=this.localeData()._week;return eL(this.year(),e.dow,e.doy)},tG.weeksInWeekYear=function(){var e=this.localeData()._week;return eL(this.weekYear(),e.dow,e.doy)},tG.isoWeeksInYear=function(){return eL(this.year(),1,4)},tG.isoWeeksInISOWeekYear=function(){return eL(this.isoWeekYear(),1,4)},tG.date=tW,tG.day=tG.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,r,n=ex(this,"Day");return null==e?n:(t=e,r=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=r.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d"))},tG.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},tG.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,r=(t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?r:r-7)},tG.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},tG.hour=tG.hours=eG,tG.minute=tG.minutes=tU,tG.second=tG.seconds=tz,tG.millisecond=tG.milliseconds=y,tG.utcOffset=function(e,r,n){var a,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:tv(this);if("string"==typeof e){if(null===(e=tg(eo,e)))return this}else 16>Math.abs(e)&&!n&&(e*=60);return!this._isUTC&&r&&(a=tv(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),i!==e&&(!r||this._changeInProgress?tE(this,tC(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},tG.utc=function(e){return this.utcOffset(0,e)},tG.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(tv(this),"m")),this},tG.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tg(ei,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tG.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?to(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tG.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tG.isLocal=function(){return!!this.isValid()&&!this._isUTC},tG.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tG.isUtc=tb,tG.isUTC=tb,tG.zoneAbbr=function(){return this._isUTC?"UTC":""},tG.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tG.dates=M("dates accessor is deprecated. Use date instead.",tW),tG.months=M("months accessor is deprecated. Use month instead",eI),tG.years=M("years accessor is deprecated. Use year instead",eb),tG.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),tG.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=ta(t))._a?(e=t._isUTC?h(t._a):to(t._a),this._isDSTShifted=this.isValid()&&function(e,t){var r,n=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0;for(r=0;r<n;r++)ep(e[r])!==ep(t[r])&&i++;return i+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var t$=P.prototype;function tK(e,t,r,n){var a=eQ(),i=h().set(n,t);return a[r](i,e)}function tY(e,t,r){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return tK(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=tK(e,n,r,"month");return a}function tZ(e,t,r,n){"boolean"==typeof e||(r=t=e,e=!1),l(t)&&(r=t,t=void 0),t=t||"";var a,i=eQ(),o=e?i._week.dow:0,s=[];if(null!=r)return tK(t,(r+o)%7,n,"day");for(a=0;a<7;a++)s[a]=tK(t,(a+o)%7,n,"day");return s}t$.calendar=function(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return T(n)?n.call(t,r):n},t$.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(D).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},t$.invalidDate=function(){return this._invalidDate},t$.ordinal=function(e){return this._ordinal.replace("%d",e)},t$.preparse=tq,t$.postformat=tq,t$.relativeTime=function(e,t,r,n){var a=this._relativeTime[r];return T(a)?a(e,t,r,n):a.replace(/%d/i,e)},t$.pastFuture=function(e,t){var r=this._relativeTime[e>0?"future":"past"];return T(r)?r(t):r.replace(/%s/i,t)},t$.set=function(e){var t,r;for(r in e)i(e,r)&&(T(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},t$.eras=function(e,r){var n,a,i,o=this._eras||eQ("en")._eras;for(n=0,a=o.length;n<a;++n)switch("string"==typeof o[n].since&&(i=t(o[n].since).startOf("day"),o[n].since=i.valueOf()),typeof o[n].until){case"undefined":o[n].until=Infinity;break;case"string":i=t(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf()}return o},t$.erasParse=function(e,t,r){var n,a,i,o,s,l=this.eras();for(e=e.toUpperCase(),n=0,a=l.length;n<a;++n)if(i=l[n].name.toUpperCase(),o=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[n];break;case"NNNN":if(i===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if([i,o,s].indexOf(e)>=0)return l[n]},t$.erasConvertYear=function(e,r){var n=e.since<=e.until?1:-1;return void 0===r?t(e.since).year():t(e.since).year()+(r-e.offset)*n},t$.erasAbbrRegex=function(e){return i(this,"_erasAbbrRegex")||tV.call(this),e?this._erasAbbrRegex:this._erasRegex},t$.erasNameRegex=function(e){return i(this,"_erasNameRegex")||tV.call(this),e?this._erasNameRegex:this._erasRegex},t$.erasNarrowRegex=function(e){return i(this,"_erasNarrowRegex")||tV.call(this),e?this._erasNarrowRegex:this._erasRegex},t$.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||eS).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},t$.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[eS.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},t$.monthsParse=function(e,t,r){var n,a,i;if(this._monthsParseExact)return eE.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=h([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=RegExp(i.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}},t$.monthsRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||eP.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(i(this,"_monthsRegex")||(this._monthsRegex=es),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},t$.monthsShortRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||eP.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(i(this,"_monthsShortRegex")||(this._monthsShortRegex=es),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},t$.week=function(e){return eR(e,this._week.dow,this._week.doy).week},t$.firstDayOfYear=function(){return this._week.doy},t$.firstDayOfWeek=function(){return this._week.dow},t$.weekdays=function(e,t){var r=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?eN(r,this._week.dow):e?r[e.day()]:r},t$.weekdaysMin=function(e){return!0===e?eN(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},t$.weekdaysShort=function(e){return!0===e?eN(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},t$.weekdaysParse=function(e,t,r){var n,a,i;if(this._weekdaysParseExact)return eF.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=h([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=RegExp(i.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;else if(!r&&this._weekdaysParse[n].test(e))return n}},t$.weekdaysRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eB.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(i(this,"_weekdaysRegex")||(this._weekdaysRegex=es),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},t$.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eB.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=es),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},t$.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eB.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=es),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},t$.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},t$.meridiem=function(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"},eX("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=1===ep(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+r}}),t.lang=M("moment.lang is deprecated. Use moment.locale instead.",eX),t.langData=M("moment.langData is deprecated. Use moment.localeData instead.",eQ);var tX=Math.abs;function tJ(e,t,r,n){var a=tC(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function tQ(e){return e<0?Math.floor(e):Math.ceil(e)}function t0(e){return 4800*e/146097}function t1(e){return 146097*e/4800}function t2(e){return function(){return this.as(e)}}var t5=t2("ms"),t3=t2("s"),t4=t2("m"),t8=t2("h"),t6=t2("d"),t9=t2("w"),t7=t2("M"),re=t2("Q"),rt=t2("y");function rr(e){return function(){return this.isValid()?this._data[e]:NaN}}var rn=rr("milliseconds"),ra=rr("seconds"),ri=rr("minutes"),ro=rr("hours"),rs=rr("days"),rl=rr("months"),ru=rr("years"),rd=Math.round,rc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function rh(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}var rp=Math.abs;function rm(e){return(e>0)-(e<0)||+e}function rf(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n,a,i,o,s,l=rp(this._milliseconds)/1e3,u=rp(this._days),d=rp(this._months),c=this.asSeconds();return c?(e=eh(l/60),t=eh(e/60),l%=60,e%=60,r=eh(d/12),d%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=c<0?"-":"",i=rm(this._months)!==rm(c)?"-":"",o=rm(this._days)!==rm(c)?"-":"",s=rm(this._milliseconds)!==rm(c)?"-":"",a+"P"+(r?i+r+"Y":"")+(d?i+d+"M":"")+(u?o+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+n+"S":"")):"P0D"}var rg=tc.prototype;return rg.isValid=function(){return this._isValid},rg.abs=function(){var e=this._data;return this._milliseconds=tX(this._milliseconds),this._days=tX(this._days),this._months=tX(this._months),e.milliseconds=tX(e.milliseconds),e.seconds=tX(e.seconds),e.minutes=tX(e.minutes),e.hours=tX(e.hours),e.months=tX(e.months),e.years=tX(e.years),this},rg.add=function(e,t){return tJ(this,e,t,1)},rg.subtract=function(e,t){return tJ(this,e,t,-1)},rg.as=function(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+t0(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(t1(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw Error("Unknown unit "+e)}},rg.asMilliseconds=t5,rg.asSeconds=t3,rg.asMinutes=t4,rg.asHours=t8,rg.asDays=t6,rg.asWeeks=t9,rg.asMonths=t7,rg.asQuarters=re,rg.asYears=rt,rg.valueOf=t5,rg._bubble=function(){var e,t,r,n,a,i=this._milliseconds,o=this._days,s=this._months,l=this._data;return i>=0&&o>=0&&s>=0||i<=0&&o<=0&&s<=0||(i+=864e5*tQ(t1(s)+o),o=0,s=0),l.milliseconds=i%1e3,l.seconds=(e=eh(i/1e3))%60,l.minutes=(t=eh(e/60))%60,l.hours=(r=eh(t/60))%24,o+=eh(r/24),s+=a=eh(t0(o)),o-=tQ(t1(a)),n=eh(s/12),s%=12,l.days=o,l.months=s,l.years=n,this},rg.clone=function(){return tC(this)},rg.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},rg.milliseconds=rn,rg.seconds=ra,rg.minutes=ri,rg.hours=ro,rg.days=rs,rg.weeks=function(){return eh(this.days()/7)},rg.months=rl,rg.years=ru,rg.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,n,a,i,o,s,l,u,d,c,h,p,m,f=!1,g=rc;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(f=e),"object"==typeof t&&(g=Object.assign({},rc,t),null!=t.s&&null==t.ss&&(g.ss=t.s-1)),p=this.localeData(),r=!f,n=g,a=tC(this).abs(),i=rd(a.as("s")),o=rd(a.as("m")),s=rd(a.as("h")),l=rd(a.as("d")),u=rd(a.as("M")),d=rd(a.as("w")),c=rd(a.as("y")),h=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l],null!=n.w&&(h=h||d<=1&&["w"]||d<n.w&&["ww",d]),(h=h||u<=1&&["M"]||u<n.M&&["MM",u]||c<=1&&["y"]||["yy",c])[2]=r,h[3]=+this>0,h[4]=p,m=rh.apply(null,h),f&&(m=p.pastFuture(+this,m)),p.postformat(m)},rg.toISOString=rf,rg.toString=rf,rg.toJSON=rf,rg.locale=tD,rg.localeData=tA,rg.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",rf),rg.lang=tO,L("X",0,0,"unix"),L("x",0,0,"valueOf"),ed("x",ea),ed("X",/[+-]?\d+(\.\d{1,3})?/),ef("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e))}),ef("x",function(e,t,r){r._d=new Date(ep(e))}),t.version="2.30.1",W=to,t.fn=tG,t.min=function(){var e=[].slice.call(arguments,0);return tu("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return tu("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=h,t.unix=function(e){return to(1e3*e)},t.months=function(e,t){return tY(e,t,"months")},t.isDate=u,t.locale=eX,t.invalid=f,t.duration=tC,t.isMoment=C,t.weekdays=function(e,t,r){return tZ(e,t,r,"weekdays")},t.parseZone=function(){return to.apply(null,arguments).parseZone()},t.localeData=eQ,t.isDuration=th,t.monthsShort=function(e,t){return tY(e,t,"monthsShort")},t.weekdaysMin=function(e,t,r){return tZ(e,t,r,"weekdaysMin")},t.defineLocale=eJ,t.updateLocale=function(e,t){if(null!=t){var r,n,a=eq;null!=e$[e]&&null!=e$[e].parentLocale?e$[e].set(I(e$[e]._config,t)):(null!=(n=eZ(e))&&(a=n._config),t=I(a,t),null==n&&(t.abbr=e),(r=new P(t)).parentLocale=e$[e],e$[e]=r),eX(e)}else null!=e$[e]&&(null!=e$[e].parentLocale?(e$[e]=e$[e].parentLocale,e===eX()&&eX(e)):null!=e$[e]&&delete e$[e]);return e$[e]},t.locales=function(){return G(e$)},t.weekdaysShort=function(e,t,r){return tZ(e,t,r,"weekdaysShort")},t.normalizeUnits=B,t.relativeTimeRounding=function(e){return void 0===e?rd:"function"==typeof e&&(rd=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==rc[e]&&(void 0===t?rc[e]:(rc[e]=t,"s"===e&&(rc.ss=t-1),!0))},t.calendarFormat=function(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},t.prototype=tG,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}()},3118(e){function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=3118,e.exports=t},8681(e){!function(t,r){if(t){for(var n,a={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},i={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},o={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},s={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},l=1;l<20;++l)a[111+l]="f"+l;for(l=0;l<=9;++l)a[l+96]=l.toString();p.prototype.bind=function(e,t,r){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,r),this},p.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},p.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},p.prototype.reset=function(){return this._callbacks={},this._directMap={},this},p.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1||function e(t,n){return null!==t&&t!==r&&(t===n||e(t.parentNode,n))}(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},p.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},p.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(a[t]=e[t]);n=null},p.init=function(){var e=p(r);for(var t in e)"_"!==t.charAt(0)&&(p[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},p.init(),t.Mousetrap=p,e.exports&&(e.exports=p),"function"==typeof define&&define.amd&&define(function(){return p})}function u(e,t,r){e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent("on"+t,r)}function d(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return a[e.which]?a[e.which]:i[e.which]?i[e.which]:String.fromCharCode(e.which).toLowerCase()}function c(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function h(e,t){var r,i,l,u,d,h,p=[];for(u="+"===(r=e)?["+"]:(r=r.replace(/\+{2}/g,"+plus")).split("+"),h=0;h<u.length;++h)s[d=u[h]]&&(d=s[d]),t&&"keypress"!=t&&o[d]&&(d=o[d],p.push("shift")),c(d)&&p.push(d);return i=d,(l=t)||(l=function(){if(!n)for(var e in n={},a)e>95&&e<112||a.hasOwnProperty(e)&&(n[a[e]]=e);return n}()[i]?"keydown":"keypress"),"keypress"==l&&p.length&&(l="keydown"),{key:d,modifiers:p,action:t=l}}function p(e){var t,n=this;if(e=e||r,!(n instanceof p))return new p(e);n.target=e,n._callbacks={},n._directMap={};var a={},i=!1,o=!1,s=!1;function l(e){e=e||{};var t,r=!1;for(t in a){if(e[t]){r=!0;continue}a[t]=0}r||(s=!1)}function m(e,t,r,i,o,s){var l,u,d,h,p=[],m=r.type;if(!n._callbacks[e])return[];for("keyup"==m&&c(e)&&(t=[e]),d=0;d<n._callbacks[e].length;++d)if((h=n._callbacks[e][d],i||!h.seq||a[h.seq]==h.level)&&m==h.action&&("keypress"==m&&!r.metaKey&&!r.ctrlKey||(l=t,u=h.modifiers,l.sort().join(",")===u.sort().join(",")))){var f=!i&&h.combo==o,g=i&&h.seq==i&&h.level==s;(f||g)&&n._callbacks[e].splice(d,1),p.push(h)}return p}function f(e,t,r,a){!n.stopCallback(t,t.target||t.srcElement,r,a)&&!1===e(t,r)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation?t.stopPropagation():t.cancelBubble=!0)}function g(e){"number"!=typeof e.which&&(e.which=e.keyCode);var t,r=d(e);if(r){if("keyup"==e.type&&i===r){i=!1;return}n.handleKey(r,(t=[],e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t),e)}}n._handleKey=function(e,t,r){var n,a=m(e,t,r),i={},u=0,d=!1;for(n=0;n<a.length;++n)a[n].seq&&(u=Math.max(u,a[n].level));for(n=0;n<a.length;++n){if(a[n].seq){if(a[n].level!=u)continue;d=!0,i[a[n].seq]=1,f(a[n].callback,r,a[n].combo,a[n].seq);continue}d||f(a[n].callback,r,a[n].combo)}var h="keypress"==r.type&&o;r.type!=s||c(e)||h||l(i),o=d&&"keydown"==r.type};n._bindMultiple=function(e,r,o){for(var u=0;u<e.length;++u)!function e(r,o,u,c,p){n._directMap[r+":"+u]=o;var g,y=(r=r.replace(/\s+/g," ")).split(" ");y.length>1?function(r,n,o,u){function c(e){f(o,e,r),"keyup"!==u&&(i=d(e)),setTimeout(l,10)}a[r]=0;for(var p=0;p<n.length;++p){var m=p+1===n.length?c:function(e){return function(){s=e,++a[r],clearTimeout(t),t=setTimeout(l,1e3)}}(u||h(n[p+1]).action);e(n[p],m,u,r,p)}}(r,y,o,u):(g=h(r,u),n._callbacks[g.key]=n._callbacks[g.key]||[],m(g.key,g.modifiers,{type:g.action},c,r,p),n._callbacks[g.key][c?"unshift":"push"]({callback:o,modifiers:g.modifiers,action:g.action,seq:c,level:p,combo:r}))}(e[u],r,o)},u(e,"keypress",g),u(e,"keydown",g),u(e,"keyup",g)}}("u">typeof window?window:null,"u">typeof window?document:null)},3109(e,t,r){var n="function"==typeof Map&&Map.prototype,a=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&a&&"function"==typeof a.get?a.get:null,o=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"==typeof l.get?l.get:null,d=s&&Set.prototype.forEach,c="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,f=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,x=String.prototype.toLowerCase,C=RegExp.prototype.test,k=Array.prototype.concat,M=Array.prototype.join,S=Array.prototype.slice,E=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,_="function"==typeof Symbol&&"object"==typeof Symbol.iterator,D="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===_?"object":"symbol")?Symbol.toStringTag:null,O=Object.prototype.propertyIsEnumerable,A=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||C.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-E(-e):E(e);if(n!==e){var a=String(n),i=v.call(t,a.length+1);return b.call(a,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var L=r(6550),N=L.custom,V=H(N)?N:null,F={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function j(e,t,r){var n=F[r.quoteStyle||t];return n+e+n}function W(e){return!D||!("object"==typeof e&&(D in e||void 0!==e[D]))}function U(e){return"[object Array]"===$(e)&&W(e)}function z(e){return"[object RegExp]"===$(e)&&W(e)}function H(e){if(_)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,a,s){var l,f,w,C,E,I=n||{};if(q(I,"quoteStyle")&&!q(F,I.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(q(I,"maxStringLength")&&("number"==typeof I.maxStringLength?I.maxStringLength<0&&I.maxStringLength!==1/0:null!==I.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var N=!q(I,"customInspect")||I.customInspect;if("boolean"!=typeof N&&"symbol"!==N)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(I,"indent")&&null!==I.indent&&" "!==I.indent&&!(parseInt(I.indent,10)===I.indent&&I.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(I,"numericSeparator")&&"boolean"!=typeof I.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var G=I.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength;return e(v.call(t,0,r.maxStringLength),r)+("... "+n)+" more character"+(n>1?"s":"")}var a=B[r.quoteStyle||"single"];return a.lastIndex=0,j(b.call(b.call(t,a,"\\$1"),/[\x00-\x1f]/g,Y),"single",r)}(t,I);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return G?R(t,et):et}if("bigint"==typeof t){var er=String(t)+"n";return G?R(t,er):er}var en=void 0===I.depth?5:I.depth;if(void 0===a&&(a=0),a>=en&&en>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var ea=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=M.call(Array(e.indent+1)," ")}return{base:r,prev:M.call(Array(t+1),r)}}(I,a);if(void 0===s)s=[];else if(K(s,t)>=0)return"[Circular]";function ei(t,r,n){if(r&&(s=S.call(s)).push(r),n){var i={depth:I.depth};return q(I,"quoteStyle")&&(i.quoteStyle=I.quoteStyle),e(t,i,a+1,s)}return e(t,I,a+1,s)}if("function"==typeof t&&!z(t)){var eo=function(e){if(e.name)return e.name;var t=y.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),es=ee(t,ei);return"[Function"+(eo?": "+eo:" (anonymous)")+"]"+(es.length>0?" { "+M.call(es,", ")+" }":"")}if(H(t)){var el=_?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(t);return"object"!=typeof t||_?el:Z(el)}if((eu=t)&&"object"==typeof eu&&("u">typeof HTMLElement&&eu instanceof HTMLElement||"string"==typeof eu.nodeName&&"function"==typeof eu.getAttribute)){for(var eu,ed,ec="<"+x.call(String(t.nodeName)),eh=t.attributes||[],ep=0;ep<eh.length;ep++){ec+=" "+eh[ep].name+"="+j((ed=eh[ep].value,b.call(String(ed),/"/g,"&quot;")),"double",I)}return ec+=">",t.childNodes&&t.childNodes.length&&(ec+="..."),ec+="</"+x.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var em=ee(t,ei);return ea&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(em)?"["+Q(em,ea)+"]":"[ "+M.call(em,", ")+" ]"}if("[object Error]"===$(l=t)&&W(l)){var ef=ee(t,ei);return"cause"in Error.prototype||!("cause"in t)||O.call(t,"cause")?0===ef.length?"["+String(t)+"]":"{ ["+String(t)+"] "+M.call(ef,", ")+" }":"{ ["+String(t)+"] "+M.call(k.call("[cause]: "+ei(t.cause),ef),", ")+" }"}if("object"==typeof t&&N){if(V&&"function"==typeof t[V]&&L)return L(t,{depth:en-a});else if("symbol"!==N&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var eg=[];return o&&o.call(t,function(e,r){eg.push(ei(r,t,!0)+" => "+ei(e,t))}),J("Map",i.call(t),eg,ea)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ey=[];return d&&d.call(t,function(e){ey.push(ei(e,t))}),J("Set",u.call(t),ey,ea)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e,c);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return X("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{c.call(e,c)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if("[object Number]"===$(f=t)&&W(f))return Z(ei(Number(t)));if(function(e){if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}(t))return Z(ei(T.call(t)));if("[object Boolean]"===$(w=t)&&W(w))return Z(m.call(t));if("[object String]"===$(C=t)&&W(C))return Z(ei(String(t)));if("u">typeof window&&t===window)return"{ [object Window] }";if("u">typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===$(E=t)&&W(E))&&!z(t)){var ev=ee(t,ei),eb=A?A(t)===Object.prototype:t instanceof Object||t.constructor===Object,ew=t instanceof Object?"":"null prototype",ex=!eb&&D&&Object(t)===t&&D in t?v.call($(t),8,-1):ew?"Object":"",eC=(eb||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ex||ew?"["+M.call(k.call([],ex||[],ew||[]),": ")+"] ":"");return 0===ev.length?eC+"{}":ea?eC+"{"+Q(ev,ea)+"}":eC+"{ "+M.call(ev,", ")+" }"}return String(t)};var G=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return G.call(e,t)}function $(e){return f.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}function Y(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function J(e,t,r,n){return e+" ("+t+") {"+(n?Q(r,n):M.call(r,", "))+"}"}function Q(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+M.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,n=U(e),a=[];if(n){a.length=e.length;for(var i=0;i<e.length;i++)a[i]=q(e,i)?t(e[i],e):""}var o="function"==typeof I?I(e):[];if(_){r={};for(var s=0;s<o.length;s++)r["$"+o[s]]=o[s]}for(var l in e)if(q(e,l)&&(!n||String(Number(l))!==l||!(l<e.length)))if(_&&r["$"+l]instanceof Symbol)continue;else C.call(/[^\w$]/,l)?a.push(t(l,e)+": "+t(e[l],e)):a.push(l+": "+t(e[l],e));if("function"==typeof I)for(var u=0;u<o.length;u++)O.call(e,o[u])&&a.push("["+t(o[u])+"]: "+t(e[o[u]],e));return a}},1385(e,t,r){"use strict";var n;if(!Object.keys){var a=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=r(6199),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call(function(){},"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("u"<typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&a.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{c(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),m=function(e){if("u"<typeof window||!p)return c(e);try{return c(e)}catch(e){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===i.call(e),n=o(e),s=t&&"[object String]"===i.call(e),c=[];if(!t&&!r&&!n)throw TypeError("Object.keys called on a non-object");var h=u&&r;if(s&&e.length>0&&!a.call(e,0))for(var p=0;p<e.length;++p)c.push(String(p));if(n&&e.length>0)for(var f=0;f<e.length;++f)c.push(String(f));else for(var g in e)!(h&&"prototype"===g)&&a.call(e,g)&&c.push(String(g));if(l)for(var y=m(e),v=0;v<d.length;++v)!(y&&"constructor"===d[v])&&a.call(e,d[v])&&c.push(d[v]);return c}}e.exports=n},3735(e,t,r){"use strict";var n=Array.prototype.slice,a=r(6199),i=Object.keys,o=i?function(e){return i(e)}:r(1385),s=Object.keys;o.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return a(e)?s(n.call(e)):s(e)}):Object.keys=o,Object.keys||o},e.exports=o},6199(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},5544(e,t,r){"use strict";var n=r(6542),a=r(8682)("Object.prototype.propertyIsEnumerable");e.exports=function(e){var t=n(e),r=[];for(var i in t)a(t,i)&&(r[r.length]=t[i]);return r}},8996(e,t,r){"use strict";var n=r(5806),a=r(9096),i=r(5544),o=r(525),s=r(2715),l=a(o(),Object);n(l,{getPolyfill:o,implementation:i,shim:s}),e.exports=l},9096(e,t,r){"use strict";var n=r(8187),a=r(9997),i=r(7196),o=r(4983);e.exports=function(e){var t=i(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},a?a(e.exports,"apply",{value:o}):e.exports.apply=o},525(e,t,r){"use strict";var n=r(5544);e.exports=function(){return"function"==typeof Object.values?Object.values:n}},2715(e,t,r){"use strict";var n=r(525),a=r(5806);e.exports=function(){var e=n();return a(Object,{values:e},{values:function(){return Object.values!==e}}),e}},856(e,t,r){"use strict";var n=r(7183);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,i,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return r.PropTypes=r,r}},7598(e,t,r){e.exports=r(856)()},7183(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5539(e){"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},8183(e,t,r){"use strict";var n=r(6334),a=r(4816);e.exports={formats:r(5539),parse:a,stringify:n}},4816(e,t,r){"use strict";var n=r(1954),a=Object.prototype.hasOwnProperty,i=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},l=function(e,t){var r={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,d=l.split(t.delimiter,t.throwOnLimitExceeded?u+1:u);if(t.throwOnLimitExceeded&&d.length>u)throw RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var c=-1,h=t.charset;if(t.charsetSentinel)for(p=0;p<d.length;++p)0===d[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[p]?h="utf-8":"utf8=%26%2310003%3B"===d[p]&&(h="iso-8859-1"),c=p,p=d.length);for(p=0;p<d.length;++p)if(p!==c){var p,m,f,g=d[p],y=g.indexOf("]="),v=-1===y?g.indexOf("="):y+1;if(-1===v?(m=t.decoder(g,o.decoder,h,"key"),f=t.strictNullHandling?null:""):null!==(m=t.decoder(g.slice(0,v),o.decoder,h,"key"))&&(f=n.maybeMap(s(g.slice(v+1),t,i(r[m])?r[m].length:0),function(e){return t.decoder(e,o.decoder,h,"value")})),f&&t.interpretNumericEntities&&"iso-8859-1"===h&&(f=String(f).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),g.indexOf("[]=")>-1&&(f=i(f)?[f]:f),null!==m){var b=a.call(r,m);b&&"combine"===t.duplicates?r[m]=n.combine(r[m],f,t.arrayLimit,t.plainObjects):b&&"last"!==t.duplicates||(r[m]=f)}}return r},u=function(e,t,r,a){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var o=e.slice(0,-1).join("");i=Array.isArray(t)&&t[o]?t[o].length:0}for(var l=a?t:s(t,r,i),u=e.length-1;u>=0;--u){var d,c=e[u];if("[]"===c&&r.parseArrays)d=n.isOverflow(l)?l:r.allowEmptyArrays&&(""===l||r.strictNullHandling&&null===l)?[]:n.combine([],l,r.arrayLimit,r.plainObjects);else{d=r.plainObjects?{__proto__:null}:{};var h="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,p=r.decodeDotInKeys?h.replace(/%2E/g,"."):h,m=parseInt(p,10);r.parseArrays||""!==p?!isNaN(m)&&c!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(d=[])[m]=l:"__proto__"!==p&&(d[p]=l):d={0:l}}l=d}return l},d=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&a.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var n=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(r),o=i?r.slice(0,i.index):r,s=[];if(o){if(!t.plainObjects&&a.call(Object.prototype,o)&&!t.allowPrototypes)return;s.push(o)}for(var l=0;null!==(i=n.exec(r))&&l<t.depth;){l+=1;var u=i[1].slice(1,-1);if(!t.plainObjects&&a.call(Object.prototype,u)&&!t.allowPrototypes)return;s.push(i[1])}if(i){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");s.push("["+r.slice(i.index)+"]")}return s},c=function(e,t,r,n){if(e){var a=d(e,r);if(a)return u(a,t,r,n)}},h=function(e){if(!e)return o;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?o.charset:e.charset,r=void 0===e.duplicates?o.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||o.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:o.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:o.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var r=h(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var a="string"==typeof e?l(e,r):e,i=r.plainObjects?{__proto__:null}:{},o=Object.keys(a),s=0;s<o.length;++s){var u=o[s],d=c(u,a[u],r,"string"==typeof e);i=n.merge(i,d,r)}return!0===r.allowSparse?i:n.compact(i)}},6334(e,t,r){"use strict";var n=r(6278),a=r(1954),i=r(5539),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,d=function(e,t){u.apply(e,l(t)?t:[t])},c=Date.prototype.toISOString,h=i.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:a.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},m={},f=function e(t,r,i,o,s,u,c,h,f,g,y,v,b,w,x,C,k,M){for(var S,E,T=t,I=M,P=0,_=!1;void 0!==(I=I.get(m))&&!_;){var D=I.get(t);if(P+=1,void 0!==D)if(D===P)throw RangeError("Cyclic object value");else _=!0;void 0===I.get(m)&&(P=0)}if("function"==typeof g?T=g(r,T):T instanceof Date?T=b(T):"comma"===i&&l(T)&&(T=a.maybeMap(T,function(e){return e instanceof Date?b(e):e})),null===T){if(u)return f&&!C?f(r,p.encoder,k,"key",w):r;T=""}if("string"==typeof(S=T)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||a.isBuffer(T))return f?[x(C?r:f(r,p.encoder,k,"key",w))+"="+x(f(T,p.encoder,k,"value",w))]:[x(r)+"="+x(String(T))];var O=[];if(void 0===T)return O;if("comma"===i&&l(T))C&&f&&(T=a.maybeMap(T,f)),E=[{value:T.length>0?T.join(",")||null:void 0}];else if(l(g))E=g;else{var A=Object.keys(T);E=y?A.sort(y):A}var R=h?String(r).replace(/\./g,"%2E"):String(r),L=o&&l(T)&&1===T.length?R+"[]":R;if(s&&l(T)&&0===T.length)return L+"[]";for(var N=0;N<E.length;++N){var V=E[N],F="object"==typeof V&&V&&void 0!==V.value?V.value:T[V];if(!c||null!==F){var B=v&&h?String(V).replace(/\./g,"%2E"):String(V),j=l(T)?"function"==typeof i?i(L,B):L:L+(v?"."+B:"["+B+"]");M.set(t,P);var W=n();W.set(m,M),d(O,e(F,j,i,o,s,u,c,h,"comma"===i&&C&&l(T)?null:f,g,y,v,b,w,x,C,k,W))}}return O},g=function(e){if(!e)return p;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var a=i.formatters[n],u=p.filter;if(("function"==typeof e.filter||l(e.filter))&&(u=e.filter),t=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var d=void 0===e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:d,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:u,format:n,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}};e.exports=function(e,t){var r,a=e,i=g(t);"function"==typeof i.filter?a=(0,i.filter)("",a):l(i.filter)&&(r=i.filter);var o=[];if("object"!=typeof a||null===a)return"";var u=s[i.arrayFormat],c="comma"===u&&i.commaRoundTrip;r||(r=Object.keys(a)),i.sort&&r.sort(i.sort);for(var h=n(),p=0;p<r.length;++p){var m=r[p],y=a[m];i.skipNulls&&null===y||d(o,f(y,m,u,c,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,h))}var v=o.join(i.delimiter),b=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),v.length>0?b+v:""}},1954(e,t,r){"use strict";var n=r(5539),a=r(6278),i=Object.prototype.hasOwnProperty,o=Array.isArray,s=a(),l=function(e,t){return s.set(e,t),e},u=function(e){return s.has(e)},d=function(e){return s.get(e)},c=function(e,t){s.set(e,t)},h=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),p=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],a=0;a<r.length;++a)void 0!==r[a]&&n.push(r[a]);t.obj[t.prop]=n}}},m=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:m,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t,r,n){if(u(e)){var a=d(e)+1;return e[a]=t,c(e,a),e}var i=[].concat(e,t);return i.length>r?l(m(i,{plainObjects:n}),i.length-1):i},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var a=t[n],i=a.obj[a.prop],o=Object.keys(i),s=0;s<o.length;++s){var l=o[s],u=i[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:l}),r.push(u))}return p(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,a,i){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var s="",l=0;l<o.length;l+=1024){for(var u=o.length>=1024?o.slice(l,l+1024):o,d=[],c=0;c<u.length;++c){var p=u.charCodeAt(c);if(45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===n.RFC1738&&(40===p||41===p)){d[d.length]=u.charAt(c);continue}if(p<128){d[d.length]=h[p];continue}if(p<2048){d[d.length]=h[192|p>>6]+h[128|63&p];continue}if(p<55296||p>=57344){d[d.length]=h[224|p>>12]+h[128|p>>6&63]+h[128|63&p];continue}c+=1,p=65536+((1023&p)<<10|1023&u.charCodeAt(c)),d[d.length]=h[240|p>>18]+h[128|p>>12&63]+h[128|p>>6&63]+h[128|63&p]}s+=d.join("")}return s},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:u,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(o(t))t.push(r);else if(!t||"object"!=typeof t)return[t,r];else if(u(t)){var a=d(t)+1;t[a]=r,c(t,a)}else(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0);return t}if(!t||"object"!=typeof t){if(u(r)){for(var s=Object.keys(r),h=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},p=0;p<s.length;p++)h[parseInt(s[p],10)+1]=r[s[p]];return l(h,d(r)+1)}return[t].concat(r)}var f=t;return(o(t)&&!o(r)&&(f=m(t,n)),o(t)&&o(r))?(r.forEach(function(r,a){if(i.call(t,a)){var o=t[a];o&&"object"==typeof o&&r&&"object"==typeof r?t[a]=e(o,r,n):t.push(r)}else t[a]=r}),t):Object.keys(r).reduce(function(t,a){var o=r[a];return i.call(t,a)?t[a]=e(t[a],o,n):t[a]=o,t},f)}}},8985(e,t,r){"use strict";let n=r(3182),a=r(5956),i=r(9646),o=r(9913);function s(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function u(e,t){return t.decode?a(e):e}function d(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function c(e){let t=(e=d(e)).indexOf("?");return -1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())&&(e="true"===e.toLowerCase()),e}function p(e,t){s((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);let r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t){n[e]=r;return}void 0===n[e]&&(n[e]={}),n[e][t[1]]=r};case"bracket":return(e,r,n)=>{if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case"comma":case"separator":return(t,r,n)=>{let a="string"==typeof r&&r.includes(e.arrayFormatSeparator),i="string"==typeof r&&!a&&u(r,e).includes(e.arrayFormatSeparator);r=i?u(r,e):r;let o=a||i?r.split(e.arrayFormatSeparator).map(t=>u(t,e)):null===r?r:u(r,e);n[t]=o};default:return(e,t,r)=>{if(void 0===r[e]){r[e]=t;return}r[e]=[].concat(r[e],t)}}}(t),n=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return n;for(let a of e.split("&")){if(""===a)continue;let[e,o]=i(t.decode?a.replace(/\+/g," "):a,"=");o=void 0===o?null:["comma","separator"].includes(t.arrayFormat)?o:u(o,t),r(u(e,t),o,n)}for(let e of Object.keys(n)){let r=n[e];if("object"==typeof r&&null!==r)for(let e of Object.keys(r))r[e]=h(r[e],t);else n[e]=h(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{let r=n[t];return r&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):e[t]=r,e},Object.create(null))}t.extract=c,t.parse=p,t.stringify=(e,t)=>{if(!e)return"";s((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);let r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let a=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[",a,"]"].join("")]:[...r,[l(t,e),"[",l(a,e),"]=",l(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[]"].join("")]:[...r,[l(t,e),"[]=",l(n,e)].join("")];case"comma":case"separator":return t=>(r,n)=>null==n||0===n.length?r:0===r.length?[[l(t,e),"=",l(n,e)].join("")]:[[r,l(n,e)].join(e.arrayFormatSeparator)];default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,l(t,e)]:[...r,[l(t,e),"=",l(n,e)].join("")]}}(t),a={};for(let t of Object.keys(e))r(t)||(a[t]=e[t]);let i=Object.keys(a);return!1!==t.sort&&i.sort(t.sort),i.map(r=>{let a=e[r];return void 0===a?"":null===a?l(r,t):Array.isArray(a)?a.reduce(n(r),[]).join("&"):l(r,t)+"="+l(a,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=i(e,"#");return Object.assign({url:r.split("?")[0]||"",query:p(c(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,t)}:{})},t.stringifyUrl=(e,r)=>{var n;let a,i;r=Object.assign({encode:!0,strict:!0},r);let o=d(e.url).split("?")[0]||"",s=t.extract(e.url),u=Object.assign(t.parse(s,{sort:!1}),e.query),c=t.stringify(u,r);c&&(c=`?${c}`);let h=(n=e.url,a="",-1!==(i=n.indexOf("#"))&&(a=n.slice(i)),a);return e.fragmentIdentifier&&(h=`#${l(e.fragmentIdentifier,r)}`),`${o}${c}${h}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0},n);let{url:a,query:i,fragmentIdentifier:s}=t.parseUrl(e,n);return t.stringifyUrl({url:a,query:o(i,r),fragmentIdentifier:s},n)},t.exclude=(e,r,n)=>{let a=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,a,n)}},4505(e,t){"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,c=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,f=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case d:case c:case i:case s:case o:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case g:case f:case l:return e;default:return t}}case a:return t}}}function C(e){return x(e)===c}t.AsyncMode=d,t.ConcurrentMode=c,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=i,t.Lazy=g,t.Memo=f,t.Portal=a,t.Profiler=s,t.StrictMode=o,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||x(e)===d},t.isConcurrentMode=C,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===f},t.isPortal=function(e){return x(e)===a},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===o},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===c||e===s||e===o||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},261(e,t,r){"use strict";e.exports=r(4505)},4796(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=d(r(4883)),i=d(r(7598)),o=r(6221),s=r(6515),l=d(r(8996)),u=d(r(5325));function d(e){return e&&e.__esModule?e:{default:e}}var c={BLOCK:"block",FLEX:"flex",INLINE:"inline",INLINE_BLOCK:"inline-block",CONTENTS:"contents"},h=(0,o.forbidExtraProps)({children:i.default.node.isRequired,onOutsideClick:i.default.func.isRequired,disabled:i.default.bool,useCapture:i.default.bool,display:i.default.oneOf((0,l.default)(c))}),p={disabled:!1,useCapture:!0,display:c.BLOCK},m=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var e,r=arguments.length,n=Array(r),a=0;a<r;a++)n[a]=arguments[a];var i=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(n)));return i.onMouseDown=i.onMouseDown.bind(i),i.onMouseUp=i.onMouseUp.bind(i),i.setChildNodeRef=i.setChildNodeRef.bind(i),i}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),n(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.disabled,r=e.useCapture;t||this.addMouseDownEventListener(r)}},{key:"componentDidUpdate",value:function(e){var t=e.disabled,r=this.props,n=r.disabled,a=r.useCapture;t!==n&&(n?this.removeEventListeners():this.addMouseDownEventListener(a))}},{key:"componentWillUnmount",value:function(){this.removeEventListeners()}},{key:"onMouseDown",value:function(e){var t=this.props.useCapture;this.childNode&&(0,u.default)(this.childNode,e.target)||(this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),this.removeMouseUp=(0,s.addEventListener)(document,"mouseup",this.onMouseUp,{capture:t}))}},{key:"onMouseUp",value:function(e){var t=this.props.onOutsideClick,r=this.childNode&&(0,u.default)(this.childNode,e.target);this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),r||t(e)}},{key:"setChildNodeRef",value:function(e){this.childNode=e}},{key:"addMouseDownEventListener",value:function(e){this.removeMouseDown=(0,s.addEventListener)(document,"mousedown",this.onMouseDown,{capture:e})}},{key:"removeEventListeners",value:function(){this.removeMouseDown&&this.removeMouseDown(),this.removeMouseUp&&this.removeMouseUp()}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.display;return a.default.createElement("div",{ref:this.setChildNodeRef,style:r!==c.BLOCK&&(0,l.default)(c).includes(r)?{display:r}:void 0},t)}}]),t}(a.default.Component);m.propTypes=h,m.defaultProps=p},3236(e,t,r){r(4796)},9094(e,t,r){"use strict";var n=r(4883),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,i={},u=null,d=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(d=t.ref),t)o.call(t,n)&&!l.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:a,type:e,key:u,ref:d,props:i,_owner:s.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},6870(e,t,r){"use strict";e.exports=r(9094)},6037(e,t,r){var n=r(9738),a=r(1327),i=r(1897),o=r(9329),s=r(5967),l=r(8415),u=r(7663);u.alea=n,u.xor128=a,u.xorwow=i,u.xorshift7=o,u.xor4096=s,u.tychei=l,e.exports=u},9738(e,t,r){!function(e,t){function r(e){var t,r=this,n=(t=0xefc8249d,function(e){e=String(e);for(var r=0;r<e.length;r++){var n=.02519603282416938*(t+=e.charCodeAt(r));t=n>>>0,n-=t,n*=t,t=n>>>0,n-=t,t+=0x100000000*n}return(t>>>0)*23283064365386963e-26});r.next=function(){var e=2091639*r.s0+23283064365386963e-26*r.c;return r.s0=r.s1,r.s1=r.s2,r.s2=e-(r.c=0|e)},r.c=1,r.s0=n(" "),r.s1=n(" "),r.s2=n(" "),r.s0-=n(e),r.s0<0&&(r.s0+=1),r.s1-=n(e),r.s1<0&&(r.s1+=1),r.s2-=n(e),r.s2<0&&(r.s2+=1)}function n(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function a(e,t){var a=new r(e),i=t&&t.state,o=a.next;return o.int32=function(){return 0x100000000*a.next()|0},o.double=function(){return o()+(2097152*o()|0)*11102230246251565e-32},o.quick=o,i&&("object"==typeof i&&n(i,a),o.state=function(){return n(a,{})}),o}e&&e.exports?e.exports=a:t&&t.amd?t(function(){return a}):this.alea=a}(e=r.nmd(e),"function"==typeof define&&define)},8415(e,t,r){!function(e,t){function r(e){var t=this,r="";t.next=function(){var e=t.b,r=t.c,n=t.d,a=t.a;return e=e<<25^e>>>7^r,r=r-n|0,n=n<<24^n>>>8^a,a=a-e|0,t.b=e=e<<20^e>>>12^r,t.c=r=r-n|0,t.d=n<<16^r>>>16^a,t.a=a-e|0},t.a=0,t.b=0,t.c=-0x61c88647,t.d=0x517cc1b7,e===Math.floor(e)?(t.a=e/0x100000000|0,t.b=0|e):r+=e;for(var n=0;n<r.length+20;n++)t.b^=r.charCodeAt(n),t.next()}function n(e,t){return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t}function a(e,t){var a=new r(e),i=t&&t.state,o=function(){return(a.next()>>>0)/0x100000000};return o.double=function(){do var e=((a.next()>>>11)+(a.next()>>>0)/0x100000000)/2097152;while(0===e);return e},o.int32=a.next,o.quick=o,i&&("object"==typeof i&&n(i,a),o.state=function(){return n(a,{})}),o}e&&e.exports?e.exports=a:t&&t.amd?t(function(){return a}):this.tychei=a}(e=r.nmd(e),"function"==typeof define&&define)},1327(e,t,r){!function(e,t){function r(e){var t=this,r="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:r+=e;for(var n=0;n<r.length+64;n++)t.x^=r.charCodeAt(n),t.next()}function n(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t}function a(e,t){var a=new r(e),i=t&&t.state,o=function(){return(a.next()>>>0)/0x100000000};return o.double=function(){do var e=((a.next()>>>11)+(a.next()>>>0)/0x100000000)/2097152;while(0===e);return e},o.int32=a.next,o.quick=o,i&&("object"==typeof i&&n(i,a),o.state=function(){return n(a,{})}),o}e&&e.exports?e.exports=a:t&&t.amd?t(function(){return a}):this.xor128=a}(e=r.nmd(e),"function"==typeof define&&define)},5967(e,t,r){!function(e,t){function r(e){var t=this;t.next=function(){var e,r,n=t.w,a=t.X,i=t.i;return t.w=n=n+0x61c88647|0,r=a[i+34&127],e=a[i=i+1&127],r^=r<<13,e^=e<<17,r^=r>>>15,e^=e>>>12,r=a[i]=r^e,t.i=i,r+(n^n>>>16)|0},!function(e,t){var r,n,a,i,o,s=[],l=128;for(t===(0|t)?(n=t,t=null):(t+="\0",n=0,l=Math.max(l,t.length)),a=0,i=-32;i<l;++i)t&&(n^=t.charCodeAt((i+32)%t.length)),0===i&&(o=n),n^=n<<10,n^=n>>>15,n^=n<<4,n^=n>>>13,i>=0&&(o=o+0x61c88647|0,a=0==(r=s[127&i]^=n+o)?a+1:0);for(a>=128&&(s[127&(t&&t.length||0)]=-1),a=127,i=512;i>0;--i)n=s[a+34&127],r=s[a=a+1&127],n^=n<<13,r^=r<<17,n^=n>>>15,r^=r>>>12,s[a]=n^r;e.w=o,e.X=s,e.i=a}(t,e)}function n(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function a(e,t){null==e&&(e=+new Date);var a=new r(e),i=t&&t.state,o=function(){return(a.next()>>>0)/0x100000000};return o.double=function(){do var e=((a.next()>>>11)+(a.next()>>>0)/0x100000000)/2097152;while(0===e);return e},o.int32=a.next,o.quick=o,i&&(i.X&&n(i,a),o.state=function(){return n(a,{})}),o}e&&e.exports?e.exports=a:t&&t.amd?t(function(){return a}):this.xor4096=a}(e=r.nmd(e),"function"==typeof define&&define)},9329(e,t,r){!function(e,t){function r(e){var t=this;t.next=function(){var e,r,n=t.x,a=t.i;return e=n[a],e^=e>>>7,r=e^e<<24^((e=n[a+1&7])^e>>>10)^((e=n[a+3&7])^e>>>3)^((e=n[a+4&7])^e<<7),e=n[a+7&7],e^=e<<13,r^=e^e<<9,n[a]=r,t.i=a+1&7,r};var r,n=e,a=[];if(n===(0|n))a[0]=n;else for(r=0,n=""+n;r<n.length;++r)a[7&r]=a[7&r]<<15^n.charCodeAt(r)+a[r+1&7]<<13;for(;a.length<8;)a.push(0);for(r=0;r<8&&0===a[r];++r);for(8==r?a[7]=-1:a[r],t.x=a,t.i=0,r=256;r>0;--r)t.next()}function n(e,t){return t.x=e.x.slice(),t.i=e.i,t}function a(e,t){null==e&&(e=+new Date);var a=new r(e),i=t&&t.state,o=function(){return(a.next()>>>0)/0x100000000};return o.double=function(){do var e=((a.next()>>>11)+(a.next()>>>0)/0x100000000)/2097152;while(0===e);return e},o.int32=a.next,o.quick=o,i&&(i.x&&n(i,a),o.state=function(){return n(a,{})}),o}e&&e.exports?e.exports=a:t&&t.amd?t(function(){return a}):this.xorshift7=a}(e=r.nmd(e),"function"==typeof define&&define)},1897(e,t,r){!function(e,t){function r(e){var t=this,r="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^(e^e<<1))|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:r+=e;for(var n=0;n<r.length+64;n++)t.x^=r.charCodeAt(n),n==r.length&&(t.d=t.x<<10^t.x>>>4),t.next()}function n(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function a(e,t){var a=new r(e),i=t&&t.state,o=function(){return(a.next()>>>0)/0x100000000};return o.double=function(){do var e=((a.next()>>>11)+(a.next()>>>0)/0x100000000)/2097152;while(0===e);return e},o.int32=a.next,o.quick=o,i&&("object"==typeof i&&n(i,a),o.state=function(){return n(a,{})}),o}e&&e.exports?e.exports=a:t&&t.amd?t(function(){return a}):this.xorwow=a}(e=r.nmd(e),"function"==typeof define&&define)},7663(e,t,r){!function(t,n,a){var i,o="random",s=a.pow(256,6),l=a.pow(2,52),u=2*l;function d(e,r,d){var f=[],g=p(function e(t,r){var n,a=[],i=typeof t;if(r&&"object"==i)for(n in t)try{a.push(e(t[n],r-1))}catch(e){}return a.length?a:"string"==i?t:t+"\0"}((r=!0==r?{entropy:!0}:r||{}).entropy?[e,m(n)]:null==e?function(){try{var e;return i&&(e=i.randomBytes)?e=e(256):(e=new Uint8Array(256),(t.crypto||t.msCrypto).getRandomValues(e)),m(e)}catch(e){var r=t.navigator,a=r&&r.plugins;return[+new Date,t,a,t.screen,m(n)]}}():e,3),f),y=new c(f),v=function(){for(var e=y.g(6),t=s,r=0;e<l;)e=(e+r)*256,t*=256,r=y.g(1);for(;e>=u;)e/=2,t/=2,r>>>=1;return(e+r)/t};return v.int32=function(){return 0|y.g(4)},v.quick=function(){return y.g(4)/0x100000000},v.double=v,p(m(y.S),n),(r.pass||d||function(e,t,r,n){return(n&&(n.S&&h(n,y),e.state=function(){return h(y,{})}),r)?(a[o]=e,t):e})(v,g,"global"in r?r.global:this==a,r.state)}function c(e){var t,r=e.length,n=this,a=0,i=n.i=n.j=0,o=n.S=[];for(r||(e=[r++]);a<256;)o[a]=a++;for(a=0;a<256;a++)o[a]=o[i=255&i+e[a%r]+(t=o[a])],o[i]=t;(n.g=function(e){for(var t,r=0,a=n.i,i=n.j,o=n.S;e--;)t=o[a=255&a+1],r=256*r+o[255&(o[a]=o[i=255&i+t])+(o[i]=t)];return n.i=a,n.j=i,r})(256)}function h(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function p(e,t){for(var r,n=e+"",a=0;a<n.length;)t[255&a]=255&(r^=19*t[255&a])+n.charCodeAt(a++);return m(t)}function m(e){return String.fromCharCode.apply(0,e)}if(p(a.random(),n),e.exports){e.exports=d;try{i=r(1791)}catch(e){}}else"function"==typeof define&&define.amd?define(function(){return d}):a["seed"+o]=d}("u">typeof self?self:this,[],Math)},8187(e,t,r){"use strict";var n=r(4295),a=r(75),i=r(9118)(),o=r(1233),s=r(6757),l=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&o){var d=o(e,"length");d&&!d.configurable&&(n=!1),d&&!d.writable&&(u=!1)}return(n||u||!r)&&(i?a(e,"length",t,!0,!0):a(e,"length",t)),e}},6521(e,t,r){"use strict";var n=r(3109),a=r(6757),i=function(e,t,r){for(var n,a=e;null!=(n=a.next);a=n)if(n.key===t)return a.next=n.next,r||(n.next=e.next,e.next=n),n},o=function(e,t){if(e){var r=i(e,t);return r&&r.value}},s=function(e,t,r){var n=i(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},l=function(e,t){if(e)return i(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+n(e))},delete:function(t){var r=l(e,t);return r&&e&&!e.next&&(e=void 0),!!r},get:function(t){return o(e,t)},has:function(t){var r;return!!(r=e)&&!!i(r,t)},set:function(t,r){e||(e={next:void 0}),s(e,t,r)}};return t}},3977(e,t,r){"use strict";var n=r(4295),a=r(8682),i=r(3109),o=r(6757),s=n("%Map%",!0),l=a("Map.prototype.get",!0),u=a("Map.prototype.set",!0),d=a("Map.prototype.has",!0),c=a("Map.prototype.delete",!0),h=a("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+i(e))},delete:function(t){if(e){var r=c(e,t);return 0===h(e)&&(e=void 0),r}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&d(e,t)},set:function(t,r){e||(e=new s),u(e,t,r)}};return t}},8965(e,t,r){"use strict";var n=r(4295),a=r(8682),i=r(3109),o=r(3977),s=r(6757),l=n("%WeakMap%",!0),u=a("WeakMap.prototype.get",!0),d=a("WeakMap.prototype.set",!0),c=a("WeakMap.prototype.has",!0),h=a("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+i(e))},delete:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(e)return h(e,r)}else if(o&&t)return t.delete(r);return!1},get:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?u(e,r):t&&t.get(r)},has:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?c(e,r):!!t&&t.has(r)},set:function(r,n){l&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new l),d(e,r,n)):o&&(t||(t=o()),t.set(r,n))}};return r}:o},6278(e,t,r){"use strict";var n=r(6757),a=r(3109),i=r(6521),o=r(3977),s=r(8965)||o||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+a(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},989(e){e.exports=function(){"use strict";var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function t(e,t){var r=e[0],n=e[1],a=e[2],i=e[3];r+=(n&a|~n&i)+t[0]-0x28955b88|0,i+=((r=(r<<7|r>>>25)+n|0)&n|~r&a)+t[1]-0x173848aa|0,a+=((i=(i<<12|i>>>20)+r|0)&r|~i&n)+t[2]+0x242070db|0,n+=((a=(a<<17|a>>>15)+i|0)&i|~a&r)+t[3]-0x3e423112|0,r+=((n=(n<<22|n>>>10)+a|0)&a|~n&i)+t[4]-0xa83f051|0,i+=((r=(r<<7|r>>>25)+n|0)&n|~r&a)+t[5]+0x4787c62a|0,a+=((i=(i<<12|i>>>20)+r|0)&r|~i&n)+t[6]-0x57cfb9ed|0,n+=((a=(a<<17|a>>>15)+i|0)&i|~a&r)+t[7]-0x2b96aff|0,r+=((n=(n<<22|n>>>10)+a|0)&a|~n&i)+t[8]+0x698098d8|0,i+=((r=(r<<7|r>>>25)+n|0)&n|~r&a)+t[9]-0x74bb0851|0,a+=((i=(i<<12|i>>>20)+r|0)&r|~i&n)+t[10]-42063|0,n+=((a=(a<<17|a>>>15)+i|0)&i|~a&r)+t[11]-0x76a32842|0,r+=((n=(n<<22|n>>>10)+a|0)&a|~n&i)+t[12]+0x6b901122|0,i+=((r=(r<<7|r>>>25)+n|0)&n|~r&a)+t[13]-0x2678e6d|0,a+=((i=(i<<12|i>>>20)+r|0)&r|~i&n)+t[14]-0x5986bc72|0,n+=((a=(a<<17|a>>>15)+i|0)&i|~a&r)+t[15]+0x49b40821|0,r+=((n=(n<<22|n>>>10)+a|0)&i|a&~i)+t[1]-0x9e1da9e|0,i+=((r=(r<<5|r>>>27)+n|0)&a|n&~a)+t[6]-0x3fbf4cc0|0,a+=((i=(i<<9|i>>>23)+r|0)&n|r&~n)+t[11]+0x265e5a51|0,n+=((a=(a<<14|a>>>18)+i|0)&r|i&~r)+t[0]-0x16493856|0,r+=((n=(n<<20|n>>>12)+a|0)&i|a&~i)+t[5]-0x29d0efa3|0,i+=((r=(r<<5|r>>>27)+n|0)&a|n&~a)+t[10]+0x2441453|0,a+=((i=(i<<9|i>>>23)+r|0)&n|r&~n)+t[15]-0x275e197f|0,n+=((a=(a<<14|a>>>18)+i|0)&r|i&~r)+t[4]-0x182c0438|0,r+=((n=(n<<20|n>>>12)+a|0)&i|a&~i)+t[9]+0x21e1cde6|0,i+=((r=(r<<5|r>>>27)+n|0)&a|n&~a)+t[14]-0x3cc8f82a|0,a+=((i=(i<<9|i>>>23)+r|0)&n|r&~n)+t[3]-0xb2af279|0,n+=((a=(a<<14|a>>>18)+i|0)&r|i&~r)+t[8]+0x455a14ed|0,r+=((n=(n<<20|n>>>12)+a|0)&i|a&~i)+t[13]-0x561c16fb|0,i+=((r=(r<<5|r>>>27)+n|0)&a|n&~a)+t[2]-0x3105c08|0,a+=((i=(i<<9|i>>>23)+r|0)&n|r&~n)+t[7]+0x676f02d9|0,n+=((a=(a<<14|a>>>18)+i|0)&r|i&~r)+t[12]-0x72d5b376|0,r+=((n=(n<<20|n>>>12)+a|0)^a^i)+t[5]-378558|0,i+=((r=(r<<4|r>>>28)+n|0)^n^a)+t[8]-0x788e097f|0,a+=((i=(i<<11|i>>>21)+r|0)^r^n)+t[11]+0x6d9d6122|0,n+=((a=(a<<16|a>>>16)+i|0)^i^r)+t[14]-0x21ac7f4|0,r+=((n=(n<<23|n>>>9)+a|0)^a^i)+t[1]-0x5b4115bc|0,i+=((r=(r<<4|r>>>28)+n|0)^n^a)+t[4]+0x4bdecfa9|0,a+=((i=(i<<11|i>>>21)+r|0)^r^n)+t[7]-0x944b4a0|0,n+=((a=(a<<16|a>>>16)+i|0)^i^r)+t[10]-0x41404390|0,r+=((n=(n<<23|n>>>9)+a|0)^a^i)+t[13]+0x289b7ec6|0,i+=((r=(r<<4|r>>>28)+n|0)^n^a)+t[0]-0x155ed806|0,a+=((i=(i<<11|i>>>21)+r|0)^r^n)+t[3]-0x2b10cf7b|0,n+=((a=(a<<16|a>>>16)+i|0)^i^r)+t[6]+0x4881d05|0,r+=((n=(n<<23|n>>>9)+a|0)^a^i)+t[9]-0x262b2fc7|0,i+=((r=(r<<4|r>>>28)+n|0)^n^a)+t[12]-0x1924661b|0,a+=((i=(i<<11|i>>>21)+r|0)^r^n)+t[15]+0x1fa27cf8|0,n+=((a=(a<<16|a>>>16)+i|0)^i^r)+t[2]-0x3b53a99b|0,n=(n<<23|n>>>9)+a|0,r+=(a^(n|~i))+t[0]-0xbd6ddbc|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~a))+t[7]+0x432aff97|0,i=(i<<10|i>>>22)+r|0,a+=(r^(i|~n))+t[14]-0x546bdc59|0,a=(a<<15|a>>>17)+i|0,n+=(i^(a|~r))+t[5]-0x36c5fc7|0,n=(n<<21|n>>>11)+a|0,r+=(a^(n|~i))+t[12]+0x655b59c3|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~a))+t[3]-0x70f3336e|0,i=(i<<10|i>>>22)+r|0,a+=(r^(i|~n))+t[10]-1051523|0,a=(a<<15|a>>>17)+i|0,n+=(i^(a|~r))+t[1]-0x7a7ba22f|0,n=(n<<21|n>>>11)+a|0,r+=(a^(n|~i))+t[8]+0x6fa87e4f|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~a))+t[15]-0x1d31920|0,i=(i<<10|i>>>22)+r|0,a+=(r^(i|~n))+t[6]-0x5cfebcec|0,a=(a<<15|a>>>17)+i|0,n+=(i^(a|~r))+t[13]+0x4e0811a1|0,n=(n<<21|n>>>11)+a|0,r+=(a^(n|~i))+t[4]-0x8ac817e|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~a))+t[11]-0x42c50dcb|0,i=(i<<10|i>>>22)+r|0,a+=(r^(i|~n))+t[2]+0x2ad7d2bb|0,a=(a<<15|a>>>17)+i|0,n+=(i^(a|~r))+t[9]-0x14792c6f|0,n=(n<<21|n>>>11)+a|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=a+e[2]|0,e[3]=i+e[3]|0}function r(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function a(e){var n,a,i,o,s,l,u=e.length,d=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(n=64;n<=u;n+=64)t(d,r(e.substring(n-64,n)));for(a=(e=e.substring(n-64)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0;n<a;n+=1)i[n>>2]|=e.charCodeAt(n)<<(n%4<<3);if(i[n>>2]|=128<<(n%4<<3),n>55)for(t(d,i),n=0;n<16;n+=1)i[n]=0;return s=parseInt((o=(o=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(o[1],16)||0,i[14]=s,i[15]=l,t(d,i),d}function i(t){var r;for(r=0;r<t.length;r+=1)t[r]=function(t){var r,n="";for(r=0;r<4;r+=1)n+=e[t>>8*r+4&15]+e[t>>8*r&15];return n}(t[r]);return t.join("")}function o(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function s(e){var t,r=[],n=e.length;for(t=0;t<n-1;t+=2)r.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,r)}function l(){this.reset()}return i(a("hello")),"u">typeof ArrayBuffer&&!ArrayBuffer.prototype.slice&&function(){function e(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(t,r){var n,a,i,o,s=this.byteLength,l=e(t,s),u=s;return(void 0!==r&&(u=e(r,s)),l>u)?new ArrayBuffer(0):(i=new Uint8Array(a=new ArrayBuffer(n=u-l)),o=new Uint8Array(this,l,n),i.set(o),a)}}(),l.prototype.append=function(e){return this.appendBinary(o(e)),this},l.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var n,a=this._buff.length;for(n=64;n<=a;n+=64)t(this._hash,r(this._buff.substring(n-64,n)));return this._buff=this._buff.substring(n-64),this},l.prototype.end=function(e){var t,r,n=this._buff,a=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<a;t+=1)o[t>>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(o,a),r=i(this._hash),e&&(r=s(r)),this.reset(),r},l.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},l.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},l.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},l.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},l.prototype._finish=function(e,r){var n,a,i,o=r;if(e[o>>2]|=128<<(o%4<<3),o>55)for(t(this._hash,e),o=0;o<16;o+=1)e[o]=0;a=parseInt((n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),i=parseInt(n[1],16)||0,e[14]=a,e[15]=i,t(this._hash,e)},l.hash=function(e,t){return l.hashBinary(o(e),t)},l.hashBinary=function(e,t){var r=i(a(e));return t?s(r):r},l.ArrayBuffer=function(){this.reset()},l.ArrayBuffer.prototype.append=function(e){var r,a,i,o=(r=this._buff.buffer,(a=new Uint8Array(r.byteLength+e.byteLength)).set(new Uint8Array(r)),a.set(new Uint8Array(e),r.byteLength),a),s=o.length;for(this._length+=e.byteLength,i=64;i<=s;i+=64)t(this._hash,n(o.subarray(i-64,i)));return this._buff=new Uint8Array(i-64<s?o.buffer.slice(i-64):0),this},l.ArrayBuffer.prototype.end=function(e){var t,r,n=this._buff,a=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<a;t+=1)o[t>>2]|=n[t]<<(t%4<<3);return this._finish(o,a),r=i(this._hash),e&&(r=s(r)),this.reset(),r},l.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},l.ArrayBuffer.prototype.getState=function(){var e,t=l.prototype.getState.call(this);return e=t.buff,t.buff=String.fromCharCode.apply(null,new Uint8Array(e)),t},l.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,a=new ArrayBuffer(n),i=new Uint8Array(a);for(r=0;r<n;r+=1)i[r]=e.charCodeAt(r);return t?i:a}(e.buff,!0),l.prototype.setState.call(this,e)},l.ArrayBuffer.prototype.destroy=l.prototype.destroy,l.ArrayBuffer.prototype._finish=l.prototype._finish,l.ArrayBuffer.hash=function(e,r){var a=i(function(e){var r,a,i,o,s,l,u=e.length,d=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(r=64;r<=u;r+=64)t(d,n(e.subarray(r-64,r)));for(a=(e=r-64<u?e.subarray(r-64):new Uint8Array(0)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=0;r<a;r+=1)i[r>>2]|=e[r]<<(r%4<<3);if(i[r>>2]|=128<<(r%4<<3),r>55)for(t(d,i),r=0;r<16;r+=1)i[r]=0;return s=parseInt((o=(o=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(o[1],16)||0,i[14]=s,i[15]=l,t(d,i),d}(new Uint8Array(e)));return r?s(a):a},l}()},9646(e){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];let r=e.indexOf(t);return -1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},3182(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},4936(e,t,r){e=r.nmd(e),function(n){var a=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o="object"==typeof r.g&&r.g;(o.global===o||o.window===o||o.self===o)&&(n=o);var s,l,u=/^xn--/,d=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,m=String.fromCharCode;function f(e){throw RangeError(h[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function y(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(c,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],a=0,i=e.length;a<i;)(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<i?(64512&(r=e.charCodeAt(a++)))==56320?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),a--):n.push(t);return n}function b(e){return g(e,function(e){var t="";return e>65535&&(e-=65536,t+=m(e>>>10&1023|55296),e=56320|1023&e),t+=m(e)}).join("")}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,r){var n=0;for(e=r?p(e/700):e>>1,e+=p(e/t);e>455;n+=36)e=p(e/35);return p(n+36*e/(e+38))}function C(e){var t,r,n,a,i,o,s,l,u,d,c,h=[],m=e.length,g=0,y=128,v=72;for((n=e.lastIndexOf("-"))<0&&(n=0),a=0;a<n;++a)e.charCodeAt(a)>=128&&f("not-basic"),h.push(e.charCodeAt(a));for(i=n>0?n+1:0;i<m;){for(o=g,s=1,l=36;i>=m&&f("invalid-input"),((u=(t=e.charCodeAt(i++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36)>=36||u>p((0x7fffffff-g)/s))&&f("overflow"),g+=u*s,!(u<(d=l<=v?1:l>=v+26?26:l-v));l+=36){;s>p(0x7fffffff/(c=36-d))&&f("overflow"),s*=c}v=x(g-o,r=h.length+1,0==o),p(g/r)>0x7fffffff-y&&f("overflow"),y+=p(g/r),g%=r,h.splice(g++,0,y)}return b(h)}function k(e){var t,r,n,a,i,o,s,l,u,d,c,h,g,y,b,C=[];for(h=(e=v(e)).length,t=128,r=0,i=72,o=0;o<h;++o)(c=e[o])<128&&C.push(m(c));for(n=a=C.length,a&&C.push("-");n<h;){for(s=0x7fffffff,o=0;o<h;++o)(c=e[o])>=t&&c<s&&(s=c);for(s-t>p((0x7fffffff-r)/(g=n+1))&&f("overflow"),r+=(s-t)*g,t=s,o=0;o<h;++o)if((c=e[o])<t&&++r>0x7fffffff&&f("overflow"),c==t){for(l=r,u=36;!(l<(d=u<=i?1:u>=i+26?26:u-i));u+=36)b=l-d,y=36-d,C.push(m(w(d+b%y,0))),l=p(b/y);C.push(m(w(l,0))),i=x(r,g,n==a),r=0,++n}++r,++t}return C.join("")}if(s={version:"1.4.1",ucs2:{decode:v,encode:b},decode:C,encode:k,toASCII:function(e){return y(e,function(e){return d.test(e)?"xn--"+k(e):e})},toUnicode:function(e){return y(e,function(e){return u.test(e)?C(e.slice(4).toLowerCase()):e})}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return s});else if(a&&i)if(e.exports==a)i.exports=s;else for(l in s)s.hasOwnProperty(l)&&(a[l]=s[l]);else n.punycode=s}(this)},2841(e,t,r){"use strict";var n=r(4936);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var i=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n"," "])),u=["%","/","?",";","#"].concat(l),d=["/","?","#"],c=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=r(8183);a.prototype.parse=function(e,t,r){if("string"!=typeof e)throw TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),o=-1!==a&&a<e.indexOf("#")?"?":"#",y=e.split(o);y[0]=y[0].replace(/\\/g,"/");var v=e=y.join(o);if(v=v.trim(),!r&&1===e.split("#").length){var b=s.exec(v);if(b)return this.path=v,this.href=v,this.pathname=b[1],b[2]?(this.search=b[2],t?this.query=g.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=i.exec(v);if(w){var x=(w=w[0]).toLowerCase();this.protocol=x,v=v.substr(w.length)}if(r||w||v.match(/^\/\/[^@/]+@[^@/]+/)){var C="//"===v.substr(0,2);C&&!(w&&m[w])&&(v=v.substr(2),this.slashes=!0)}if(!m[w]&&(C||w&&!f[w])){for(var k,M,S=-1,E=0;E<d.length;E++){var T=v.indexOf(d[E]);-1!==T&&(-1===S||T<S)&&(S=T)}-1!==(M=-1===S?v.lastIndexOf("@"):v.lastIndexOf("@",S))&&(k=v.slice(0,M),v=v.slice(M+1),this.auth=decodeURIComponent(k)),S=-1;for(var E=0;E<u.length;E++){var T=v.indexOf(u[E]);-1!==T&&(-1===S||T<S)&&(S=T)}-1===S&&(S=v.length),this.host=v.slice(0,S),v=v.slice(S),this.parseHost(),this.hostname=this.hostname||"";var I="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!I)for(var P=this.hostname.split(/\./),E=0,_=P.length;E<_;E++){var D=P[E];if(D&&!D.match(c)){for(var O="",A=0,R=D.length;A<R;A++)D.charCodeAt(A)>127?O+="x":O+=D[A];if(!O.match(c)){var L=P.slice(0,E),N=P.slice(E+1),V=D.match(h);V&&(L.push(V[1]),N.unshift(V[2])),N.length&&(v="/"+N.join(".")+v),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+F,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!p[x])for(var E=0,_=l.length;E<_;E++){var j=l[E];if(-1!==v.indexOf(j)){var W=encodeURIComponent(j);W===j&&(W=escape(j)),v=v.split(j).join(W)}}var U=v.indexOf("#");-1!==U&&(this.hash=v.substr(U),v=v.slice(0,U));var z=v.indexOf("?");if(-1!==z?(this.search=v.substr(z),this.query=v.substr(z+1),t&&(this.query=g.parse(this.query)),v=v.slice(0,z)):t&&(this.search="",this.query={}),v&&(this.pathname=v),f[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var F=this.pathname||"",H=this.search||"";this.path=F+H}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":")+"@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",a=!1,i="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(i=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var o=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||f[t])&&!1!==a?(a="//"+(a||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):a||(a=""),n&&"#"!==n.charAt(0)&&(n="#"+n),o&&"?"!==o.charAt(0)&&(o="?"+o),t+a+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(o=o.replace("#","%23"))+n},a.prototype.resolve=function(e){return this.resolveObject(function(e,t,r){if(e&&"object"==typeof e&&e instanceof a)return e;var n=new a;return n.parse(e,t,r),n}(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if("string"==typeof e){var t=new a;t.parse(e,!1,!0),e=t}for(var r=new a,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var u=s[l];"protocol"!==u&&(r[u]=e[u])}return f[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!f[e.protocol]){for(var d=Object.keys(e),c=0;c<d.length;c++){var h=d[c];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||m[e.protocol])r.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var g=r.pathname||"",y=r.search||"";r.path=g+y}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var v=r.pathname&&"/"===r.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=b||v||r.host&&e.pathname,x=w,C=r.pathname&&r.pathname.split("/")||[],p=e.pathname&&e.pathname.split("/")||[],k=r.protocol&&!f[r.protocol];if(k&&(r.hostname="",r.port=null,r.host&&(""===C[0]?C[0]=r.host:C.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===C[0])),b)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,C=p;else if(p.length)C||(C=[]),C.pop(),C=C.concat(p),r.search=e.search,r.query=e.query;else if(null!=e.search){if(k){r.host=C.shift(),r.hostname=r.host;var M=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");M&&(r.auth=M.shift(),r.hostname=M.shift(),r.host=r.hostname)}return r.search=e.search,r.query=e.query,(null!==r.pathname||null!==r.search)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!C.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var S=C.slice(-1)[0],E=(r.host||e.host||C.length>1)&&("."===S||".."===S)||""===S,T=0,I=C.length;I>=0;I--)"."===(S=C[I])?C.splice(I,1):".."===S?(C.splice(I,1),T++):T&&(C.splice(I,1),T--);if(!w&&!x)for(;T--;)C.unshift("..");w&&""!==C[0]&&(!C[0]||"/"!==C[0].charAt(0))&&C.unshift(""),E&&"/"!==C.join("/").substr(-1)&&C.push("");var P=""===C[0]||C[0]&&"/"===C[0].charAt(0);if(k){r.hostname=P?"":C.length?C.shift():"",r.host=r.hostname;var M=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");M&&(r.auth=M.shift(),r.hostname=M.shift(),r.host=r.hostname)}return(w=w||r.host&&C.length)&&!P&&C.unshift(""),C.length>0?r.pathname=C.join("/"):(r.pathname=null,r.path=null),(null!==r.pathname||null!==r.search)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},a.prototype.parseHost=function(){var e=this.host,t=o.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},6834(e,t,r){(function(e,t,r){"use strict";var n=function(e,t,r){r=a.extend({},a.options,r);var i=a.runValidations(e,t,r);if(i.some(function(e){return a.isPromise(e.error)}))throw Error("Use validate.async if you want support for promises");return n.processValidationResults(i,r)},a=n;a.extend=function(e){return[].slice.call(arguments,1).forEach(function(t){for(var r in t)e[r]=t[r]}),e},a.extend(n,{version:{major:0,minor:12,patch:0,metadata:null,toString:function(){var e=a.format("%{major}.%{minor}.%{patch}",a.version);return a.isEmpty(a.version.metadata)||(e+="+"+a.version.metadata),e}},Promise:"u">typeof Promise?Promise:null,EMPTY_STRING_REGEXP:/^\s*$/,runValidations:function(e,t,r){var n,i,o,s,l,u,d=[];for(n in(a.isDomElement(e)||a.isJqueryElement(e))&&(e=a.collectFormValues(e)),t)for(i in o=a.getDeepObjectValue(e,n),s=a.result(t[n],o,e,n,r,t)){if(!(l=a.validators[i]))throw Error(a.format("Unknown validator %{name}",{name:i}));u=s[i],(u=a.result(u,o,e,n,r,t))&&d.push({attribute:n,value:o,validator:i,globalOptions:r,attributes:e,options:u,error:l.call(l,o,u,n,e,r)})}return d},processValidationResults:function(e,t){e=a.pruneEmptyErrors(e,t),e=a.expandMultipleErrors(e,t),e=a.convertErrorMessages(e,t);var r=t.format||"grouped";if("function"==typeof a.formatters[r])e=a.formatters[r](e);else throw Error(a.format("Unknown format %{format}",t));return a.isEmpty(e)?void 0:e},async:function(e,t,r){var n=(r=a.extend({},a.async.options,r)).wrapErrors||function(e){return e};!1!==r.cleanAttributes&&(e=a.cleanAttributes(e,t));var i=a.runValidations(e,t,r);return new a.Promise(function(o,s){a.waitForResults(i).then(function(){var l=a.processValidationResults(i,r);l?s(new n(l,r,e,t)):o(e)},function(e){s(e)})})},single:function(e,t,r){return r=a.extend({},a.single.options,r,{format:"flat",fullMessages:!1}),a({single:e},{single:t},r)},waitForResults:function(e){return e.reduce(function(e,t){return a.isPromise(t.error)?e.then(function(){return t.error.then(function(e){t.error=e||null})}):e},new a.Promise(function(e){e()}))},result:function(e){var t=[].slice.call(arguments,1);return"function"==typeof e&&(e=e.apply(null,t)),e},isNumber:function(e){return"number"==typeof e&&!isNaN(e)},isFunction:function(e){return"function"==typeof e},isInteger:function(e){return a.isNumber(e)&&e%1==0},isBoolean:function(e){return"boolean"==typeof e},isObject:function(e){return e===Object(e)},isDate:function(e){return e instanceof Date},isDefined:function(e){return null!=e},isPromise:function(e){return!!e&&a.isFunction(e.then)},isJqueryElement:function(e){return e&&a.isString(e.jquery)},isDomElement:function(e){return!!e&&!!e.querySelectorAll&&!!e.querySelector&&(!!a.isObject(document)&&e===document||("object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName))},isEmpty:function(e){var t;if(!a.isDefined(e))return!0;if(a.isFunction(e))return!1;if(a.isString(e))return a.EMPTY_STRING_REGEXP.test(e);if(a.isArray(e))return 0===e.length;if(a.isDate(e))return!1;if(a.isObject(e)){for(t in e)return!1;return!0}return!1},format:a.extend(function(e,t){return a.isString(e)?e.replace(a.format.FORMAT_REGEXP,function(e,r,n){return"%"===r?"%{"+n+"}":String(t[n])}):e},{FORMAT_REGEXP:/(%?)%\{([^\}]+)\}/g}),prettify:function(e){if(a.isNumber(e))if(100*e%1==0)return""+e;else return parseFloat(Math.round(100*e)/100).toFixed(2);return a.isArray(e)?e.map(function(e){return a.prettify(e)}).join(", "):a.isObject(e)?e.toString():(e=""+e).replace(/([^\s])\.([^\s])/g,"$1 $2").replace(/\\+/g,"").replace(/[_-]/g," ").replace(/([a-z])([A-Z])/g,function(e,t,r){return""+t+" "+r.toLowerCase()}).toLowerCase()},stringifyValue:function(e,t){return(t&&t.prettify||a.prettify)(e)},isString:function(e){return"string"==typeof e},isArray:function(e){return"[object Array]"===({}).toString.call(e)},isHash:function(e){return a.isObject(e)&&!a.isArray(e)&&!a.isFunction(e)},contains:function(e,t){return!!a.isDefined(e)&&(a.isArray(e)?-1!==e.indexOf(t):t in e)},unique:function(e){return a.isArray(e)?e.filter(function(e,t,r){return r.indexOf(e)==t}):e},forEachKeyInKeypath:function(e,t,r){if(a.isString(t)){var n,i="",o=!1;for(n=0;n<t.length;++n)switch(t[n]){case".":o?(o=!1,i+="."):(e=r(e,i,!1),i="");break;case"\\":o?(o=!1,i+="\\"):o=!0;break;default:o=!1,i+=t[n]}return r(e,i,!0)}},getDeepObjectValue:function(e,t){if(a.isObject(e))return a.forEachKeyInKeypath(e,t,function(e,t){if(a.isObject(e))return e[t]})},collectFormValues:function(e,t){var r,n,i,o,s,l,u={};if(a.isJqueryElement(e)&&(e=e[0]),!e)return u;for(t=t||{},o=e.querySelectorAll("input[name], textarea[name]"),r=0;r<o.length;++r)i=o.item(r),a.isDefined(i.getAttribute("data-ignored"))||(name=i.name.replace(/\./g,"\\\\."),l=a.sanitizeFormValue(i.value,t),"number"===i.type?l=l?+l:null:"checkbox"===i.type?i.attributes.value?i.checked||(l=u[name]||null):l=i.checked:"radio"!==i.type||i.checked||(l=u[name]||null),u[name]=l);for(o=e.querySelectorAll("select[name]"),r=0;r<o.length;++r)if(i=o.item(r),!a.isDefined(i.getAttribute("data-ignored"))){if(i.multiple)for(n in l=[],i.options)(s=i.options[n])&&s.selected&&l.push(a.sanitizeFormValue(s.value,t));else{var d=void 0!==i.options[i.selectedIndex]?i.options[i.selectedIndex].value:"";l=a.sanitizeFormValue(d,t)}u[i.name]=l}return u},sanitizeFormValue:function(e,t){return(t.trim&&a.isString(e)&&(e=e.trim()),!1!==t.nullify&&""===e)?null:e},capitalize:function(e){return a.isString(e)?e[0].toUpperCase()+e.slice(1):e},pruneEmptyErrors:function(e){return e.filter(function(e){return!a.isEmpty(e.error)})},expandMultipleErrors:function(e){var t=[];return e.forEach(function(e){a.isArray(e.error)?e.error.forEach(function(r){t.push(a.extend({},e,{error:r}))}):t.push(e)}),t},convertErrorMessages:function(e,t){var r=[],n=(t=t||{}).prettify||a.prettify;return e.forEach(function(e){var i=a.result(e.error,e.value,e.attribute,e.options,e.attributes,e.globalOptions);a.isString(i)?("^"===i[0]?i=i.slice(1):!1!==t.fullMessages&&(i=a.capitalize(n(e.attribute))+" "+i),i=i.replace(/\\\^/g,"^"),i=a.format(i,{value:a.stringifyValue(e.value,t)}),r.push(a.extend({},e,{error:i}))):r.push(e)}),r},groupErrorsByAttribute:function(e){var t={};return e.forEach(function(e){var r=t[e.attribute];r?r.push(e):t[e.attribute]=[e]}),t},flattenErrorsToArray:function(e){return e.map(function(e){return e.error}).filter(function(e,t,r){return r.indexOf(e)===t})},cleanAttributes:function(e,t){function r(e,t,r){return a.isObject(e[t])?e[t]:e[t]=!!r||{}}return a.isObject(t)&&a.isObject(e)?function e(t,r){if(!a.isObject(t))return t;var n,i,o=a.extend({},t);for(i in t)n=r[i],a.isObject(n)?o[i]=e(o[i],n):n||delete o[i];return o}(e,t=function(e){var t,n={};for(t in e)e[t]&&a.forEachKeyInKeypath(n,t,r);return n}(t)):{}},exposeModule:function(e,t,r,n,a){r?(n&&n.exports&&(r=n.exports=e),r.validate=e):(t.validate=e,e.isFunction(a)&&a.amd&&a([],function(){return e}))},warn:function(e){"u">typeof console&&console.warn&&console.warn("[validate.js] "+e)},error:function(e){"u">typeof console&&console.error&&console.error("[validate.js] "+e)}}),n.validators={presence:function(e,t){if(!1!==(t=a.extend({},this.options,t)).allowEmpty?!a.isDefined(e):a.isEmpty(e))return t.message||this.message||"can't be blank"},length:function(e,t,r){if(a.isDefined(e)){var n,i=(t=a.extend({},this.options,t)).is,o=t.maximum,s=t.minimum,l=t.tokenizer||function(e){return e},u=[],d=(e=l(e)).length;if(!a.isNumber(d))return a.error(a.format("Attribute %{attr} has a non numeric value for `length`",{attr:r})),t.message||this.notValid||"has an incorrect length";if(a.isNumber(i)&&d!==i&&(n=t.wrongLength||this.wrongLength||"is the wrong length (should be %{count} characters)",u.push(a.format(n,{count:i}))),a.isNumber(s)&&d<s&&(n=t.tooShort||this.tooShort||"is too short (minimum is %{count} characters)",u.push(a.format(n,{count:s}))),a.isNumber(o)&&d>o&&(n=t.tooLong||this.tooLong||"is too long (maximum is %{count} characters)",u.push(a.format(n,{count:o}))),u.length>0)return t.message||u}},numericality:function(e,t,r,n,i){if(a.isDefined(e)){t=a.extend({},this.options,t);var o,s,l=[],u={greaterThan:function(e,t){return e>t},greaterThanOrEqualTo:function(e,t){return e>=t},equalTo:function(e,t){return e===t},lessThan:function(e,t){return e<t},lessThanOrEqualTo:function(e,t){return e<=t},divisibleBy:function(e,t){return e%t==0}},d=t.prettify||i&&i.prettify||a.prettify;if(a.isString(e)&&t.strict){var c="^-?(0|[1-9]\\d*)";if(t.onlyInteger||(c+="(\\.\\d+)?"),!new RegExp(c+="$").test(e))return t.message||t.notValid||this.notValid||this.message||"must be a valid number"}if(!0!==t.noStrings&&a.isString(e)&&!a.isEmpty(e)&&(e*=1),!a.isNumber(e))return t.message||t.notValid||this.notValid||this.message||"is not a number";if(t.onlyInteger&&!a.isInteger(e))return t.message||t.notInteger||this.notInteger||this.message||"must be an integer";for(o in u)if(s=t[o],a.isNumber(s)&&!u[o](e,s)){var h="not"+a.capitalize(o),p=t[h]||this[h]||this.message||"must be %{type} %{count}";l.push(a.format(p,{count:s,type:d(o)}))}if(t.odd&&e%2!=1&&l.push(t.notOdd||this.notOdd||this.message||"must be odd"),t.even&&e%2!=0&&l.push(t.notEven||this.notEven||this.message||"must be even"),l.length)return t.message||l}},datetime:a.extend(function(e,t){if(!a.isFunction(this.parse)||!a.isFunction(this.format))throw Error("Both the parse and format functions needs to be set to use the datetime/date validator");if(a.isDefined(e)){t=a.extend({},this.options,t);var r,n=[],i=t.earliest?this.parse(t.earliest,t):NaN,o=t.latest?this.parse(t.latest,t):NaN;if(isNaN(e=this.parse(e,t))||t.dateOnly&&e%864e5!=0)return r=t.notValid||t.message||this.notValid||"must be a valid date",a.format(r,{value:arguments[0]});if(!isNaN(i)&&e<i&&(r=t.tooEarly||t.message||this.tooEarly||"must be no earlier than %{date}",r=a.format(r,{value:this.format(e,t),date:this.format(i,t)}),n.push(r)),!isNaN(o)&&e>o&&(r=t.tooLate||t.message||this.tooLate||"must be no later than %{date}",r=a.format(r,{date:this.format(o,t),value:this.format(e,t)}),n.push(r)),n.length)return a.unique(n)}},{parse:null,format:null}),date:function(e,t){return t=a.extend({},t,{dateOnly:!0}),a.validators.datetime.call(a.validators.datetime,e,t)},format:function(e,t){(a.isString(t)||t instanceof RegExp)&&(t={pattern:t});var r,n=(t=a.extend({},this.options,t)).message||this.message||"is invalid",i=t.pattern;if(a.isDefined(e)&&(!a.isString(e)||(a.isString(i)&&(i=new RegExp(t.pattern,t.flags)),!(r=i.exec(e))||r[0].length!=e.length)))return n},inclusion:function(e,t){if(a.isDefined(e)&&(a.isArray(t)&&(t={within:t}),t=a.extend({},this.options,t),!a.contains(t.within,e))){var r=t.message||this.message||"^%{value} is not included in the list";return a.format(r,{value:e})}},exclusion:function(e,t){if(a.isDefined(e)&&(a.isArray(t)&&(t={within:t}),t=a.extend({},this.options,t),a.contains(t.within,e))){var r=t.message||this.message||"^%{value} is restricted";return a.format(r,{value:e})}},email:a.extend(function(e,t){var r=(t=a.extend({},this.options,t)).message||this.message||"is not a valid email";if(a.isDefined(e)&&(!a.isString(e)||!this.PATTERN.exec(e)))return r},{PATTERN:/^[a-z0-9\u007F-\uffff!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9\u007F-\uffff!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z]{2,}$/i}),equality:function(e,t,r,n,i){if(a.isDefined(e)){a.isString(t)&&(t={attribute:t});var o=(t=a.extend({},this.options,t)).message||this.message||"is not equal to %{attribute}";if(a.isEmpty(t.attribute)||!a.isString(t.attribute))throw Error("The attribute must be a non empty string");var s=a.getDeepObjectValue(n,t.attribute),l=t.comparator||function(e,t){return e===t},u=t.prettify||i&&i.prettify||a.prettify;if(!l(e,s,t,r,n))return a.format(o,{attribute:u(t.attribute)})}},url:function(e,t){if(a.isDefined(e)){var r=(t=a.extend({},this.options,t)).message||this.message||"is not a valid url",n=t.schemes||this.schemes||["http","https"],i=t.allowLocal||this.allowLocal||!1;if(!a.isString(e))return r;var o="^(?:(?:"+n.join("|")+")://)(?:\\S+(?::\\S*)?@)?(?:",s="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";if(i?s+="?":o+="(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})",!RegExp(o+="(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*"+s+")(?::\\d{2,5})?(?:[/?#]\\S*)?$","i").exec(e))return r}}},n.formatters={detailed:function(e){return e},flat:a.flattenErrorsToArray,grouped:function(e){var t;for(t in e=a.groupErrorsByAttribute(e))e[t]=a.flattenErrorsToArray(e[t]);return e},constraint:function(e){var t;for(t in e=a.groupErrorsByAttribute(e))e[t]=e[t].map(function(e){return e.validator}).sort();return e}},n.exposeModule(n,this,e,t,r)}).call(this,t,e=r.nmd(e),"u">typeof define?define:null)},9741(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},2203(e,t,r){e.exports=(function e(t,n,a){function i(s,l){if(!n[s]){if(!t[s]){var u=r(3882);if(!l&&u)return u(s,!0);if(o)return o(s,!0);throw Error("Cannot find module '"+s+"'")}var d=n[s]={exports:{}};t[s][0].call(d.exports,function(e){return i(t[s][1][e]||e)},d,d.exports,e,t,n,a)}return n[s].exports}for(var o=r(3882),s=0;s<a.length;s++)i(a[s]);return i})({1:[function(e,t,r){(function(n,a,i,o,s,l,u,d,c){"use strict";var h=e("crypto");function p(e,t){var r=t=g(e,t);if(void 0===(n="passthrough"!==r.algorithm?h.createHash(r.algorithm):new b).write&&(n.write=n.update,n.end=n.update),v(r,n).dispatch(e),n.update||n.end(""),n.digest)return n.digest("buffer"===r.encoding?void 0:r.encoding);var n,a=n.read();return"buffer"!==r.encoding?a.toString(r.encoding):a}(r=t.exports=p).sha1=function(e){return p(e)},r.keys=function(e){return p(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},r.MD5=function(e){return p(e,{algorithm:"md5",encoding:"hex"})},r.keysMD5=function(e){return p(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var m=h.getHashes?h.getHashes().slice():["sha1","md5"];m.push("passthrough");var f=["buffer","hex","binary","base64"];function g(e,t){var r={};if(r.algorithm=(t=t||{}).algorithm||"sha1",r.encoding=t.encoding||"hex",r.excludeValues=!!t.excludeValues,r.algorithm=r.algorithm.toLowerCase(),r.encoding=r.encoding.toLowerCase(),r.ignoreUnknown=!0===t.ignoreUnknown,r.respectType=!1!==t.respectType,r.respectFunctionNames=!1!==t.respectFunctionNames,r.respectFunctionProperties=!1!==t.respectFunctionProperties,r.unorderedArrays=!0===t.unorderedArrays,r.unorderedSets=!1!==t.unorderedSets,r.unorderedObjects=!1!==t.unorderedObjects,r.replacer=t.replacer||void 0,r.excludeKeys=t.excludeKeys||void 0,void 0===e)throw Error("Object argument required.");for(var n=0;n<m.length;++n)m[n].toLowerCase()===r.algorithm.toLowerCase()&&(r.algorithm=m[n]);if(-1===m.indexOf(r.algorithm))throw Error('Algorithm "'+r.algorithm+'" not supported. supported values: '+m.join(", "));if(-1===f.indexOf(r.encoding)&&"passthrough"!==r.algorithm)throw Error('Encoding "'+r.encoding+'" not supported. supported values: '+f.join(", "));return r}function y(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function v(e,t,r){function n(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return r=r||[],{dispatch:function(t){return e.replacer&&(t=e.replacer(t)),this["_"+(null===t?"null":typeof t)](t)},_object:function(t){var a,o=Object.prototype.toString.call(t),s=/\[object (.*)\]/i.exec(o);if(s=(s=s?s[1]:"unknown:["+o+"]").toLowerCase(),0<=(a=r.indexOf(t)))return this.dispatch("[CIRCULAR:"+a+"]");if(r.push(t),void 0!==i&&i.isBuffer&&i.isBuffer(t))return n("buffer:"),n(t);if("object"===s||"function"===s||"asyncfunction"===s){var l=Object.keys(t);e.unorderedObjects&&(l=l.sort()),!1===e.respectType||y(t)||l.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(l=l.filter(function(t){return!e.excludeKeys(t)})),n("object:"+l.length+":");var u=this;return l.forEach(function(r){u.dispatch(r),n(":"),e.excludeValues||u.dispatch(t[r]),n(",")})}if(!this["_"+s]){if(e.ignoreUnknown)return n("["+s+"]");throw Error('Unknown object type "'+s+'"')}this["_"+s](t)},_array:function(t,a){a=void 0!==a?a:!1!==e.unorderedArrays;var i=this;if(n("array:"+t.length+":"),!a||t.length<=1)return t.forEach(function(e){return i.dispatch(e)});var o=[],s=t.map(function(t){var n=new b,a=r.slice();return v(e,n,a).dispatch(t),o=o.concat(a.slice(r.length)),n.read().toString()});return r=r.concat(o),s.sort(),this._array(s,!1)},_date:function(e){return n("date:"+e.toJSON())},_symbol:function(e){return n("symbol:"+e.toString())},_error:function(e){return n("error:"+e.toString())},_boolean:function(e){return n("bool:"+e.toString())},_string:function(e){n("string:"+e.length+":"),n(e.toString())},_function:function(t){n("fn:"),y(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return n("number:"+e.toString())},_xml:function(e){return n("xml:"+e.toString())},_null:function(){return n("Null")},_undefined:function(){return n("Undefined")},_regexp:function(e){return n("regex:"+e.toString())},_uint8array:function(e){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return n("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return n("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return n("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return n("url:"+e.toString())},_map:function(t){n("map:");var r=Array.from(t);return this._array(r,!1!==e.unorderedSets)},_set:function(t){n("set:");var r=Array.from(t);return this._array(r,!1!==e.unorderedSets)},_file:function(e){return n("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return n("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return n("domwindow")},_process:function(){return n("process")},_timer:function(){return n("timer")},_pipe:function(){return n("pipe")},_tcp:function(){return n("tcp")},_udp:function(){return n("udp")},_tty:function(){return n("tty")},_statwatcher:function(){return n("statwatcher")},_securecontext:function(){return n("securecontext")},_connection:function(){return n("connection")},_zlib:function(){return n("zlib")},_context:function(){return n("context")},_nodescript:function(){return n("nodescript")},_httpparser:function(){return n("httpparser")},_dataview:function(){return n("dataview")},_signal:function(){return n("signal")},_fsevent:function(){return n("fsevent")},_tlswrap:function(){return n("tlswrap")}}}function b(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}r.writeToStream=function(e,t,r){return void 0===r&&(r=t,t={}),v(t=g(e,t),r).dispatch(e)}}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_5812b7fb.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(e,t,r){(function(e,t,n,a,i,o,s,l,u){!function(e){"use strict";var t="u">typeof Uint8Array?Uint8Array:Array;function r(e){var t=e.charCodeAt(0);return 43===t||45===t?62:47===t||95===t?63:t<48?-1:t<58?t-48+26+26:t<91?t-65:t<123?t-97+26:void 0}e.toByteArray=function(e){if(0<e.length%4)throw Error("Invalid string. Length must be a multiple of 4");var n,a,i=e.length,o="="===e.charAt(i-2)?2:+("="===e.charAt(i-1)),s=new t(3*e.length/4-o),l=0<o?e.length-4:e.length,u=0;function d(e){s[u++]=e}for(n=0;n<l;n+=4)d((0xff0000&(a=r(e.charAt(n))<<18|r(e.charAt(n+1))<<12|r(e.charAt(n+2))<<6|r(e.charAt(n+3))))>>16),d((65280&a)>>8),d(255&a);return 2==o?d(255&(a=r(e.charAt(n))<<2|r(e.charAt(n+1))>>4)):1==o&&(d((a=r(e.charAt(n))<<10|r(e.charAt(n+1))<<4|r(e.charAt(n+2))>>2)>>8&255),d(255&a)),s},e.fromByteArray=function(e){var t,r,n,a,i=e.length%3,o="";function s(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,n=e.length-i;t<n;t+=3)o+=s((a=r=(e[t]<<16)+(e[t+1]<<8)+e[t+2])>>18&63)+s(a>>12&63)+s(a>>6&63)+s(63&a);switch(i){case 1:o+=s((r=e[e.length-1])>>2),o+=s(r<<4&63),o+="==";break;case 2:o+=s((r=(e[e.length-2]<<8)+e[e.length-1])>>10),o+=s(r>>4&63),o+=s(r<<2&63),o+="="}return o}}(void 0===r?this.base64js={}:r)}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(e,t,r){(function(t,n,a,i,o,s,l,u,d){var c=e("base64-js"),h=e("ieee754");function a(e,t,r){if(!(this instanceof a))return new a(e,t,r);var n,i,o,s,l,u=typeof e;if("base64"===t&&"string"==u)for(e=(n=e).trim?n.trim():n.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==u)i=T(e);else if("string"==u)i=a.byteLength(e,t);else{if("object"!=u)throw Error("First argument needs to be a number, array or string.");i=T(e.length)}if(a._useTypedArrays?o=a._augment(new Uint8Array(i)):((o=this).length=i,o._isBuffer=!0),a._useTypedArrays&&"number"==typeof e.byteLength)o._set(e);else if(I(l=e)||a.isBuffer(l)||l&&"object"==typeof l&&"number"==typeof l.length)for(s=0;s<i;s++)a.isBuffer(e)?o[s]=e.readUInt8(s):o[s]=e[s];else if("string"==u)o.write(e,0,t);else if("number"==u&&!a._useTypedArrays&&!r)for(s=0;s<i;s++)o[s]=0;return o}function p(e,t,r,n){n||(V("boolean"==typeof r,"missing or invalid endian"),V(null!=t,"missing offset"),V(t+1<e.length,"Trying to read beyond buffer length"));var a,i=e.length;if(!(i<=t))return r?(a=e[t],t+1<i&&(a|=e[t+1]<<8)):(a=e[t]<<8,t+1<i&&(a|=e[t+1])),a}function m(e,t,r,n){n||(V("boolean"==typeof r,"missing or invalid endian"),V(null!=t,"missing offset"),V(t+3<e.length,"Trying to read beyond buffer length"));var a,i=e.length;if(!(i<=t))return r?(t+2<i&&(a=e[t+2]<<16),t+1<i&&(a|=e[t+1]<<8),a|=e[t],t+3<i&&(a+=e[t+3]<<24>>>0)):(t+1<i&&(a=e[t+1]<<16),t+2<i&&(a|=e[t+2]<<8),t+3<i&&(a|=e[t+3]),a+=e[t]<<24>>>0),a}function f(e,t,r,n){if(n||(V("boolean"==typeof r,"missing or invalid endian"),V(null!=t,"missing offset"),V(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var a=p(e,t,r,!0);return 32768&a?-1*(65535-a+1):a}}function g(e,t,r,n){if(n||(V("boolean"==typeof r,"missing or invalid endian"),V(null!=t,"missing offset"),V(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var a=m(e,t,r,!0);return 0x80000000&a?-1*(0xffffffff-a+1):a}}function y(e,t,r,n){return n||(V("boolean"==typeof r,"missing or invalid endian"),V(t+3<e.length,"Trying to read beyond buffer length")),h.read(e,t,r,23,4)}function v(e,t,r,n){return n||(V("boolean"==typeof r,"missing or invalid endian"),V(t+7<e.length,"Trying to read beyond buffer length")),h.read(e,t,r,52,8)}function b(e,t,r,n,a){a||(V(null!=t,"missing value"),V("boolean"==typeof n,"missing or invalid endian"),V(null!=r,"missing offset"),V(r+1<e.length,"trying to write beyond buffer length"),R(t,65535));var i=e.length;if(!(i<=r))for(var o=0,s=Math.min(i-r,2);o<s;o++)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function w(e,t,r,n,a){a||(V(null!=t,"missing value"),V("boolean"==typeof n,"missing or invalid endian"),V(null!=r,"missing offset"),V(r+3<e.length,"trying to write beyond buffer length"),R(t,0xffffffff));var i=e.length;if(!(i<=r))for(var o=0,s=Math.min(i-r,4);o<s;o++)e[r+o]=t>>>8*(n?o:3-o)&255}function x(e,t,r,n,a){a||(V(null!=t,"missing value"),V("boolean"==typeof n,"missing or invalid endian"),V(null!=r,"missing offset"),V(r+1<e.length,"Trying to write beyond buffer length"),L(t,32767,-32768)),e.length<=r||b(e,0<=t?t:65535+t+1,r,n,a)}function C(e,t,r,n,a){a||(V(null!=t,"missing value"),V("boolean"==typeof n,"missing or invalid endian"),V(null!=r,"missing offset"),V(r+3<e.length,"Trying to write beyond buffer length"),L(t,0x7fffffff,-0x80000000)),e.length<=r||w(e,0<=t?t:0xffffffff+t+1,r,n,a)}function k(e,t,r,n,a){a||(V(null!=t,"missing value"),V("boolean"==typeof n,"missing or invalid endian"),V(null!=r,"missing offset"),V(r+3<e.length,"Trying to write beyond buffer length"),N(t,34028234663852886e22,-34028234663852886e22)),e.length<=r||h.write(e,t,r,n,23,4)}function M(e,t,r,n,a){a||(V(null!=t,"missing value"),V("boolean"==typeof n,"missing or invalid endian"),V(null!=r,"missing offset"),V(r+7<e.length,"Trying to write beyond buffer length"),N(t,17976931348623157e292,-17976931348623157e292)),e.length<=r||h.write(e,t,r,n,52,8)}r.Buffer=a,r.SlowBuffer=a,r.INSPECT_MAX_BYTES=50,a.poolSize=8192,a._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.byteLength=function(e,t){var r;switch(e+="",t||"utf8"){case"hex":r=e.length/2;break;case"utf8":case"utf-8":r=_(e).length;break;case"ascii":case"binary":case"raw":r=e.length;break;case"base64":r=D(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=2*e.length;break;default:throw Error("Unknown encoding")}return r},a.concat=function(e,t){if(V(I(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new a(0);if(1===e.length)return e[0];if("number"!=typeof t)for(i=t=0;i<e.length;i++)t+=e[i].length;for(var r=new a(t),n=0,i=0;i<e.length;i++){var o=e[i];o.copy(r,n),n+=o.length}return r},a.prototype.write=function(e,t,r,n){isFinite(t)?isFinite(r)||(n=r,r=void 0):(u=n,n=t,t=r,r=u),t=Number(t)||0;var i,o,s,l,u,d,c,h,p,m,f=this.length-t;switch((!r||f<(r=Number(r)))&&(r=f),n=String(n||"utf8").toLowerCase()){case"hex":d=function(e,t,r,n){r=Number(r)||0;var i=e.length-r;(!n||i<(n=Number(n)))&&(n=i);var o=t.length;V(o%2==0,"Invalid hex string"),o/2<n&&(n=o/2);for(var s=0;s<n;s++){var l=parseInt(t.substr(2*s,2),16);V(!isNaN(l),"Invalid hex string"),e[r+s]=l}return a._charsWritten=2*s,s}(this,e,t,r);break;case"utf8":case"utf-8":p=t,m=r,d=a._charsWritten=O(_(e),this,p,m);break;case"ascii":case"binary":i=t,o=r,d=a._charsWritten=O(function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t}(e),this,i,o);break;case"base64":c=t,h=r,d=a._charsWritten=O(D(e),this,c,h);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":s=t,l=r,d=a._charsWritten=O(function(e){for(var t,r,n=[],a=0;a<e.length;a++)r=(t=e.charCodeAt(a))>>8,n.push(t%256),n.push(r);return n}(e),this,s,l);break;default:throw Error("Unknown encoding")}return d},a.prototype.toString=function(e,t,r){var n,a,i;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(r=void 0!==r?Number(r):r=this.length)===t)return"";switch(e){case"hex":n=function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||n<r)&&(r=n);for(var a="",i=t;i<r;i++)a+=P(e[i]);return a}(this,t,r);break;case"utf8":case"utf-8":n=function(e,t,r){var n="",a="";r=Math.min(e.length,r);for(var i=t;i<r;i++)e[i]<=127?(n+=A(a)+String.fromCharCode(e[i]),a=""):a+="%"+e[i].toString(16);return n+A(a)}(this,t,r);break;case"ascii":case"binary":n=function(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;a++)n+=String.fromCharCode(e[a]);return n}(this,t,r);break;case"base64":i=r,n=0===(a=t)&&i===this.length?c.fromByteArray(this):c.fromByteArray(this.slice(a,i));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=function(e,t,r){for(var n=e.slice(t,r),a="",i=0;i<n.length;i+=2)a+=String.fromCharCode(n[i]+256*n[i+1]);return a}(this,t,r);break;default:throw Error("Unknown encoding")}return n},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.copy=function(e,t,r,n){if(r=r||0,n||0===n||(n=this.length),t=t||0,n!==r&&0!==e.length&&0!==this.length){V(r<=n,"sourceEnd < sourceStart"),V(0<=t&&t<e.length,"targetStart out of bounds"),V(0<=r&&r<this.length,"sourceStart out of bounds"),V(0<=n&&n<=this.length,"sourceEnd out of bounds"),n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(i<100||!a._useTypedArrays)for(var o=0;o<i;o++)e[o+t]=this[o+r];else e._set(this.subarray(r,r+i),t)}},a.prototype.slice=function(e,t){var r=this.length;if(e=E(e,r,0),t=E(t,r,r),a._useTypedArrays)return a._augment(this.subarray(e,t));for(var n=t-e,i=new a(n,void 0,!0),o=0;o<n;o++)i[o]=this[o+e];return i},a.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},a.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},a.prototype.readUInt8=function(e,t){if(t||(V(null!=e,"missing offset"),V(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},a.prototype.readUInt16LE=function(e,t){return p(this,e,!0,t)},a.prototype.readUInt16BE=function(e,t){return p(this,e,!1,t)},a.prototype.readUInt32LE=function(e,t){return m(this,e,!0,t)},a.prototype.readUInt32BE=function(e,t){return m(this,e,!1,t)},a.prototype.readInt8=function(e,t){if(t||(V(null!=e,"missing offset"),V(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){return f(this,e,!0,t)},a.prototype.readInt16BE=function(e,t){return f(this,e,!1,t)},a.prototype.readInt32LE=function(e,t){return g(this,e,!0,t)},a.prototype.readInt32BE=function(e,t){return g(this,e,!1,t)},a.prototype.readFloatLE=function(e,t){return y(this,e,!0,t)},a.prototype.readFloatBE=function(e,t){return y(this,e,!1,t)},a.prototype.readDoubleLE=function(e,t){return v(this,e,!0,t)},a.prototype.readDoubleBE=function(e,t){return v(this,e,!1,t)},a.prototype.writeUInt8=function(e,t,r){r||(V(null!=e,"missing value"),V(null!=t,"missing offset"),V(t<this.length,"trying to write beyond buffer length"),R(e,255)),t>=this.length||(this[t]=e)},a.prototype.writeUInt16LE=function(e,t,r){b(this,e,t,!0,r)},a.prototype.writeUInt16BE=function(e,t,r){b(this,e,t,!1,r)},a.prototype.writeUInt32LE=function(e,t,r){w(this,e,t,!0,r)},a.prototype.writeUInt32BE=function(e,t,r){w(this,e,t,!1,r)},a.prototype.writeInt8=function(e,t,r){r||(V(null!=e,"missing value"),V(null!=t,"missing offset"),V(t<this.length,"Trying to write beyond buffer length"),L(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,r):this.writeUInt8(255+e+1,t,r))},a.prototype.writeInt16LE=function(e,t,r){x(this,e,t,!0,r)},a.prototype.writeInt16BE=function(e,t,r){x(this,e,t,!1,r)},a.prototype.writeInt32LE=function(e,t,r){C(this,e,t,!0,r)},a.prototype.writeInt32BE=function(e,t,r){C(this,e,t,!1,r)},a.prototype.writeFloatLE=function(e,t,r){k(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){k(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){M(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){M(this,e,t,!1,r)},a.prototype.fill=function(e,t,r){if(e=e||0,t=t||0,r=r||this.length,"string"==typeof e&&(e=e.charCodeAt(0)),V("number"==typeof e&&!isNaN(e),"value is not a number"),V(t<=r,"end < start"),r!==t&&0!==this.length){V(0<=t&&t<this.length,"start out of bounds"),V(0<=r&&r<=this.length,"end out of bounds");for(var n=t;n<r;n++)this[n]=e}},a.prototype.inspect=function(){for(var e=[],t=this.length,n=0;n<t;n++)if(e[n]=P(this[n]),n===r.INSPECT_MAX_BYTES){e[n+1]="...";break}return"<Buffer "+e.join(" ")+">"},a.prototype.toArrayBuffer=function(){if("u"<typeof Uint8Array)throw Error("Buffer.toArrayBuffer not supported in this browser");if(a._useTypedArrays)return new a(this).buffer;for(var e=new Uint8Array(this.length),t=0,r=e.length;t<r;t+=1)e[t]=this[t];return e.buffer};var S=a.prototype;function E(e,t,r){return"number"!=typeof e?r:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function T(e){return(e=~~Math.ceil(+e))<0?0:e}function I(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function P(e){return e<16?"0"+e.toString(16):e.toString(16)}function _(e){for(var t=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n<=127)t.push(e.charCodeAt(r));else{var a=r;55296<=n&&n<=57343&&r++;for(var i=encodeURIComponent(e.slice(a,r+1)).substr(1).split("%"),o=0;o<i.length;o++)t.push(parseInt(i[o],16))}}return t}function D(e){return c.toByteArray(e)}function O(e,t,r,n){for(var a=0;a<n&&!(a+r>=t.length||a>=e.length);a++)t[a+r]=e[a];return a}function A(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function R(e,t){V("number"==typeof e,"cannot write a non-number as a number"),V(0<=e,"specified a negative value for writing an unsigned value"),V(e<=t,"value is larger than maximum value for type"),V(Math.floor(e)===e,"value has a fractional component")}function L(e,t,r){V("number"==typeof e,"cannot write a non-number as a number"),V(e<=t,"value larger than maximum allowed value"),V(r<=e,"value smaller than minimum allowed value"),V(Math.floor(e)===e,"value has a fractional component")}function N(e,t,r){V("number"==typeof e,"cannot write a non-number as a number"),V(e<=t,"value larger than maximum allowed value"),V(r<=e,"value smaller than minimum allowed value")}function V(e,t){if(!e)throw Error(t||"Failed assertion")}a._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=S.get,e.set=S.set,e.write=S.write,e.toString=S.toString,e.toLocaleString=S.toString,e.toJSON=S.toJSON,e.copy=S.copy,e.slice=S.slice,e.readUInt8=S.readUInt8,e.readUInt16LE=S.readUInt16LE,e.readUInt16BE=S.readUInt16BE,e.readUInt32LE=S.readUInt32LE,e.readUInt32BE=S.readUInt32BE,e.readInt8=S.readInt8,e.readInt16LE=S.readInt16LE,e.readInt16BE=S.readInt16BE,e.readInt32LE=S.readInt32LE,e.readInt32BE=S.readInt32BE,e.readFloatLE=S.readFloatLE,e.readFloatBE=S.readFloatBE,e.readDoubleLE=S.readDoubleLE,e.readDoubleBE=S.readDoubleBE,e.writeUInt8=S.writeUInt8,e.writeUInt16LE=S.writeUInt16LE,e.writeUInt16BE=S.writeUInt16BE,e.writeUInt32LE=S.writeUInt32LE,e.writeUInt32BE=S.writeUInt32BE,e.writeInt8=S.writeInt8,e.writeInt16LE=S.writeInt16LE,e.writeInt16BE=S.writeInt16BE,e.writeInt32LE=S.writeInt32LE,e.writeInt32BE=S.writeInt32BE,e.writeFloatLE=S.writeFloatLE,e.writeFloatBE=S.writeFloatBE,e.writeDoubleLE=S.writeDoubleLE,e.writeDoubleBE=S.writeDoubleBE,e.fill=S.fill,e.inspect=S.inspect,e.toArrayBuffer=S.toArrayBuffer,e}}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(e,t,r){(function(r,n,a,i,o,s,l,u,d){var a=e("buffer").Buffer,c=new a(4);c.fill(0),t.exports={hash:function(e,t,r,n){return a.isBuffer(e)||(e=new a(e)),function(e,t,r){for(var n=new a(t),i=r?n.writeInt32BE:n.writeInt32LE,o=0;o<e.length;o++)i.call(n,e[o],4*o,!0);return n}(t(function(e,t){var r;e.length%4!=0&&(r=e.length+(4-e.length%4),e=a.concat([e,c],r));for(var n=[],i=t?e.readInt32BE:e.readInt32LE,o=0;o<e.length;o+=4)n.push(i.call(e,o));return n}(e,n),8*e.length),r,n)}}}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(e,t,r){(function(t,n,a,i,o,s,l,u,d){var a=e("buffer").Buffer,c=e("./sha"),h=e("./sha256"),p=e("./rng"),m={sha1:c,sha256:h,md5:e("./md5")},f=new a(64);function g(e,t){var r=m[e=e||"sha1"],n=[];return r||y("algorithm:",e,"is not yet supported"),{update:function(e){return a.isBuffer(e)||(e=new a(e)),n.push(e),e.length,this},digest:function(e){var i=a.concat(n),o=t?function(e,t,r){a.isBuffer(t)||(t=new a(t)),a.isBuffer(r)||(r=new a(r)),t.length>64?t=e(t):t.length<64&&(t=a.concat([t,f],64));for(var n=new a(64),i=new a(64),o=0;o<64;o++)n[o]=54^t[o],i[o]=92^t[o];var s=e(a.concat([n,r]));return e(a.concat([i,s]))}(r,t,i):r(i);return n=null,e?o.toString(e):o}}}function y(){var e=[].slice.call(arguments).join(" ");throw Error([e,"we accept pull requests\nhttp://github.com/dominictarr/crypto-browserify"].join("\n"))}f.fill(0),r.createHash=function(e){return g(e)},r.createHmac=g,r.randomBytes=function(e,t){if(!t||!t.call)return new a(p(e));try{t.call(this,void 0,new a(p(e)))}catch(e){t(e)}},function(e,t){for(var r in e)t(e[r],r)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(e){r[e]=function(){y("sorry,",e,"is not implemented yet")}})}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(e,t,r){(function(r,n,a,i,o,s,l,u,d){var c=e("./helpers");function h(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=0x67452301,n=-0x10325477,a=-0x67452302,i=0x10325476,o=0;o<e.length;o+=16){var s=r,l=n,u=a,d=i,r=m(r,n,a,i,e[o+0],7,-0x28955b88),i=m(i,r,n,a,e[o+1],12,-0x173848aa),a=m(a,i,r,n,e[o+2],17,0x242070db),n=m(n,a,i,r,e[o+3],22,-0x3e423112);r=m(r,n,a,i,e[o+4],7,-0xa83f051),i=m(i,r,n,a,e[o+5],12,0x4787c62a),a=m(a,i,r,n,e[o+6],17,-0x57cfb9ed),n=m(n,a,i,r,e[o+7],22,-0x2b96aff),r=m(r,n,a,i,e[o+8],7,0x698098d8),i=m(i,r,n,a,e[o+9],12,-0x74bb0851),a=m(a,i,r,n,e[o+10],17,-42063),n=m(n,a,i,r,e[o+11],22,-0x76a32842),r=m(r,n,a,i,e[o+12],7,0x6b901122),i=m(i,r,n,a,e[o+13],12,-0x2678e6d),a=m(a,i,r,n,e[o+14],17,-0x5986bc72),r=f(r,n=m(n,a,i,r,e[o+15],22,0x49b40821),a,i,e[o+1],5,-0x9e1da9e),i=f(i,r,n,a,e[o+6],9,-0x3fbf4cc0),a=f(a,i,r,n,e[o+11],14,0x265e5a51),n=f(n,a,i,r,e[o+0],20,-0x16493856),r=f(r,n,a,i,e[o+5],5,-0x29d0efa3),i=f(i,r,n,a,e[o+10],9,0x2441453),a=f(a,i,r,n,e[o+15],14,-0x275e197f),n=f(n,a,i,r,e[o+4],20,-0x182c0438),r=f(r,n,a,i,e[o+9],5,0x21e1cde6),i=f(i,r,n,a,e[o+14],9,-0x3cc8f82a),a=f(a,i,r,n,e[o+3],14,-0xb2af279),n=f(n,a,i,r,e[o+8],20,0x455a14ed),r=f(r,n,a,i,e[o+13],5,-0x561c16fb),i=f(i,r,n,a,e[o+2],9,-0x3105c08),a=f(a,i,r,n,e[o+7],14,0x676f02d9),r=g(r,n=f(n,a,i,r,e[o+12],20,-0x72d5b376),a,i,e[o+5],4,-378558),i=g(i,r,n,a,e[o+8],11,-0x788e097f),a=g(a,i,r,n,e[o+11],16,0x6d9d6122),n=g(n,a,i,r,e[o+14],23,-0x21ac7f4),r=g(r,n,a,i,e[o+1],4,-0x5b4115bc),i=g(i,r,n,a,e[o+4],11,0x4bdecfa9),a=g(a,i,r,n,e[o+7],16,-0x944b4a0),n=g(n,a,i,r,e[o+10],23,-0x41404390),r=g(r,n,a,i,e[o+13],4,0x289b7ec6),i=g(i,r,n,a,e[o+0],11,-0x155ed806),a=g(a,i,r,n,e[o+3],16,-0x2b10cf7b),n=g(n,a,i,r,e[o+6],23,0x4881d05),r=g(r,n,a,i,e[o+9],4,-0x262b2fc7),i=g(i,r,n,a,e[o+12],11,-0x1924661b),a=g(a,i,r,n,e[o+15],16,0x1fa27cf8),r=y(r,n=g(n,a,i,r,e[o+2],23,-0x3b53a99b),a,i,e[o+0],6,-0xbd6ddbc),i=y(i,r,n,a,e[o+7],10,0x432aff97),a=y(a,i,r,n,e[o+14],15,-0x546bdc59),n=y(n,a,i,r,e[o+5],21,-0x36c5fc7),r=y(r,n,a,i,e[o+12],6,0x655b59c3),i=y(i,r,n,a,e[o+3],10,-0x70f3336e),a=y(a,i,r,n,e[o+10],15,-1051523),n=y(n,a,i,r,e[o+1],21,-0x7a7ba22f),r=y(r,n,a,i,e[o+8],6,0x6fa87e4f),i=y(i,r,n,a,e[o+15],10,-0x1d31920),a=y(a,i,r,n,e[o+6],15,-0x5cfebcec),n=y(n,a,i,r,e[o+13],21,0x4e0811a1),r=y(r,n,a,i,e[o+4],6,-0x8ac817e),i=y(i,r,n,a,e[o+11],10,-0x42c50dcb),a=y(a,i,r,n,e[o+2],15,0x2ad7d2bb),n=y(n,a,i,r,e[o+9],21,-0x14792c6f),r=v(r,s),n=v(n,l),a=v(a,u),i=v(i,d)}return[r,n,a,i]}function p(e,t,r,n,a,i){var o;return v((o=v(v(t,e),v(n,i)))<<a|o>>>32-a,r)}function m(e,t,r,n,a,i,o){return p(t&r|~t&n,e,t,a,i,o)}function f(e,t,r,n,a,i,o){return p(t&n|r&~n,e,t,a,i,o)}function g(e,t,r,n,a,i,o){return p(t^r^n,e,t,a,i,o)}function y(e,t,r,n,a,i,o){return p(r^(t|~n),e,t,a,i,o)}function v(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}t.exports=function(e){return c.hash(e,h,16)}}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(e,t,r){(function(e,r,n,a,i,o,s,l,u){t.exports=function(e){for(var t,r=Array(e),n=0;n<e;n++)0==(3&n)&&(t=0x100000000*Math.random()),r[n]=t>>>((3&n)<<3)&255;return r}}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(e,t,r){(function(r,n,a,i,o,s,l,u,d){var c=e("./helpers");function h(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var r,n,a,i,o,s=Array(80),l=0x67452301,u=-0x10325477,d=-0x67452302,c=0x10325476,h=-0x3c2d1e10,f=0;f<e.length;f+=16){for(var g=l,y=u,v=d,b=c,w=h,x=0;x<80;x++){s[x]=x<16?e[f+x]:m(s[x-3]^s[x-8]^s[x-14]^s[x-16],1);var C=p(p(m(l,5),(a=u,i=d,o=c,(n=x)<20?a&i|~a&o:!(n<40)&&n<60?a&i|a&o|i&o:a^i^o)),p(p(h,s[x]),(r=x)<20?0x5a827999:r<40?0x6ed9eba1:r<60?-0x70e44324:-0x359d3e2a)),h=c,c=d,d=m(u,30),u=l,l=C}l=p(l,g),u=p(u,y),d=p(d,v),c=p(c,b),h=p(h,w)}return[l,u,d,c,h]}function p(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function m(e,t){return e<<t|e>>>32-t}t.exports=function(e){return c.hash(e,h,20,!0)}}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(e,t,r){(function(r,n,a,i,o,s,l,u,d){function c(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function h(e,t){return e>>>t|e<<32-t}function p(e,t){var r,n,a,i,o,s,l,u,d,p,m=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],f=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],g=Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var y,v,b,w,x,C,k,M,S=0;S<e.length;S+=16){r=f[0],n=f[1],a=f[2],i=f[3],o=f[4],s=f[5],l=f[6],u=f[7];for(var E=0;E<64;E++)g[E]=E<16?e[E+S]:c(c(c(h(M=g[E-2],17)^h(M,19)^M>>>10,g[E-7]),h(k=g[E-15],7)^h(k,18)^k>>>3),g[E-16]),d=c(c(c(c(u,h(C=o,6)^h(C,11)^h(C,25)),(x=o)&s^~x&l),m[E]),g[E]),p=c(h(w=r,2)^h(w,13)^h(w,22),(y=r)&(v=n)^y&(b=a)^v&b),u=l,l=s,s=o,o=c(i,d),i=a,a=n,n=r,r=c(d,p);f[0]=c(r,f[0]),f[1]=c(n,f[1]),f[2]=c(a,f[2]),f[3]=c(i,f[3]),f[4]=c(o,f[4]),f[5]=c(s,f[5]),f[6]=c(l,f[6]),f[7]=c(u,f[7])}return f}var m=e("./helpers");t.exports=function(e){return m.hash(e,p,32,!0)}}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(e,t,r){(function(e,r,n,a,i,o,s,l,u){function d(){}(e=t.exports={}).nextTick=function(){var e="u">typeof window&&window.setImmediate,t="u">typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var r=[];return window.addEventListener("message",function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<r.length&&r.shift()())},!0),function(e){r.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=d,e.addListener=d,e.once=d,e.off=d,e.removeListener=d,e.removeAllListeners=d,e.emit=d,e.binding=function(e){throw Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(e,t,r){(function(e,t,n,a,i,o,s,l,u){r.read=function(e,t,r,n,a){var i,o,s=8*a-n-1,l=(1<<s)-1,u=l>>1,d=-7,c=r?a-1:0,h=r?-1:1,p=e[t+c];for(c+=h,i=p&(1<<-d)-1,p>>=-d,d+=s;0<d;i=256*i+e[t+c],c+=h,d-=8);for(o=i&(1<<-d)-1,i>>=-d,d+=n;0<d;o=256*o+e[t+c],c+=h,d-=8);if(0===i)i=1-u;else{if(i===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),i-=u}return(p?-1:1)*o*Math.pow(2,i-n)},r.write=function(e,t,r,n,a,i){var o,s,l,u=8*i-a-1,d=(1<<u)-1,c=d>>1,h=5960464477539062e-23*(23===a),p=n?0:i-1,m=n?1:-1,f=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),2<=(t+=1<=o+c?h/l:h*Math.pow(2,1-c))*l&&(o++,l/=2),d<=o+c?(s=0,o=d):1<=o+c?(s=(t*l-1)*Math.pow(2,a),o+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,a),o=0));8<=a;e[r+p]=255&s,p+=m,s/=256,a-=8);for(o=o<<a|s,u+=a;0<u;e[r+p]=255&o,p+=m,o/=256,u-=8);e[r+p-m]|=128*f}}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)},3882(e){function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=3882,e.exports=t},4883(e){"use strict";e.exports=t},1845(e){"use strict";e.exports=n},2111(e){"use strict";e.exports=a},7155(e){"use strict";e.exports=r},4164(t){"use strict";t.exports=e},2534(){},6550(){},1791(){},5530(e){!function(){"use strict";var t={}.hasOwnProperty;function r(){for(var e="",a=0;a<arguments.length;a++){var i=arguments[a];i&&(e=n(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var i in e)t.call(e,i)&&e[i]&&(a=n(a,i));return a}(i)))}return e}function n(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return r}):window.classNames=r}()},8242(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.builder=function(e,t){let r=d(u(e)?e:n.DefaultBuilderOptions),s=i.Guard.isNode(e)||(0,a.isArray)(e)?e:t;if(void 0===s)throw Error("Invalid arguments.");if((0,a.isArray)(s)){let e=[];for(let t=0;t<s.length;t++){let n=new o.XMLBuilderImpl(s[t]);n.set(r),e.push(n)}return e}{let e=new o.XMLBuilderImpl(s);return e.set(r),e}},t.create=l,t.fragment=function(e,t){let r=d(void 0===e||u(e)?e:n.DefaultBuilderOptions),a=u(e)?t:e,i=(0,s.createDocument)();c(i,r,!0);let l=new o.XMLBuilderImpl(i.createDocumentFragment());return void 0!==a&&l.ele(a),l},t.convert=function(e,t,r){let a,i,o;return u(e)&&void 0!==t?(a=e,i=t,o=r):(a=n.DefaultBuilderOptions,i=e,o=t||void 0),l(a,i).end(o)};let n=r(3890),a=r(3738),i=r(8723),o=r(5e3),s=r(4440);function l(e,t){let r=d(void 0===e||u(e)?e:n.DefaultBuilderOptions),a=u(e)?t:e,i=(0,s.createDocument)();c(i,r);let l=new o.XMLBuilderImpl(i);return void 0!==a&&l.ele(a),l}function u(e){if(!(0,a.isPlainObject)(e))return!1;for(let t in e)if(e.hasOwnProperty(t)&&!n.XMLBuilderOptionKeys.has(t))return!1;return!0}function d(e={}){let t=(0,a.applyDefaults)(e,n.DefaultBuilderOptions);if(0===t.convert.att.length||0===t.convert.ins.length||0===t.convert.text.length||0===t.convert.cdata.length||0===t.convert.comment.length)throw Error("JS object converter strings cannot be zero length.");return t}function c(e,t,r){e._xmlBuilderOptions=t,e._isFragment=r}},6891(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCB=function(e){return new n.XMLBuilderCBImpl(e)},t.fragmentCB=function(e){return new n.XMLBuilderCBImpl(e,!0)};let n=r(5e3)},6045(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLBuilderCBImpl=void 0;let n=r(3890),a=r(3738),i=r(8242),o=r(8792),s=r(360),l=r(7280),u=r(2351),d=r(8723),c=r(3684),h=r(5023),p=r(4330),m=r(8621);class f extends m.EventEmitter{static _VoidElementNames=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]);_options;_builderOptions;_writer;_fragment;_hasDeclaration=!1;_docTypeName="";_hasDocumentElement=!1;_currentElement;_currentElementSerialized=!1;_openTags=[];_prefixMap;_prefixIndex;_ended=!1;constructor(e,t=!1){super(),this._fragment=t,this._options=(0,a.applyDefaults)(e||{},n.DefaultXMLBuilderCBOptions),this._builderOptions={defaultNamespace:this._options.defaultNamespace,namespaceAlias:this._options.namespaceAlias},"json"===this._options.format?this._writer=new h.JSONCBWriter(this._options):"yaml"===this._options.format?this._writer=new p.YAMLCBWriter(this._options):this._writer=new c.XMLCBWriter(this._options),void 0!==this._options.data&&this.on("data",this._options.data),void 0!==this._options.end&&this.on("end",this._options.end),void 0!==this._options.error&&this.on("error",this._options.error),this._prefixMap=new l.NamespacePrefixMap,this._prefixMap.set("xml",s.namespace.XML),this._prefixIndex={value:1},this._push(this._writer.frontMatter())}ele(e,t,r){if((0,a.isObject)(e)||(0,a.isString)(e)&&(/^\s*</.test(e)||/^\s*[\{\[]/.test(e)||/^(\s*|(#.*)|(%.*))*---/.test(e))){let t=(0,i.fragment)().set(this._options);try{t.ele(e)}catch(e){return this.emit("error",e),this}for(let e of t.node.childNodes)this._fromNode(e);return this}if(this._serializeOpenTag(!0),!this._fragment&&this._hasDocumentElement&&0===this._writer.level)return this.emit("error",Error("Document cannot have multiple document element nodes.")),this;try{this._currentElement=(0,i.fragment)(this._builderOptions).ele(e,t,r)}catch(e){return this.emit("error",e),this}return this._fragment||this._hasDocumentElement||""===this._docTypeName||this._currentElement.node._qualifiedName===this._docTypeName?(this._currentElementSerialized=!1,this._fragment||(this._hasDocumentElement=!0)):this.emit("error",Error("Document element name does not match DocType declaration name.")),this}att(e,t,r){if(void 0===this._currentElement)return this.emit("error",Error("Cannot insert an attribute node as child of a document node.")),this;try{this._currentElement.att(e,t,r)}catch(e){this.emit("error",e)}return this}com(e){let t;this._serializeOpenTag(!0);try{t=(0,i.fragment)(this._builderOptions).com(e).first().node}catch(e){return this.emit("error",e),this}return this._options.wellFormed&&(!(0,o.xml_isLegalChar)(t.data)||-1!==t.data.indexOf("--")||t.data.endsWith("-"))?this.emit("error",Error("Comment data contains invalid characters (well-formed required).")):this._push(this._writer.comment(t.data)),this}txt(e){let t;if(!this._fragment&&void 0===this._currentElement)return this.emit("error",Error("Cannot insert a text node as child of a document node.")),this;this._serializeOpenTag(!0);try{t=(0,i.fragment)(this._builderOptions).txt(e).first().node}catch(e){return this.emit("error",e),this}if(this._options.wellFormed&&!(0,o.xml_isLegalChar)(t.data))return this.emit("error",Error("Text data contains invalid characters (well-formed required).")),this;let r=t.data.replace(/(?!&(lt|gt|amp|apos|quot);)&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");this._push(this._writer.text(r));let n=this._openTags[this._openTags.length-1];return n&&(n[n.length-1]=!0),this}ins(e,t=""){let r;this._serializeOpenTag(!0);try{r=(0,i.fragment)(this._builderOptions).ins(e,t).first().node}catch(e){return this.emit("error",e),this}return this._options.wellFormed&&(-1!==r.target.indexOf(":")||/^xml$/i.test(r.target))?this.emit("error",Error("Processing instruction target contains invalid characters (well-formed required).")):this._options.wellFormed&&!(0,o.xml_isLegalChar)(r.data)?this.emit("error",Error("Processing instruction data contains invalid characters (well-formed required).")):this._push(this._writer.instruction(r.target,r.data)),this}dat(e){let t;this._serializeOpenTag(!0);try{t=(0,i.fragment)(this._builderOptions).dat(e).first().node}catch(e){return this.emit("error",e),this}return this._push(this._writer.cdata(t.data)),this}dec(e={version:"1.0"}){return this._fragment?this.emit("error",Error("Cannot insert an XML declaration into a document fragment.")):this._hasDeclaration?this.emit("error",Error("XML declaration is already inserted.")):(this._push(this._writer.declaration(e.version||"1.0",e.encoding,e.standalone)),this._hasDeclaration=!0),this}dtd(e){let t;if(this._fragment)return this.emit("error",Error("Cannot insert a DocType declaration into a document fragment.")),this;if(""!==this._docTypeName)return this.emit("error",Error("DocType declaration is already inserted.")),this;if(this._hasDocumentElement)return this.emit("error",Error("Cannot insert DocType declaration after document element.")),this;try{t=(0,i.create)().dtd(e).first().node}catch(e){return this.emit("error",e),this}return this._options.wellFormed&&!(0,o.xml_isPubidChar)(t.publicId)?this.emit("error",Error("DocType public identifier does not match PubidChar construct (well-formed required).")):this._options.wellFormed&&(!(0,o.xml_isLegalChar)(t.systemId)||-1!==t.systemId.indexOf('"')&&-1!==t.systemId.indexOf("'"))?this.emit("error",Error("DocType system identifier contains invalid characters (well-formed required).")):(this._docTypeName=e.name,this._push(this._writer.docType(e.name,t.publicId,t.systemId))),this}import(e){let t=(0,i.fragment)().set(this._options);try{t.import(e)}catch(e){return this.emit("error",e),this}for(let e of t.node.childNodes)this._fromNode(e);return this}up(){return this._serializeOpenTag(!1),this._serializeCloseTag(),this}end(){for(this._serializeOpenTag(!1);this._openTags.length>0;)this._serializeCloseTag();return this._push(null),this}_serializeOpenTag(e){if(this._currentElementSerialized||void 0===this._currentElement)return;let t=this._currentElement.node;if(this._options.wellFormed&&(-1!==t.localName.indexOf(":")||!(0,o.xml_isName)(t.localName)))return void this.emit("error",Error("Node local name contains invalid characters (well-formed required)."));let r="",n=!1,a=this._prefixMap.copy(),i={},l=this._recordNamespaceInformation(t,a,i),u=0===this._openTags.length?null:this._openTags[this._openTags.length-1][1],d=t.namespaceURI;if(null===d&&(d=u),u===d)null!==l&&(n=!0),r=d===s.namespace.XML?"xml:"+t.localName:t.localName,this._writer.beginElement(r),this._push(this._writer.openTagBegin(r));else{let e=t.prefix,o=null;if((null!==e||d!==l)&&(o=a.get(e,d)),"xmlns"===e){if(this._options.wellFormed)return void this.emit("error",Error("An element cannot have the 'xmlns' prefix (well-formed required)."));o=e}null!==o?(r=o+":"+t.localName,null!==l&&l!==s.namespace.XML&&(u=l||null),this._writer.beginElement(r),this._push(this._writer.openTagBegin(r))):null!==e?(e in i&&(e=this._generatePrefix(d,a,this._prefixIndex)),a.set(e,d),r+=e+":"+t.localName,this._writer.beginElement(r),this._push(this._writer.openTagBegin(r)),this._push(this._writer.attribute("xmlns:"+e,this._serializeAttributeValue(d,this._options.wellFormed))),null!==l&&(u=l||null)):null===l||null!==l&&l!==d?(n=!0,r+=t.localName,u=d,this._writer.beginElement(r),this._push(this._writer.openTagBegin(r)),this._push(this._writer.attribute("xmlns",this._serializeAttributeValue(d,this._options.wellFormed)))):(r+=t.localName,u=d,this._writer.beginElement(r),this._push(this._writer.openTagBegin(r)))}this._serializeAttributes(t,a,this._prefixIndex,i,n,this._options.wellFormed);let c=d===s.namespace.HTML;c&&!e&&f._VoidElementNames.has(t.localName)?(this._push(this._writer.openTagEnd(r,!0,!0)),this._writer.endElement(r)):c||e?this._push(this._writer.openTagEnd(r,!1,!1)):(this._push(this._writer.openTagEnd(r,!0,!1)),this._writer.endElement(r)),this._currentElementSerialized=!0,this._openTags.push([r,u,this._prefixMap,e,void 0]),this._isPrefixMapModified(this._prefixMap,a)&&(this._prefixMap=a),this._writer.level++}_serializeCloseTag(){this._writer.level--;let e=this._openTags.pop();if(void 0===e)return void this.emit("error",Error("Last element is undefined."));let[t,r,n,a,i]=e;this._prefixMap=n,a&&(this._push(this._writer.closeTag(t,i)),this._writer.endElement(t))}_push(e){null===e?(this._ended=!0,this.emit("end")):this._ended?this.emit("error",Error("Cannot push to ended stream.")):0!==e.length&&(this._writer.hasData=!0,this.emit("data",e,this._writer.level))}_fromNode(e){if(d.Guard.isElementNode(e)){let t=e.prefix?e.prefix+":"+e.localName:e.localName;for(let r of(null!==e.namespaceURI?this.ele(e.namespaceURI,t):this.ele(t),e.attributes)){let e=r.prefix?r.prefix+":"+r.localName:r.localName;null!==r.namespaceURI?this.att(r.namespaceURI,e,r.value):this.att(e,r.value)}for(let t of e.childNodes)this._fromNode(t);this.up()}else d.Guard.isExclusiveTextNode(e)&&e.data?this.txt(e.data):d.Guard.isCommentNode(e)?this.com(e.data):d.Guard.isCDATASectionNode(e)?this.dat(e.data):d.Guard.isProcessingInstructionNode(e)&&this.ins(e.target,e.data)}_serializeAttributes(e,t,r,n,a,i){let l=i?new u.LocalNameSet:void 0;for(let u of e.attributes){if(!i&&!a&&null===u.namespaceURI){this._push(this._writer.attribute(u.localName,this._serializeAttributeValue(u.value,this._options.wellFormed)));continue}if(i&&l&&l.has(u.namespaceURI,u.localName))return void this.emit("error",Error("Element contains duplicate attributes (well-formed required)."));i&&l&&l.set(u.namespaceURI,u.localName);let e=u.namespaceURI,d=null;if(null!==e)if(d=t.get(u.prefix,e),e===s.namespace.XMLNS){if(u.value===s.namespace.XML||null===u.prefix&&a||null!==u.prefix&&(!(u.localName in n)||n[u.localName]!==u.value)&&t.has(u.localName,u.value))continue;if(i&&u.value===s.namespace.XMLNS)return void this.emit("error",Error("XMLNS namespace is reserved (well-formed required)."));if(i&&""===u.value)return void this.emit("error",Error("Namespace prefix declarations cannot be used to undeclare a namespace (well-formed required)."));"xmlns"===u.prefix&&(d="xmlns")}else null===d&&(d=null!==u.prefix&&(!t.hasPrefix(u.prefix)||t.has(u.prefix,e))?u.prefix:this._generatePrefix(e,t,r),this._push(this._writer.attribute("xmlns:"+d,this._serializeAttributeValue(e,this._options.wellFormed))));if(i&&(-1!==u.localName.indexOf(":")||!(0,o.xml_isName)(u.localName)||"xmlns"===u.localName&&null===e))return void this.emit("error",Error("Attribute local name contains invalid characters (well-formed required)."));this._push(this._writer.attribute((null!==d?d+":":"")+u.localName,this._serializeAttributeValue(u.value,this._options.wellFormed)))}}_serializeAttributeValue(e,t){return t&&null!==e&&!(0,o.xml_isLegalChar)(e)?(this.emit("error",Error("Invalid characters in attribute value.")),""):null===e?"":e.replace(/(?!&(lt|gt|amp|apos|quot);)&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}_recordNamespaceInformation(e,t,r){let n=null;for(let a of e.attributes){let e=a.namespaceURI,i=a.prefix;if(e===s.namespace.XMLNS)if(null===i){n=a.value;continue}else{let e=a.localName,n=a.value;if(n===s.namespace.XML||(""===n&&(n=null),t.has(e,n)))continue;t.set(e,n),r[e]=n||""}}return n}_generatePrefix(e,t,r){let n="ns"+r.value;return r.value++,t.set(n,e),n}_isPrefixMapModified(e,t){let r=e._items,n=t._items,a=e._nullItems,i=t._nullItems;for(let e in n){let t=r[e];if(void 0===t)return!0;let a=n[e];if(t.length!==a.length)return!0;for(let e=0;e<t.length;e++)if(t[e]!==a[e])return!0}if(a.length!==i.length)return!0;for(let e=0;e<a.length;e++)if(a[e]!==i[e])return!0;return!1}}t.XMLBuilderCBImpl=f},1720(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLBuilderImpl=void 0;let n=r(3890),a=r(3738),i=r(6655),o=r(3841),s=r(8723),l=r(8792),u=r(4440),d=r(360),c=r(4251);t.XMLBuilderImpl=class e{_domNode;constructor(e){this._domNode=e}get node(){return this._domNode}get options(){return this._options}set(e){return this._options=(0,a.applyDefaults)((0,a.applyDefaults)(this._options,e,!0),n.DefaultBuilderOptions),this}ele(t,r,n){let i,o,s;if((0,a.isObject)(t))return new c.ObjectReader(this._options).parse(this,t);if((0,a.isString)(t)&&null!==t&&/^\s*</.test(t))return new c.XMLReader(this._options).parse(this,t);if((0,a.isString)(t)&&null!==t&&/^\s*[\{\[]/.test(t))return new c.JSONReader(this._options).parse(this,t);if((0,a.isString)(t)&&null!==t&&/^(\s*|(#.*)|(%.*))*---/.test(t))return new c.YAMLReader(this._options).parse(this,t);if((null===t||(0,a.isString)(t))&&(0,a.isString)(r))[i,o,s]=[t,r,n];else if(null!==t)[i,o,s]=[void 0,t,(0,a.isObject)(r)?r:void 0];else throw Error("Element name cannot be null. "+this._debugInfo());if(s&&(s=(0,a.getValue)(s)),[i,o]=this._extractNamespace((0,u.sanitizeInput)(i,this._options.invalidCharReplacement),(0,u.sanitizeInput)(o,this._options.invalidCharReplacement),!0),void 0===i){let[e]=(0,l.namespace_extractQName)(o);i=this.node.lookupNamespaceURI(e)}let d=null!=i?this._doc.createElementNS(i,o):this._doc.createElement(o);this.node.appendChild(d);let h=new e(d),p=this._doc.doctype;if(d===this._doc.documentElement&&null!==p){let e=this._doc.implementation.createDocumentType(this._doc.documentElement.tagName,p.publicId,p.systemId);this._doc.replaceChild(e,p)}return s&&!(0,a.isEmpty)(s)&&h.att(s),h}remove(){let e=this.up();return e.node.removeChild(this.node),e}att(e,t,r){let n,i,o;if((0,a.isMap)(e)||(0,a.isObject)(e))return(0,a.forEachObject)(e,(e,t)=>this.att(e,t),this),this;if(null!=e&&(e=(0,a.getValue)(e+"")),null!=t&&(t=(0,a.getValue)(t+"")),null!=r&&(r=(0,a.getValue)(r+"")),(null===e||(0,a.isString)(e))&&(0,a.isString)(t)&&(null===r||(0,a.isString)(r)))[n,i,o]=[e,t,r];else if((0,a.isString)(e)&&(null==t||(0,a.isString)(t)))[n,i,o]=[void 0,e,t];else throw Error("Attribute name and value not specified. "+this._debugInfo());if(this._options.keepNullAttributes&&null==o)o="";else if(null==o)return this;if(!s.Guard.isElementNode(this.node))throw Error("An attribute can only be assigned to an element node.");let c=this.node;[n,i]=this._extractNamespace(n,i,!1),i=(0,u.sanitizeInput)(i,this._options.invalidCharReplacement),n=(0,u.sanitizeInput)(n,this._options.invalidCharReplacement),o=(0,u.sanitizeInput)(o,this._options.invalidCharReplacement);let[h,p]=(0,l.namespace_extractQName)(i),[m]=(0,l.namespace_extractQName)(c.prefix?c.prefix+":"+c.localName:c.localName),f=null;return"xmlns"===h?(n=d.namespace.XMLNS,null===c.namespaceURI&&m===p&&(f=o)):null===h&&"xmlns"===p&&null===m&&(n=d.namespace.XMLNS,f=o),null!==f&&(this._updateNamespace(f),c=this.node),void 0!==n?c.setAttributeNS(n,i,o):c.setAttribute(i,o),this}removeAtt(e,t){let r,n;if(!s.Guard.isElementNode(this.node))throw Error("An attribute can only be removed from an element node.");if(e=(0,a.getValue)(e),void 0!==t&&(t=(0,a.getValue)(t)),null!==e&&void 0===t)n=e;else if((null===e||(0,a.isString)(e))&&void 0!==t)r=e,n=t;else throw Error("Attribute namespace must be a string. "+this._debugInfo());return(0,a.isArray)(n)||(0,a.isSet)(n)?(0,a.forEachArray)(n,e=>void 0===r?this.removeAtt(e):this.removeAtt(r,e),this):void 0!==r?(n=(0,u.sanitizeInput)(n,this._options.invalidCharReplacement),r=(0,u.sanitizeInput)(r,this._options.invalidCharReplacement),this.node.removeAttributeNS(r,n)):(n=(0,u.sanitizeInput)(n,this._options.invalidCharReplacement),this.node.removeAttribute(n)),this}txt(e){if(null==e)if(!this._options.keepNullNodes)return this;else e="";let t=this._doc.createTextNode((0,u.sanitizeInput)(e,this._options.invalidCharReplacement));return this.node.appendChild(t),this}com(e){if(null==e)if(!this._options.keepNullNodes)return this;else e="";let t=this._doc.createComment((0,u.sanitizeInput)(e,this._options.invalidCharReplacement));return this.node.appendChild(t),this}dat(e){if(null==e)if(!this._options.keepNullNodes)return this;else e="";let t=this._doc.createCDATASection((0,u.sanitizeInput)(e,this._options.invalidCharReplacement));return this.node.appendChild(t),this}ins(e,t=""){if(null==t)if(!this._options.keepNullNodes)return this;else t="";if((0,a.isArray)(e)||(0,a.isSet)(e))(0,a.forEachArray)(e,e=>{let t=(e+="").indexOf(" "),r=-1===t?e:e.substr(0,t),n=-1===t?"":e.substr(t+1);this.ins(r,n)},this);else if((0,a.isMap)(e)||(0,a.isObject)(e))(0,a.forEachObject)(e,(e,t)=>this.ins(e,t),this);else{let r=this._doc.createProcessingInstruction((0,u.sanitizeInput)(e,this._options.invalidCharReplacement),(0,u.sanitizeInput)(t,this._options.invalidCharReplacement));this.node.appendChild(r)}return this}dec(e){return this._options.version=e.version||"1.0",this._options.encoding=e.encoding,this._options.standalone=e.standalone,this}dtd(e){let t=(0,u.sanitizeInput)(e&&e.name||(this._doc.documentElement?this._doc.documentElement.tagName:"ROOT"),this._options.invalidCharReplacement),r=(0,u.sanitizeInput)(e&&e.pubID||"",this._options.invalidCharReplacement),n=(0,u.sanitizeInput)(e&&e.sysID||"",this._options.invalidCharReplacement);if(null!==this._doc.documentElement&&t!==this._doc.documentElement.tagName)throw Error("DocType name does not match document element name.");let a=this._doc.implementation.createDocumentType(t,r,n);return null!==this._doc.doctype?this._doc.replaceChild(a,this._doc.doctype):this._doc.insertBefore(a,this._doc.documentElement),this}import(t){let r=this._domNode,n=this._doc,a=t.node,i=t=>{if(!t._namespace){let[n]=(0,l.namespace_extractQName)(t.prefix?t.prefix+":"+t.localName:t.localName),a=r.lookupNamespaceURI(n);new e(t)._updateNamespace(a)}};if(s.Guard.isDocumentNode(a)){let e=a.documentElement;if(null===e)throw Error("Imported document has no document element node. "+this._debugInfo());let t=n.importNode(e,!0);r.appendChild(t),i(t)}else if(s.Guard.isDocumentFragmentNode(a))for(let e of a.childNodes){let t=n.importNode(e,!0);r.appendChild(t),s.Guard.isElementNode(t)&&i(t)}else{let e=n.importNode(a,!0);r.appendChild(e),s.Guard.isElementNode(e)&&i(e)}return this}doc(){if(!this._doc._isFragment)return new e(this._doc);{let t=this.node;for(;t&&t.nodeType!==o.NodeType.DocumentFragment;)t=t.parentNode;if(null===t)throw Error("Node has no parent node while searching for document fragment ancestor. "+this._debugInfo());return new e(t)}}root(){let t=this._doc.documentElement;if(!t)throw Error("Document root element is null. "+this._debugInfo());return new e(t)}up(){let t=this._domNode.parentNode;if(!t)throw Error("Parent node is null. "+this._debugInfo());return new e(t)}prev(){let t=this._domNode.previousSibling;if(!t)throw Error("Previous sibling node is null. "+this._debugInfo());return new e(t)}next(){let t=this._domNode.nextSibling;if(!t)throw Error("Next sibling node is null. "+this._debugInfo());return new e(t)}first(){let t=this._domNode.firstChild;if(!t)throw Error("First child node is null. "+this._debugInfo());return new e(t)}last(){let t=this._domNode.lastChild;if(!t)throw Error("Last child node is null. "+this._debugInfo());return new e(t)}each(t,r=!1,n=!1,a){let i=this._getFirstDescendantNode(this._domNode,r,n);for(;i[0];){let r=this._getNextDescendantNode(this._domNode,i[0],n,i[1],i[2]);t.call(a,new e(i[0]),i[1],i[2]),i=r}return this}map(e,t=!1,r=!1,n){let a=[];return this.each((t,r,i)=>a.push(e.call(n,t,r,i)),t,r),a}reduce(e,t,r=!1,n=!1,a){let i=t;return this.each((t,r,n)=>i=e.call(a,i,t,r,n),r,n),i}find(t,r=!1,n=!1,a){let i=this._getFirstDescendantNode(this._domNode,r,n);for(;i[0];){let r=new e(i[0]);if(t.call(a,r,i[1],i[2]))return r;i=this._getNextDescendantNode(this._domNode,i[0],n,i[1],i[2])}}filter(e,t=!1,r=!1,n){let a=[];return this.each((t,r,i)=>{e.call(n,t,r,i)&&a.push(t)},t,r),a}every(t,r=!1,n=!1,a){let i=this._getFirstDescendantNode(this._domNode,r,n);for(;i[0];){let r=new e(i[0]);if(!t.call(a,r,i[1],i[2]))return!1;i=this._getNextDescendantNode(this._domNode,i[0],n,i[1],i[2])}return!0}some(t,r=!1,n=!1,a){let i=this._getFirstDescendantNode(this._domNode,r,n);for(;i[0];){let r=new e(i[0]);if(t.call(a,r,i[1],i[2]))return!0;i=this._getNextDescendantNode(this._domNode,i[0],n,i[1],i[2])}return!1}toArray(e=!1,t=!1){let r=[];return this.each(e=>r.push(e),e,t),r}toString(e){return void 0===(e=e||{}).format&&(e.format="xml"),this._serialize(e)}toObject(e){return void 0===(e=e||{}).format&&(e.format="object"),this._serialize(e)}end(e){return void 0===(e=e||{}).format&&(e.format="xml"),this.doc()._serialize(e)}_getFirstDescendantNode(e,t,r){return t?[this._domNode,0,0]:r?this._getNextDescendantNode(e,e,r,0,0):[this._domNode.firstChild,0,1]}_getNextDescendantNode(e,t,r,n,a){if(r){if(t.firstChild)return[t.firstChild,0,a+1];if(t===e)return[null,-1,-1];if(t.nextSibling)return[t.nextSibling,n+1,a];let r=t.parentNode;for(;r&&r!==e;){if(r.nextSibling)return[r.nextSibling,(0,l.tree_index)(r.nextSibling),a-1];r=r.parentNode,a--}}else if(e===t)return[t.firstChild,0,a+1];else return[t.nextSibling,n+1,a];return[null,-1,-1]}_serialize(e){if("xml"===e.format)return new i.XMLWriter(this._options,e).serialize(this.node);if("map"===e.format)return new i.MapWriter(this._options,e).serialize(this.node);if("object"===e.format)return new i.ObjectWriter(this._options,e).serialize(this.node);if("json"===e.format)return new i.JSONWriter(this._options,e).serialize(this.node);if("yaml"===e.format)return new i.YAMLWriter(this._options,e).serialize(this.node);else throw Error("Invalid writer format: "+e.format+". "+this._debugInfo())}_extractNamespace(e,t,r){let n=t.indexOf("@");if(n>0&&(void 0===e&&(e=t.slice(n+1)),t=t.slice(0,n)),void 0===e)e=r?this._options.defaultNamespace.ele:this._options.defaultNamespace.att;else if(null!==e&&"@"===e[0]){let t=e.slice(1);if(void 0===(e=this._options.namespaceAlias[t]))throw Error("Namespace alias `"+t+"` is not defined. "+this._debugInfo())}return[e,t]}_updateNamespace(t){let r=this._domNode;if(s.Guard.isElementNode(r)&&null!==t&&r.namespaceURI!==t){let[n,a]=(0,l.namespace_extractQName)(r.prefix?r.prefix+":"+r.localName:r.localName),i=(0,l.create_element)(this._doc,a,t,n);for(let e of r.attributes){let t=e.prefix?e.prefix+":"+e.localName:e.localName,[n]=(0,l.namespace_extractQName)(t),a=e.namespaceURI;null===a&&null!==n&&(a=r.lookupNamespaceURI(n)),null===a?i.setAttribute(t,e.value):i.setAttributeNS(a,t,e.value)}let o=r.parentNode;if(null===o)throw Error("Parent node is null."+this._debugInfo());for(let t of(o.replaceChild(i,r),this._domNode=i,r.childNodes)){let r=t.cloneNode(!0);if(i.appendChild(r),s.Guard.isElementNode(r)&&!r._namespace){let[t]=(0,l.namespace_extractQName)(r.prefix?r.prefix+":"+r.localName:r.localName),n=i.lookupNamespaceURI(t);new e(r)._updateNamespace(n)}}}}get _doc(){let e=this.node;if(s.Guard.isDocumentNode(e))return e;{let t=e.ownerDocument;if(!t)throw Error("Owner document is null. "+this._debugInfo());return t}}_debugInfo(e){let t=this.node,r=t.parentNode;e=e||t.nodeName;let n=r?r.nodeName:"";return n?"node: <"+e+">, parent: <"+n+">":"node: <"+e+">"}get _options(){let e=this._doc;if(void 0===e._xmlBuilderOptions)throw Error("Builder options is not set.");return e._xmlBuilderOptions}set _options(e){this._doc._xmlBuilderOptions=e}}},4440(e,t,r){"use strict";t.createDocument=function(){let e=new n.DOMImplementation().createDocument(null,"root",null);return e.documentElement&&e.removeChild(e.documentElement),e},t.sanitizeInput=function(e,t){if(null==e)return e;{if(void 0===t)return e+"";let r="";e+="";for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(9===a||10===a||13===a||a>=32&&a<=55295||a>=57344&&a<=65533)r+=e.charAt(n);else if(a>=55296&&a<=56319&&n<e.length-1){let o=e.charCodeAt(n+1);o>=56320&&o<=57343?(r+=String.fromCodePoint(a=(a-55296)*1024+o-56320+65536),n++):r+=(0,i.isString)(t)?t:t(e.charAt(n),n,e)}else r+=(0,i.isString)(t)?t:t(e.charAt(n),n,e)}return r}};let n=r(1362),a=r(5313),i=r(3738);a.dom.setFeatures(!1)},5e3(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fragmentCB=t.createCB=t.convert=t.fragment=t.create=t.builder=t.XMLBuilderCBImpl=t.XMLBuilderImpl=void 0;var n=r(1720);Object.defineProperty(t,"XMLBuilderImpl",{enumerable:!0,get:function(){return n.XMLBuilderImpl}});var a=r(6045);Object.defineProperty(t,"XMLBuilderCBImpl",{enumerable:!0,get:function(){return a.XMLBuilderCBImpl}});var i=r(8242);Object.defineProperty(t,"builder",{enumerable:!0,get:function(){return i.builder}}),Object.defineProperty(t,"create",{enumerable:!0,get:function(){return i.create}}),Object.defineProperty(t,"fragment",{enumerable:!0,get:function(){return i.fragment}}),Object.defineProperty(t,"convert",{enumerable:!0,get:function(){return i.convert}});var o=r(6891);Object.defineProperty(t,"createCB",{enumerable:!0,get:function(){return o.createCB}}),Object.defineProperty(t,"fragmentCB",{enumerable:!0,get:function(){return o.fragmentCB}})},5725(e,t){"use strict";t.nonEntityAmpersandRegex=void 0,t.nonEntityAmpersandRegex=/&(?![A-Za-z]+;|#\d+;)/g},5528(e,t,r){"use strict";t.vt=void 0;var n=r(5e3);Object.defineProperty(t,"vt",{enumerable:!0,get:function(){return n.create}})},3890(e,t){"use strict";t.DefaultXMLBuilderCBOptions=t.XMLBuilderOptionKeys=t.DefaultBuilderOptions=void 0,t.DefaultBuilderOptions={version:"1.0",encoding:void 0,standalone:void 0,keepNullNodes:!1,keepNullAttributes:!1,ignoreConverters:!1,skipWhitespaceOnlyText:!0,convert:{att:"@",ins:"?",text:"#",cdata:"$",comment:"!"},defaultNamespace:{ele:void 0,att:void 0},namespaceAlias:{html:"http://www.w3.org/1999/xhtml",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink"},invalidCharReplacement:void 0,parser:void 0},t.XMLBuilderOptionKeys=new Set(Object.keys(t.DefaultBuilderOptions)),t.DefaultXMLBuilderCBOptions={format:"xml",wellFormed:!1,prettyPrint:!1,indent:" ",newline:"\n",offset:0,width:0,allowEmptyTags:!1,spaceBeforeSlash:!1,keepNullNodes:!1,keepNullAttributes:!1,ignoreConverters:!1,convert:{att:"@",ins:"?",text:"#",cdata:"$",comment:"!"},defaultNamespace:{ele:void 0,att:void 0},namespaceAlias:{html:"http://www.w3.org/1999/xhtml",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink"}}},1737(e,t,r){"use strict";t.BaseReader=void 0;let n=r(4440);t.BaseReader=class e{_builderOptions;static _entityTable={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};constructor(e){this._builderOptions=e,e.parser&&Object.assign(this,e.parser)}_docType(e,t,r,n){return e.dtd({name:t,pubID:r,sysID:n})}_comment(e,t){return e.com(t)}_text(e,t){return e.txt(t)}_instruction(e,t,r){return e.ins(t,r)}_cdata(e,t){return e.dat(t)}_element(e,t,r){return void 0===t?e.ele(r):e.ele(t,r)}_attribute(e,t,r,n){return void 0===t?e.att(r,n):e.att(t,r,n)}_sanitize(e){return(0,n.sanitizeInput)(e,this._builderOptions.invalidCharReplacement)}_decodeText(t){return null==t?t:t.replace(/&(quot|amp|apos|lt|gt);/g,(t,r)=>e._entityTable[r]).replace(/&#(?:x([a-fA-F0-9]+)|([0-9]+));/g,(e,t,r)=>String.fromCodePoint(parseInt(t||r,t?16:10)))}_decodeAttributeValue(e){return this._decodeText(e)}parse(e,t){return this._parse(e,t)}docType(e,t,r,n){return this._docType(e,t,r,n)}comment(e,t){return this._comment(e,t)}text(e,t){return this._text(e,t)}instruction(e,t,r){return this._instruction(e,t,r)}cdata(e,t){return this._cdata(e,t)}element(e,t,r){return this._element(e,t,r)}attribute(e,t,r,n){return this._attribute(e,t,r,n)}sanitize(e){return this._sanitize(e)}}},9902(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONReader=void 0;let n=r(6367),a=r(1737);class i extends a.BaseReader{_parse(e,t){return new n.ObjectReader(this._builderOptions).parse(e,JSON.parse(t))}}t.JSONReader=i},6367(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectReader=void 0;let n=r(3738),a=r(1737);class i extends a.BaseReader{_parse(e,t){let r=this._builderOptions,a=null;return(0,n.isFunction)(t)?a=this.parse(e,t.call(this)):(0,n.isArray)(t)||(0,n.isSet)(t)?(0,n.forEachArray)(t,t=>a=this.parse(e,t),this):(0,n.isMap)(t)||(0,n.isObject)(t)?(0,n.forEachObject)(t,(t,i)=>{if((0,n.isFunction)(i)&&(i=i.call(this)),r.ignoreConverters||0!==t.indexOf(r.convert.att))if(r.ignoreConverters||0!==t.indexOf(r.convert.text))if(r.ignoreConverters||0!==t.indexOf(r.convert.cdata))if(r.ignoreConverters||0!==t.indexOf(r.convert.comment))if(r.ignoreConverters||0!==t.indexOf(r.convert.ins)){if(((0,n.isArray)(i)||(0,n.isSet)(i))&&(0,n.isEmpty)(i));else if(((0,n.isMap)(i)||(0,n.isObject)(i))&&(0,n.isEmpty)(i))a=this.element(e,void 0,this.sanitize(t))||a;else if(r.keepNullNodes||null!=i)if((0,n.isArray)(i)||(0,n.isSet)(i))(0,n.forEachArray)(i,r=>{let n={};n[t]=r,a=this.parse(e,n)},this);else if((0,n.isMap)(i)||(0,n.isObject)(i)){let r=this.element(e,void 0,this.sanitize(t));r&&(a=r,this.parse(r,i))}else if(null==i||(0,n.isString)(i)&&""===i)a=this.element(e,void 0,this.sanitize(t))||a;else{let r=this.element(e,void 0,this.sanitize(t));r&&(a=r,this.text(r,this._decodeText(this.sanitize(i?.toString()))))}}else if((0,n.isString)(i)){let t=i.indexOf(" "),r=-1===t?i:i.substr(0,t),n=-1===t?"":i.substr(t+1);a=this.instruction(e,this.sanitize(r),this.sanitize(n))||a}else(0,n.isArray)(i)||(0,n.isSet)(i)?(0,n.forEachArray)(i,t=>{let r=t.indexOf(" "),n=-1===r?t:t.substr(0,r),i=-1===r?"":t.substr(r+1);a=this.instruction(e,this.sanitize(n),this.sanitize(i))||a},this):(0,n.forEachObject)(i,(t,r)=>a=this.instruction(e,this.sanitize(t),this.sanitize(r))||a,this);else(0,n.isArray)(i)||(0,n.isSet)(i)?(0,n.forEachArray)(i,t=>a=this.comment(e,this.sanitize(t))||a,this):a=this.comment(e,this.sanitize(i?.toString()))||a;else(0,n.isArray)(i)||(0,n.isSet)(i)?(0,n.forEachArray)(i,t=>a=this.cdata(e,this.sanitize(t))||a,this):a=this.cdata(e,this.sanitize(i?.toString()))||a;else a=(0,n.isMap)(i)||(0,n.isObject)(i)?this.parse(e,i):this.text(e,this._decodeText(this.sanitize(i?.toString())))||a;else if(t===r.convert.att)if((0,n.isArray)(i)||(0,n.isSet)(i))throw Error("Invalid attribute: "+i.toString()+". "+e._debugInfo());else(0,n.forEachObject)(i,(t,r)=>{a=this.attribute(e,void 0,this.sanitize(t),this._decodeAttributeValue(this.sanitize(r)))||a});else a=this.attribute(e,void 0,this.sanitize(t.substring(r.convert.att.length)),this._decodeAttributeValue(this.sanitize(i?.toString())))||a},this):(r.keepNullNodes||null!=t)&&(a=this.text(e,this._decodeText(this.sanitize(t?.toString())))||a),a||e}}t.ObjectReader=i},7661(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLReader=void 0;let n=r(9460),a=r(2854),i=r(3841),o=r(360),s=r(8792),l=r(1737);class u extends l.BaseReader{_parse(e,t){let r=new n.XMLStringLexer(t,{skipWhitespaceOnlyText:this._builderOptions.skipWhitespaceOnlyText}),l=e,u=e,d=r.nextToken();for(;d.type!==a.TokenType.EOF;){switch(d.type){case a.TokenType.Declaration:let t=d,n=this.sanitize(t.version);if("1.0"!==n)throw Error("Invalid xml version: "+n);let c={version:n};t.encoding&&(c.encoding=this.sanitize(t.encoding)),t.standalone&&(c.standalone="yes"===this.sanitize(t.standalone)),u.set(c);break;case a.TokenType.DocType:let h=d;u=this.docType(u,this.sanitize(h.name),this.sanitize(h.pubId),this.sanitize(h.sysId))||u;break;case a.TokenType.CDATA:let p=d;u=this.cdata(u,this.sanitize(p.data))||u;break;case a.TokenType.Comment:let m=d;u=this.comment(u,this.sanitize(m.data))||u;break;case a.TokenType.PI:let f=d;u=this.instruction(u,this.sanitize(f.target),this.sanitize(f.data))||u;break;case a.TokenType.Text:if(u.node.nodeType===i.NodeType.Document)break;let g=d;u=this.text(u,this._decodeText(this.sanitize(g.data)))||u;break;case a.TokenType.Element:let y=d,v=this.sanitize(y.name),[b]=(0,s.namespace_extractQName)(v),w=u.node.lookupNamespaceURI(b),x={};for(let[e,t]of y.attributes)if(e=this.sanitize(e),t=this.sanitize(t),"xmlns"===e)w=t;else{let[r,n]=(0,s.namespace_extractQName)(e);"xmlns"===r&&(n===b&&(w=t),x[n]=t)}let C=null!==w?this.element(u,w,v):this.element(u,void 0,v);if(void 0===C)break;for(let[t,r]of(u.node===e.node&&(l=C),y.attributes)){t=this.sanitize(t),r=this.sanitize(r);let[e,n]=(0,s.namespace_extractQName)(t),a=null;"xmlns"===e||null===e&&"xmlns"===n?a=o.namespace.XMLNS:null!==(a=C.node.lookupNamespaceURI(e))&&C.node.isDefaultNamespace(a)?a=null:null===a&&null!==e&&(a=x[e]||null),null!==a?this.attribute(C,a,t,this._decodeAttributeValue(r)):this.attribute(C,void 0,t,this._decodeAttributeValue(r))}y.selfClosing||(u=C);break;case a.TokenType.ClosingTag:u.node.parentNode&&(u=u.up())}d=r.nextToken()}return l}}t.XMLReader=u},1263(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLReader=void 0;let n=r(6367),a=r(1737),i=r(5388);class o extends a.BaseReader{_parse(e,t){let r=(0,i.load)(t);if(void 0===r)throw Error("Unable to parse YAML document.");return new n.ObjectReader(this._builderOptions).parse(e,r)}}t.YAMLReader=o},4251(e,t,r){"use strict";t.YAMLReader=t.JSONReader=t.ObjectReader=t.XMLReader=void 0;var n=r(7661);Object.defineProperty(t,"XMLReader",{enumerable:!0,get:function(){return n.XMLReader}});var a=r(6367);Object.defineProperty(t,"ObjectReader",{enumerable:!0,get:function(){return a.ObjectReader}});var i=r(9902);Object.defineProperty(t,"JSONReader",{enumerable:!0,get:function(){return i.JSONReader}});var o=r(1263);Object.defineProperty(t,"YAMLReader",{enumerable:!0,get:function(){return o.YAMLReader}})},4976(e,t){"use strict";t.BaseCBWriter=void 0,t.BaseCBWriter=class{_builderOptions;_writerOptions;level=0;hasData;constructor(e){this._builderOptions=e,this._writerOptions=e}}},6185(e,t,r){"use strict";t.BaseWriter=void 0;let n=r(3841),a=r(2351),i=r(7280),o=r(360),s=r(8792),l=r(5725);class u{static _VoidElementNames=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]);_builderOptions;_writerOptions;constructor(e){this._builderOptions=e}declaration(e,t,r){}docType(e,t,r){}comment(e){}text(e){}instruction(e,t){}cdata(e){}openTagBegin(e){}openTagEnd(e,t,r){}closeTag(e){}attributes(e){for(let t of e)this.attribute(null===t[1]?t[2]:t[1]+":"+t[2],t[3])}attribute(e,t){}beginElement(e){}endElement(e){}level=0;currentNode;serializeNode(e,t){let r=void 0!==e._nodeDocument&&e._nodeDocument._hasNamespaces;if(this.level=0,this.currentNode=e,r){let r=new i.NamespacePrefixMap;r.set("xml",o.namespace.XML),this._serializeNodeNS(e,null,r,{value:1},t)}else this._serializeNode(e,t)}_serializeNodeNS(e,t,r,a,i){switch(this.currentNode=e,e.nodeType){case n.NodeType.Element:this._serializeElementNS(e,t,r,a,i);break;case n.NodeType.Document:this._serializeDocumentNS(e,t,r,a,i);break;case n.NodeType.Comment:this._serializeComment(e,i);break;case n.NodeType.Text:this._serializeText(e,i);break;case n.NodeType.DocumentFragment:this._serializeDocumentFragmentNS(e,t,r,a,i);break;case n.NodeType.DocumentType:this._serializeDocumentType(e,i);break;case n.NodeType.ProcessingInstruction:this._serializeProcessingInstruction(e,i);break;case n.NodeType.CData:this._serializeCData(e,i);break;default:throw Error(`Unknown node type: ${e.nodeType}`)}}_serializeNode(e,t){switch(this.currentNode=e,e.nodeType){case n.NodeType.Element:this._serializeElement(e,t);break;case n.NodeType.Document:this._serializeDocument(e,t);break;case n.NodeType.Comment:this._serializeComment(e,t);break;case n.NodeType.Text:this._serializeText(e,t);break;case n.NodeType.DocumentFragment:this._serializeDocumentFragment(e,t);break;case n.NodeType.DocumentType:this._serializeDocumentType(e,t);break;case n.NodeType.ProcessingInstruction:this._serializeProcessingInstruction(e,t);break;case n.NodeType.CData:this._serializeCData(e,t);break;default:throw Error(`Unknown node type: ${e.nodeType}`)}}_serializeElementNS(e,t,r,n,a){let i=[];if(a&&(-1!==e.localName.indexOf(":")||!(0,s.xml_isName)(e.localName)))throw Error("Node local name contains invalid characters (well-formed required).");let l="",d=!1,c=!1,h=r.copy(),p={},m=this._recordNamespaceInformation(e,h,p),f=t,g=e.namespaceURI;if(f===g)null!==m&&(c=!0),l=g===o.namespace.XML?"xml:"+e.localName:e.localName,this.beginElement(l),this.openTagBegin(l);else{let t=e.prefix,r=null;if((null!==t||g!==m)&&(r=h.get(t,g)),"xmlns"===t){if(a)throw Error("An element cannot have the 'xmlns' prefix (well-formed required).");r=t}null!==r?(l=r+":"+e.localName,null!==m&&m!==o.namespace.XML&&(f=m||null),this.beginElement(l),this.openTagBegin(l)):null!==t?(t in p&&(t=this._generatePrefix(g,h,n)),h.set(t,g),l+=t+":"+e.localName,this.beginElement(l),this.openTagBegin(l),i.push([null,"xmlns",t,this._serializeAttributeValue(g,a)]),null!==m&&(f=m||null)):null===m||null!==m&&m!==g?(c=!0,l+=e.localName,f=g,this.beginElement(l),this.openTagBegin(l),i.push([null,null,"xmlns",this._serializeAttributeValue(g,a)])):(l+=e.localName,f=g,this.beginElement(l),this.openTagBegin(l))}i.push(...this._serializeAttributesNS(e,h,n,p,c,a)),this.attributes(i);let y=g===o.namespace.HTML;if(y&&0===e.childNodes.length&&u._VoidElementNames.has(e.localName)?(this.openTagEnd(l,!0,!0),this.endElement(l),d=!0):y||0!==e.childNodes.length?this.openTagEnd(l,!1,!1):(this.openTagEnd(l,!0,!1),this.endElement(l),d=!0),!d){if(y&&"template"===e.localName);else for(let t of e.childNodes)this.level++,this._serializeNodeNS(t,f,h,n,a),this.level--;this.closeTag(l),this.endElement(l)}}_serializeElement(e,t){if(t&&(-1!==e.localName.indexOf(":")||!(0,s.xml_isName)(e.localName)))throw Error("Node local name contains invalid characters (well-formed required).");let r=!1,n=e.localName;this.beginElement(n),this.openTagBegin(n);let a=this._serializeAttributes(e,t);if(this.attributes(a),e.hasChildNodes()?this.openTagEnd(n,!1,!1):(this.openTagEnd(n,!0,!1),this.endElement(n),r=!0),!r){for(let r of e._children)this.level++,this._serializeNode(r,t),this.level--;this.closeTag(n),this.endElement(n)}}_serializeDocumentNS(e,t,r,n,a){if(a&&null===e.documentElement)throw Error("Missing document element (well-formed required).");for(let i of e.childNodes)this._serializeNodeNS(i,t,r,n,a)}_serializeDocument(e,t){if(t&&null===e.documentElement)throw Error("Missing document element (well-formed required).");for(let r of e._children)this._serializeNode(r,t)}_serializeComment(e,t){if(t&&(!(0,s.xml_isLegalChar)(e.data)||-1!==e.data.indexOf("--")||e.data.endsWith("-")))throw Error("Comment data contains invalid characters (well-formed required).");this.comment(e.data)}_serializeText(e,t){if(t&&!(0,s.xml_isLegalChar)(e.data))throw Error("Text data contains invalid characters (well-formed required).");let r=e.data.replace(l.nonEntityAmpersandRegex,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");this.text(r)}_serializeDocumentFragmentNS(e,t,r,n,a){for(let i of e.childNodes)this._serializeNodeNS(i,t,r,n,a)}_serializeDocumentFragment(e,t){for(let r of e._children)this._serializeNode(r,t)}_serializeDocumentType(e,t){if(t&&!(0,s.xml_isPubidChar)(e.publicId))throw Error("DocType public identifier does not match PubidChar construct (well-formed required).");if(t&&(!(0,s.xml_isLegalChar)(e.systemId)||-1!==e.systemId.indexOf('"')&&-1!==e.systemId.indexOf("'")))throw Error("DocType system identifier contains invalid characters (well-formed required).");this.docType(e.name,e.publicId,e.systemId)}_serializeProcessingInstruction(e,t){if(t&&(-1!==e.target.indexOf(":")||/^xml$/i.test(e.target)))throw Error("Processing instruction target contains invalid characters (well-formed required).");if(t&&(!(0,s.xml_isLegalChar)(e.data)||-1!==e.data.indexOf("?>")))throw Error("Processing instruction data contains invalid characters (well-formed required).");this.instruction(e.target,e.data)}_serializeCData(e,t){if(t&&-1!==e.data.indexOf("]]>"))throw Error("CDATA contains invalid characters (well-formed required).");this.cdata(e.data)}_serializeAttributesNS(e,t,r,n,i,l){let u=[],d=l?new a.LocalNameSet:void 0;for(let a of e.attributes){if(!l&&!i&&null===a.namespaceURI){u.push([null,null,a.localName,this._serializeAttributeValue(a.value,l)]);continue}if(l&&d&&d.has(a.namespaceURI,a.localName))throw Error("Element contains duplicate attributes (well-formed required).");l&&d&&d.set(a.namespaceURI,a.localName);let e=a.namespaceURI,c=null;if(null!==e)if(c=t.get(a.prefix,e),e===o.namespace.XMLNS){if(a.value===o.namespace.XML||null===a.prefix&&i||null!==a.prefix&&(!(a.localName in n)||n[a.localName]!==a.value)&&t.has(a.localName,a.value))continue;if(l&&a.value===o.namespace.XMLNS)throw Error("XMLNS namespace is reserved (well-formed required).");if(l&&""===a.value)throw Error("Namespace prefix declarations cannot be used to undeclare a namespace (well-formed required).");"xmlns"===a.prefix&&(c="xmlns")}else null===c&&(c=null!==a.prefix&&(!t.hasPrefix(a.prefix)||t.has(a.prefix,e))?a.prefix:this._generatePrefix(e,t,r),u.push([null,"xmlns",c,this._serializeAttributeValue(e,l)]));if(l&&(-1!==a.localName.indexOf(":")||!(0,s.xml_isName)(a.localName)||"xmlns"===a.localName&&null===e))throw Error("Attribute local name contains invalid characters (well-formed required).");u.push([e,c,a.localName,this._serializeAttributeValue(a.value,l)])}return u}_serializeAttributes(e,t){let r=[],n=t?{}:void 0;for(let a of e.attributes){if(!t){r.push([null,null,a.localName,this._serializeAttributeValue(a.value,t)]);continue}if(t&&n&&a.localName in n)throw Error("Element contains duplicate attributes (well-formed required).");if(t&&n&&(n[a.localName]=!0),t&&(-1!==a.localName.indexOf(":")||!(0,s.xml_isName)(a.localName)))throw Error("Attribute local name contains invalid characters (well-formed required).");r.push([null,null,a.localName,this._serializeAttributeValue(a.value,t)])}return r}_recordNamespaceInformation(e,t,r){let n=null;for(let a of e.attributes){let e=a.namespaceURI,i=a.prefix;if(e===o.namespace.XMLNS)if(null===i){n=a.value;continue}else{let e=a.localName,n=a.value;if(n===o.namespace.XML||(""===n&&(n=null),t.has(e,n)))continue;t.set(e,n),r[e]=n||""}}return n}_generatePrefix(e,t,r){let n="ns"+r.value.toString();return r.value++,t.set(n,e),n}_serializeAttributeValue(e,t){if(t&&null!==e&&!(0,s.xml_isLegalChar)(e))throw Error("Invalid characters in attribute value.");return null===e?"":e.replace(l.nonEntityAmpersandRegex,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}}t.BaseWriter=u},5023(e,t,r){"use strict";t.JSONCBWriter=void 0;let n=r(4976);class a extends n.BaseCBWriter{_hasChildren=[];_additionalLevel=0;constructor(e){super(e)}frontMatter(){return""}declaration(e,t,r){return""}docType(e,t,r){return""}comment(e){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.comment)+this._sep()+this._val(e)+this._sep()+"}"}text(e){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.text)+this._sep()+this._val(e)+this._sep()+"}"}instruction(e,t){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.ins)+this._sep()+this._val(t?e+" "+t:e)+this._sep()+"}"}cdata(e){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.cdata)+this._sep()+this._val(e)+this._sep()+"}"}attribute(e,t){return this._comma()+this._beginLine(1)+"{"+this._sep()+this._key(this._builderOptions.convert.att+e)+this._sep()+this._val(t)+this._sep()+"}"}openTagBegin(e){let t=this._comma()+this._beginLine()+"{"+this._sep()+this._key(e)+this._sep()+"{";return this._additionalLevel++,this.hasData=!0,t+=this._beginLine()+this._key(this._builderOptions.convert.text)+this._sep()+"[",this._hasChildren.push(!1),t}openTagEnd(e,t,r){if(!t)return"";{let e=this._sep()+"]";return this._additionalLevel--,e+=this._beginLine()+"}"+this._sep()+"}"}}closeTag(e){let t=this._beginLine()+"]";return this._additionalLevel--,t+=this._beginLine()+"}"+this._sep()+"}"}beginElement(e){}endElement(e){this._hasChildren.pop()}_beginLine(e=0){return this._writerOptions.prettyPrint?(this.hasData?this._writerOptions.newline:"")+this._indent(this._writerOptions.offset+this.level+e):""}_indent(e){return e+this._additionalLevel<=0?"":this._writerOptions.indent.repeat(e+this._additionalLevel)}_comma(){let e=this._hasChildren[this._hasChildren.length-1]?",":"";return this._hasChildren.length>0&&(this._hasChildren[this._hasChildren.length-1]=!0),e}_sep(){return this._writerOptions.prettyPrint?" ":""}_key(e){return'"'+e+'":'}_val(e){return JSON.stringify(e)}}t.JSONCBWriter=a},2650(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONWriter=void 0;let n=r(5731),a=r(3738),i=r(6185);class o extends i.BaseWriter{constructor(e,t){super(e),this._writerOptions=(0,a.applyDefaults)(t,{wellFormed:!1,prettyPrint:!1,indent:" ",newline:"\n",offset:0,group:!1,verbose:!1})}serialize(e){let t=(0,a.applyDefaults)(this._writerOptions,{format:"object",wellFormed:!1}),r=new n.ObjectWriter(this._builderOptions,t).serialize(e);return this._beginLine(this._writerOptions,0)+this._convertObject(r,this._writerOptions)}_convertObject(e,t,r=0){let n="",i=this._isLeafNode(e);if((0,a.isArray)(e)){n+="[";let a=e.length,i=0;for(let o of e)n+=this._endLine(t,r+1)+this._beginLine(t,r+1)+this._convertObject(o,t,r+1),i<a-1&&(n+=","),i++;n+=this._endLine(t,r)+this._beginLine(t,r),n+="]"}else if((0,a.isObject)(e)){n+="{";let o=(0,a.objectLength)(e),s=0;(0,a.forEachObject)(e,(e,a)=>{i&&t.prettyPrint?n+=" ":n+=this._endLine(t,r+1)+this._beginLine(t,r+1),n+=this._key(e),t.prettyPrint&&(n+=" "),n+=this._convertObject(a,t,r+1),s<o-1&&(n+=","),s++},this),i&&t.prettyPrint?n+=" ":n+=this._endLine(t,r)+this._beginLine(t,r),n+="}"}else n+=this._val(e);return n}_beginLine(e,t){if(e.prettyPrint){let r=e.offset+t+1;if(r>0)return Array(r).join(e.indent)}return""}_endLine(e,t){return e.prettyPrint?e.newline:""}_key(e){return'"'+e+'":'}_val(e){return JSON.stringify(e)}_isLeafNode(e){return 1>=this._descendantCount(e)}_descendantCount(e,t=0){return(0,a.isArray)(e)?(0,a.forEachArray)(e,e=>t+=this._descendantCount(e,t),this):(0,a.isObject)(e)?(0,a.forEachObject)(e,(e,r)=>t+=this._descendantCount(r,t),this):t++,t}}t.JSONWriter=o},2942(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MapWriter=void 0;let n=r(3738),a=r(5731),i=r(6185);class o extends i.BaseWriter{constructor(e,t){super(e),this._writerOptions=(0,n.applyDefaults)(t,{format:"map",wellFormed:!1,group:!1,verbose:!1})}serialize(e){let t=(0,n.applyDefaults)(this._writerOptions,{format:"object",wellFormed:!1,verbose:!1}),r=new a.ObjectWriter(this._builderOptions,t).serialize(e);return this._convertObject(r)}_convertObject(e){if((0,n.isArray)(e)){for(let t=0;t<e.length;t++)e[t]=this._convertObject(e[t]);return e}if(!(0,n.isObject)(e))return e;{let t=new Map;for(let r in e)t.set(r,this._convertObject(e[r]));return t}}}t.MapWriter=o},5731(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectWriter=void 0;let n=r(3738),a=r(3841),i=r(6185);class o extends i.BaseWriter{_currentList;_currentIndex;_listRegister;constructor(e,t){super(e),this._writerOptions=(0,n.applyDefaults)(t,{format:"object",wellFormed:!1,group:!1,verbose:!1})}serialize(e){return this._currentList=[],this._currentIndex=0,this._listRegister=[this._currentList],this.serializeNode(e,this._writerOptions.wellFormed),this._process(this._currentList,this._writerOptions)}_process(e,t){if(0===e.length)return{};let r={},i=!1,o=0,s=0,l=0,u=0;for(let t=0;t<e.length;t++){let n=Object.keys(e[t])[0];switch(n){case"@":continue;case"#":o++;break;case"!":s++;break;case"?":l++;break;case"$":u++;break;default:r[n]?i=!0:r[n]=!0}}let d=this._getAttrKey(),c=this._getNodeKey(a.NodeType.Text),h=this._getNodeKey(a.NodeType.Comment),p=this._getNodeKey(a.NodeType.ProcessingInstruction),m=this._getNodeKey(a.NodeType.CData);if(1===o&&1===e.length&&(0,n.isString)(e[0]["#"]))return e[0]["#"];if(i){let r={};for(let n=0;n<e.length;n++){let a=e[n];if("@"===Object.keys(a)[0]){let e=a["@"],n=Object.keys(e);if(t.group&&1!==n.length)r[d]=e;else for(let t in e)r[d+t]=e[t]}}let a=[];for(let r=0;r<e.length;r++){let i=e[r],o=Object.keys(i)[0];switch(o){case"@":break;case"#":a.push({[c]:i["#"]});break;case"!":a.push({[h]:i["!"]});break;case"?":a.push({[p]:i["?"]});break;case"$":a.push({[m]:i.$});break;default:if(0!==i[o].length&&(0,n.isArray)(i[o][0])){let e=[],r=i[o];for(let n=0;n<r.length;n++)e.push(this._process(r[n],t));a.push({[o]:e})}else t.verbose?a.push({[o]:[this._process(i[o],t)]}):a.push({[o]:this._process(i[o],t)})}}return r[c]=a,r}{let r=1,a=1,i=1,f=1,g={};for(let y=0;y<e.length;y++){let v=e[y],b=Object.keys(v)[0];switch(b){case"@":let w=v["@"],x=Object.keys(w);if(t.group&&1!==x.length)g[d]=w;else for(let e in w)g[d+e]=w[e];break;case"#":r=this._processSpecItem(v["#"],g,t.group,c,o,r);break;case"!":a=this._processSpecItem(v["!"],g,t.group,h,s,a);break;case"?":i=this._processSpecItem(v["?"],g,t.group,p,l,i);break;case"$":f=this._processSpecItem(v.$,g,t.group,m,u,f);break;default:if(0!==v[b].length&&(0,n.isArray)(v[b][0])){let e=[],r=v[b];for(let n=0;n<r.length;n++)e.push(this._process(r[n],t));g[b]=e}else t.verbose?g[b]=[this._process(v[b],t)]:g[b]=this._process(v[b],t)}}return g}}_processSpecItem(e,t,r,a,i,o){if(!r&&(0,n.isArray)(e)&&i+e.length>2)for(let r of e)t[a+(o++).toString()]=r;else t[i>1?a+(o++).toString():a]=e;return o}beginElement(e){let t=[];if(0===this._currentList.length)this._currentList.push({[e]:t});else{let r=this._currentList[this._currentList.length-1];this._isElementNode(r,e)?0!==r[e].length&&(0,n.isArray)(r[e][0])?r[e].push(t):r[e]=[r[e],t]:this._currentList.push({[e]:t})}this._currentIndex++,this._listRegister.length>this._currentIndex?this._listRegister[this._currentIndex]=t:this._listRegister.push(t),this._currentList=t}endElement(){this._currentList=this._listRegister[--this._currentIndex]}attribute(e,t){if(0===this._currentList.length)this._currentList.push({"@":{[e]:t}});else{let r=this._currentList[this._currentList.length-1];this._isAttrNode(r)?r["@"][e]=t:this._currentList.push({"@":{[e]:t}})}}comment(e){if(0===this._currentList.length)this._currentList.push({"!":e});else{let t=this._currentList[this._currentList.length-1];this._isCommentNode(t)?(0,n.isArray)(t["!"])?t["!"].push(e):t["!"]=[t["!"],e]:this._currentList.push({"!":e})}}text(e){if(0===this._currentList.length)this._currentList.push({"#":e});else{let t=this._currentList[this._currentList.length-1];this._isTextNode(t)?(0,n.isArray)(t["#"])?t["#"].push(e):t["#"]=[t["#"],e]:this._currentList.push({"#":e})}}instruction(e,t){let r=""===t?e:e+" "+t;if(0===this._currentList.length)this._currentList.push({"?":r});else{let e=this._currentList[this._currentList.length-1];this._isInstructionNode(e)?(0,n.isArray)(e["?"])?e["?"].push(r):e["?"]=[e["?"],r]:this._currentList.push({"?":r})}}cdata(e){if(0===this._currentList.length)this._currentList.push({$:e});else{let t=this._currentList[this._currentList.length-1];this._isCDATANode(t)?(0,n.isArray)(t.$)?t.$.push(e):t.$=[t.$,e]:this._currentList.push({$:e})}}_isAttrNode(e){return"@"in e}_isTextNode(e){return"#"in e}_isCommentNode(e){return"!"in e}_isInstructionNode(e){return"?"in e}_isCDATANode(e){return"$"in e}_isElementNode(e,t){return t in e}_getAttrKey(){return this._builderOptions.convert.att}_getNodeKey(e){switch(e){case a.NodeType.Comment:return this._builderOptions.convert.comment;case a.NodeType.Text:return this._builderOptions.convert.text;case a.NodeType.ProcessingInstruction:return this._builderOptions.convert.ins;case a.NodeType.CData:return this._builderOptions.convert.cdata;default:throw Error("Invalid node type.")}}}t.ObjectWriter=o},3684(e,t,r){"use strict";t.XMLCBWriter=void 0;let n=r(4976);class a extends n.BaseCBWriter{_lineLength=0;constructor(e){super(e)}frontMatter(){return""}declaration(e,t,r){let n=this._beginLine()+"<?xml";return n+=' version="'+e+'"',void 0!==t&&(n+=' encoding="'+t+'"'),void 0!==r&&(n+=' standalone="'+(r?"yes":"no")+'"'),n+="?>"}docType(e,t,r){let n=this._beginLine();return t&&r?n+="<!DOCTYPE "+e+' PUBLIC "'+t+'" "'+r+'">':t?n+="<!DOCTYPE "+e+' PUBLIC "'+t+'">':r?n+="<!DOCTYPE "+e+' SYSTEM "'+r+'">':n+="<!DOCTYPE "+e+">",n}comment(e){return this._beginLine()+"\x3c!--"+e+"--\x3e"}text(e){return e}instruction(e,t){return t?this._beginLine()+"<?"+e+" "+t+"?>":this._beginLine()+"<?"+e+"?>"}cdata(e){return this._beginLine()+"<![CDATA["+e+"]]>"}openTagBegin(e){return this._lineLength+=1+e.length,this._beginLine()+"<"+e}openTagEnd(e,t,r){return r?" />":t?this._writerOptions.allowEmptyTags?"></"+e+">":this._writerOptions.spaceBeforeSlash?" />":"/>":">"}closeTag(e,t){return(t?"":this._beginLine())+"</"+e+">"}attribute(e,t){let r=e+'="'+t+'"';return this._writerOptions.prettyPrint&&this._writerOptions.width>0&&this._lineLength+1+r.length>this._writerOptions.width?(r=this._beginLine()+this._indent(1)+r,this._lineLength=r.length,r):(this._lineLength+=1+r.length," "+r)}beginElement(e){}endElement(e){}_beginLine(){if(!this._writerOptions.prettyPrint)return"";{let e=(this.hasData?this._writerOptions.newline:"")+this._indent(this._writerOptions.offset+this.level);return this._lineLength=e.length,e}}_indent(e){return e<=0?"":this._writerOptions.indent.repeat(e)}}t.XMLCBWriter=a},3757(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLWriter=void 0;let n=r(3738),a=r(3841),i=r(6185),o=r(8723);class s extends i.BaseWriter{_refs;_indentation={};_lengthToLastNewline=0;constructor(e,t){super(e),this._writerOptions=(0,n.applyDefaults)(t,{wellFormed:!1,headless:!1,prettyPrint:!1,indent:" ",newline:"\n",offset:0,width:0,allowEmptyTags:!1,indentTextOnlyNodes:!1,spaceBeforeSlash:!1})}serialize(e){return this._refs={suppressPretty:!1,emptyNode:!1,markup:""},e.nodeType!==a.NodeType.Document||this._writerOptions.headless||this.declaration(this._builderOptions.version,this._builderOptions.encoding,this._builderOptions.standalone),this.serializeNode(e,this._writerOptions.wellFormed),this._writerOptions.prettyPrint&&this._refs.markup.slice(-this._writerOptions.newline.length)===this._writerOptions.newline&&(this._refs.markup=this._refs.markup.slice(0,-this._writerOptions.newline.length)),this._refs.markup}declaration(e,t,r){this._beginLine(),this._refs.markup+='<?xml version="'+e+'"',void 0!==t&&(this._refs.markup+=' encoding="'+t+'"'),void 0!==r&&(this._refs.markup+=' standalone="'+(r?"yes":"no")+'"'),this._refs.markup+="?>",this._endLine()}docType(e,t,r){this._beginLine(),t&&r?this._refs.markup+="<!DOCTYPE "+e+' PUBLIC "'+t+'" "'+r+'">':t?this._refs.markup+="<!DOCTYPE "+e+' PUBLIC "'+t+'">':r?this._refs.markup+="<!DOCTYPE "+e+' SYSTEM "'+r+'">':this._refs.markup+="<!DOCTYPE "+e+">",this._endLine()}openTagBegin(e){this._beginLine(),this._refs.markup+="<"+e}openTagEnd(e,t,r){if(this._refs.suppressPretty=!1,this._refs.emptyNode=!1,this._writerOptions.prettyPrint&&!t&&!r){let e=!0,t=!0,r=this.currentNode.firstChild,n=0,a=0;for(;r;){if(o.Guard.isExclusiveTextNode(r))a++;else if(o.Guard.isCDATASectionNode(r))n++;else{e=!1,t=!1;break}""!==r.data&&(t=!1),r=r.nextSibling}this._refs.suppressPretty=!this._writerOptions.indentTextOnlyNodes&&e&&(n<=1&&0===a||0===n),this._refs.emptyNode=t}(r||t||this._refs.emptyNode)&&this._writerOptions.allowEmptyTags?this._refs.markup+="></"+e+">":this._refs.markup+=r?" />":t||this._refs.emptyNode?this._writerOptions.spaceBeforeSlash?" />":"/>":">",this._endLine()}closeTag(e){this._refs.emptyNode||(this._beginLine(),this._refs.markup+="</"+e+">"),this._refs.suppressPretty=!1,this._refs.emptyNode=!1,this._endLine()}attribute(e,t){let r=e+'="'+t+'"';this._writerOptions.prettyPrint&&this._writerOptions.width>0&&this._refs.markup.length-this._lengthToLastNewline+1+r.length>this._writerOptions.width?(this._endLine(),this._beginLine(),this._refs.markup+=this._indent(1)+r):this._refs.markup+=" "+r}text(e){""!==e&&(this._beginLine(),this._refs.markup+=e,this._endLine())}cdata(e){""!==e&&(this._beginLine(),this._refs.markup+="<![CDATA["+e+"]]>",this._endLine())}comment(e){this._beginLine(),this._refs.markup+="\x3c!--"+e+"--\x3e",this._endLine()}instruction(e,t){this._beginLine(),this._refs.markup+="<?"+(""===t?e:e+" "+t)+"?>",this._endLine()}_beginLine(){this._writerOptions.prettyPrint&&!this._refs.suppressPretty&&(this._refs.markup+=this._indent(this._writerOptions.offset+this.level))}_endLine(){this._writerOptions.prettyPrint&&!this._refs.suppressPretty&&(this._refs.markup+=this._writerOptions.newline,this._lengthToLastNewline=this._refs.markup.length)}_indent(e){if(e<=0)return"";{if(void 0!==this._indentation[e])return this._indentation[e];let t=this._writerOptions.indent.repeat(e);return this._indentation[e]=t,t}}}t.XMLWriter=s},4330(e,t,r){"use strict";t.YAMLCBWriter=void 0;let n=r(4976);class a extends n.BaseCBWriter{_rootWritten=!1;_additionalLevel=0;constructor(e){if(super(e),e.indent.length<2)throw Error("YAML indententation string must be at least two characters long.");if(e.offset<0)throw Error("YAML offset should be zero or a positive number.")}frontMatter(){return this._beginLine()+"---"}declaration(e,t,r){return""}docType(e,t,r){return""}comment(e){return this._beginLine()+this._key(this._builderOptions.convert.comment)+" "+this._val(e)}text(e){return this._beginLine()+this._key(this._builderOptions.convert.text)+" "+this._val(e)}instruction(e,t){return this._beginLine()+this._key(this._builderOptions.convert.ins)+" "+this._val(t?e+" "+t:e)}cdata(e){return this._beginLine()+this._key(this._builderOptions.convert.cdata)+" "+this._val(e)}attribute(e,t){this._additionalLevel++;let r=this._beginLine()+this._key(this._builderOptions.convert.att+e)+" "+this._val(t);return this._additionalLevel--,r}openTagBegin(e){let t=this._beginLine()+this._key(e);return this._rootWritten||(this._rootWritten=!0),this.hasData=!0,this._additionalLevel++,t+=this._beginLine(!0)+this._key(this._builderOptions.convert.text)}openTagEnd(e,t,r){return t?" "+this._val(""):""}closeTag(e){return this._additionalLevel--,""}beginElement(e){}endElement(e){}_beginLine(e=!1){return(this.hasData?this._writerOptions.newline:"")+this._indent(this._writerOptions.offset+this.level,e)}_indent(e,t){if(e+this._additionalLevel<=0)return"";{let r=this._writerOptions.indent.repeat(e+this._additionalLevel);return!t&&this._rootWritten?r.substr(0,r.length-2)+"-"+r.substr(-1,1):r}}_key(e){return'"'+e+'":'}_val(e){return JSON.stringify(e)}}t.YAMLCBWriter=a},1723(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLWriter=void 0;let n=r(5731),a=r(3738),i=r(6185);class o extends i.BaseWriter{constructor(e,t){if(super(e),this._writerOptions=(0,a.applyDefaults)(t,{wellFormed:!1,indent:" ",newline:"\n",offset:0,group:!1,verbose:!1}),this._writerOptions.indent.length<2)throw Error("YAML indententation string must be at least two characters long.");if(this._writerOptions.offset<0)throw Error("YAML offset should be zero or a positive number.")}serialize(e){let t=(0,a.applyDefaults)(this._writerOptions,{format:"object",wellFormed:!1}),r=new n.ObjectWriter(this._builderOptions,t).serialize(e),i=this._beginLine(this._writerOptions,0)+"---"+this._endLine(this._writerOptions)+this._convertObject(r,this._writerOptions,0);return i.slice(-this._writerOptions.newline.length)===this._writerOptions.newline&&(i=i.slice(0,-this._writerOptions.newline.length)),i}_convertObject(e,t,r,n=!1){let i="";if((0,a.isArray)(e))for(let n of e)i+=this._beginLine(t,r,!0),(0,a.isObject)(n)?(0,a.isEmpty)(n)?i+='""'+this._endLine(t):i+=this._convertObject(n,t,r,!0):i+=this._val(n)+this._endLine(t);else(0,a.forEachObject)(e,(e,o)=>{n?(i+=this._key(e),n=!1):i+=this._beginLine(t,r)+this._key(e),(0,a.isObject)(o)||(0,a.isArray)(o)?(0,a.isEmpty)(o)?i+=' ""'+this._endLine(t):i+=this._endLine(t)+this._convertObject(o,t,r+1):i+=" "+this._val(o)+this._endLine(t)},this);return i}_beginLine(e,t,r=!1){let n=Array(e.offset+t+1).join(e.indent);return r?n.substr(0,n.length-2)+"-"+n.substr(-1,1):n}_endLine(e){return e.newline}_key(e){return'"'+e+'":'}_val(e){return JSON.stringify(e)}}t.YAMLWriter=o},6655(e,t,r){"use strict";t.YAMLWriter=t.JSONWriter=t.ObjectWriter=t.XMLWriter=t.MapWriter=void 0;var n=r(2942);Object.defineProperty(t,"MapWriter",{enumerable:!0,get:function(){return n.MapWriter}});var a=r(3757);Object.defineProperty(t,"XMLWriter",{enumerable:!0,get:function(){return a.XMLWriter}});var i=r(5731);Object.defineProperty(t,"ObjectWriter",{enumerable:!0,get:function(){return i.ObjectWriter}});var o=r(2650);Object.defineProperty(t,"JSONWriter",{enumerable:!0,get:function(){return o.JSONWriter}});var s=r(1723);Object.defineProperty(t,"YAMLWriter",{enumerable:!0,get:function(){return s.YAMLWriter}})}},l={};function u(e){var t=l[e];if(void 0!==t)return t.exports;var r=l[e]={exports:{}};return s[e].call(r.exports,r,r.exports,u),r.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,u.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var r=Object.create(null);u.r(r);var n={};i=i||[null,o({}),o([]),o(o)];for(var a=2&t&&e;("object"==typeof a||"function"==typeof a)&&!~i.indexOf(a);a=o(a))Object.getOwnPropertyNames(a).forEach(t=>{n[t]=()=>e[t]});return n.default=()=>e,u.d(r,n),r},u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),u.nc=void 0,u.p="/";var d={};return(()=>{"use strict";let e,t,r,n,a,i,o,s,l,c,h,p,m,f,g,y,v,b,w,x,C,k,M,S,E,T;u.r(d),u.d(d,{Button:()=>eC2,ButtonEnums:()=>en,ContextMenu:()=>eC3,EmptyStudies:()=>ev5,ICONS:()=>ev3,Icon:()=>ev9,InputDateRange:()=>ebn,InputFilterText:()=>eC4,InputGroup:()=>ex8,InputLabelWrapper:()=>ebt,InputMultiSelect:()=>ex3,InputText:()=>ebh,LegacyButton:()=>eCp,LegacyButtonGroup:()=>eCx,Select:()=>ex2,StudyListExpandedRow:()=>eCA,StudyListFilter:()=>eCL,StudyListPagination:()=>eCV,StudyListTable:()=>eCW,StudyListTableRow:()=>eCB,Table:()=>eCk,TableBody:()=>eCT,TableCell:()=>eCD,TableHead:()=>eCS,TableRow:()=>eCP,Types:()=>W,Typography:()=>eX,addIcon:()=>ev4,getIcon:()=>ev8});var I,P,_,D,O,A,R,L,N,V,F,B,j,W={};u.r(W),u.d(W,{PatientInfoVisibility:()=>es,StringArray:()=>eu,StringNumber:()=>el,ThumbnailType:()=>eo});var U={};u.r(U),u.d(U,{Button:()=>yU,CaptionLabel:()=>yz,Chevron:()=>yH,Day:()=>yG,DayButton:()=>yq,Dropdown:()=>y$,DropdownNav:()=>yK,Footer:()=>yY,Month:()=>yZ,MonthCaption:()=>yX,MonthGrid:()=>yJ,Months:()=>yQ,MonthsDropdown:()=>y2,Nav:()=>y5,NextMonthButton:()=>y3,Option:()=>y4,PreviousMonthButton:()=>y8,Root:()=>y6,Select:()=>y9,Week:()=>y7,WeekNumber:()=>vr,WeekNumberHeader:()=>vn,Weekday:()=>ve,Weekdays:()=>vt,Weeks:()=>va,YearsDropdown:()=>vi});var z={};u.r(z),u.d(z,{formatCaption:()=>vf,formatDay:()=>vy,formatMonthCaption:()=>vg,formatMonthDropdown:()=>vv,formatWeekNumber:()=>vw,formatWeekNumberHeader:()=>vx,formatWeekdayName:()=>vb,formatYearCaption:()=>vk,formatYearDropdown:()=>vC});var H={};u.r(H),u.d(H,{labelCaption:()=>vT,labelDay:()=>vS,labelDayButton:()=>vM,labelGrid:()=>vE,labelGridcell:()=>vI,labelMonthDropdown:()=>vP,labelNav:()=>v_,labelNext:()=>vD,labelPrevious:()=>vO,labelWeekNumber:()=>vR,labelWeekNumberHeader:()=>vL,labelWeekday:()=>vA,labelYearDropdown:()=>vN});var G={};u.r(G),u.d(G,{add:()=>bn,addBusinessDays:()=>bo,addDays:()=>v6,addHours:()=>bl,addISOWeekYears:()=>bb,addMilliseconds:()=>bs,addMinutes:()=>bw,addMonths:()=>br,addQuarters:()=>bx,addSeconds:()=>bC,addWeeks:()=>bk,addYears:()=>bM,areIntervalsOverlapping:()=>bS,clamp:()=>bI,closestIndexTo:()=>bP,closestTo:()=>b_,compareAsc:()=>bD,compareDesc:()=>bO,constructFrom:()=>v5,constructNow:()=>bA,daysToWeeks:()=>bR,differenceInBusinessDays:()=>bF,differenceInCalendarDays:()=>bg,differenceInCalendarISOWeekYears:()=>bB,differenceInCalendarISOWeeks:()=>bj,differenceInCalendarMonths:()=>bW,differenceInCalendarQuarters:()=>bz,differenceInCalendarWeeks:()=>bH,differenceInCalendarYears:()=>bG,differenceInDays:()=>bq,differenceInHours:()=>bY,differenceInISOWeekYears:()=>bX,differenceInMilliseconds:()=>bJ,differenceInMinutes:()=>bQ,differenceInMonths:()=>b5,differenceInQuarters:()=>b3,differenceInSeconds:()=>b4,differenceInWeeks:()=>b8,differenceInYears:()=>b6,eachDayOfInterval:()=>b7,eachHourOfInterval:()=>we,eachMinuteOfInterval:()=>wt,eachMonthOfInterval:()=>wr,eachQuarterOfInterval:()=>wa,eachWeekOfInterval:()=>wi,eachWeekendOfInterval:()=>wo,eachWeekendOfMonth:()=>wl,eachWeekendOfYear:()=>wc,eachYearOfInterval:()=>wh,endOfDay:()=>b0,endOfDecade:()=>wp,endOfHour:()=>wm,endOfISOWeek:()=>wg,endOfISOWeekYear:()=>wy,endOfMinute:()=>wv,endOfMonth:()=>b1,endOfQuarter:()=>wb,endOfSecond:()=>ww,endOfToday:()=>wx,endOfTomorrow:()=>wC,endOfWeek:()=>wf,endOfYear:()=>wu,endOfYesterday:()=>wk,format:()=>w1,formatDate:()=>w1,formatDistance:()=>w2,formatDistanceStrict:()=>w5,formatDistanceToNow:()=>w3,formatDistanceToNowStrict:()=>w4,formatDuration:()=>w6,formatISO:()=>w9,formatISO9075:()=>w7,formatISODuration:()=>xe,formatRFC3339:()=>xt,formatRFC7231:()=>xa,formatRelative:()=>xi,formatters:()=>wB,fromUnixTime:()=>xo,getDate:()=>xs,getDay:()=>xl,getDayOfYear:()=>wO,getDaysInMonth:()=>xu,getDaysInYear:()=>xc,getDecade:()=>xh,getDefaultOptions:()=>xp,getHours:()=>xm,getISODay:()=>xf,getISOWeek:()=>wA,getISOWeekYear:()=>bh,getISOWeeksInYear:()=>xg,getMilliseconds:()=>xy,getMinutes:()=>xv,getMonth:()=>xb,getOverlappingDaysInIntervals:()=>xw,getQuarter:()=>bU,getSeconds:()=>xx,getTime:()=>xC,getUnixTime:()=>xk,getWeek:()=>wN,getWeekOfMonth:()=>xM,getWeekYear:()=>wR,getWeeksInMonth:()=>xE,getYear:()=>xT,hoursToMilliseconds:()=>xI,hoursToMinutes:()=>xP,hoursToSeconds:()=>x_,interval:()=>xD,intervalToDuration:()=>xO,intlFormat:()=>xA,intlFormatDistance:()=>xR,isAfter:()=>xL,isBefore:()=>xN,isDate:()=>bN,isEqual:()=>xV,isExists:()=>xF,isFirstDayOfMonth:()=>xB,isFriday:()=>ba,isFuture:()=>xj,isLastDayOfMonth:()=>b2,isLeapYear:()=>xd,isMatch:()=>CT,isMonday:()=>CI,isPast:()=>CP,isSameDay:()=>bL,isSameHour:()=>CD,isSameISOWeek:()=>CA,isSameISOWeekYear:()=>CR,isSameMinute:()=>CN,isSameMonth:()=>CV,isSameQuarter:()=>CF,isSameSecond:()=>Cj,isSameWeek:()=>CO,isSameYear:()=>CW,isSaturday:()=>CU,isSunday:()=>Cz,isThisHour:()=>CH,isThisISOWeek:()=>CG,isThisMinute:()=>Cq,isThisMonth:()=>C$,isThisQuarter:()=>CK,isThisSecond:()=>CY,isThisWeek:()=>CZ,isThisYear:()=>CX,isThursday:()=>CJ,isToday:()=>CQ,isTomorrow:()=>C0,isTuesday:()=>C1,isValid:()=>bV,isWednesday:()=>C2,isWeekend:()=>bi,isWithinInterval:()=>C5,isYesterday:()=>C4,lastDayOfDecade:()=>C8,lastDayOfISOWeek:()=>C9,lastDayOfISOWeekYear:()=>C7,lastDayOfMonth:()=>xS,lastDayOfQuarter:()=>ke,lastDayOfWeek:()=>C6,lastDayOfYear:()=>kt,lightFormat:()=>ko,lightFormatters:()=>wF,longFormatters:()=>wG,max:()=>bE,milliseconds:()=>ks,millisecondsToHours:()=>kl,millisecondsToMinutes:()=>ku,millisecondsToSeconds:()=>kd,min:()=>bT,minutesToHours:()=>kc,minutesToMilliseconds:()=>kh,minutesToSeconds:()=>kp,monthsToQuarters:()=>km,monthsToYears:()=>kf,newDate:()=>kg,nextDay:()=>ky,nextFriday:()=>kv,nextMonday:()=>kb,nextSaturday:()=>kw,nextSunday:()=>kx,nextThursday:()=>kC,nextTuesday:()=>kk,nextWednesday:()=>kM,parse:()=>CE,parseISO:()=>kS,parseJSON:()=>kN,parsers:()=>Cb,previousDay:()=>kV,previousFriday:()=>kF,previousMonday:()=>kB,previousSaturday:()=>kj,previousSunday:()=>kW,previousThursday:()=>kU,previousTuesday:()=>kz,previousWednesday:()=>kH,quartersToMonths:()=>kG,quartersToYears:()=>kq,roundToNearestHours:()=>k$,roundToNearestMinutes:()=>kK,secondsToHours:()=>kY,secondsToMilliseconds:()=>kZ,secondsToMinutes:()=>kX,set:()=>kQ,setDate:()=>k0,setDay:()=>Cy,setDayOfYear:()=>k1,setDefaultOptions:()=>k2,setHours:()=>k5,setISODay:()=>Cv,setISOWeek:()=>Cm,setISOWeekYear:()=>bv,setMilliseconds:()=>k3,setMinutes:()=>k4,setMonth:()=>kJ,setQuarter:()=>k8,setSeconds:()=>k6,setWeek:()=>Cp,setWeekYear:()=>k9,setYear:()=>k7,startOfDay:()=>bf,startOfDecade:()=>Me,startOfHour:()=>C_,startOfISOWeek:()=>bc,startOfISOWeekYear:()=>by,startOfMinute:()=>CL,startOfMonth:()=>ws,startOfQuarter:()=>wn,startOfSecond:()=>CB,startOfToday:()=>Mt,startOfTomorrow:()=>Mr,startOfWeek:()=>bd,startOfWeekYear:()=>wL,startOfYear:()=>wd,startOfYesterday:()=>Mn,sub:()=>Mi,subBusinessDays:()=>Mo,subDays:()=>C3,subHours:()=>Ms,subISOWeekYears:()=>bZ,subMilliseconds:()=>Ml,subMinutes:()=>Mu,subMonths:()=>Ma,subQuarters:()=>Md,subSeconds:()=>Mc,subWeeks:()=>Mh,subYears:()=>Mp,toDate:()=>v3,transpose:()=>xW,weeksToDays:()=>Mm,yearsToDays:()=>Mf,yearsToMonths:()=>Mg,yearsToQuarters:()=>My});var q={};u.r(q),u.d(q,{filterAdditionalFindings:()=>Lj,filterAnd:()=>Lz,filterAny:()=>LN,filterMeasurementsBySeriesUID:()=>LO,filterMeasurementsByStudyUID:()=>LA,filterNone:()=>LV,filterNot:()=>function e(...t){if(1!==t.length)return Lz(...t.map(t=>e(t)));let[r]=t;return LU(r)?function(e){return!this[r](e)}:e=>!r(e)},filterOr:()=>LF,filterPlanarMeasurement:()=>LR,filterTool:()=>LL,filterUnless:()=>LW});var $={};u.r($),u.d($,{C:()=>N9});var K={};u.r(K),u.d(K,{Zi:()=>Vi,IU:()=>Vh,_z:()=>Vc,Jt:()=>Vp,YA:()=>Vu,Y2:()=>Vm,FE:()=>Vd,hC:()=>Vo,SD:()=>Vl,iw:()=>Vs,Hw:()=>Vg,Qy:()=>Vf});var Y={};u.r(Y),u.d(Y,{RZ:()=>VP,uu:()=>VE,gE:()=>VM,HL:()=>VO,UX:()=>V_,tZ:()=>VL,pp:()=>VR,U5:()=>VA,_E:()=>VI,Rm:()=>RS.log,Um:()=>VS,UA:()=>VT,bM:()=>VD});var Z={};u.r(Z),u.d(Z,{VD:()=>VU,ZX:()=>VG,Hf:()=>Vq,lJ:()=>VW,Cc:()=>Vz,nw:()=>Fv,FM:()=>V$,YF:()=>VB,AR:()=>VV,Qy:()=>V0,Le:()=>VN});var X={};u.r(X),u.d(X,{s:()=>eyH});var J={};u.r(J),u.d(J,{sV:()=>NH,dC:()=>N0,FU:()=>Fx,VO:()=>NK,WA:()=>N1,nb:()=>FC,KY:()=>NQ,YB:()=>FS,FJ:()=>Fk,Yw:()=>NG,yX:()=>N2,QO:()=>X,Dt:()=>Fw,NV:()=>Nq});var Q={};u.r(Q),u.d(Q,{p8:()=>FP,T0:()=>F_,Cf:()=>FI,E3:()=>FD});var ee={};u.r(ee),u.d(ee,{addProvider:()=>HR,get:()=>HB,getMetaData:()=>HV,getNormalized:()=>Hj,getTyped:()=>HF,removeAllProviders:()=>HN,removeProvider:()=>HL,toLowerCamelTag:()=>HU,toUpperCamelTag:()=>HW});var et={};u.r(et),u.d(et,{ZX:()=>ehM,Cc:()=>ehI,Hl:()=>Bh});var er={};u.r(er),u.d(er,{FILE:()=>eh4,HTML:()=>eh9,TEXT:()=>eh6,URL:()=>eh8});var en={};u.r(en),u.d(en,{orientation:()=>eCH,size:()=>eCz,type:()=>eCU});var ea=u(7598),ei=u.n(ea);let eo=ei().oneOf(["thumbnail","thumbnailTracked","thumbnailNoImage"]),es=((egT={}).VISIBLE="visible",egT.VISIBLE_COLLAPSED="visibleCollapsed",egT.DISABLED="disabled",egT.VISIBLE_READONLY="visibleReadOnly",egT),el=ei().oneOfType([ei().string,ei().number]),eu=ei().oneOfType([ei().string,ei().array]);var ed=u(4883),ec=u.t(ed,2),eh=u.n(ed),ep=u(5530),em=u.n(ep);function ef(e){return(ef="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eg(e){var t=function(e,t){if("object"!=ef(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ef(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ef(t)?t:t+""}function ey(){if(console&&console.warn){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}u(9741),Object.create(null);var ev={};function eb(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&ev[t[0]]||("string"==typeof t[0]&&(ev[t[0]]=new Date),ey.apply(void 0,t))}var ew=function(e,t){return function(){e.isInitialized?t():e.on("initialized",function r(){setTimeout(function(){e.off("initialized",r)},0),t()})}};function ex(e,t,r){e.loadNamespaces(t,ew(e,r))}function eC(e,t,r,n){"string"==typeof r&&(r=[r]),r.forEach(function(t){0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,ew(e,n))}var ek=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,eM={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},eS=function(e){return eM[e]},eE={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(ek,eS)}},eT=(0,ed.createContext)(),eI=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.usedNamespaces={}}return e=[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach(function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,eg(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();function eP(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function e_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eD(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?e_(Object(r),!0).forEach(function(t){var n,a;n=t,a=r[t],(n=eg(n))in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var eO=function(e,t){var r=(0,ed.useRef)();return(0,ed.useEffect)(function(){r.current=t?r.current:e},[e,t]),r.current};function eA(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.i18n,a=(0,ed.useContext)(eT)||{},i=a.i18n,o=a.defaultNS,s=n||i||eyg;if(s&&!s.reportNamespaces&&(s.reportNamespaces=new eI),!s){eb("You will need to pass in an i18next instance by using initReactI18next");var l=function(e,t){return"string"==typeof t?t:t&&"object"===ef(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},u=[l,{},!1];return u.t=l,u.i18n={},u.ready=!1,u}s.options.react&&void 0!==s.options.react.wait&&eb("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var d=eD(eD(eD({},eE),s.options.react),r),c=d.useSuspense,h=d.keyPrefix,p=e||o||s.options&&s.options.defaultNS;p="string"==typeof p?[p]:p||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(p);var m=(s.isInitialized||s.initializedStoreOnce)&&p.every(function(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0===t.options.ignoreJSONStructure?function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],a=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var o=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return -1===n||2===n};return(!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!o(t.isLanguageChangingTo,e))&&!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(n,e)&&(!a||o(i,e)))}(e,t,r):t.hasLoadedNamespace(e,{lng:r.lng,precheck:function(t,n){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):(eb("i18n.languages were undefined or empty",t.languages),!0)}(e,s,d)});function f(){return s.getFixedT(r.lng||null,"fallback"===d.nsMode?p:p[0],h)}var g=function(e){if(Array.isArray(e))return e}(t=(0,ed.useState)(f))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,a,i,o=[],s=!0,l=!1;try{a=(t=t.call(e)).next,!1;for(;!(s=(r=a.call(t)).done)&&(o.push(r.value),2!==o.length);s=!0);}catch(e){l=!0,n=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw n}}return o}}(t)||function(e){if(e){if("string"==typeof e)return eP(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?eP(e,2):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=g[0],v=g[1],b=p.join();r.lng&&(b="".concat(r.lng).concat(b));var w=eO(b),x=(0,ed.useRef)(!0);(0,ed.useEffect)(function(){var e=d.bindI18n,t=d.bindI18nStore;function n(){x.current&&v(f)}return x.current=!0,m||c||(r.lng?eC(s,r.lng,p,function(){x.current&&v(f)}):ex(s,p,function(){x.current&&v(f)})),m&&w&&w!==b&&x.current&&v(f),e&&s&&s.on(e,n),t&&s&&s.store.on(t,n),function(){x.current=!1,e&&s&&e.split(" ").forEach(function(e){return s.off(e,n)}),t&&s&&t.split(" ").forEach(function(e){return s.store.off(e,n)})}},[s,b]);var C=(0,ed.useRef)(!0);(0,ed.useEffect)(function(){x.current&&!C.current&&v(f),C.current=!1},[s,h]);var k=[y,s,m];if(k.t=y,k.i18n=s,k.ready=m,m||!m&&!c)return k;throw new Promise(function(e){r.lng?eC(s,r.lng,p,function(){return e()}):ex(s,p,function(){return e()})})}function eR(){return(eR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let eL={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle:"h6",body:"p"},eN="inherit",eV="initial",eF="initial",eB=!1,ej=!1,eW=!1,eU="body",ez={h1:"text-6xl",h2:"text-5xl",h3:"text-4xl",h4:"text-3xl",h5:"text-2xl",h6:"text-[20px]",subtitle:"text-lg",body:"text-base",caption:"text-xs",button:"text-sm uppercase",overline:"text-xs uppercase",srOnly:"absolute h-0 w-0 hidden",inherit:""},eH={initial:"text-white",inherit:"text-inherit",primary:"text-primary-main",primaryActive:"text-primary-active",primaryLight:"text-primary-light",secondary:"text-common-light",error:"text-red-600"},eG={inherit:"",left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"},eq={initial:"",block:"block",inline:"inline"},e$={true:"mb-3",false:""},eK={true:"mb-3",false:""},eY={true:"truncate",false:""},eZ=({align:e=eN,color:t=eV,display:r=eF,gutterBottom:n=eB,noWrap:a=ej,paragraph:i=eW,variant:o=eU,component:s,className:l,...u})=>{let d=s||(i?"p":eL[o])||"span";return eh().createElement(d,eR({className:em()("m-0 leading-tight",ez[o],eH[t],eG[e],e$[n],eK[i],eY[a],eq[r],l)},u))};eZ.propTypes={component:ei().elementType,paragraph:ei().bool,display:ei().oneOf(["initial","block","inline"]),variant:ei().oneOf(["h1","h2","h3","h4","h5","h6","subtitle","body","caption","button","overline","srOnly","inherit"]),color:ei().oneOf(["initial","inherit","primary","primaryActive","secondary","error","primaryLight"]),className:ei().string,children:ei().node,align:ei().oneOf(["inherit","left","center","right","justify"]),gutterBottom:ei().bool,noWrap:ei().bool};let eX=eZ,eJ=function e(t,r=2){if(Array.isArray(t))return t.map(t=>e(t,r)).join(", ");if(null==t||""===t)return"NaN";let n=Math.abs(t=Number(t));if(n<1e-4)return`${t}`;let a=n>=100?r-2:n>=10?r-1:n>=1?r:n>=.1?r+1:n>=.01?r+2:n>=.001?r+3:r+4;return t.toFixed(a)};function eQ(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=function e(t){var r,n,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}(e))&&(n&&(n+=" "),n+=t);return n}let e0=(e,t)=>{if(0===e.length)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),a=n?e0(e.slice(1),n):void 0;if(a)return a;if(0===t.validators.length)return;let i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},e1=/^\[(.+)\]$/,e2=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:e5(t,e)).classGroupId=r;return}"function"==typeof e?e3(e)?e2(e(n),t,r,n):t.validators.push({validator:e,classGroupId:r}):Object.entries(e).forEach(([e,a])=>{e2(a,e5(t,e),r,n)})})},e5=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},e3=e=>e.isThemeGetter,e4=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,e8=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},e6=/\s+/;function e9(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=e7(e))&&(n&&(n+=" "),n+=t);return n}let e7=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=e7(e[n]))&&(r&&(r+=" "),r+=t);return r},te=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},tt=/^\[(?:([a-z-]+):)?(.+)\]$/i,tr=/^\d+\/\d+$/,tn=new Set(["px","full","screen"]),ta=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ti=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,to=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ts=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,tu=e=>tc(e)||tn.has(e)||tr.test(e),td=e=>tM(e,"length",tS),tc=e=>!!e&&!Number.isNaN(Number(e)),th=e=>tM(e,"number",tc),tp=e=>!!e&&Number.isInteger(Number(e)),tm=e=>e.endsWith("%")&&tc(e.slice(0,-1)),tf=e=>tt.test(e),tg=e=>ta.test(e),ty=new Set(["length","size","percentage"]),tv=e=>tM(e,ty,tE),tb=e=>tM(e,"position",tE),tw=new Set(["image","url"]),tx=e=>tM(e,tw,tI),tC=e=>tM(e,"",tT),tk=()=>!0,tM=(e,t,r)=>{let n=tt.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},tS=e=>ti.test(e)&&!to.test(e),tE=()=>!1,tT=e=>ts.test(e),tI=e=>tl.test(e),tP=function(e){let t,r,n,a=function(o){let s;return r=(t={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map,a=(a,i)=>{r.set(a,i),++t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(a(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):a(e,t)}}})((s=[].reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{separator:t,experimentalParseClassName:r}=e,n=1===t.length,a=t[0],i=t.length,o=e=>{let r,o=[],s=0,l=0;for(let u=0;u<e.length;u++){let d=e[u];if(0===s){if(d===a&&(n||e.slice(u,u+i)===t)){o.push(e.slice(l,u)),l=u+i;continue}if("/"===d){r=u;continue}}"["===d?s++:"]"===d&&s--}let u=0===o.length?e:e.substring(l),d=u.startsWith("!"),c=d?u.substring(1):u;return{modifiers:o,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:r&&r>l?r-l:void 0}};return r?e=>r({className:e,parseClassName:o}):o})(s),...(e=>{let t=(e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return e4(Object.entries(e.classGroups),r).forEach(([e,r])=>{e2(r,n,e,t)}),n})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{let r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),e0(r,t)||(e=>{if(e1.test(e)){let t=e1.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}})(e)},getConflictingClassGroupIds:(e,t)=>{let a=r[e]||[];return t&&n[e]?[...a,...n[e]]:a}}})(s)}).cache.get,n=t.cache.set,a=i,i(o)};function i(e){let a=r(e);if(a)return a;let i=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,i=[],o=e.trim().split(e6),s="";for(let e=o.length-1;e>=0;e-=1){let t=o[e],{modifiers:l,hasImportantModifier:u,baseClassName:d,maybePostfixModifierPosition:c}=r(t),h=!!c,p=n(h?d.substring(0,c):d);if(!p){if(!h||!(p=n(d))){s=t+(s.length>0?" "+s:s);continue}h=!1}let m=e8(l).join(":"),f=u?m+"!":m,g=f+p;if(i.includes(g))continue;i.push(g);let y=a(p,h);for(let e=0;e<y.length;++e){let t=y[e];i.push(f+t)}s=t+(s.length>0?" "+s:s)}return s})(e,t);return n(e,i),i}return function(){return a(e9.apply(null,arguments))}}(()=>{let e=te("colors"),t=te("spacing"),r=te("blur"),n=te("brightness"),a=te("borderColor"),i=te("borderRadius"),o=te("borderSpacing"),s=te("borderWidth"),l=te("contrast"),u=te("grayscale"),d=te("hueRotate"),c=te("invert"),h=te("gap"),p=te("gradientColorStops"),m=te("gradientColorStopPositions"),f=te("inset"),g=te("margin"),y=te("opacity"),v=te("padding"),b=te("saturate"),w=te("scale"),x=te("sepia"),C=te("skew"),k=te("space"),M=te("translate"),S=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto",tf,t],I=()=>[tf,t],P=()=>["",tu,td],_=()=>["auto",tc,tf],D=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],A=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",tf],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[tc,tf];return{cacheSize:500,separator:":",theme:{colors:[tk],spacing:[tu,td],blur:["none","",tg,tf],brightness:V(),borderColor:[e],borderRadius:["none","","full",tg,tf],borderSpacing:I(),borderWidth:P(),contrast:V(),grayscale:L(),hueRotate:V(),invert:L(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[tm,td],inset:T(),margin:T(),opacity:V(),padding:I(),saturate:V(),scale:V(),sepia:L(),skew:V(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",tf]}],container:["container"],columns:[{columns:[tg]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...D(),tf]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",tp,tf]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",tf]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",tp,tf]}],"grid-cols":[{"grid-cols":[tk]}],"col-start-end":[{col:["auto",{span:["full",tp,tf]},tf]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[tk]}],"row-start-end":[{row:["auto",{span:[tp,tf]},tf]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",tf]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",tf]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",tf,t]}],"min-w":[{"min-w":[tf,t,"min","max","fit"]}],"max-w":[{"max-w":[tf,t,"none","full","min","max","fit","prose",{screen:[tg]},tg]}],h:[{h:[tf,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[tf,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[tf,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[tf,t,"auto","min","max","fit"]}],"font-size":[{text:["base",tg,td]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",th]}],"font-family":[{font:[tk]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",tf]}],"line-clamp":[{"line-clamp":["none",tc,th]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",tu,tf]}],"list-image":[{"list-image":["none",tf]}],"list-style-type":[{list:["none","disc","decimal",tf]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",tu,td]}],"underline-offset":[{"underline-offset":["auto",tu,tf]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tf]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",tf]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...D(),tb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",tv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tx]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:O()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[tu,tf]}],"outline-w":[{outline:[tu,td]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[tu,td]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",tg,tC]}],"shadow-color":[{shadow:[tk]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...A(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":A()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",tg,tf]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",tf]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",tf]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",tf]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[tp,tf]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",tf]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",tf]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",tf]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[tu,td,th]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function t_(...e){return tP(eQ(e))}var tD=u(4867),tO=u.n(tD);function tA(e){return(tA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tR(e){var t=function(e,t){if("object"!=tA(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=tA(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tA(t)?t:t+""}function tL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),n.forEach(function(t){var n,a;n=t,a=r[t],(n=tR(n))in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a})}return e}function tN(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function tV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tR(n.key),n)}}function tF(e,t,r){return t&&tV(e.prototype,t),r&&tV(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function tB(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tj(e,t){if(t&&("object"==tA(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return tB(e)}function tW(e){return(tW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tU(e,t){return(tU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tz(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tU(e,t)}function tH(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function tG(e,t){if(e){if("string"==typeof e)return tH(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tH(e,t):void 0}}function tq(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}(e,t)||tG(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var t$={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,function(e){if(Array.isArray(e))return tH(e)}(t)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||tG(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}},tK=new(function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};tN(this,e),this.init(t,r)}return tF(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||t$,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,r,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,tL({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),tY=function(){function e(){tN(this,e),this.observers={}}return tF(e,[{key:"on",value:function(e,t){var r=this;return e.split(" ").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(r))})}}]),e}();function tZ(){var e,t,r=new Promise(function(r,n){e=r,t=n});return r.resolve=e,r.reject=t,r}function tX(e){return null==e?"":""+e}function tJ(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function a(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(a())return{};var o=n(i.shift());!e[o]&&r&&(e[o]=new r),e=e[o]}return a()?{}:{obj:e,k:n(i.shift())}}function tQ(e,t,r){var n=tJ(e,t,Object);n.obj[n.k]=r}function t0(e,t){var r=tJ(e,t),n=r.obj,a=r.k;if(n)return n[a]}function t1(e,t,r){var n=t0(e,r);return void 0!==n?n:t0(t,r)}function t2(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var t5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function t3(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return t5[e]}):e}var t4=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return tN(this,t),r=tj(this,tW(t).call(this)),tY.call(tB(r)),r.data=e||{},r.options=n,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r}return tz(t,e),tF(t,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=[e,t];return r&&"string"!=typeof r&&(i=i.concat(r)),r&&"string"==typeof r&&(i=i.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(i=e.split(".")),t0(this.data,i)}},{key:"addResource",value:function(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var o=[e,t];r&&(o=o.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(o=e.split("."),n=t,t=o[1]),this.addNamespaces(t),tQ(this.data,o,n),a.silent||this.emit("added",e,t,r,n)}},{key:"addResources",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var a in r)("string"==typeof r[a]||"[object Array]"===Object.prototype.toString.apply(r[a]))&&this.addResource(e,t,a,r[a],{silent:!0});n.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,n,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),n=r,r=t,t=o[1]),this.addNamespaces(t);var s=t0(this.data,o)||{};n?function e(t,r,n){for(var a in r)a in t?"string"==typeof t[a]||t[a]instanceof String||"string"==typeof r[a]||r[a]instanceof String?n&&(t[a]=r[a]):e(t[a],r[a],n):t[a]=r[a];return t}(s,r,a):s=tL({},s,r),tQ(this.data,o,s),i.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?tL({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(tY),t8={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,a){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,r,n,a))}),t}},t6=function(e){function t(e){var r,n,a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return tN(this,t),a=tj(this,tW(t).call(this)),tY.call(tB(a)),r=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n=tB(a),r.forEach(function(t){e[t]&&(n[t]=e[t])}),a.options=i,void 0===a.options.keySeparator&&(a.options.keySeparator="."),a.logger=tK.create("translator"),a}return tz(t,e),tF(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS;if(r&&e.indexOf(r)>-1){var i=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(i[0])>-1)&&(a=i.shift()),e=i.join(n)}return"string"==typeof a&&(a=[a]),{key:e,namespaces:a}}},{key:"translate",value:function(e,t){var r=this;if("object"!==tA(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],t),i=a.key,o=a.namespaces,s=o[o.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase())return u?s+(t.nsSeparator||this.options.nsSeparator)+i:i;var d=this.resolve(e,t),c=d&&d.res,h=d&&d.usedKey||i,p=d&&d.exactUsedKey||i,m=Object.prototype.toString.apply(c),f=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,y="string"!=typeof c&&"boolean"!=typeof c&&"number"!=typeof c;if(g&&c&&y&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(m)&&("string"!=typeof f||"[object Array]"!==m)){if(!t.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,c,t):"key '".concat(i," (").concat(this.language,")' returned an object instead of string.");if(n){var v="[object Array]"===m,b=v?[]:{},w=v?p:h;for(var x in c)if(Object.prototype.hasOwnProperty.call(c,x)){var C="".concat(w).concat(n).concat(x);b[x]=this.translate(C,tL({},t,{joinArrays:!1,ns:o})),b[x]===C&&(b[x]=c[x])}c=b}}else if(g&&"string"==typeof f&&"[object Array]"===m)(c=c.join(f))&&(c=this.extendTranslation(c,e,t));else{var k=!1,M=!1;if(!this.isValidLookup(c)&&void 0!==t.defaultValue){if(k=!0,void 0!==t.count){var S=this.pluralResolver.getSuffix(l,t.count);c=t["defaultValue".concat(S)]}c||(c=t.defaultValue)}this.isValidLookup(c)||(M=!0,c=i);var E=t.defaultValue&&t.defaultValue!==c&&this.options.updateMissing;if(M||k||E){this.logger.log(E?"updateKey":"missingKey",l,s,i,E?t.defaultValue:c);var T=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&I&&I[0])for(var P=0;P<I.length;P++)T.push(I[P]);else"all"===this.options.saveMissingTo?T=this.languageUtils.toResolveHierarchy(t.lng||this.language):T.push(t.lng||this.language);var _=function(e,n){r.options.missingKeyHandler?r.options.missingKeyHandler(e,s,n,E?t.defaultValue:c,E,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,s,n,E?t.defaultValue:c,E,t),r.emit("missingKey",e,s,n,c)};if(this.options.saveMissing){var D=void 0!==t.count&&"string"!=typeof t.count;this.options.saveMissingPlurals&&D?T.forEach(function(e){r.pluralResolver.getPluralFormsOfKey(e,i).forEach(function(t){return _([e],t)})}):_(T,i)}}c=this.extendTranslation(c,e,t,d),M&&c===i&&this.options.appendNamespaceToMissingKey&&(c="".concat(s,":").concat(i)),M&&this.options.parseMissingKeyHandler&&(c=this.options.parseMissingKeyHandler(c))}return c}},{key:"extendTranslation",value:function(e,t,r,n){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(tL({},r,{interpolation:tL({},this.options.interpolation,r.interpolation)}));var i=r.replace&&"string"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(i=tL({},this.options.interpolation.defaultVariables,i)),e=this.interpolator.interpolate(e,i,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return a.translate.apply(a,arguments)},r)),r.interpolation&&this.interpolator.reset()}var o=r.postProcess||this.options.postProcess,s="string"==typeof o?[o]:o;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=t8.handle(s,e,t,this.options&&this.options.postProcessPassResolved?tL({i18nResolved:n},r):r,this)),e}},{key:"resolve",value:function(e){var t,r,n,a,i,o=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!o.isValidLookup(t)){var l=o.extractFromKey(e,s),u=l.key;r=u;var d=l.namespaces;o.options.fallbackNS&&(d=d.concat(o.options.fallbackNS));var c=void 0!==s.count&&"string"!=typeof s.count,h=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,p=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);d.forEach(function(e){o.isValidLookup(t)||(i=e,o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(i)&&o.logger.warn('key "'.concat(r,'" for namespace "').concat(i,"\" won't get resolved as namespace was not yet loaded"),"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"),p.forEach(function(r){if(!o.isValidLookup(t)){a=r;var i,l,d=u,p=[d];for(o.i18nFormat&&o.i18nFormat.addLookupKeys?o.i18nFormat.addLookupKeys(p,u,r,e,s):(c&&(i=o.pluralResolver.getSuffix(r,s.count)),c&&h&&p.push(d+i),h&&p.push(d+="".concat(o.options.contextSeparator).concat(s.context)),c&&p.push(d+=i));l=p.pop();)o.isValidLookup(t)||(n=l,t=o.getResource(r,e,l,s))}}))})}}),{res:t,usedKey:r,exactUsedKey:n,usedLng:a,usedNS:i}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),t}(tY);function t9(e){return e.charAt(0).toUpperCase()+e.slice(1)}var t7=function(){function e(t){tN(this,e),this.options=t,this.whitelist=this.options.whitelist||!1,this.logger=tK.create("languageUtils")}return tF(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=t9(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=t9(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=t9(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitWhitelist)&&(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(e)>-1}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),a=[],i=function(e){e&&(r.isWhitelisted(e)?a.push(e):r.logger.warn("rejecting non-whitelisted language code: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach(function(e){0>a.indexOf(e)&&i(r.formatLanguageCode(e))}),a}}]),e}(),re=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he"],nr:[1,2,20,21],fc:22}],rt={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&e%10!=1))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1===e?0:2===e?1:(e<0||e>10)&&e%10==0?2:3)}},rr=function(){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};tN(this,e),this.languageUtils=t,this.options=n,this.logger=tK.create("pluralResolver"),this.rules=(r={},re.forEach(function(e){e.lngs.forEach(function(t){r[t]={numbers:e.nr,plurals:rt[e.fc]}})}),r)}return tF(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var r=this,n=[],a=this.getRule(e);return a&&a.numbers.forEach(function(a){var i=r.getSuffix(e,a);n.push("".concat(t).concat(i))}),n}},{key:"getSuffix",value:function(e,t){var r=this,n=this.getRule(e);if(n){var a=n.noAbs?n.plurals(t):n.plurals(Math.abs(t)),i=n.numbers[a];this.options.simplifyPluralSuffix&&2===n.numbers.length&&1===n.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return r.options.prepend&&i.toString()?r.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON?o():this.options.simplifyPluralSuffix&&2===n.numbers.length&&1===n.numbers[0]?o():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),rn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tN(this,e),this.logger=tK.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return tF(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:t3,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?t2(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?t2(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?t2(t.nestingPrefix):t.nestingPrefixEscaped||t2("$t("),this.nestingSuffix=t.nestingSuffix?t2(t.nestingSuffix):t.nestingSuffixEscaped||t2(")"),this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,n){var a,i,o,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(0>e.indexOf(s.formatSeparator))return t1(t,l,e);var n=e.split(s.formatSeparator),a=n.shift().trim(),i=n.join(s.formatSeparator).trim();return s.format(t1(t,l,a),i,r)};this.resetRegExp();var c=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler;for(o=0;a=this.regexpUnescape.exec(e);){if(void 0===(i=d(a[1].trim())))if("function"==typeof c){var h=c(e,a,n);i="string"==typeof h?h:""}else this.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(e)),i="";else"string"==typeof i||this.useRawValueToEscape||(i=tX(i));if(e=e.replace(a[0],u(i)),this.regexpUnescape.lastIndex=0,++o>=this.maxReplaces)break}for(o=0;a=this.regexp.exec(e);){if(void 0===(i=d(a[1].trim())))if("function"==typeof c){var p=c(e,a,n);i="string"==typeof p?p:""}else this.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(e)),i="";else"string"==typeof i||this.useRawValueToEscape||(i=tX(i));if(i=u(this.escapeValue?this.escape(i):i),e=e.replace(a[0],i),this.regexp.lastIndex=0,++o>=this.maxReplaces)break}return e}},{key:"nest",value:function(e,t){var r,n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=tL({},a);function o(e,t){if(0>e.indexOf(","))return e;var r=e.split(",");e=r.shift();var n=r.join(",");n=(n=this.interpolate(n,i)).replace(/'/g,'"');try{i=JSON.parse(n),t&&(i=tL({},t,i))}catch(t){this.logger.error("failed parsing options string in nesting for key ".concat(e),t)}return delete i.defaultValue,e}for(i.applyPostProcessor=!1,delete i.defaultValue;r=this.nestingRegexp.exec(e);){if((n=t(o.call(this,r[1].trim(),i),i))&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=tX(n)),n||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),n=""),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}]),e}(),ra=function(e){function t(e,r,n){var a,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return tN(this,t),a=tj(this,tW(t).call(this)),tY.call(tB(a)),a.backend=e,a.store=r,a.services=n,a.languageUtils=n.languageUtils,a.options=i,a.logger=tK.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(n,i.backend,i),a}return tz(t,e),tF(t,[{key:"queueLoad",value:function(e,t,r,n){var a=this,i=[],o=[],s=[],l=[];return e.forEach(function(e){var n=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!r.reload&&a.store.hasResourceBundle(e,t)?a.state[s]=2:a.state[s]<0||(1===a.state[s]?0>o.indexOf(s)&&o.push(s):(a.state[s]=1,n=!1,0>o.indexOf(s)&&o.push(s),0>i.indexOf(s)&&i.push(s),0>l.indexOf(t)&&l.push(t)))}),n||s.push(e)}),(i.length||o.length)&&this.queue.push({pending:o,loaded:{},errors:[],callback:n}),{toLoad:i,pending:o,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,r){var n=tq(e.split("|"),2),a=n[0],i=n[1];t&&this.emit("failedLoading",a,i,t),r&&this.store.addResourceBundle(a,i,r),this.state[e]=t?-1:2;var o={};this.queue.forEach(function(r){n=r.loaded,(l=(s=tJ(n,[a],Object)).obj)[u=s.k]=l[u]||[],l[u].push(i);for(var n,s,l,u,d=r.pending,c=d.indexOf(e);-1!==c;)d.splice(c,1),c=d.indexOf(e);t&&r.errors.push(t),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach(function(e){o[e]||(o[e]=[]),r.loaded[e].length&&r.loaded[e].forEach(function(t){0>o[e].indexOf(t)&&o[e].push(t)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,r){var n=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,o=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[r](e,t,function(s,l){s&&l&&a<5?setTimeout(function(){n.read.call(n,e,t,r,a+1,2*i,o)},i):o(s,l)}):o(null,{})}},{key:"prepareLoading",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,n,a);if(!i.toLoad.length)return i.pending.length||a(),null;i.toLoad.forEach(function(e){r.loadOne(e)})}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=tq(e.split("|"),2),a=n[0],i=n[1];this.read(a,i,"read",null,null,function(n,o){n&&t.logger.warn("".concat(r,"loading namespace ").concat(i," for language ").concat(a," failed"),n),!n&&o&&t.logger.log("".concat(r,"loaded namespace ").concat(i," for language ").concat(a),o),t.loaded(e,n,o)})}},{key:"saveMissing",value:function(e,t,r,n,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(r,'" for namespace "').concat(t,'" as the namespace was not yet loaded'),"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):(this.backend&&this.backend.create&&this.backend.create(e,t,r,n,null,tL({},i,{isUpdate:a})),e&&e[0]&&this.store.addResource(e[0],t,r,n))}}]),t}(tY);function ri(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&0>e.whitelist.indexOf("cimode")&&(e.whitelist=e.whitelist.concat(["cimode"])),e}function ro(){}let rs=new(function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(tN(this,t),e=tj(this,tW(t).call(this)),tY.call(tB(e)),e.options=ri(r),e.services={},e.logger=tK,e.modules={external:[]},n&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,n),tj(e,tB(e));setTimeout(function(){e.init(r,n)},0)}return e}return tz(t,e),tF(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function n(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(r=t,t={}),this.options=tL({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===tA(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===tA(e[2])||"object"===tA(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",maxReplaces:1e3}},this.options,ri(t)),this.format=this.options.interpolation.format,r||(r=ro),!this.options.isClone){this.modules.logger?tK.init(n(this.modules.logger),this.options):tK.init(null,this.options);var a=new t7(this.options);this.store=new t4(this.options.resources,this.options);var i=this.services;i.logger=tK,i.resourceStore=this.store,i.languageUtils=a,i.pluralResolver=new rr(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new rn(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new ra(n(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];e.emit.apply(e,[t].concat(n))}),this.modules.languageDetector&&(i.languageDetector=n(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=n(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new t6(this.services,this.options),this.translator.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];e.emit.apply(e,[t].concat(n))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}["getResource","addResource","addResources","addResourceBundle","removeResourceBundle","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}});var o=tZ(),s=function(){e.changeLanguage(e.options.lng,function(t,n){e.isInitialized=!0,e.logger.log("initialized",e.options),e.emit("initialized",e.options),o.resolve(n),r(t,n)})};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),o}},{key:"loadResources",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ro;if(!this.options.resources||this.options.partialBundledLanguages){if(this.language&&"cimode"===this.language.toLowerCase())return t();var r=[],n=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach(function(e){0>r.indexOf(e)&&r.push(e)})};this.language?n(this.language):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return n(e)}),this.options.preload&&this.options.preload.forEach(function(e){return n(e)}),this.services.backendConnector.load(r,this.options.ns,t)}else t(null)}},{key:"reloadResources",value:function(e,t,r){var n=tZ();return e||(e=this.languages),t||(t=this.options.ns),r||(r=ro),this.services.backendConnector.reload(e,t,function(e){n.resolve(),r(e)}),n}},{key:"use",value:function(e){return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&t8.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var r=this,n=tZ();this.emit("languageChanging",e);var a=function(e,a){r.translator.changeLanguage(a),a&&(r.emit("languageChanged",a),r.logger.log("languageChanged",a)),n.resolve(function(){return r.t.apply(r,arguments)}),t&&t(e,function(){return r.t.apply(r,arguments)})},i=function(e){e&&(r.language=e,r.languages=r.services.languageUtils.toResolveHierarchy(e),r.translator.language||r.translator.changeLanguage(e),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(e)),r.loadResources(function(t){a(t,e)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t){var r=this,n=function e(t,n){var a;if("object"!==tA(n)){for(var i=arguments.length,o=Array(i>2?i-2:0),s=2;s<i;s++)o[s-2]=arguments[s];a=r.options.overloadTranslationOptionHandler([t,n].concat(o))}else a=tL({},n);return a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,r.t(t,a)};return"string"==typeof e?n.lng=e:n.lngs=e,n.ns=t,n}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this;if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],n=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var i=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return -1===n||2===n};return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||i(r,e)&&(!n||i(a,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,n=tZ();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>r.options.ns.indexOf(e)&&r.options.ns.push(e)}),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=tZ();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],a=e.filter(function(e){return 0>n.indexOf(e)});return a.length?(this.options.preload=n.concat(a),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(e,r)}},{key:"cloneInstance",value:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ro,a=tL({},this.options,r,{isClone:!0}),i=new t(a);return["store","services","language"].forEach(function(t){i[t]=e[t]}),i.translator=new t6(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];i.emit.apply(i,[e].concat(r))}),i.init(a,n),i.translator.options=i.options,i}}]),t}(tY));function rl(e,t){let r=e&&tO()(e,["YYYYMMDD","YYYY.MM.DD"],!0),n=t&&tO()(t,["HH","HHmm","HHmmss","HHmmss.SSS"],!0);if(r&&r.isValid()){let e=r.clone();return n&&n.isValid()&&e.set({hour:n.hour(),minute:n.minute(),second:n.second(),millisecond:n.millisecond()}),e.toDate().getTime()}return 0}let ru=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,rd=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return eQ(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;let o=ru(t)||ru(n);return a[e][o]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return eQ(e,o,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...s}[t]):({...i,...s})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)};function rc(){return(rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let rh=rd("inline-flex items-center rounded-xl border px-1 py-0.5 text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary/25 text-primary shadow hover:bg-primary/35",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function rp({className:e,variant:t,...r}){return ed.createElement("div",rc({className:t_(rh({variant:t}),e)},r))}function rm(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function rf(...e){return t=>{let r=!1,n=e.map(e=>{let n=rm(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():rm(e[t],null)}}}}function rg(...e){return ed.useCallback(rf(...e),e)}var ry=u(6870);function rv(e){var t;let r,n=(t=e,(r=ed.forwardRef((e,t)=>{let{children:r,...n}=e;if(ed.isValidElement(r)){var a;let e,i,o=(a=r,(i=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(i=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),s=function(e,t){let r={...t};for(let n in t){let a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...e)=>{let t=i(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...i}:"className"===n&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==ed.Fragment&&(s.ref=t?rf(t,o):o),ed.cloneElement(r,s)}return ed.Children.count(r)>1?ed.Children.only(null):null})).displayName=`${t}.SlotClone`,r),a=ed.forwardRef((e,t)=>{let{children:r,...a}=e,i=ed.Children.toArray(r),o=i.find(rx);if(o){let e=o.props.children,r=i.map(t=>t!==o?t:ed.Children.count(e)>1?ed.Children.only(null):ed.isValidElement(e)?e.props.children:null);return(0,ry.jsx)(n,{...a,ref:t,children:ed.isValidElement(e)?ed.cloneElement(e,void 0,r):null})}return(0,ry.jsx)(n,{...a,ref:t,children:r})});return a.displayName=`${e}.Slot`,a}var rb=rv("Slot"),rw=Symbol("radix.slottable");function rx(e){return ed.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===rw}function rC(){return(rC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let rk=rd("inline-flex items-center justify-center whitespace-nowrap rounded text-base font-normal leading-tight transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary/85 text-primary-foreground hover:bg-primary/100",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-primary/25 bg-background hover:bg-primary/25 text-primary hover:text-primary",secondary:"bg-secondary/85 text-secondary-foreground hover:bg-secondary/100",ghost:"font-normal text-primary hover:bg-primary/25",link:"font-normal text-primary underline-offset-4 hover:underline"},size:{default:"h-7 px-2 py-2",sm:"h-6 rounded px-2",lg:"h-9 rounded px-2",icon:"h-6 w-6"}},defaultVariants:{variant:"default",size:"default"}}),rM=ed.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,dataCY:a,...i},o)=>{let s=a||`${i.name}-btn`;return ed.createElement(n?rb:"button",rC({"data-cy":s,className:t_(rk({variant:t,size:r}),e),ref:o},i))});rM.displayName="Button";var rS=u(1845),rE=u.n(rS);function rT(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}var rI=["color"],rP=(0,ed.forwardRef)(function(e,t){var r=e.color,n=rT(e,rI);return(0,ed.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,ed.createElement)("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),r_=["color"],rD=(0,ed.forwardRef)(function(e,t){var r=e.color,n=rT(e,r_);return(0,ed.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,ed.createElement)("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),rO=["color"],rA=(0,ed.forwardRef)(function(e,t){var r=e.color,n=rT(e,rO);return(0,ed.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,ed.createElement)("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),rR=["color"],rL=(0,ed.forwardRef)(function(e,t){var r=e.color,n=rT(e,rR);return(0,ed.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,ed.createElement)("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),rN=["color"],rV=(0,ed.forwardRef)(function(e,t){var r=e.color,n=rT(e,rN);return(0,ed.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,ed.createElement)("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),rF=["color"],rB=(0,ed.forwardRef)(function(e,t){var r=e.color,n=rT(e,rF);return(0,ed.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,ed.createElement)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),rj=["color"],rW=(0,ed.forwardRef)(function(e,t){var r=e.color,n=rT(e,rj);return(0,ed.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,ed.createElement)("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:void 0===r?"currentColor":r}))}),rU=["color"],rz=(0,ed.forwardRef)(function(e,t){var r=e.color,n=rT(e,rU);return(0,ed.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,ed.createElement)("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),rH=/[\\\/_+.#"@\[\(\{&]/,rG=/[\\\/_+.#"@\[\(\{&]/g,rq=/[\s-]/,r$=/[\s-]/g;function rK(e){return e.toLowerCase().replace(r$," ")}function rY(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function rZ(e,t=[]){let r=[],n=()=>{let t=r.map(e=>ed.createContext(e));return function(r){let n=r?.[e]||t;return ed.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let a=ed.createContext(n),i=r.length;r=[...r,n];let o=t=>{let{scope:r,children:n,...o}=t,s=r?.[e]?.[i]||a,l=ed.useMemo(()=>o,Object.values(o));return(0,ry.jsx)(s.Provider,{value:l,children:n})};return o.displayName=t+"Provider",[o,function(r,o){let s=o?.[e]?.[i]||a,l=ed.useContext(s);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let a=r(e)[`__scope${n}`];return{...t,...a}},{});return ed.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}var rX=globalThis?.document?ed.useLayoutEffect:()=>{},rJ=ec[" useId ".trim().toString()]||(()=>void 0),rQ=0;function r0(e){let[t,r]=ed.useState(rJ());return rX(()=>{e||r(e=>e??String(rQ++))},[e]),e||(t?`radix-${t}`:"")}ec[" useEffectEvent ".trim().toString()],ec[" useInsertionEffect ".trim().toString()];var r1=ec[" useInsertionEffect ".trim().toString()]||rX;function r2({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[a,i,o]=function({defaultProp:e,onChange:t}){let[r,n]=ed.useState(e),a=ed.useRef(r),i=ed.useRef(t);return r1(()=>{i.current=t},[t]),ed.useEffect(()=>{a.current!==r&&(i.current?.(r),a.current=r)},[r,a]),[r,n,i]}({defaultProp:t,onChange:r}),s=void 0!==e,l=s?e:a;{let t=ed.useRef(void 0!==e);ed.useEffect(()=>{let e=t.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,n])}return[l,ed.useCallback(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&o.current?.(r)}else i(t)},[s,e,i,o])]}Symbol("RADIX:SYNC_STATE");var r5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=rv(`Primitive.${t}`),n=ed.forwardRef((e,n)=>{let{asChild:a,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,ry.jsx)(a?r:t,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function r3(e,t){e&&rS.flushSync(()=>e.dispatchEvent(t))}function r4(e){let t=ed.useRef(e);return ed.useEffect(()=>{t.current=e}),ed.useMemo(()=>(...e)=>t.current?.(...e),[])}var r8="dismissableLayer.update",r6=ed.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),r9=ed.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:s,...l}=e,u=ed.useContext(r6),[d,c]=ed.useState(null),h=d?.ownerDocument??globalThis?.document,[,p]=ed.useState({}),m=rg(t,e=>c(e)),f=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=f.indexOf(g),v=d?f.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,w=v>=y,x=function(e,t=globalThis?.document){let r=r4(e),n=ed.useRef(!1),a=ed.useRef(()=>{});return ed.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){ne("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...u.branches].some(e=>e.contains(t));w&&!r&&(a?.(e),o?.(e),e.defaultPrevented||s?.())},h),C=function(e,t=globalThis?.document){let r=r4(e),n=ed.useRef(!1);return ed.useEffect(()=>{let e=e=>{e.target&&!n.current&&ne("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;![...u.branches].some(e=>e.contains(t))&&(i?.(e),o?.(e),e.defaultPrevented||s?.())},h);return!function(e,t=globalThis?.document){let r=r4(e);ed.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{v===u.layers.size-1&&(n?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},h),ed.useEffect(()=>{if(d)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(eyy=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),r7(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=eyy)}},[d,h,r,u]),ed.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),r7())},[d,u]),ed.useEffect(()=>{let e=()=>p({});return document.addEventListener(r8,e),()=>document.removeEventListener(r8,e)},[]),(0,ry.jsx)(r5.div,{...l,ref:m,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:rY(e.onFocusCapture,C.onFocusCapture),onBlurCapture:rY(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:rY(e.onPointerDownCapture,x.onPointerDownCapture)})});function r7(){let e=new CustomEvent(r8);document.dispatchEvent(e)}function ne(e,t,r,{discrete:n}){let a=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?r3(a,i):a.dispatchEvent(i)}r9.displayName="DismissableLayer",ed.forwardRef((e,t)=>{let r=ed.useContext(r6),n=ed.useRef(null),a=rg(t,n);return ed.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,ry.jsx)(r5.div,{...e,ref:a})}).displayName="DismissableLayerBranch";var nt="focusScope.autoFocusOnMount",nr="focusScope.autoFocusOnUnmount",nn={bubbles:!1,cancelable:!0},na=ed.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=e,[s,l]=ed.useState(null),u=r4(a),d=r4(i),c=ed.useRef(null),h=rg(t,e=>l(e)),p=ed.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;ed.useEffect(()=>{if(n){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?c.current=t:ns(c.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||ns(c.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ns(s)});return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,s,p.paused]),ed.useEffect(()=>{if(s){nl.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(nt,nn);s.addEventListener(nt,u),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(ns(n,{select:t}),document.activeElement!==r)return}(ni(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&ns(s))}return()=>{s.removeEventListener(nt,u),setTimeout(()=>{let t=new CustomEvent(nr,nn);s.addEventListener(nr,d),s.dispatchEvent(t),t.defaultPrevented||ns(e??document.body,{select:!0}),s.removeEventListener(nr,d),nl.remove(p)},0)}}},[s,u,d,p]);let m=ed.useCallback(e=>{if(!r&&!n||p.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){var i;let t,n=e.currentTarget,[o,s]=[no(t=ni(i=n),i),no(t.reverse(),i)];o&&s?e.shiftKey||a!==s?e.shiftKey&&a===o&&(e.preventDefault(),r&&ns(s,{select:!0})):(e.preventDefault(),r&&ns(o,{select:!0})):a===n&&e.preventDefault()}},[r,n,p.paused]);return(0,ry.jsx)(r5.div,{tabIndex:-1,...o,ref:h,onKeyDown:m})});function ni(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function no(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function ns(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}na.displayName="FocusScope";var nl=(M=[],{add(e){let t=M[0];e!==t&&t?.pause(),(M=nu(M,e)).unshift(e)},remove(e){M=nu(M,e),M[0]?.resume()}});function nu(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var nd=ed.forwardRef((e,t)=>{let{container:r,...n}=e,[a,i]=ed.useState(!1);rX(()=>i(!0),[]);let o=r||a&&globalThis?.document?.body;return o?rS.createPortal((0,ry.jsx)(r5.div,{...n,ref:t}),o):null});nd.displayName="Portal";var nc=e=>{var t;let r,n,{present:a,children:i}=e,o=function(e){var t,r;let[n,a]=ed.useState(),i=ed.useRef(null),o=ed.useRef(e),s=ed.useRef("none"),[l,u]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},ed.useReducer((e,t)=>r[e][t]??e,t));return ed.useEffect(()=>{let e=nh(i.current);s.current="mounted"===l?e:"none"},[l]),rX(()=>{let t=i.current,r=o.current;if(r!==e){let n=s.current,a=nh(t);e?u("MOUNT"):"none"===a||t?.display==="none"?u("UNMOUNT"):r&&n!==a?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),rX(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,r=r=>{let a=nh(i.current).includes(r.animationName);if(r.target===n&&a&&(u("ANIMATION_END"),!o.current)){let r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},a=e=>{e.target===n&&(s.current=nh(i.current))};return n.addEventListener("animationstart",a),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",a),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:ed.useCallback(e=>{i.current=e?getComputedStyle(e):null,a(e)},[])}}(a),s="function"==typeof i?i({present:o.isPresent}):ed.Children.only(i),l=rg(o.ref,(t=s,(n=(r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof i||o.isPresent?ed.cloneElement(s,{ref:l}):null};function nh(e){return e?.animationName||"none"}nc.displayName="Presence";var np=0;function nm(){ed.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??nf()),document.body.insertAdjacentElement("beforeend",e[1]??nf()),np++,()=>{1===np&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),np--}},[])}function nf(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ng=function(){return(ng=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function ny(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}var nv="right-scroll-bar-position",nb="width-before-scroll-bar";function nw(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var nx="u">typeof window?ed.useLayoutEffect:ed.useEffect,nC=new WeakMap;new WeakMap,new WeakMap;var nk=function(e){var t=e.sideCar,r=ny(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return ed.createElement(n,ng({},r))};nk.isSideCarExport=!0;var nM=(void 0===egI&&(egI={}),(void 0===egP&&(egP=function(e){return e}),eg_=[],egD=!1,egO={read:function(){if(egD)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return eg_.length?eg_[eg_.length-1]:null},useMedium:function(e){var t=egP(e,egD);return eg_.push(t),function(){eg_=eg_.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(egD=!0;eg_.length;){var t=eg_;eg_=[],t.forEach(e)}eg_={push:function(t){return e(t)},filter:function(){return eg_}}},assignMedium:function(e){egD=!0;var t=[];if(eg_.length){var r=eg_;eg_=[],r.forEach(e),t=eg_}var n=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(n)};a(),eg_={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),eg_}}}}).options=ng({async:!0,ssr:!1},egI),egO),nS=function(){},nE=ed.forwardRef(function(e,t){var r,n,a,i,o=ed.useRef(null),s=ed.useState({onScrollCapture:nS,onWheelCapture:nS,onTouchMoveCapture:nS}),l=s[0],u=s[1],d=e.forwardProps,c=e.children,h=e.className,p=e.removeScrollBar,m=e.enabled,f=e.shards,g=e.sideCar,y=e.noRelative,v=e.noIsolation,b=e.inert,w=e.allowPinchZoom,x=e.as,C=e.gapMode,k=ny(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=(r=[o,t],n=function(e){return r.forEach(function(t){return nw(t,e)})},(a=(0,ed.useState)(function(){return{value:null,callback:n,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=n,i=a.facade,nx(function(){var e=nC.get(i);if(e){var t=new Set(e),n=new Set(r),a=i.current;t.forEach(function(e){n.has(e)||nw(e,null)}),n.forEach(function(e){t.has(e)||nw(e,a)})}nC.set(i,r)},[r]),i),S=ng(ng({},k),l);return ed.createElement(ed.Fragment,null,m&&ed.createElement(g,{sideCar:nM,removeScrollBar:p,shards:f,noRelative:y,noIsolation:v,inert:b,setCallbacks:u,allowPinchZoom:!!w,lockRef:o,gapMode:C}),d?ed.cloneElement(ed.Children.only(c),ng(ng({},S),{ref:M})):ed.createElement(void 0===x?"div":x,ng({},S,{className:h,ref:M}),c))});nE.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},nE.classNames={fullWidth:nb,zeroRight:nv};var nT=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=eyv||u.nc;return t&&e.setAttribute("nonce",t),e}())){var n,a;(n=t).styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nI=function(){var e=nT();return function(t,r){ed.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},nP=function(){var e=nI();return function(t){return e(t.styles,t.dynamic),null}},n_={left:0,top:0,right:0,gap:0},nD=function(e){return parseInt(e||"",10)||0},nO=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[nD(r),nD(n),nD(a)]},nA=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return n_;var t=nO(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},nR=nP(),nL="data-scroll-locked",nN=function(e,t,r,n){var a=e.left,i=e.top,o=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body[").concat(nL,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(nv," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(nb," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(nv," .").concat(nv," {\n right: 0 ").concat(n,";\n }\n \n .").concat(nb," .").concat(nb," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(nL,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},nV=function(){var e=parseInt(document.body.getAttribute(nL)||"0",10);return isFinite(e)?e:0},nF=function(){ed.useEffect(function(){return document.body.setAttribute(nL,(nV()+1).toString()),function(){var e=nV()-1;e<=0?document.body.removeAttribute(nL):document.body.setAttribute(nL,e.toString())}},[])},nB=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;nF();var i=ed.useMemo(function(){return nA(a)},[a]);return ed.createElement(nR,{styles:nN(i,!t,a,r?"":"!important")})},nj=!1;if("u">typeof window)try{var nW=Object.defineProperty({},"passive",{get:function(){return nj=!0,!0}});window.addEventListener("test",nW,nW),window.removeEventListener("test",nW,nW)}catch(e){nj=!1}var nU=!!nj&&{passive:!1},nz=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},nH=function(e,t){var r=t.ownerDocument,n=t;do{if("u">typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),nG(e,n)){var a=nq(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},nG=function(e,t){return"v"===e?nz(t,"overflowY"):nz(t,"overflowX")},nq=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},n$=function(e,t,r,n,a){var i,o=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),s=o*n,l=r.target,u=t.contains(l),d=!1,c=s>0,h=0,p=0;do{if(!l)break;var m=nq(e,l),f=m[0],g=m[1]-m[2]-o*f;(f||g)&&nG(e,l)&&(h+=g,p+=f);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return c&&(a&&1>Math.abs(h)||!a&&s>h)?d=!0:!c&&(a&&1>Math.abs(p)||!a&&-s>p)&&(d=!0),d},nK=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nY=function(e){return[e.deltaX,e.deltaY]},nZ=function(e){return e&&"current"in e?e.current:e},nX=0,nJ=[];let nQ=(egA=function(e){var t=ed.useRef([]),r=ed.useRef([0,0]),n=ed.useRef(),a=ed.useState(nX++)[0],i=ed.useState(nP)[0],o=ed.useRef(e);ed.useEffect(function(){o.current=e},[e]),ed.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,a=0,i=t.length;a<i;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(nZ),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=ed.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var a,i=nK(e),s=r.current,l="deltaX"in e?e.deltaX:s[0]-i[0],u="deltaY"in e?e.deltaY:s[1]-i[1],d=e.target,c=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===c&&"range"===d.type)return!1;var h=window.getSelection(),p=h&&h.anchorNode;if(p&&(p===d||p.contains(d)))return!1;var m=nH(c,d);if(!m)return!0;if(m?a=c:(a="v"===c?"h":"v",m=nH(c,d)),!m)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=a),!a)return!0;var f=n.current||a;return n$(f,t,e,"h"===f?l:u,!0)},[]),l=ed.useCallback(function(e){if(nJ.length&&nJ[nJ.length-1]===i){var r="deltaY"in e?nY(e):nK(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var a=(o.current.shards||[]).map(nZ).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?s(e,a[0]):!o.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=ed.useCallback(function(e,r,n,a){var i={name:e,delta:r,target:n,should:a,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=ed.useCallback(function(e){r.current=nK(e),n.current=void 0},[]),c=ed.useCallback(function(t){u(t.type,nY(t),t.target,s(t,e.lockRef.current))},[]),h=ed.useCallback(function(t){u(t.type,nK(t),t.target,s(t,e.lockRef.current))},[]);ed.useEffect(function(){return nJ.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:h}),document.addEventListener("wheel",l,nU),document.addEventListener("touchmove",l,nU),document.addEventListener("touchstart",d,nU),function(){nJ=nJ.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,nU),document.removeEventListener("touchmove",l,nU),document.removeEventListener("touchstart",d,nU)}},[]);var p=e.removeScrollBar,m=e.inert;return ed.createElement(ed.Fragment,null,m?ed.createElement(i,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,p?ed.createElement(nB,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},nM.useMedium(egA),nk);var n0=ed.forwardRef(function(e,t){return ed.createElement(nE,ng({},e,{ref:t,sideCar:nQ}))});n0.classNames=nE.classNames;var n1=new WeakMap,n2=new WeakMap,n5={},n3=0,n4=function(e){return e&&(e.host||n4(e.parentNode))},n8=function(e,t,r,n){var a=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=n4(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});n5[r]||(n5[r]=new WeakMap);var i=n5[r],o=[],s=new Set,l=new Set(a),u=function(e){!e||s.has(e)||(s.add(e),u(e.parentNode))};a.forEach(u);var d=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))d(e);else try{var t=e.getAttribute(n),a=null!==t&&"false"!==t,l=(n1.get(e)||0)+1,u=(i.get(e)||0)+1;n1.set(e,l),i.set(e,u),o.push(e),1===l&&a&&n2.set(e,!0),1===u&&e.setAttribute(r,"true"),a||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return d(t),s.clear(),n3++,function(){o.forEach(function(e){var t=n1.get(e)-1,a=i.get(e)-1;n1.set(e,t),i.set(e,a),t||(n2.has(e)||e.removeAttribute(n),n2.delete(e)),a||e.removeAttribute(r)}),--n3||(n1=new WeakMap,n1=new WeakMap,n2=new WeakMap,n5={})}},n6=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),n8(n,a,r,"aria-hidden")):function(){return null}},n9="Dialog",[n7,ae]=rZ(n9),[at,ar]=n7(n9),an=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:i,modal:o=!0}=e,s=ed.useRef(null),l=ed.useRef(null),[u,d]=r2({prop:n,defaultProp:a??!1,onChange:i,caller:n9});return(0,ry.jsx)(at,{scope:t,triggerRef:s,contentRef:l,contentId:r0(),titleId:r0(),descriptionId:r0(),open:u,onOpenChange:d,onOpenToggle:ed.useCallback(()=>d(e=>!e),[d]),modal:o,children:r})};an.displayName=n9;var aa="DialogTrigger";ed.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=ar(aa,r),i=rg(t,a.triggerRef);return(0,ry.jsx)(r5.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":aM(a.open),...n,ref:i,onClick:rY(e.onClick,a.onOpenToggle)})}).displayName=aa;var ai="DialogPortal",[ao,as]=n7(ai,{forceMount:void 0}),al=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:a}=e,i=ar(ai,t);return(0,ry.jsx)(ao,{scope:t,forceMount:r,children:ed.Children.map(n,e=>(0,ry.jsx)(nc,{present:r||i.open,children:(0,ry.jsx)(nd,{asChild:!0,container:a,children:e})}))})};al.displayName=ai;var au="DialogOverlay",ad=ed.forwardRef((e,t)=>{let r=as(au,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,i=ar(au,e.__scopeDialog);return i.modal?(0,ry.jsx)(nc,{present:n||i.open,children:(0,ry.jsx)(ah,{...a,ref:t})}):null});ad.displayName=au;var ac=rv("DialogOverlay.RemoveScroll"),ah=ed.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=ar(au,r);return(0,ry.jsx)(n0,{as:ac,allowPinchZoom:!0,shards:[a.contentRef],children:(0,ry.jsx)(r5.div,{"data-state":aM(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),ap="DialogContent",am=ed.forwardRef((e,t)=>{let r=as(ap,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,i=ar(ap,e.__scopeDialog);return(0,ry.jsx)(nc,{present:n||i.open,children:i.modal?(0,ry.jsx)(af,{...a,ref:t}):(0,ry.jsx)(ag,{...a,ref:t})})});am.displayName=ap;var af=ed.forwardRef((e,t)=>{let r=ar(ap,e.__scopeDialog),n=ed.useRef(null),a=rg(t,r.contentRef,n);return ed.useEffect(()=>{let e=n.current;if(e)return n6(e)},[]),(0,ry.jsx)(ay,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:rY(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:rY(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:rY(e.onFocusOutside,e=>e.preventDefault())})}),ag=ed.forwardRef((e,t)=>{let r=ar(ap,e.__scopeDialog),n=ed.useRef(!1),a=ed.useRef(!1);return(0,ry.jsx)(ay,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let i=t.target;r.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),ay=ed.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:i,...o}=e,s=ar(ap,r),l=ed.useRef(null),u=rg(t,l);return nm(),(0,ry.jsxs)(ry.Fragment,{children:[(0,ry.jsx)(na,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:i,children:(0,ry.jsx)(r9,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":aM(s.open),...o,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),(0,ry.jsxs)(ry.Fragment,{children:[(0,ry.jsx)(aI,{titleId:s.titleId}),(0,ry.jsx)(aP,{contentRef:l,descriptionId:s.descriptionId})]})]})}),av="DialogTitle",ab=ed.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=ar(av,r);return(0,ry.jsx)(r5.h2,{id:a.titleId,...n,ref:t})});ab.displayName=av;var aw="DialogDescription",ax=ed.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=ar(aw,r);return(0,ry.jsx)(r5.p,{id:a.descriptionId,...n,ref:t})});ax.displayName=aw;var aC="DialogClose",ak=ed.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=ar(aC,r);return(0,ry.jsx)(r5.button,{type:"button",...n,ref:t,onClick:rY(e.onClick,()=>a.onOpenChange(!1))})});function aM(e){return e?"open":"closed"}ak.displayName=aC;var aS="DialogTitleWarning",[aE,aT]=(egR={contentName:ap,titleName:av,docsSlug:"dialog"},x=ed.createContext(egR),(C=e=>{let{children:t,...r}=e,n=ed.useMemo(()=>r,Object.values(r));return(0,ry.jsx)(x.Provider,{value:n,children:t})}).displayName=aS+"Provider",[C,function(e){let t=ed.useContext(x);if(t)return t;if(void 0!==egR)return egR;throw Error(`\`${e}\` must be used within \`${aS}\``)}]),aI=({titleId:e})=>{let t=aT(aS),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("gl-matrix/esm/vec3.js"),require("React"),require("gl-matrix"),require("ReactDOM"),require("dcmjs")):"function"==typeof define&&define.amd?define(["gl-matrix/esm/vec3.js","React","gl-matrix","ReactDOM","dcmjs"],t):"object"==typeof exports?exports["ohif-ui"]=t(require("gl-matrix/esm/vec3.js"),require("React"),require("gl-matrix"),require("ReactDOM"),require("dcmjs")):e["ohif-ui"]=t(e["gl-matrix/esm/vec3.js"],e.React,e["gl-matrix"],e.ReactDOM,e.dcmjs)}(globalThis,(e,t,r,n,a)=>(()=>{var i,o,s={7017(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.abort_add=function(e,t){t._abortedFlag||t._abortAlgorithms.add(e)},t.abort_remove=function(e,t){t._abortAlgorithms.delete(e)},t.abort_signalAbort=function(e){if(!e._abortedFlag){for(let t of(e._abortedFlag=!0,e._abortAlgorithms))t.call(e);e._abortAlgorithms.clear(),(0,n.event_fireAnEvent)("abort",e)}};let n=r(331)},644(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attr_setAnExistingAttributeValue=function(e,t){null===e._element?e._value=t:(0,n.element_change)(e,e._element,t)};let n=r(6419)},3819(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boundaryPoint_position=function e(t,r){let i=t[0],o=t[1],s=r[0],l=r[1];if(console.assert((0,a.tree_rootNode)(i)===(0,a.tree_rootNode)(s),"Boundary points must share the same root node."),i===s)if(o===l)return n.BoundaryPosition.Equal;else if(o<l)return n.BoundaryPosition.Before;else return n.BoundaryPosition.After;if((0,a.tree_isFollowing)(s,i)){let t=e([s,l],[i,o]);if(t===n.BoundaryPosition.Before)return n.BoundaryPosition.After;if(t===n.BoundaryPosition.After)return n.BoundaryPosition.Before}if((0,a.tree_isAncestorOf)(s,i)){let e=s;for(;!(0,a.tree_isChildOf)(i,e);)null!==e._parent&&(e=e._parent);if((0,a.tree_index)(e)<o)return n.BoundaryPosition.After}return n.BoundaryPosition.Before};let n=r(3841),a=r(9693)},8966(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.characterData_replaceData=function(e,t,r,u){let d=(0,o.tree_nodeLength)(e);if(t>d)throw new i.IndexSizeError(`Offset exceeds character data length. Offset: ${t}, Length: ${d}, Node is ${e.nodeName}.`);t+r>d&&(r=d-t),n.dom.features.mutationObservers&&(0,s.observer_queueMutationRecord)("characterData",e,null,null,e._data,[],[],null,null);let c=e._data.substring(0,t)+u+e._data.substring(t+r);for(let a of(e._data=c,n.dom.rangeList))a._start[0]===e&&a._start[1]>t&&a._start[1]<=t+r&&(a._start[1]=t),a._end[0]===e&&a._end[1]>t&&a._end[1]<=t+r&&(a._end[1]=t),a._start[0]===e&&a._start[1]>t+r&&(a._start[1]+=u.length-r),a._end[0]===e&&a._end[1]>t+r&&(a._end[1]+=u.length-r);n.dom.features.steps&&a.Guard.isTextNode(e)&&null!==e._parent&&(0,l.dom_runChildTextContentChangeSteps)(e._parent)},t.characterData_substringData=function(e,t,r){let n=(0,o.tree_nodeLength)(e);if(t>n)throw new i.IndexSizeError(`Offset exceeds character data length. Offset: ${t}, Length: ${n}, Node is ${e.nodeName}.`);return t+r>n?e._data.substr(t):e._data.substr(t,r)};let n=r(9091),a=r(8723),i=r(8036),o=r(9693),s=r(6594),l=r(3935)},725(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create_domImplementation=function(e){return n.DOMImplementationImpl._create(e)},t.create_window=function(){return a.WindowImpl._create()},t.create_xmlDocument=function(){return new i.XMLDocumentImpl},t.create_document=function(){return new o.DocumentImpl},t.create_abortController=function(){return new s.AbortControllerImpl},t.create_abortSignal=function(){return l.AbortSignalImpl._create()},t.create_documentType=function(e,t,r,n){return u.DocumentTypeImpl._create(e,t,r,n)},t.create_element=function(e,t,r,n){return d.ElementImpl._create(e,t,r,n)},t.create_htmlElement=function(e,t,r,n){return d.ElementImpl._create(e,t,r,n)},t.create_htmlUnknownElement=function(e,t,r,n){return d.ElementImpl._create(e,t,r,n)},t.create_documentFragment=function(e){return c.DocumentFragmentImpl._create(e)},t.create_shadowRoot=function(e,t){return h.ShadowRootImpl._create(e,t)},t.create_attr=function(e,t){return p.AttrImpl._create(e,t)},t.create_text=function(e,t){return m.TextImpl._create(e,t)},t.create_cdataSection=function(e,t){return f.CDATASectionImpl._create(e,t)},t.create_comment=function(e,t){return g.CommentImpl._create(e,t)},t.create_processingInstruction=function(e,t,r){return y.ProcessingInstructionImpl._create(e,t,r)},t.create_htmlCollection=function(e,t=()=>!0){return v.HTMLCollectionImpl._create(e,t)},t.create_nodeList=function(e){return b.NodeListImpl._create(e)},t.create_nodeListStatic=function(e,t){return w.NodeListStaticImpl._create(e,t)},t.create_namedNodeMap=function(e){return x.NamedNodeMapImpl._create(e)},t.create_range=function(e,t){return C.RangeImpl._create(e,t)},t.create_nodeIterator=function(e,t,r){return k.NodeIteratorImpl._create(e,t,r)},t.create_treeWalker=function(e,t){return M.TreeWalkerImpl._create(e,t)},t.create_nodeFilter=function(){return S.NodeFilterImpl._create()},t.create_mutationRecord=function(e,t,r,n,a,i,o,s,l){return E.MutationRecordImpl._create(e,t,r,n,a,i,o,s,l)},t.create_domTokenList=function(e,t){return T.DOMTokenListImpl._create(e,t)};let n=r(9173),a=r(3243),i=r(8135),o=r(8034),s=r(3813),l=r(745),u=r(7466),d=r(7207),c=r(5714),h=r(4483),p=r(6648),m=r(3800),f=r(7331),g=r(7090),y=r(8326),v=r(6714),b=r(8071),w=r(8993),x=r(6202),C=r(1466),k=r(7765),M=r(1933),S=r(7601),E=r(6609),T=r(1374)},4384(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.customElement_isValidCustomElementName=function(e){return!(!r.test(e)||n.has(e))},t.customElement_isValidElementName=function(e){return a.has(e)},t.customElement_isVoidElementName=function(e){return i.has(e)},t.customElement_isValidShadowHostName=function(e){return o.has(e)},t.customElement_enqueueACustomElementUpgradeReaction=function(e,t){},t.customElement_enqueueACustomElementCallbackReaction=function(e,t,r){},t.customElement_upgrade=function(e,t){},t.customElement_tryToUpgrade=function(e){},t.customElement_lookUpACustomElementDefinition=function(e,t,r,n){return null};let r=/[a-z]([\0-\t\x2D\._a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*-([\0-\t\x2D\._a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*/,n=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),a=new Set(["article","aside","blockquote","body","div","footer","h1","h2","h3","h4","h5","h6","header","main","nav","p","section","span"]),i=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]),o=new Set(["article","aside","blockquote","body","div","footer","h1","h2","h3","h4","h5","h6","header","main","nav","p","section","span"])},3935(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dom_runRemovingSteps=function(e,t){},t.dom_runCloningSteps=function(e,t,r,n){},t.dom_runAdoptingSteps=function(e,t){},t.dom_runAttributeChangeSteps=function(e,t,r,a,i){for(let o of(n.dom.features.slots&&(d.call(e,e,t,r,a,i),u.call(e,e,t,r,a,i)),c.call(e,e,t,a,i),e._attributeChangeSteps))o.call(e,e,t,r,a,i)},t.dom_runInsertionSteps=function(e){},t.dom_runNodeIteratorPreRemovingSteps=function(e,t){l.call(e,e,t)},t.dom_hasSupportedTokens=function(e){return s.has(e)},t.dom_getSupportedTokens=function(e){return s.get(e)||new Set},t.dom_runEventConstructingSteps=function(e){},t.dom_runChildTextContentChangeSteps=function(e){};let n=r(9091),a=r(9693),i=r(8723),o=r(9057),s=new Map;function l(e,t){if(t!==e._root&&(0,a.tree_isAncestorOf)(e._reference,t,!0)){if(e._pointerBeforeReference)for(;;){let r=(0,a.tree_getFollowingNode)(e._root,t);if(null!==r&&(0,a.tree_isDescendantOf)(e._root,r,!0)&&!(0,a.tree_isDescendantOf)(t,r,!0)){e._reference=r;return}if(null===r){e._pointerBeforeReference=!1;return}}if(null===t._previousSibling)null!==t._parent&&(e._reference=t._parent);else{let r=t._previousSibling,n=(0,a.tree_getFirstDescendantNode)(t._previousSibling,!0,!1);for(;null!==n;)null!==n&&(r=n),n=(0,a.tree_getNextDescendantNode)(t._previousSibling,n,!0,!1);e._reference=r}}}function u(e,t,r,n,s){i.Guard.isSlot(e)&&"name"===t&&null===s&&n!==r&&(null!==n||""!==r)&&(""!==n||null!==r)&&(null===n||""===n?e._name="":e._name=n,(0,o.shadowTree_assignSlotablesForATree)((0,a.tree_rootNode)(e)))}function d(e,t,r,n,a){i.Guard.isSlotable(e)&&"slot"===t&&null===a&&n!==r&&(null!==n||""!==r)&&(""!==n||null!==r)&&(null===n||""===n?e._name="":e._name=n,(0,o.shadowTree_isAssigned)(e)&&(0,o.shadowTree_assignSlotables)(e._assignedSlot),(0,o.shadowTree_assignASlot)(e))}function c(e,t,r,n){"id"===t&&null===n&&(r?e._uniqueIdentifier=r:e._uniqueIdentifier=void 0)}},3326(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tokenList_validationSteps=function(e,t){if(!(0,a.dom_hasSupportedTokens)(e._attribute._localName))throw TypeError(`There are no supported tokens defined for attribute name: '${e._attribute._localName}'.`);return(0,a.dom_getSupportedTokens)(e._attribute._localName).has(t.toLowerCase())},t.tokenList_updateSteps=function(e){(e._element.hasAttribute(e._attribute._localName)||0!==e._tokenSet.size)&&(0,i.element_setAnAttributeValue)(e._element,e._attribute._localName,(0,n.orderedSet_serialize)(e._tokenSet))},t.tokenList_serializeSteps=function(e){return(0,i.element_getAnAttributeValue)(e._element,e._attribute._localName)};let n=r(4048),a=r(3935),i=r(6419)},1978(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.document_elementInterface=function(e,t){return o.ElementImpl},t.document_internalCreateElementNS=function(e,t,r,n){let[a,o,s]=(0,u.namespace_validateAndExtract)(t,r),l=null;return void 0!==n&&(l=(0,i.isString)(n)?n:n.is),(0,c.element_createAnElement)(e,s,a,o,l,!0)},t.document_adopt=function(e,t){if(e._nodeDocument===t&&null===e._parent)return;let r=e._nodeDocument;if(e._parent&&(0,h.mutation_remove)(e,e._parent),t!==r){let i=(0,l.tree_getFirstDescendantNode)(e,!0,!0);for(;null!==i;){if(i._nodeDocument=t,a.Guard.isElementNode(i))for(let e of i._attributeList._asArray())e._nodeDocument=t;n.dom.features.customElements&&a.Guard.isElementNode(i)&&"custom"===i._customElementState&&(0,s.customElement_enqueueACustomElementCallbackReaction)(i,"adoptedCallback",[r,t]),n.dom.features.steps&&(0,d.dom_runAdoptingSteps)(i,r),i=(0,l.tree_getNextDescendantNode)(e,i,!0,!0)}}};let n=r(9091),a=r(8723),i=r(3738),o=r(7207),s=r(4384),l=r(9693),u=r(254),d=r(3935),c=r(6419),h=r(1028)},6419(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.element_has=function(e,t){return -1!==t._attributeList._asArray().indexOf(e)},t.element_change=p,t.element_append=m,t.element_remove=f,t.element_replace=g,t.element_getAnAttributeByName=y,t.element_getAnAttributeByNamespaceAndLocalName=v,t.element_getAnAttributeValue=function(e,t,r=""){let n=v(r,t,e);return null===n?"":n._value},t.element_setAnAttribute=function(e,t){if(null!==e._element&&e._element!==t)throw new o.InUseAttributeError(`This attribute already exists in the document: ${e._qualifiedName} as a child of ${e._element._qualifiedName}.`);let r=v(e._namespace||"",e._localName,t);return r===e?e:(null!==r?g(r,e,t):m(e,t),r)},t.element_setAnAttributeValue=function(e,t,r,n=null,a=null){let i=v(a||"",t,e);if(null===i){let i=(0,s.create_attr)(e._nodeDocument,t);i._namespace=a,i._namespacePrefix=n,i._value=r,m(i,e);return}p(i,e,r)},t.element_removeAnAttributeByName=function(e,t){let r=y(e,t);return null!==r&&f(r,t),r},t.element_removeAnAttributeByNamespaceAndLocalName=function(e,t,r){let n=v(e,t,r);return null!==n&&f(n,r),n},t.element_createAnElement=function(e,t,r,i=null,u=null,d=!1){let c=null;if(!n.dom.features.customElements)return(c=(0,s.create_element)(e,t,r,i))._customElementState="uncustomized",c._customElementDefinition=null,c._is=u,c;let p=(0,l.customElement_lookUpACustomElementDefinition)(e,r,t,u);if(null!==p&&p.name!==p.localName)(c=new((0,h.document_elementInterface)(t,a.namespace.HTML)))._localName=t,c._namespace=a.namespace.HTML,c._namespacePrefix=i,c._customElementState="undefined",c._customElementDefinition=null,c._is=u,c._nodeDocument=e,d?(0,l.customElement_upgrade)(p,c):(0,l.customElement_enqueueACustomElementUpgradeReaction)(c,p);else if(null!==p)if(d)try{let r=new p.constructor;if(console.assert(void 0!==r._customElementState),console.assert(void 0!==r._customElementDefinition),console.assert(r._namespace===a.namespace.HTML),0!==r._attributeList.length)throw new o.NotSupportedError("Custom element already has attributes.");if(0!==r._children.size)throw new o.NotSupportedError("Custom element already has child nodes.");if(null!==r._parent)throw new o.NotSupportedError("Custom element already has a parent node.");if(r._nodeDocument!==e)throw new o.NotSupportedError("Custom element is already in a document.");if(r._localName!==t)throw new o.NotSupportedError("Custom element has a different local name.");r._namespacePrefix=i,r._is=null}catch(r){(c=(0,s.create_htmlUnknownElement)(e,t,a.namespace.HTML,i))._customElementState="failed",c._customElementDefinition=null,c._is=null}else(c=(0,s.create_htmlElement)(e,t,a.namespace.HTML,i))._customElementState="undefined",c._customElementDefinition=null,c._is=null,(0,l.customElement_enqueueACustomElementUpgradeReaction)(c,p);else(c=new((0,h.document_elementInterface)(t,r)))._localName=t,c._namespace=r,c._namespacePrefix=i,c._customElementState="uncustomized",c._customElementDefinition=null,c._is=u,c._nodeDocument=e,r===a.namespace.HTML&&(null!==u||(0,l.customElement_isValidCustomElementName)(t))&&(c._customElementState="undefined");if(null===c)throw Error("Unable to create element.");return c},t.element_insertAdjacent=function(e,t,r){switch(t.toLowerCase()){case"beforebegin":if(null===e._parent)return null;return(0,c.mutation_preInsert)(r,e._parent,e);case"afterbegin":return(0,c.mutation_preInsert)(r,e,e._firstChild);case"beforeend":return(0,c.mutation_preInsert)(r,e,null);case"afterend":if(null===e._parent)return null;return(0,c.mutation_preInsert)(r,e._parent,e._nextSibling);default:throw new o.SyntaxError('Invalid \'where\' argument. "beforebegin", "afterbegin", "beforeend" or "afterend" expected')}};let n=r(9091),a=r(360),i=r(8723),o=r(8036),s=r(725),l=r(4384),u=r(6594),d=r(3935),c=r(1028),h=r(1978);function p(e,t,r){n.dom.features.mutationObservers&&(0,u.observer_queueAttributeMutationRecord)(t,e._localName,e._namespace,e._value),n.dom.features.customElements&&i.Guard.isCustomElementNode(t)&&(0,l.customElement_enqueueACustomElementCallbackReaction)(t,"attributeChangedCallback",[e._localName,e._value,r,e._namespace]),n.dom.features.steps&&(0,d.dom_runAttributeChangeSteps)(t,e._localName,e._value,r,e._namespace),e._value=r}function m(e,t){n.dom.features.mutationObservers&&(0,u.observer_queueAttributeMutationRecord)(t,e._localName,e._namespace,null),n.dom.features.customElements&&i.Guard.isCustomElementNode(t)&&(0,l.customElement_enqueueACustomElementCallbackReaction)(t,"attributeChangedCallback",[e._localName,null,e._value,e._namespace]),n.dom.features.steps&&(0,d.dom_runAttributeChangeSteps)(t,e._localName,null,e._value,e._namespace),t._attributeList._asArray().push(e),e._element=t,t._nodeDocument._hasNamespaces||null===e._namespace&&null===e._namespacePrefix&&"xmlns"!==e._localName||(t._nodeDocument._hasNamespaces=!0)}function f(e,t){n.dom.features.mutationObservers&&(0,u.observer_queueAttributeMutationRecord)(t,e._localName,e._namespace,e._value),n.dom.features.customElements&&i.Guard.isCustomElementNode(t)&&(0,l.customElement_enqueueACustomElementCallbackReaction)(t,"attributeChangedCallback",[e._localName,e._value,null,e._namespace]),n.dom.features.steps&&(0,d.dom_runAttributeChangeSteps)(t,e._localName,e._value,null,e._namespace);let r=t._attributeList._asArray().indexOf(e);t._attributeList._asArray().splice(r,1),e._element=null}function g(e,t,r){n.dom.features.mutationObservers&&(0,u.observer_queueAttributeMutationRecord)(r,e._localName,e._namespace,e._value),n.dom.features.customElements&&i.Guard.isCustomElementNode(r)&&(0,l.customElement_enqueueACustomElementCallbackReaction)(r,"attributeChangedCallback",[e._localName,e._value,t._value,e._namespace]),n.dom.features.steps&&(0,d.dom_runAttributeChangeSteps)(r,e._localName,e._value,t._value,e._namespace);let a=r._attributeList._asArray().indexOf(e);-1!==a&&(r._attributeList._asArray()[a]=t),e._element=null,t._element=r,r._nodeDocument._hasNamespaces||null===t._namespace&&null===t._namespacePrefix&&"xmlns"!==t._localName||(r._nodeDocument._hasNamespaces=!0)}function y(e,t){return t._namespace===a.namespace.HTML&&"html"===t._nodeDocument._type&&(e=e.toLowerCase()),t._attributeList._asArray().find(t=>t._qualifiedName===e)||null}function v(e,t,r){let n=e||null;return r._attributeList._asArray().find(e=>e._namespace===n&&e._localName===t)||null}},331(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.event_setTheCanceledFlag=function(e){e._cancelable&&!e._inPassiveListenerFlag&&(e._canceledFlag=!0)},t.event_initialize=function(e,t,r,n){e._initializedFlag=!0,e._stopPropagationFlag=!1,e._stopImmediatePropagationFlag=!1,e._canceledFlag=!1,e._isTrusted=!1,e._target=null,e._type=t,e._bubbles=r,e._cancelable=n},t.event_createAnEvent=h,t.event_innerEventCreationSteps=p,t.event_dispatch=m,t.event_appendToAnEventPath=f,t.event_invoke=g,t.event_innerInvoke=y,t.event_fireAnEvent=function(e,t,r,n,a){void 0===r&&(r=s.EventImpl);let i=h(r);if(i._type=e,n)for(let e in n)i[e]=n[e];return m(i,t,a)},t.event_createLegacyEvent=function(e){let t=null;switch(e.toLowerCase()){case"beforeunloadevent":case"compositionevent":case"devicemotionevent":case"deviceorientationevent":case"dragevent":case"focusevent":case"hashchangeevent":case"htmlevents":case"keyboardevent":case"messageevent":case"mouseevent":case"mouseevents":case"storageevent":case"svgevents":case"textevent":case"touchevent":case"uievent":break;case"customevent":t=o.CustomEventImpl;break;case"event":case"events":t=s.EventImpl}if(null===t)throw new l.NotSupportedError(`Event constructor not found for interface ${e}.`);let r=new t("");return r._type="",r._timeStamp=new Date().getTime(),r._isTrusted=!1,r._initializedFlag=!1,r},t.event_getterEventHandlerIDLAttribute=function(e,t){let r=function(e,t){return null}(e,t);return null===r?null:function(e,t){return null}(r,t)},t.event_setterEventHandlerIDLAttribute=function(e,t,r){let n=function(e,t){return null}(e,t);if(null!==n)if(null===r);else{let e=n._eventHandlerMap.onabort;void 0!==e&&(e.value=r)}},t.event_determineTheTargetOfAnEventHandler=v,t.event_getTheCurrentValueOfAnEventHandler=b,t.event_activateAnEventHandler=function(e,t){},t.event_deactivateAnEventHandler=function(e,t){};let n=r(9091),a=r(3841),i=r(8723),o=r(5945),s=r(9971),l=r(8036),u=r(9693),d=r(9057),c=r(3935);function h(e,t){void 0===t&&(t=null);let r=p(e,t,new Date,{});return r._isTrusted=!0,r}function p(e,t,r,a){let i=new e("");return i._initializedFlag=!0,i._timeStamp=r.getTime(),Object.assign(i,a),n.dom.features.steps&&(0,c.dom_runEventConstructingSteps)(i),i}function m(e,t,r=!1,n={value:!1}){let o=!1;e._dispatchFlag=!0;let s=t;if(r){let e=t._associatedDocument;i.Guard.isDocumentNode(e)&&(s=e)}let l=null,c=(0,u.tree_retarget)(e._relatedTarget,t);if(t!==c||t===e._relatedTarget){let r=[];for(let n of e._touchTargetList)r.push((0,u.tree_retarget)(n,t));f(e,t,s,c,r,!1);let h=i.Guard.isMouseEvent(e)&&"click"===e._type;h&&void 0!==t._activationBehavior&&(l=t);let p=i.Guard.isSlotable(t)&&(0,d.shadowTree_isAssigned)(t)?t:null,m=!1,y=t._getTheParent(e);for(;null!==y&&i.Guard.isNode(y);){if(null!==p){if(!i.Guard.isSlot(y))throw Error("Parent node of a slotable should be a slot.");p=null;let e=(0,u.tree_rootNode)(y,!0);i.Guard.isShadowRoot(e)&&"closed"===e._mode&&(m=!0)}for(let t of(i.Guard.isSlotable(y)&&(0,d.shadowTree_isAssigned)(y)&&(p=y),c=(0,u.tree_retarget)(e._relatedTarget,y),r=[],e._touchTargetList))r.push((0,u.tree_retarget)(t,y));i.Guard.isWindow(y)||i.Guard.isNode(y)&&i.Guard.isNode(t)&&(0,u.tree_isAncestorOf)((0,u.tree_rootNode)(t,!0),y,!0,!0)?(h&&e._bubbles&&null===l&&y._activationBehavior&&(l=y),f(e,y,null,c,r,m)):y===c?y=null:(t=y,h&&null===l&&t._activationBehavior&&(l=t),f(e,y,t,c,r,m)),null!==y&&(y=y._getTheParent(e)),m=!1}let v=null,b=e._path;for(let e=b.length-1;e>=0;e--){let t=b[e];if(null!==t.shadowAdjustedTarget){v=t;break}}if(null!==v)if(i.Guard.isNode(v.shadowAdjustedTarget)&&i.Guard.isShadowRoot((0,u.tree_rootNode)(v.shadowAdjustedTarget,!0)))o=!0;else if(i.Guard.isNode(v.relatedTarget)&&i.Guard.isShadowRoot((0,u.tree_rootNode)(v.relatedTarget,!0)))o=!0;else for(let e=0;e<v.touchTargetList.length;e++){let t=v.touchTargetList[e];if(i.Guard.isNode(t)&&i.Guard.isShadowRoot((0,u.tree_rootNode)(t,!0))){o=!0;break}}null!==l&&void 0!==l._legacyPreActivationBehavior&&l._legacyPreActivationBehavior(e);for(let t=b.length-1;t>=0;t--){let r=b[t];null!==r.shadowAdjustedTarget?e._eventPhase=a.EventPhase.AtTarget:e._eventPhase=a.EventPhase.Capturing,g(r,e,"capturing",n)}for(let t=0;t<b.length;t++){let r=b[t];if(null!==r.shadowAdjustedTarget)e._eventPhase=a.EventPhase.AtTarget;else{if(!e._bubbles)continue;e._eventPhase=a.EventPhase.Bubbling}g(r,e,"bubbling",n)}}return e._eventPhase=a.EventPhase.None,e._currentTarget=null,e._path=[],e._dispatchFlag=!1,e._stopPropagationFlag=!1,e._stopImmediatePropagationFlag=!1,o&&(e._target=null,e._relatedTarget=null,e._touchTargetList=[]),null!==l&&(e._canceledFlag||void 0===l._activationBehavior?void 0!==l._legacyCanceledActivationBehavior&&l._legacyCanceledActivationBehavior(e):l._activationBehavior(e)),!e._canceledFlag}function f(e,t,r,n,a,o){let s=!1;i.Guard.isNode(t)&&i.Guard.isShadowRoot((0,u.tree_rootNode)(t))&&(s=!0);let l=!1;i.Guard.isShadowRoot(t)&&"closed"===t._mode&&(l=!0),e._path.push({invocationTarget:t,invocationTargetInShadowTree:s,shadowAdjustedTarget:r,relatedTarget:n,touchTargetList:a,rootOfClosedTree:l,slotInClosedTree:o})}function g(e,t,r,n={value:!1}){let a=t._path,i=-1;for(let t=0;t<a.length;t++)if(a[t]===e){i=t;break}if(-1!==i){let e=a[i];null!==e.shadowAdjustedTarget?t._target=e.shadowAdjustedTarget:i>0&&null!==(e=a[i-1]).shadowAdjustedTarget&&(t._target=e.shadowAdjustedTarget)}if(t._relatedTarget=e.relatedTarget,t._touchTargetList=e.touchTargetList,t._stopPropagationFlag)return;t._currentTarget=e.invocationTarget;let o=Array(...t._currentTarget._eventListenerList);if(!y(t,o,r,e,n)&&t._isTrusted){let a=t._type;"animationend"===a?t._type="webkitAnimationEnd":"animationiteration"===a?t._type="webkitAnimationIteration":"animationstart"===a?t._type="webkitAnimationStart":"transitionend"===a&&(t._type="webkitTransitionEnd"),y(t,o,r,e,n),t._type=a}}function y(e,t,r,n,a={value:!1}){let o=!1;for(let s=0;s<t.length;s++){let l=t[s];if(!l.removed){let t,s;if(e._type!==l.type||(o=!0,"capturing"===r&&!l.capture||"bubbling"===r&&l.capture))continue;if(l.once&&null!==e._currentTarget){let t=e._currentTarget,r=-1;for(let e=0;e<t._eventListenerList.length;e++)if(t._eventListenerList[e]===l){r=e;break}-1!==r&&t._eventListenerList.splice(r,1)}i.Guard.isWindow(s)&&(t=s._currentEvent,!1===n.invocationTargetInShadowTree&&(s._currentEvent=e)),l.passive&&(e._inPassiveListenerFlag=!0);try{l.callback.handleEvent.call(e._currentTarget,e)}catch(e){a.value=!0}if(l.passive&&(e._inPassiveListenerFlag=!1),i.Guard.isWindow(s)&&(s._currentEvent=t),e._stopImmediatePropagationFlag)break}}return o}function v(e,t){return null}function b(e,t){return null}},436(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eventTarget_flatten=a,t.eventTarget_flattenMore=function(e){let t=a(e),r=!1,i=!1;return(0,n.isBoolean)(e)||(r=e.once||!1,i=e.passive||!1),[t,i,r]},t.eventTarget_addEventListener=function(e,t){if(null!==t.callback){for(let r=0;r<e._eventListenerList.length;r++){let n=e._eventListenerList[r];if(n.type===t.type&&n.callback.handleEvent===t.callback.handleEvent&&n.capture===t.capture)return}e._eventListenerList.push(t)}},t.eventTarget_removeEventListener=function(e,t,r){t.removed=!0,e._eventListenerList.splice(r,1)},t.eventTarget_removeAllEventListeners=function(e){for(let t of e._eventListenerList)t.removed=!0;e._eventListenerList.length=0};let n=r(3738);function a(e){return(0,n.isBoolean)(e)?e:e.capture||!1}},1028(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mutation_ensurePreInsertionValidity=g,t.mutation_preInsert=y,t.mutation_insert=v,t.mutation_append=function(e,t){return y(e,t,null)},t.mutation_replace=function(e,t,r){if(r._nodeType!==i.NodeType.Document&&r._nodeType!==i.NodeType.DocumentFragment&&r._nodeType!==i.NodeType.Element)throw new a.HierarchyRequestError(`Only document, document fragment and element nodes can contain child nodes. Parent node is ${r.nodeName}.`);if((0,d.tree_isHostIncludingAncestorOf)(r,t,!0))throw new a.HierarchyRequestError(`The node to be inserted cannot be an ancestor of parent node. Node is ${t.nodeName}, parent node is ${r.nodeName}.`);if(e._parent!==r)throw new a.NotFoundError(`The reference child node cannot be found under parent node. Child node is ${e.nodeName}, parent node is ${r.nodeName}.`);if(t._nodeType!==i.NodeType.DocumentFragment&&t._nodeType!==i.NodeType.DocumentType&&t._nodeType!==i.NodeType.Element&&t._nodeType!==i.NodeType.Text&&t._nodeType!==i.NodeType.ProcessingInstruction&&t._nodeType!==i.NodeType.CData&&t._nodeType!==i.NodeType.Comment)throw new a.HierarchyRequestError(`Only document fragment, document type, element, text, processing instruction, cdata section or comment nodes can be inserted. Node is ${t.nodeName}.`);if(t._nodeType===i.NodeType.Text&&r._nodeType===i.NodeType.Document)throw new a.HierarchyRequestError(`Cannot insert a text node as a child of a document node. Node is ${t.nodeName}.`);if(t._nodeType===i.NodeType.DocumentType&&r._nodeType!==i.NodeType.Document)throw new a.HierarchyRequestError(`A document type node can only be inserted under a document node. Parent node is ${r.nodeName}.`);if(r._nodeType===i.NodeType.Document){if(t._nodeType===i.NodeType.DocumentFragment){let n=0;for(let e of t._children)if(e._nodeType===i.NodeType.Element)n++;else if(e._nodeType===i.NodeType.Text)throw new a.HierarchyRequestError(`Cannot insert text a node as a child of a document node. Node is ${e.nodeName}.`);if(n>1)throw new a.HierarchyRequestError(`A document node can only have one document element node. Document fragment to be inserted has ${n} element nodes.`);if(1===n){for(let t of r._children)if(t._nodeType===i.NodeType.Element&&t!==e)throw new a.HierarchyRequestError("The document node already has a document element node.");let t=e._nextSibling;for(;t;){if(t._nodeType===i.NodeType.DocumentType)throw new a.HierarchyRequestError("Cannot insert an element node before a document type node.");t=t._nextSibling}}}else if(t._nodeType===i.NodeType.Element){for(let n of r._children)if(n._nodeType===i.NodeType.Element&&n!==e)throw new a.HierarchyRequestError(`Document already has a document element node. Node is ${t.nodeName}.`);let n=e._nextSibling;for(;n;){if(n._nodeType===i.NodeType.DocumentType)throw new a.HierarchyRequestError(`Cannot insert an element node before a document type node. Node is ${t.nodeName}.`);n=n._nextSibling}}else if(t._nodeType===i.NodeType.DocumentType){for(let n of r._children)if(n._nodeType===i.NodeType.DocumentType&&n!==e)throw new a.HierarchyRequestError(`Document already has a document type node. Node is ${t.nodeName}.`);let n=e._previousSibling;for(;n;){if(n._nodeType===i.NodeType.Element)throw new a.HierarchyRequestError(`Cannot insert a document type node before an element node. Node is ${t.nodeName}.`);n=n._previousSibling}}}let o=e._nextSibling;o===t&&(o=t._nextSibling);let s=e._previousSibling;(0,f.document_adopt)(t,r._nodeDocument);let l=[];null!==e._parent&&(l.push(e),b(e,e._parent,!0));let u=[];return t._nodeType===i.NodeType.DocumentFragment?u=Array.from(t._children):u.push(t),v(t,r,o,!0),n.dom.features.mutationObservers&&(0,p.observer_queueTreeMutationRecord)(r,u,l,s,o),e},t.mutation_replaceAll=function(e,t){null!==e&&(0,f.document_adopt)(e,t._nodeDocument);let r=Array.from(t._children),a=[];for(let n of(e&&e._nodeType===i.NodeType.DocumentFragment?a=Array.from(e._children):null!==e&&a.push(e),r))b(n,t,!0);null!==e&&v(e,t,null,!0),n.dom.features.mutationObservers&&(0,p.observer_queueTreeMutationRecord)(t,a,r,null,null)},t.mutation_preRemove=function(e,t){if(e._parent!==t)throw new a.NotFoundError(`The child node cannot be found under parent node. Child node is ${e.nodeName}, parent node is ${t.nodeName}.`);return b(e,t),e},t.mutation_remove=b;let n=r(9091),a=r(8036),i=r(3841),o=r(8723),s=r(3738),l=r(360),u=r(4384),d=r(9693),c=r(7875),h=r(9057),p=r(6594),m=r(3935),f=r(1978);function g(e,t,r){let n=t._nodeType,o=e._nodeType,s=r?r._nodeType:null;if(n!==i.NodeType.Document&&n!==i.NodeType.DocumentFragment&&n!==i.NodeType.Element)throw new a.HierarchyRequestError(`Only document, document fragment and element nodes can contain child nodes. Parent node is ${t.nodeName}.`);if((0,d.tree_isHostIncludingAncestorOf)(t,e,!0))throw new a.HierarchyRequestError(`The node to be inserted cannot be an inclusive ancestor of parent node. Node is ${e.nodeName}, parent node is ${t.nodeName}.`);if(null!==r&&r._parent!==t)throw new a.NotFoundError(`The reference child node cannot be found under parent node. Child node is ${r.nodeName}, parent node is ${t.nodeName}.`);if(o!==i.NodeType.DocumentFragment&&o!==i.NodeType.DocumentType&&o!==i.NodeType.Element&&o!==i.NodeType.Text&&o!==i.NodeType.ProcessingInstruction&&o!==i.NodeType.CData&&o!==i.NodeType.Comment)throw new a.HierarchyRequestError(`Only document fragment, document type, element, text, processing instruction, cdata section or comment nodes can be inserted. Node is ${e.nodeName}.`);if(o===i.NodeType.Text&&n===i.NodeType.Document)throw new a.HierarchyRequestError(`Cannot insert a text node as a child of a document node. Node is ${e.nodeName}.`);if(o===i.NodeType.DocumentType&&n!==i.NodeType.Document)throw new a.HierarchyRequestError(`A document type node can only be inserted under a document node. Parent node is ${t.nodeName}.`);if(n===i.NodeType.Document){if(o===i.NodeType.DocumentFragment){let n=0;for(let t of e._children)if(t._nodeType===i.NodeType.Element)n++;else if(t._nodeType===i.NodeType.Text)throw new a.HierarchyRequestError(`Cannot insert text a node as a child of a document node. Node is ${t.nodeName}.`);if(n>1)throw new a.HierarchyRequestError(`A document node can only have one document element node. Document fragment to be inserted has ${n} element nodes.`);if(1===n){for(let e of t._children)if(e._nodeType===i.NodeType.Element)throw new a.HierarchyRequestError("The document node already has a document element node.");if(r){if(s===i.NodeType.DocumentType)throw new a.HierarchyRequestError("Cannot insert an element node before a document type node.");let e=r._nextSibling;for(;e;){if(e._nodeType===i.NodeType.DocumentType)throw new a.HierarchyRequestError("Cannot insert an element node before a document type node.");e=e._nextSibling}}}}else if(o===i.NodeType.Element){for(let r of t._children)if(r._nodeType===i.NodeType.Element)throw new a.HierarchyRequestError(`Document already has a document element node. Node is ${e.nodeName}.`);if(r){if(s===i.NodeType.DocumentType)throw new a.HierarchyRequestError(`Cannot insert an element node before a document type node. Node is ${e.nodeName}.`);let t=r._nextSibling;for(;t;){if(t._nodeType===i.NodeType.DocumentType)throw new a.HierarchyRequestError(`Cannot insert an element node before a document type node. Node is ${e.nodeName}.`);t=t._nextSibling}}}else if(o===i.NodeType.DocumentType){for(let r of t._children)if(r._nodeType===i.NodeType.DocumentType)throw new a.HierarchyRequestError(`Document already has a document type node. Node is ${e.nodeName}.`);if(r){let t=r._previousSibling;for(;t;){if(t._nodeType===i.NodeType.Element)throw new a.HierarchyRequestError(`Cannot insert a document type node before an element node. Node is ${e.nodeName}.`);t=t._previousSibling}}else{let r=t._firstChild;for(;r;){if(r._nodeType===i.NodeType.Element)throw new a.HierarchyRequestError(`Cannot insert a document type node before an element node. Node is ${e.nodeName}.`);r=r._nextSibling}}}}}function y(e,t,r){g(e,t,r);let n=r;return n===e&&(n=e._nextSibling),(0,f.document_adopt)(e,t._nodeDocument),v(e,t,n),e}function v(e,t,r,a){if(null===r&&e._nodeType!==i.NodeType.DocumentFragment)return void function(e,t,r){let a=t._lastChild;if(o.Guard.isElementNode(e)&&(o.Guard.isDocumentNode(t)&&(t._documentElement=e),e._nodeDocument._hasNamespaces||null===e._namespace&&null===e._namespacePrefix||(e._nodeDocument._hasNamespaces=!0)),e._parent=t,t._children.add(e),null===t._firstChild)e._previousSibling=null,e._nextSibling=null,t._firstChild=e,t._lastChild=e;else{let r=t._lastChild;e._previousSibling=r,e._nextSibling=null,r&&(r._nextSibling=e),r||(t._firstChild=e),t._lastChild=e}n.dom.features.slots&&null!==t._shadowRoot&&o.Guard.isSlotable(e)&&(0,h.shadowTree_assignASlot)(e),n.dom.features.steps&&o.Guard.isTextNode(e)&&(0,m.dom_runChildTextContentChangeSteps)(t),n.dom.features.slots&&o.Guard.isShadowRoot((0,d.tree_rootNode)(t))&&o.Guard.isSlot(t)&&(0,s.isEmpty)(t._assignedNodes)&&(0,h.shadowTree_signalASlotChange)(t),n.dom.features.slots&&(0,h.shadowTree_assignSlotablesForATree)((0,d.tree_rootNode)(e)),n.dom.features.steps&&(0,m.dom_runInsertionSteps)(e),n.dom.features.customElements&&o.Guard.isElementNode(e)&&(0,h.shadowTree_isConnected)(e)&&(o.Guard.isCustomElementNode(e)?(0,u.customElement_enqueueACustomElementCallbackReaction)(e,"connectedCallback",[]):(0,u.customElement_tryToUpgrade)(e)),n.dom.features.mutationObservers&&!r&&(0,p.observer_queueTreeMutationRecord)(t,[e],[],a,null)}(e,t,a);let c=e._nodeType===i.NodeType.DocumentFragment?e._children.size:1;if(null!==r&&0!==n.dom.rangeList.size){let e=(0,d.tree_index)(r);for(let r of n.dom.rangeList)r._start[0]===t&&r._start[1]>e&&(r._start[1]+=c),r._end[0]===t&&r._end[1]>e&&(r._end[1]+=c)}let f=e._nodeType===i.NodeType.DocumentFragment?Array(...e._children):[e];if(e._nodeType===i.NodeType.DocumentFragment)for(;e._firstChild;)b(e._firstChild,e,!0);n.dom.features.mutationObservers&&e._nodeType===i.NodeType.DocumentFragment&&(0,p.observer_queueTreeMutationRecord)(e,[],f,null,null);let g=r?r._previousSibling:t._lastChild,y=null===r?-1:(0,d.tree_index)(r);for(let e=0;e<f.length;e++){let a=f[e];if(o.Guard.isElementNode(a)&&(o.Guard.isDocumentNode(t)&&(t._documentElement=a),a._nodeDocument._hasNamespaces||null===a._namespace&&null===a._namespacePrefix||(a._nodeDocument._hasNamespaces=!0)),a._parent=t,null===r?l.set.append(t._children,a):(l.set.insert(t._children,a,y),y++),null===t._firstChild)a._previousSibling=null,a._nextSibling=null,t._firstChild=a,t._lastChild=a;else{let e=r?r._previousSibling:t._lastChild,n=r||null;a._previousSibling=e,a._nextSibling=n,e&&(e._nextSibling=a),n&&(n._previousSibling=a),e||(t._firstChild=a),n||(t._lastChild=a)}n.dom.features.slots&&null!==t._shadowRoot&&o.Guard.isSlotable(a)&&(0,h.shadowTree_assignASlot)(a),n.dom.features.steps&&o.Guard.isTextNode(a)&&(0,m.dom_runChildTextContentChangeSteps)(t),n.dom.features.slots&&o.Guard.isShadowRoot((0,d.tree_rootNode)(t))&&o.Guard.isSlot(t)&&(0,s.isEmpty)(t._assignedNodes)&&(0,h.shadowTree_signalASlotChange)(t),n.dom.features.slots&&(0,h.shadowTree_assignSlotablesForATree)((0,d.tree_rootNode)(a));let i=(0,d.tree_getFirstDescendantNode)(a,!0,!0);for(;null!==i;)n.dom.features.steps&&(0,m.dom_runInsertionSteps)(i),n.dom.features.customElements&&o.Guard.isElementNode(i)&&(0,h.shadowTree_isConnected)(i)&&(o.Guard.isCustomElementNode(i)?(0,u.customElement_enqueueACustomElementCallbackReaction)(i,"connectedCallback",[]):(0,u.customElement_tryToUpgrade)(i)),i=(0,d.tree_getNextDescendantNode)(a,i,!0,!0)}n.dom.features.mutationObservers&&!a&&(0,p.observer_queueTreeMutationRecord)(t,f,[],g,r)}function b(e,t,r){if(0!==n.dom.rangeList.size){let r=(0,d.tree_index)(e);for(let a of n.dom.rangeList)(0,d.tree_isDescendantOf)(e,a._start[0],!0)&&(a._start=[t,r]),(0,d.tree_isDescendantOf)(e,a._end[0],!0)&&(a._end=[t,r]),a._start[0]===t&&a._start[1]>r&&a._start[1]--,a._end[0]===t&&a._end[1]>r&&a._end[1]--;for(let e of n.dom.rangeList)e._start[0]===t&&e._start[1]>r&&(e._start[1]-=1),e._end[0]===t&&e._end[1]>r&&(e._end[1]-=1)}if(n.dom.features.steps)for(let t of(0,c.nodeIterator_iteratorList)())t._root._nodeDocument===e._nodeDocument&&(0,m.dom_runNodeIteratorPreRemovingSteps)(t,e);let a=e._previousSibling,i=e._nextSibling;o.Guard.isDocumentNode(t)&&o.Guard.isElementNode(e)&&(t._documentElement=null),e._parent=null,t._children.delete(e);let l=e._previousSibling,f=e._nextSibling;e._previousSibling=null,e._nextSibling=null,l&&(l._nextSibling=f),f&&(f._previousSibling=l),l||(t._firstChild=f),f||(t._lastChild=l),n.dom.features.slots&&o.Guard.isSlotable(e)&&null!==e._assignedSlot&&(0,h.shadowTree_isAssigned)(e)&&(0,h.shadowTree_assignSlotables)(e._assignedSlot),n.dom.features.slots&&o.Guard.isShadowRoot((0,d.tree_rootNode)(t))&&o.Guard.isSlot(t)&&(0,s.isEmpty)(t._assignedNodes)&&(0,h.shadowTree_signalASlotChange)(t),n.dom.features.slots&&null!==(0,d.tree_getFirstDescendantNode)(e,!0,!1,e=>o.Guard.isSlot(e))&&((0,h.shadowTree_assignSlotablesForATree)((0,d.tree_rootNode)(t)),(0,h.shadowTree_assignSlotablesForATree)(e)),n.dom.features.steps&&(0,m.dom_runRemovingSteps)(e,t),n.dom.features.customElements&&o.Guard.isCustomElementNode(e)&&(0,u.customElement_enqueueACustomElementCallbackReaction)(e,"disconnectedCallback",[]);let g=(0,d.tree_getFirstDescendantNode)(e,!1,!0);for(;null!==g;)n.dom.features.steps&&(0,m.dom_runRemovingSteps)(g,e),n.dom.features.customElements&&o.Guard.isCustomElementNode(g)&&(0,u.customElement_enqueueACustomElementCallbackReaction)(g,"disconnectedCallback",[]),g=(0,d.tree_getNextDescendantNode)(e,g,!1,!0);if(n.dom.features.mutationObservers){let r=(0,d.tree_getFirstAncestorNode)(t,!0);for(;null!==r;){for(let t of r._registeredObserverList)t.options.subtree&&e._registeredObserverList.push({observer:t.observer,options:t.options,source:t});r=(0,d.tree_getNextAncestorNode)(t,r,!0)}}n.dom.features.mutationObservers&&!r&&(0,p.observer_queueTreeMutationRecord)(t,[],[e],a,i),n.dom.features.steps&&o.Guard.isTextNode(e)&&(0,m.dom_runChildTextContentChangeSteps)(t)}},6594(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observer_queueAMutationObserverMicrotask=u,t.observer_notifyMutationObservers=d,t.observer_queueMutationRecord=c,t.observer_queueTreeMutationRecord=function(e,t,r,n,a){c("childList",e,null,null,null,t,r,n,a)},t.observer_queueAttributeMutationRecord=function(e,t,r,n){c("attributes",e,t,r,n,[],[],null,null)};let n=r(9091),a=r(8723),i=r(360),o=r(725),s=r(9693),l=r(331);function u(){let e=n.dom.window;e._mutationObserverMicrotaskQueued||(e._mutationObserverMicrotaskQueued=!0,Promise.resolve().then(()=>{d()}))}function d(){let e=n.dom.window;e._mutationObserverMicrotaskQueued=!1;let t=i.set.clone(e._mutationObservers),r=i.set.clone(e._signalSlots);for(let r of(i.set.empty(e._signalSlots),t)){let e=i.list.clone(r._recordQueue);i.list.empty(r._recordQueue);for(let e=0;e<r._nodeList.length;e++){let t=r._nodeList[e];i.list.remove(t._registeredObserverList,e=>a.Guard.isTransientRegisteredObserver(e)&&e.observer===r)}if(!i.list.isEmpty(e))try{r._callback.call(r,e,r)}catch(e){}}if(n.dom.features.slots)for(let e of r)(0,l.event_fireAnEvent)("slotchange",e,void 0,{bubbles:!0})}function c(e,t,r,n,a,i,l,d,c){let h=new Map,p=(0,s.tree_getFirstAncestorNode)(t,!0);for(;null!==p;){for(let i=0;i<p._registeredObserverList.length;i++){let o=p._registeredObserverList[i],s=o.options;if(p!==t&&!s.subtree||"attributes"===e&&!s.attributes||"attributes"===e&&s.attributeFilter&&(!s.attributeFilter.indexOf(r||"")||null!==n)||"characterData"===e&&!s.characterData||"childList"===e&&!s.childList)continue;let l=o.observer;h.has(l)||h.set(l,null),("attributes"===e&&s.attributeOldValue||"characterData"===e&&s.characterDataOldValue)&&h.set(l,a)}p=(0,s.tree_getNextAncestorNode)(t,p,!0)}for(let[a,s]of h){let u=(0,o.create_mutationRecord)(e,t,(0,o.create_nodeListStatic)(t,i),(0,o.create_nodeListStatic)(t,l),d,c,r,n,s);a._recordQueue.push(u)}u()}},254(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.namespace_validate=o,t.namespace_validateAndExtract=function(e,t){e||(e=null),o(t);let r=t.split(":"),i=2===r.length?r[0]:null,s=2===r.length?r[1]:t;if(i&&null===e)throw new n.NamespaceError("Qualified name includes a prefix but the namespace is null.");if("xml"===i&&e!==a.namespace.XML)throw new n.NamespaceError('Qualified name includes the "xml" prefix but the namespace is not the XML namespace.');if(e!==a.namespace.XMLNS&&("xmlns"===i||"xmlns"===t))throw new n.NamespaceError('Qualified name includes the "xmlns" prefix but the namespace is not the XMLNS namespace.');if(e===a.namespace.XMLNS&&"xmlns"!==i&&"xmlns"!==t)throw new n.NamespaceError('Qualified name does not include the "xmlns" prefix but the namespace is the XMLNS namespace.');return[e,i,s]},t.namespace_extractQName=function(e){o(e);let t=e.split(":");return[2===t.length?t[0]:null,2===t.length?t[1]:e]};let n=r(8036),a=r(360),i=r(9e3);function o(e){if(!(0,i.xml_isName)(e))throw new n.InvalidCharacterError(`Invalid XML name: ${e}`);if(!(0,i.xml_isQName)(e))throw new n.InvalidCharacterError(`Invalid XML qualified name: ${e}.`)}},4349(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.node_stringReplaceAll=function(e,t){let r=null;""!==e&&(r=(0,o.create_text)(t._nodeDocument,e)),(0,u.mutation_replaceAll)(r,t)},t.node_clone=function e(t,r=null,i=!1){let s;if(null===r&&(r=t._nodeDocument),a.Guard.isElementNode(t))for(let n of(s=(0,d.element_createAnElement)(r,t._localName,t._namespace,t._namespacePrefix,t._is,!1),t._attributeList)){let t=e(n,r);(0,d.element_append)(t,s)}else if(a.Guard.isDocumentNode(t)){let e=(0,o.create_document)();e._encoding=t._encoding,e._contentType=t._contentType,e._URL=t._URL,e._origin=t._origin,e._type=t._type,e._mode=t._mode,s=e}else if(a.Guard.isDocumentTypeNode(t))s=(0,o.create_documentType)(r,t._name,t._publicId,t._systemId);else if(a.Guard.isAttrNode(t)){let e=(0,o.create_attr)(r,t.localName);e._namespace=t._namespace,e._namespacePrefix=t._namespacePrefix,e._value=t._value,s=e}else s=a.Guard.isExclusiveTextNode(t)?(0,o.create_text)(r,t._data):a.Guard.isCDATASectionNode(t)?(0,o.create_cdataSection)(r,t._data):a.Guard.isCommentNode(t)?(0,o.create_comment)(r,t._data):a.Guard.isProcessingInstructionNode(t)?(0,o.create_processingInstruction)(r,t._target,t._data):a.Guard.isDocumentFragmentNode(t)?(0,o.create_documentFragment)(r):Object.create(t);if(a.Guard.isDocumentNode(s)?(s._nodeDocument=s,r=s):s._nodeDocument=r,n.dom.features.steps&&(0,l.dom_runCloningSteps)(s,t,r,i),i)for(let n of t._children){let t=e(n,r,!0);(0,u.mutation_append)(t,s)}return s},t.node_equals=function e(t,r){if(t._nodeType!==r._nodeType)return!1;if(a.Guard.isDocumentTypeNode(t)&&a.Guard.isDocumentTypeNode(r)){if(t._name!==r._name||t._publicId!==r._publicId||t._systemId!==r._systemId)return!1}else if(a.Guard.isElementNode(t)&&a.Guard.isElementNode(r)){if(t._namespace!==r._namespace||t._namespacePrefix!==r._namespacePrefix||t._localName!==r._localName||t._attributeList.length!==r._attributeList.length)return!1}else if(a.Guard.isAttrNode(t)&&a.Guard.isAttrNode(r)){if(t._namespace!==r._namespace||t._localName!==r._localName||t._value!==r._value)return!1}else if(a.Guard.isProcessingInstructionNode(t)&&a.Guard.isProcessingInstructionNode(r)){if(t._target!==r._target||t._data!==r._data)return!1}else if(a.Guard.isCharacterDataNode(t)&&a.Guard.isCharacterDataNode(r)&&t._data!==r._data)return!1;if(a.Guard.isElementNode(t)&&a.Guard.isElementNode(r)){let n={};for(let e of t._attributeList)n[e._localName]=e;for(let t of r._attributeList){let r=n[t._localName];if(!r||!e(r,t))return!1}}if(t._children.size!==r._children.size)return!1;let n=t._children[Symbol.iterator](),i=r._children[Symbol.iterator](),o=n.next(),s=i.next();for(;!o.done&&!s.done;){if(!e(o.value,s.value))return!1;o=n.next(),s=i.next()}return!0},t.node_listOfElementsWithQualifiedName=function(e,t){return"*"===e?(0,o.create_htmlCollection)(t):"html"===t._nodeDocument._type?(0,o.create_htmlCollection)(t,function(t){return t._namespace===i.namespace.HTML&&t._qualifiedName===e.toLowerCase()||t._namespace!==i.namespace.HTML&&t._qualifiedName===e}):(0,o.create_htmlCollection)(t,function(t){return t._qualifiedName===e})},t.node_listOfElementsWithNamespace=function(e,t,r){return(""===e&&(e=null),"*"===e&&"*"===t)?(0,o.create_htmlCollection)(r):"*"===e?(0,o.create_htmlCollection)(r,function(e){return e._localName===t}):"*"===t?(0,o.create_htmlCollection)(r,function(t){return t._namespace===e}):(0,o.create_htmlCollection)(r,function(r){return r._localName===t&&r._namespace===e})},t.node_listOfElementsWithClassNames=function(e,t){let r=(0,s.orderedSet_parse)(e);if(0===r.size)return(0,o.create_htmlCollection)(t,()=>!1);let n="quirks"!==t._nodeDocument._mode;return(0,o.create_htmlCollection)(t,function(e){let t=e.classList;return(0,s.orderedSet_contains)(t._tokenSet,r,n)})},t.node_locateANamespacePrefix=function e(t,r){if(t._namespace===r&&null!==t._namespacePrefix)return t._namespacePrefix;for(let e=0;e<t._attributeList.length;e++){let n=t._attributeList[e];if("xmlns"===n._namespacePrefix&&n._value===r)return n._localName}return t._parent&&a.Guard.isElementNode(t._parent)?e(t._parent,r):null},t.node_locateANamespace=function e(t,r){if(a.Guard.isElementNode(t)){if(null!==t._namespace&&t._namespacePrefix===r)return t._namespace;for(let e=0;e<t._attributeList.length;e++){let n=t._attributeList[e];if(n._namespace===i.namespace.XMLNS&&"xmlns"===n._namespacePrefix&&n._localName===r||null===r&&n._namespace===i.namespace.XMLNS&&null===n._namespacePrefix&&"xmlns"===n._localName)return n._value||null}return null===t.parentElement?null:e(t.parentElement,r)}return a.Guard.isDocumentNode(t)?null===t.documentElement?null:e(t.documentElement,r):a.Guard.isDocumentTypeNode(t)||a.Guard.isDocumentFragmentNode(t)?null:a.Guard.isAttrNode(t)?null===t._element?null:e(t._element,r):t._parent&&a.Guard.isElementNode(t._parent)?e(t._parent,r):null};let n=r(9091),a=r(8723),i=r(360),o=r(725),s=r(4048),l=r(3935),u=r(1028),d=r(6419)},7875(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodeIterator_traverse=function(e,t){let r=e._reference,n=e._pointerBeforeReference;for(;;){if(t)if(n)n=!1;else{let t=(0,o.tree_getFollowingNode)(e._root,r);if(!t)return null;r=t}else if(n){let t=(0,o.tree_getPrecedingNode)(e.root,r);if(!t)return null;r=t}else n=!0;if((0,i.traversal_filter)(e,r)===a.FilterResult.Accept)break}return e._reference=r,e._pointerBeforeReference=n,r},t.nodeIterator_iteratorList=function(){return n.dom.window._iteratorList};let n=r(9091),a=r(3841),i=r(3697),o=r(9693)},4048(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.orderedSet_parse=a,t.orderedSet_serialize=i,t.orderedSet_sanitize=function(e){return i(a(e))},t.orderedSet_contains=function(e,t,r){for(let n of t){let t=!1;for(let a of e)if(r){if(a===n){t=!0;break}}else if(a.toUpperCase()===n.toUpperCase()){t=!0;break}if(!t)return!1}return!0};let n=r(360);function a(e){return new Set(n.string.splitAStringOnASCIIWhitespace(e))}function i(e){return[...e].join(" ")}},5261(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parentNode_convertNodesIntoANode=function(e,t){let r=null;for(let r=0;r<e.length;r++){let i=e[r];if((0,n.isString)(i)){let n=(0,a.create_text)(t,i);e[r]=n}}if(1===e.length)r=e[0];else{let n=r=(0,a.create_documentFragment)(t);for(let t of e)n.appendChild(t)}return r};let n=r(3738),a=r(725)},8068(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range_collapsed=p,t.range_root=m,t.range_isContained=f,t.range_isPartiallyContained=g,t.range_setTheStart=function(e,t,r){if(i.Guard.isDocumentTypeNode(t))throw new a.InvalidNodeTypeError;if(r>(0,s.tree_nodeLength)(t))throw new a.IndexSizeError;let o=[t,r];(m(e)!==(0,s.tree_rootNode)(t)||(0,l.boundaryPoint_position)(o,e._end)===n.BoundaryPosition.After)&&(e._end=o),e._start=o},t.range_setTheEnd=function(e,t,r){if(i.Guard.isDocumentTypeNode(t))throw new a.InvalidNodeTypeError;if(r>(0,s.tree_nodeLength)(t))throw new a.IndexSizeError;let o=[t,r];(m(e)!==(0,s.tree_rootNode)(t)||(0,l.boundaryPoint_position)(o,e._start)===n.BoundaryPosition.Before)&&(e._start=o),e._end=o},t.range_select=function(e,t){let r=e._parent;if(null===r)throw new a.InvalidNodeTypeError;let n=(0,s.tree_index)(e);t._start=[r,n],t._end=[r,n+1]},t.range_extract=y,t.range_cloneTheContents=function e(t){let r=(0,o.create_documentFragment)(t._startNode._nodeDocument);if(p(t))return r;let n=t._startNode,l=t._startOffset,h=t._endNode,m=t._endOffset;if(n===h&&i.Guard.isCharacterDataNode(n)){let e=(0,d.node_clone)(n);e._data=(0,u.characterData_substringData)(n,l,m-l),(0,c.mutation_append)(e,r)}let v=n;for(;!(0,s.tree_isAncestorOf)(h,v,!0);){if(null===v._parent)throw Error("Parent node is null.");v=v._parent}let b=null;if(!(0,s.tree_isAncestorOf)(h,n,!0)){for(let e of v._children)if(g(e,t)){b=e;break}}let w=null;if(!(0,s.tree_isAncestorOf)(n,h,!0)){let e=[...v._children];for(let r=e.length-1;r>0;r--){let n=e[r];if(g(n,t)){w=n;break}}}let x=[];for(let e of v._children)if(f(e,t)){if(i.Guard.isDocumentTypeNode(e))throw new a.HierarchyRequestError;x.push(e)}if(i.Guard.isCharacterDataNode(b)){let e=(0,d.node_clone)(n);e._data=(0,u.characterData_substringData)(n,l,(0,s.tree_nodeLength)(n)-l),(0,c.mutation_append)(e,r)}else if(null!==b){let t=(0,d.node_clone)(b);(0,c.mutation_append)(t,r);let a=e((0,o.create_range)([n,l],[b,(0,s.tree_nodeLength)(b)]));(0,c.mutation_append)(a,t)}for(let e of x){let t=(0,d.node_clone)(e);(0,c.mutation_append)(t,r)}if(i.Guard.isCharacterDataNode(w)){let e=(0,d.node_clone)(h);e._data=(0,u.characterData_substringData)(h,0,m),(0,c.mutation_append)(e,r)}else if(null!==w){let e=(0,d.node_clone)(w);r.append(e);let t=y((0,o.create_range)([w,0],[h,m]));(0,c.mutation_append)(t,e)}return r},t.range_insert=function(e,t){let r;if(i.Guard.isProcessingInstructionNode(t._startNode)||i.Guard.isCommentNode(t._startNode)||i.Guard.isTextNode(t._startNode)&&null===t._startNode._parent||t._startNode===e)throw new a.HierarchyRequestError;let n=null;if(i.Guard.isTextNode(t._startNode))n=t._startNode;else{let e=0;for(let r of t._startNode._children){if(e===t._startOffset){n=r;break}e++}}if(null===n)r=t._startNode;else{if(null===n._parent)throw Error("Parent node is null.");r=n._parent}(0,c.mutation_ensurePreInsertionValidity)(e,r,n),i.Guard.isTextNode(t._startNode)&&(n=(0,h.text_split)(t._startNode,t._startOffset)),e===n&&(n=e._nextSibling),null!==e._parent&&(0,c.mutation_remove)(e,e._parent);let o=null===n?(0,s.tree_nodeLength)(r):(0,s.tree_index)(n);i.Guard.isDocumentFragmentNode(e)?o+=(0,s.tree_nodeLength)(e):o++,(0,c.mutation_preInsert)(e,r,n),p(t)&&(t._end=[r,o])},t.range_getContainedNodes=function(e){return{[Symbol.iterator]:()=>{let t=e.commonAncestorContainer,r=(0,s.tree_getFirstDescendantNode)(t);return{next:()=>{for(;r&&!f(r,e);)r=(0,s.tree_getNextDescendantNode)(t,r);if(null===r)return{done:!0,value:null};{let e={done:!1,value:r};return r=(0,s.tree_getNextDescendantNode)(t,r),e}}}}}},t.range_getPartiallyContainedNodes=function(e){return{[Symbol.iterator]:()=>{let t=e.commonAncestorContainer,r=(0,s.tree_getFirstDescendantNode)(t);return{next:()=>{for(;r&&!g(r,e);)r=(0,s.tree_getNextDescendantNode)(t,r);if(null===r)return{done:!0,value:null};{let e={done:!1,value:r};return r=(0,s.tree_getNextDescendantNode)(t,r),e}}}}}};let n=r(3841),a=r(8036),i=r(8723),o=r(725),s=r(9693),l=r(3819),u=r(8966),d=r(4349),c=r(1028),h=r(864);function p(e){return e._startNode===e._endNode&&e._startOffset===e._endOffset}function m(e){return(0,s.tree_rootNode)(e._startNode)}function f(e,t){return(0,s.tree_rootNode)(e)===m(t)&&(0,l.boundaryPoint_position)([e,0],t._start)===n.BoundaryPosition.After&&(0,l.boundaryPoint_position)([e,(0,s.tree_nodeLength)(e)],t._end)===n.BoundaryPosition.Before}function g(e,t){let r=(0,s.tree_isAncestorOf)(t._startNode,e,!0),n=(0,s.tree_isAncestorOf)(t._endNode,e,!0);return r&&!n||!r&&n}function y(e){let t,r,n=(0,o.create_documentFragment)(e._startNode._nodeDocument);if(p(e))return n;let l=e._startNode,h=e._startOffset,m=e._endNode,v=e._endOffset;if(l===m&&i.Guard.isCharacterDataNode(l)){let e=(0,d.node_clone)(l);return e._data=(0,u.characterData_substringData)(l,h,v-h),(0,c.mutation_append)(e,n),(0,u.characterData_replaceData)(l,h,v-h,""),n}let b=l;for(;!(0,s.tree_isAncestorOf)(m,b,!0);){if(null===b._parent)throw Error("Parent node is null.");b=b._parent}let w=null;if(!(0,s.tree_isAncestorOf)(m,l,!0)){for(let t of b._children)if(g(t,e)){w=t;break}}let x=null;if(!(0,s.tree_isAncestorOf)(l,m,!0)){let t=[...b._children];for(let r=t.length-1;r>0;r--){let n=t[r];if(g(n,e)){x=n;break}}}let C=[];for(let t of b._children)if(f(t,e)){if(i.Guard.isDocumentTypeNode(t))throw new a.HierarchyRequestError;C.push(t)}if((0,s.tree_isAncestorOf)(m,l,!0))t=l,r=h;else{let e=l;for(;null!==e._parent&&!(0,s.tree_isAncestorOf)(m,e._parent);)e=e._parent;if(null===e._parent)throw Error("Parent node is null.");t=e._parent,r=1+(0,s.tree_index)(e)}if(i.Guard.isCharacterDataNode(w)){let e=(0,d.node_clone)(l);e._data=(0,u.characterData_substringData)(l,h,(0,s.tree_nodeLength)(l)-h),(0,c.mutation_append)(e,n),(0,u.characterData_replaceData)(l,h,(0,s.tree_nodeLength)(l)-h,"")}else if(null!==w){let e=(0,d.node_clone)(w);(0,c.mutation_append)(e,n);let t=y((0,o.create_range)([l,h],[w,(0,s.tree_nodeLength)(w)]));(0,c.mutation_append)(t,e)}for(let e of C)(0,c.mutation_append)(e,n);if(i.Guard.isCharacterDataNode(x)){let e=(0,d.node_clone)(m);e._data=(0,u.characterData_substringData)(m,0,v),(0,c.mutation_append)(e,n),(0,u.characterData_replaceData)(m,0,v,"")}else if(null!==x){let e=(0,d.node_clone)(x);(0,c.mutation_append)(e,n);let t=y((0,o.create_range)([x,0],[m,v]));(0,c.mutation_append)(t,e)}return e._start=[t,r],e._end=[t,r],n}},1869(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectors_scopeMatchASelectorsString=function(e,t){throw new n.NotSupportedError};let n=r(8036)},9057(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shadowTree_signalASlotChange=l,t.shadowTree_isConnected=function(e){return a.Guard.isDocumentNode((0,o.tree_rootNode)(e,!0))},t.shadowTree_isAssigned=function(e){return null!==e._assignedSlot},t.shadowTree_findASlot=u,t.shadowTree_findSlotables=d,t.shadowTree_findFlattenedSlotables=function e(t){let r=[],n=(0,o.tree_rootNode)(t);if(!a.Guard.isShadowRoot(n))return r;let s=d(t);if((0,i.isEmpty)(s))for(let e of t._children)a.Guard.isSlotable(e)&&s.push(e);for(let t of s)if(a.Guard.isSlot(t)&&a.Guard.isShadowRoot((0,o.tree_rootNode)(t))){let n=e(t);r.push(...n)}else r.push(t);return r},t.shadowTree_assignSlotables=c,t.shadowTree_assignSlotablesForATree=function(e){let t=(0,o.tree_getFirstDescendantNode)(e,!0,!1,e=>a.Guard.isSlot(e));for(;null!==t;)c(t),t=(0,o.tree_getNextDescendantNode)(e,t,!0,!1,e=>a.Guard.isSlot(e))},t.shadowTree_assignASlot=function(e){let t=u(e);null!==t&&c(t)};let n=r(9091),a=r(8723),i=r(3738),o=r(9693),s=r(6594);function l(e){n.dom.window._signalSlots.add(e),(0,s.observer_queueAMutationObserverMicrotask)()}function u(e,t=!1){let r=a.Cast.asNode(e)._parent;if(null===r)return null;let n=r._shadowRoot||null;if(null===n||t&&"open"!==n._mode)return null;let i=(0,o.tree_getFirstDescendantNode)(n,!1,!0,e=>a.Guard.isSlot(e));for(;null!==i;){if(i._name===e._name)return i;i=(0,o.tree_getNextDescendantNode)(n,i,!1,!0,e=>a.Guard.isSlot(e))}return null}function d(e){let t=[],r=(0,o.tree_rootNode)(e);if(!a.Guard.isShadowRoot(r))return t;for(let n of r._host._children)a.Guard.isSlotable(n)&&u(n)===e&&t.push(n);return t}function c(e){let t=d(e);if(t.length===e._assignedNodes.length){let r=!0;for(let n=0;n<t.length;n++)if(t[n]!==e._assignedNodes[n]){r=!1;break}r||l(e)}for(let r of(e._assignedNodes=t,t))r._assignedSlot=e}},864(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.text_contiguousTextNodes=function(e,t=!1){return{[Symbol.iterator](){let r=e;for(;r&&a.Guard.isTextNode(r._previousSibling);)r=r._previousSibling;return{next(){if(r&&!t&&r===e&&(r=a.Guard.isTextNode(r._nextSibling)?r._nextSibling:null),null===r)return{done:!0,value:null};{let e={done:!1,value:r};return r=a.Guard.isTextNode(r._nextSibling)?r._nextSibling:null,e}}}}}},t.text_contiguousExclusiveTextNodes=function(e,t=!1){return{[Symbol.iterator](){let r=e;for(;r&&a.Guard.isExclusiveTextNode(r._previousSibling);)r=r._previousSibling;return{next(){if(r&&!t&&r===e&&(r=a.Guard.isExclusiveTextNode(r._nextSibling)?r._nextSibling:null),null===r)return{done:!0,value:null};{let e={done:!1,value:r};return r=a.Guard.isExclusiveTextNode(r._nextSibling)?r._nextSibling:null,e}}}}}},t.text_descendantTextContent=function(e){let t="",r=(0,s.tree_getFirstDescendantNode)(e,!1,!1,e=>a.Guard.isTextNode(e));for(;null!==r;)t+=r._data,r=(0,s.tree_getNextDescendantNode)(e,r,!1,!1,e=>a.Guard.isTextNode(e));return t},t.text_split=function(e,t){let r=e._data.length;if(t>r)throw new i.IndexSizeError;let a=r-t,d=(0,l.characterData_substringData)(e,t,a),c=(0,o.create_text)(e._nodeDocument,d),h=e._parent;if(null!==h)for(let r of((0,u.mutation_insert)(c,h,e._nextSibling),n.dom.rangeList)){r._start[0]===e&&r._start[1]>t&&(r._start[0]=c,r._start[1]-=t),r._end[0]===e&&r._end[1]>t&&(r._end[0]=c,r._end[1]-=t);let n=(0,s.tree_index)(e);r._start[0]===h&&r._start[1]===n+1&&r._start[1]++,r._end[0]===h&&r._end[1]===n+1&&r._end[1]++}return(0,l.characterData_replaceData)(e,t,a,""),c};let n=r(9091),a=r(8723),i=r(8036),o=r(725),s=r(9693),l=r(8966),u=r(1028)},3697(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.traversal_filter=function(e,t){if(e._activeFlag)throw new a.InvalidStateError;let r=t._nodeType-1;if((e.whatToShow&1<<r)==0)return n.FilterResult.Skip;if(!e.filter)return n.FilterResult.Accept;e._activeFlag=!0;let i=n.FilterResult.Reject;try{i=e.filter.acceptNode(t)}catch(t){throw e._activeFlag=!1,t}return e._activeFlag=!1,i};let n=r(3841),a=r(8036)},9693(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tree_getFirstDescendantNode=s,t.tree_getNextDescendantNode=l,t.tree_getDescendantNodes=u,t.tree_getDescendantElements=function(e,t=!1,r=!1,a){return t||0!==e._children.size?{[Symbol.iterator]:()=>{let i=u(e,t,r,e=>n.Guard.isElementNode(e))[Symbol.iterator](),o=i.next().value;return{next(){for(;o&&a&&!a(o);)o=i.next().value;if(null===o)return{done:!0,value:null};{let e={done:!1,value:o};return o=i.next().value,e}}}}}:o()},t.tree_getSiblingNodes=function(e,t=!1,r){return e._parent&&0!==e._parent._children.size?{[Symbol.iterator](){let n=e._parent?e._parent._firstChild:null;return{next(){for(;n&&(r&&!r(n)||!t&&n===e);)n=n._nextSibling;if(null===n)return{done:!0,value:null};{let e={done:!1,value:n};return n=n._nextSibling,e}}}}}:o()},t.tree_getFirstAncestorNode=d,t.tree_getNextAncestorNode=c,t.tree_getAncestorNodes=function(e,t=!1,r){return t||e._parent?{[Symbol.iterator](){let n=d(e,t,r);return{next(){if(null===n)return{done:!0,value:null};{let a={done:!1,value:n};return n=c(e,n,t,r),a}}}}}:o()},t.tree_getCommonAncestor=function(e,t){if(e===t)return e._parent;let r=[],n=[],a=d(e,!0);for(;null!==a;)r.push(a),a=c(e,a,!0);let i=d(t,!0);for(;null!==i;)n.push(i),i=c(t,i,!0);let o=r.length,s=n.length,l=null;for(let e=Math.min(o,s);e>0;e--){let e=r[--o];if(e!==n[--s])break;l=e}return l},t.tree_getFollowingNode=function(e,t){if(t._firstChild)return t._firstChild;if(t._nextSibling)return t._nextSibling;for(;;){let r=t._parent;if(null===r||r===e)return null;if(r._nextSibling)return r._nextSibling;t=r}},t.tree_getPrecedingNode=function(e,t){return t===e?null:t._previousSibling?(t=t._previousSibling)._lastChild?t._lastChild:t:t._parent},t.tree_isConstrained=function e(t){switch(t._nodeType){case a.NodeType.Document:let r=!1,n=!1;for(let e of t._children)switch(e._nodeType){case a.NodeType.ProcessingInstruction:case a.NodeType.Comment:break;case a.NodeType.DocumentType:if(r||n)return!1;r=!0;break;case a.NodeType.Element:if(n)return!1;n=!0;break;default:return!1}break;case a.NodeType.DocumentFragment:case a.NodeType.Element:for(let e of t._children)switch(e._nodeType){case a.NodeType.Element:case a.NodeType.Text:case a.NodeType.ProcessingInstruction:case a.NodeType.CData:case a.NodeType.Comment:break;default:return!1}break;case a.NodeType.DocumentType:case a.NodeType.Text:case a.NodeType.ProcessingInstruction:case a.NodeType.CData:case a.NodeType.Comment:return!t.hasChildNodes()}for(let r of t._children)if(!e(r))return!1;return!0},t.tree_nodeLength=h,t.tree_isEmpty=function(e){return 0===h(e)},t.tree_rootNode=p,t.tree_isDescendantOf=function(e,t,r=!1,n=!1){let a=s(e,r,n);for(;null!==a;){if(a===t)return!0;a=l(e,a,r,n)}return!1},t.tree_isAncestorOf=m,t.tree_isHostIncludingAncestorOf=function e(t,r,a=!1){if(m(t,r,a))return!0;let i=p(t);return!!(n.Guard.isDocumentFragmentNode(i)&&null!==i._host&&e(i._host,r,a))},t.tree_isSiblingOf=function(e,t,r=!1){return e!==t?null!==e._parent&&e._parent===t._parent:!!r},t.tree_isPreceding=function(e,t){let r=f(e),n=f(t);return -1!==r&&-1!==n&&p(e)===p(t)&&n<r},t.tree_isFollowing=function(e,t){let r=f(e),n=f(t);return -1!==r&&-1!==n&&p(e)===p(t)&&n>r},t.tree_isParentOf=function(e,t){return e._parent===t},t.tree_isChildOf=function(e,t){return t._parent===e},t.tree_previousSibling=function(e){return e._previousSibling},t.tree_nextSibling=function(e){return e._nextSibling},t.tree_firstChild=function(e){return e._firstChild},t.tree_lastChild=function(e){return e._lastChild},t.tree_treePosition=f,t.tree_index=function(e){let t=0;for(;null!==e._previousSibling;)t++,e=e._previousSibling;return t},t.tree_retarget=function(e,t){for(;;){if(!e||!n.Guard.isNode(e))return e;let r=p(e);if(!n.Guard.isShadowRoot(r)||t&&n.Guard.isNode(t)&&m(r,t,!0,!0))return e;e=r.host}};let n=r(8723),a=r(3841);function i(e,t,r=!1){if(r&&n.Guard.isElementNode(t)&&n.Guard.isShadowRoot(t.shadowRoot)&&t.shadowRoot._firstChild)return t.shadowRoot._firstChild;if(t._firstChild)return t._firstChild;if(t===e)return null;if(t._nextSibling)return t._nextSibling;let a=t._parent;for(;a&&a!==e;){if(a._nextSibling)return a._nextSibling;a=a._parent}return null}function o(){return{[Symbol.iterator]:()=>({next:()=>({done:!0,value:null})})}}function s(e,t=!1,r=!1,n){let a=t?e:i(e,e,r);for(;a&&n&&!n(a);)a=i(e,a,r);return a}function l(e,t,r=!1,n=!1,a){let o=i(e,t,n);for(;o&&a&&!a(o);)o=i(e,o,n);return o}function u(e,t=!1,r=!1,n){return t||0!==e._children.size?{[Symbol.iterator]:()=>{let a=t?e:i(e,e,r);return{next:()=>{for(;a&&n&&!n(a);)a=i(e,a,r);if(null===a)return{done:!0,value:null};{let t={done:!1,value:a};return a=i(e,a,r),t}}}}}:o()}function d(e,t=!1,r){let n=t?e:e._parent;for(;n&&r&&!r(n);)n=n._parent;return n}function c(e,t,r=!1,n){let a=t._parent;for(;a&&n&&!n(a);)a=a._parent;return a}function h(e){return n.Guard.isDocumentTypeNode(e)?0:n.Guard.isCharacterDataNode(e)?e._data.length:e._children.size}function p(e,t=!1){if(t){let t=p(e,!1);return n.Guard.isShadowRoot(t)?p(t._host,!0):t}return e._parent?p(e._parent):e}function m(e,t,r=!1,a=!1){let i=r?e:a&&n.Guard.isShadowRoot(e)?e._host:e._parent;for(;null!==i;){if(i===t)return!0;i=a&&n.Guard.isShadowRoot(i)?i._host:i._parent}return!1}function f(e){let t=p(e),r=0,n=s(t);for(;null!==n;){if(r++,n===e)return r;n=l(t,n)}return -1}},2035(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.treeWalker_traverseChildren=function(e,t){let r=t?e._current._firstChild:e._current._lastChild;for(;null!==r;){let i=(0,a.traversal_filter)(e,r);if(i===n.FilterResult.Accept)return e._current=r,r;if(i===n.FilterResult.Skip){let e=t?r._firstChild:r._lastChild;if(null!==e){r=e;continue}}for(;null!==r;){let n=t?r._nextSibling:r._previousSibling;if(null!==n){r=n;break}let a=r._parent;if(null===a||a===e._root||a===e._current)return null;r=a}}return null},t.treeWalker_traverseSiblings=function(e,t){let r=e._current;if(r===e._root)return null;for(;;){let i=t?r._nextSibling:r._previousSibling;for(;null!==i;){r=i;let o=(0,a.traversal_filter)(e,r);if(o===n.FilterResult.Accept)return e._current=r,r;i=t?r._firstChild:r._lastChild,(o===n.FilterResult.Reject||null===i)&&(i=t?r._nextSibling:r._previousSibling)}if(null===(r=r._parent)||r===e._root||(0,a.traversal_filter)(e,r)===n.FilterResult.Accept)return null}};let n=r(3841),a=r(3697)},270(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.idl_defineConst=function(e,t,r){Object.defineProperty(e,t,{writable:!1,enumerable:!0,configurable:!1,value:r})}},9e3(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xml_isName=function(e){for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if((!(r>=97)||!(r<=122))&&(!(r>=65)||!(r<=90))&&58!==r&&95!==r&&(!(r>=192)||!(r<=214))&&(!(r>=216)||!(r<=246))&&(!(r>=248)||!(r<=767))&&(!(r>=880)||!(r<=893))&&(!(r>=895)||!(r<=8191))&&(!(r>=8204)||!(r<=8205))&&(!(r>=8304)||!(r<=8591))&&(!(r>=11264)||!(r<=12271))&&(!(r>=12289)||!(r<=55295))&&(!(r>=63744)||!(r<=64975))&&(!(r>=65008)||!(r<=65533))){if(0===t||45!==r&&46!==r&&(!(r>=48)||!(r<=57))&&183!==r&&(!(r>=768)||!(r<=879))&&(!(r>=8255)||!(r<=8256))){if(r>=55296&&r<=56319&&t<e.length-1){let n=e.charCodeAt(t+1);if(n>=56320&&n<=57343&&(r=(r-55296)*1024+n-56320+65536,t++,r>=65536&&r<=983039))continue}return!1}}}return!0},t.xml_isQName=function(e){let t=!1;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if((!(n>=97)||!(n<=122))&&(!(n>=65)||!(n<=90))&&95!==n&&(!(n>=192)||!(n<=214))&&(!(n>=216)||!(n<=246))&&(!(n>=248)||!(n<=767))&&(!(n>=880)||!(n<=893))&&(!(n>=895)||!(n<=8191))&&(!(n>=8204)||!(n<=8205))&&(!(n>=8304)||!(n<=8591))&&(!(n>=11264)||!(n<=12271))&&(!(n>=12289)||!(n<=55295))&&(!(n>=63744)||!(n<=64975))&&(!(n>=65008)||!(n<=65533))){if(0!==r&&(45===n||46===n||n>=48&&n<=57||183===n||n>=768&&n<=879||n>=8255&&n<=8256))continue;if(0!==r&&58===n){if(t||r===e.length-1)return!1;t=!0;continue}if(n>=55296&&n<=56319&&r<e.length-1){let t=e.charCodeAt(r+1);if(t>=56320&&t<=57343&&(n=(n-55296)*1024+t-56320+65536,r++,n>=65536&&n<=983039))continue}return!1}}return!0},t.xml_isLegalChar=function(e){for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if(9!==r&&10!==r&&13!==r&&(!(r>=32)||!(r<=55295))&&(!(r>=57344)||!(r<=65533))){if(r>=55296&&r<=56319&&t<e.length-1){let n=e.charCodeAt(t+1);if(n>=56320&&n<=57343&&(r=(r-55296)*1024+n-56320+65536,t++,r>=65536&&r<=1114111))continue}return!1}}return!0},t.xml_isPubidChar=function(e){for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if((!(r>=97)||!(r<=122))&&(!(r>=65)||!(r<=90))&&(!(r>=39)||!(r<=59))&&32!==r&&13!==r&&10!==r&&(!(r>=35)||!(r<=37))&&33!==r&&61!==r&&63!==r&&64!==r&&95!==r)return!1}return!0}},8792(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(7017),t),a(r(644),t),a(r(3819),t),a(r(8966),t),a(r(725),t),a(r(4384),t),a(r(1978),t),a(r(3935),t),a(r(3326),t),a(r(6419),t),a(r(331),t),a(r(436),t),a(r(1028),t),a(r(6594),t),a(r(254),t),a(r(4349),t),a(r(7875),t),a(r(4048),t),a(r(5261),t),a(r(8068),t),a(r(1869),t),a(r(9057),t),a(r(864),t),a(r(3697),t),a(r(9693),t),a(r(2035),t),a(r(270),t),a(r(9e3),t)},3813(e,t,r){"use strict";t.AbortControllerImpl=void 0;let n=r(8792);t.AbortControllerImpl=class{_signal;constructor(){this._signal=(0,n.create_abortSignal)()}get signal(){return this._signal}abort(){(0,n.abort_signalAbort)(this._signal)}}},745(e,t,r){"use strict";t.AbortSignalImpl=void 0;let n=r(3466),a=r(8792);class i extends n.EventTargetImpl{_abortedFlag=!1;_abortAlgorithms=new Set;constructor(){super()}get aborted(){return this._abortedFlag}get onabort(){return(0,a.event_getterEventHandlerIDLAttribute)(this,"onabort")}set onabort(e){(0,a.event_setterEventHandlerIDLAttribute)(this,"onabort",e)}static _create(){return new i}}t.AbortSignalImpl=i},2044(e,t){"use strict";t.AbstractRangeImpl=void 0,t.AbstractRangeImpl=class{get _startNode(){return this._start[0]}get _startOffset(){return this._start[1]}get _endNode(){return this._end[0]}get _endOffset(){return this._end[1]}get _collapsed(){return this._start[0]===this._end[0]&&this._start[1]===this._end[1]}get startContainer(){return this._startNode}get startOffset(){return this._startOffset}get endContainer(){return this._endNode}get endOffset(){return this._endOffset}get collapsed(){return this._collapsed}}},6648(e,t,r){"use strict";t.AttrImpl=void 0;let n=r(3841),a=r(579),i=r(8792),o=r(270);class s extends a.NodeImpl{_nodeType=n.NodeType.Attribute;_localName;_namespace=null;_namespacePrefix=null;_element=null;_value="";constructor(e){super(),this._localName=e}specified;get ownerElement(){return this._element}get namespaceURI(){return this._namespace}get prefix(){return this._namespacePrefix}get localName(){return this._localName}get name(){return this._qualifiedName}get value(){return this._value}set value(e){(0,i.attr_setAnExistingAttributeValue)(this,e)}get _qualifiedName(){return null!==this._namespacePrefix?this._namespacePrefix+":"+this._localName:this._localName}static _create(e,t){let r=new s(t);return r._nodeDocument=e,r}}t.AttrImpl=s,(0,o.idl_defineConst)(s.prototype,"_nodeType",n.NodeType.Attribute),(0,o.idl_defineConst)(s.prototype,"specified",!0)},7331(e,t,r){"use strict";t.CDATASectionImpl=void 0;let n=r(3800),a=r(3841),i=r(270);class o extends n.TextImpl{_nodeType=a.NodeType.CData;constructor(e){super(e)}static _create(e,t=""){let r=new o(t);return r._nodeDocument=e,r}}t.CDATASectionImpl=o,(0,i.idl_defineConst)(o.prototype,"_nodeType",a.NodeType.CData)},1628(e,t,r){"use strict";t.CharacterDataImpl=void 0;let n=r(579),a=r(8792);class i extends n.NodeImpl{_data;constructor(e){super(),this._data=e}get data(){return this._data}set data(e){(0,a.characterData_replaceData)(this,0,this._data.length,e)}get length(){return this._data.length}substringData(e,t){return(0,a.characterData_substringData)(this,e,t)}appendData(e){return(0,a.characterData_replaceData)(this,this._data.length,0,e)}insertData(e,t){(0,a.characterData_replaceData)(this,e,0,t)}deleteData(e,t){(0,a.characterData_replaceData)(this,e,t,"")}replaceData(e,t,r){(0,a.characterData_replaceData)(this,e,t,r)}get previousElementSibling(){throw Error("Mixin: NonDocumentTypeChildNode not implemented.")}get nextElementSibling(){throw Error("Mixin: NonDocumentTypeChildNode not implemented.")}before(){throw Error("Mixin: ChildNode not implemented.")}after(){throw Error("Mixin: ChildNode not implemented.")}replaceWith(){throw Error("Mixin: ChildNode not implemented.")}remove(){throw Error("Mixin: ChildNode not implemented.")}}t.CharacterDataImpl=i},9629(e,t,r){"use strict";t.ChildNodeImpl=void 0;let n=r(8723),a=r(8792);t.ChildNodeImpl=class{before(...e){let t=n.Cast.asNode(this),r=t._parent;if(null===r)return;let i=t._previousSibling,o=!0;for(;o&&i;){o=!1;for(let t=0;t<e.length;t++)if(e[t]===i){i=i._previousSibling,o=!0;break}}let s=(0,a.parentNode_convertNodesIntoANode)(e,t._nodeDocument);i=null===i?r._firstChild:i._nextSibling,(0,a.mutation_preInsert)(s,r,i)}after(...e){let t=n.Cast.asNode(this),r=t._parent;if(!r)return;let i=t._nextSibling,o=!0;for(;o&&i;){o=!1;for(let t=0;t<e.length;t++)if(e[t]===i){i=i._nextSibling,o=!0;break}}let s=(0,a.parentNode_convertNodesIntoANode)(e,t._nodeDocument);(0,a.mutation_preInsert)(s,r,i)}replaceWith(...e){let t=n.Cast.asNode(this),r=t._parent;if(!r)return;let i=t._nextSibling,o=!0;for(;o&&i;){o=!1;for(let t=0;t<e.length;t++)if(e[t]===i){i=i._nextSibling,o=!0;break}}let s=(0,a.parentNode_convertNodesIntoANode)(e,t._nodeDocument);t._parent===r?(0,a.mutation_replace)(t,s,r):(0,a.mutation_preInsert)(s,r,i)}remove(){let e=n.Cast.asNode(this),t=e._parent;t&&(0,a.mutation_remove)(e,t)}}},7090(e,t,r){"use strict";t.CommentImpl=void 0;let n=r(3841),a=r(1628),i=r(270);class o extends a.CharacterDataImpl{_nodeType=n.NodeType.Comment;constructor(e=""){super(e)}static _create(e,t=""){let r=new o(t);return r._nodeDocument=e,r}}t.CommentImpl=o,(0,i.idl_defineConst)(o.prototype,"_nodeType",n.NodeType.Comment)},5945(e,t,r){"use strict";t.CustomEventImpl=void 0;let n=r(9971),a=r(8792);class i extends n.EventImpl{_detail=null;constructor(e,t){super(e,t),this._detail=t&&t.detail||null}get detail(){return this._detail}initCustomEvent(e,t=!1,r=!1,n=null){this._dispatchFlag||((0,a.event_initialize)(this,e,t,r),this._detail=n)}}t.CustomEventImpl=i},8036(e,t){"use strict";t.InvalidCharacterError=t.SyntaxError=t.IndexSizeError=t.NotFoundError=t.HierarchyRequestError=t.NotImplementedError=t.InvalidNodeTypeError=t.NamespaceError=t.InvalidStateError=t.InUseAttributeError=t.NotSupportedError=t.WrongDocumentError=void 0;class r extends Error{name;constructor(e,t=""){super(t),this.name=e}}t.WrongDocumentError=class extends r{constructor(e=""){super("WrongDocumentError","The object is in the wrong document. "+e)}},t.NotSupportedError=class extends r{constructor(e=""){super("NotSupportedError","The operation is not supported. "+e)}},t.InUseAttributeError=class extends r{constructor(e=""){super("InUseAttributeError",e)}},t.InvalidStateError=class extends r{constructor(e=""){super("InvalidStateError","The object is in an invalid state. "+e)}},t.NamespaceError=class extends r{constructor(e=""){super("NamespaceError","The operation is not allowed by Namespaces in XML. [XMLNS] "+e)}},t.InvalidNodeTypeError=class extends r{constructor(e=""){super("InvalidNodeTypeError","The supplied node is incorrect or has an incorrect ancestor for this operation. "+e)}},t.NotImplementedError=class extends r{constructor(e=""){super("NotImplementedError","The DOM method is not implemented by this module. "+e)}},t.HierarchyRequestError=class extends r{constructor(e=""){super("HierarchyRequestError","The operation would yield an incorrect node tree. "+e)}},t.NotFoundError=class extends r{constructor(e=""){super("NotFoundError","The object can not be found here. "+e)}},t.IndexSizeError=class extends r{constructor(e=""){super("IndexSizeError","The index is not in the allowed range. "+e)}},t.SyntaxError=class extends r{constructor(e=""){super("SyntaxError","The string did not match the expected pattern. "+e)}},t.InvalidCharacterError=class extends r{constructor(e=""){super("InvalidCharacterError","The string contains invalid characters. "+e)}}},9091(e,t,r){"use strict";t.dom=void 0;let n=r(3738),a=r(725);class i{static _instance;_features={mutationObservers:!0,customElements:!0,slots:!0,steps:!0};_window=null;_compareCache;_rangeList;constructor(){this._compareCache=new n.CompareCache,this._rangeList=new n.FixedSizeSet}setFeatures(e){if(void 0===e&&(e=!0),(0,n.isObject)(e))for(let t in e)this._features[t]=e[t]||!1;else for(let t in this._features)this._features[t]=e}get features(){return this._features}get window(){return null===this._window&&(this._window=(0,a.create_window)()),this._window}get compareCache(){return this._compareCache}get rangeList(){return this._rangeList}static get instance(){return i._instance||(i._instance=new i),i._instance}}t.dom=i.instance},9173(e,t,r){"use strict";t.DOMImplementationImpl=void 0;let n=r(9091),a=r(360),i=r(8792),o=r(270);class s{_ID="@oozcitak/dom";_associatedDocument;constructor(e){this._associatedDocument=e||n.dom.window.document}createDocumentType(e,t,r){return(0,i.namespace_validate)(e),(0,i.create_documentType)(this._associatedDocument,e,t,r)}createDocument(e,t,r=null){let n=(0,i.create_xmlDocument)(),o=null;return t&&(o=(0,i.document_internalCreateElementNS)(n,e,t)),r&&n.appendChild(r),o&&n.appendChild(o),n._origin=this._associatedDocument._origin,e===a.namespace.HTML?n._contentType="application/xhtml+xml":e===a.namespace.SVG?n._contentType="image/svg+xml":n._contentType="application/xml",n}createHTMLDocument(e){let t=(0,i.create_document)();t._type="html",t._contentType="text/html",t.appendChild((0,i.create_documentType)(t,"html","",""));let r=(0,i.element_createAnElement)(t,"html",a.namespace.HTML);t.appendChild(r);let n=(0,i.element_createAnElement)(t,"head",a.namespace.HTML);if(r.appendChild(n),void 0!==e){let r=(0,i.element_createAnElement)(t,"title",a.namespace.HTML);n.appendChild(r);let o=(0,i.create_text)(t,e);r.appendChild(o)}let o=(0,i.element_createAnElement)(t,"body",a.namespace.HTML);return r.appendChild(o),t._origin=this._associatedDocument._origin,t}hasFeature(){return!0}static _create(e){return new s(e)}}t.DOMImplementationImpl=s,(0,o.idl_defineConst)(s.prototype,"_ID","@oozcitak/dom")},1374(e,t,r){"use strict";t.DOMTokenListImpl=void 0;let n=r(9091),a=r(8036),i=r(360),o=r(8792);class s{_element;_attribute;_tokenSet;constructor(e,t){this._element=e,this._attribute=t,this._tokenSet=new Set;const r=t._localName,a=(0,o.element_getAnAttributeValue)(e,r),i=this;this._element._attributeChangeSteps.push(function(e,t,r,n,a){t===i._attribute._localName&&null===a&&(n?i._tokenSet=(0,o.orderedSet_parse)(n):i._tokenSet.clear())}),n.dom.features.steps&&(0,o.dom_runAttributeChangeSteps)(e,r,a,a,null)}get length(){return this._tokenSet.size}item(e){let t=0;for(let r of this._tokenSet){if(t===e)return r;t++}return null}contains(e){return this._tokenSet.has(e)}add(...e){for(let t of e)if(""===t)throw new a.SyntaxError("Cannot add an empty token.");else if(i.codePoint.ASCIIWhiteSpace.test(t))throw new a.InvalidCharacterError("Token cannot contain whitespace.");else this._tokenSet.add(t);(0,o.tokenList_updateSteps)(this)}remove(...e){for(let t of e)if(""===t)throw new a.SyntaxError("Cannot remove an empty token.");else if(i.codePoint.ASCIIWhiteSpace.test(t))throw new a.InvalidCharacterError("Token cannot contain whitespace.");else this._tokenSet.delete(t);(0,o.tokenList_updateSteps)(this)}toggle(e,t){if(""===e)throw new a.SyntaxError("Cannot toggle an empty token.");if(i.codePoint.ASCIIWhiteSpace.test(e))throw new a.InvalidCharacterError("Token cannot contain whitespace.");return this._tokenSet.has(e)?void 0!==t&&!1!==t||(this._tokenSet.delete(e),(0,o.tokenList_updateSteps)(this),!1):(void 0===t||!0===t)&&(this._tokenSet.add(e),(0,o.tokenList_updateSteps)(this),!0)}replace(e,t){if(""===e||""===t)throw new a.SyntaxError("Cannot replace an empty token.");if(i.codePoint.ASCIIWhiteSpace.test(e)||i.codePoint.ASCIIWhiteSpace.test(t))throw new a.InvalidCharacterError("Token cannot contain whitespace.");return!!this._tokenSet.has(e)&&(i.set.replace(this._tokenSet,e,t),(0,o.tokenList_updateSteps)(this),!0)}supports(e){return(0,o.tokenList_validationSteps)(this,e)}get value(){return(0,o.tokenList_serializeSteps)(this)}set value(e){(0,o.element_setAnAttributeValue)(this._element,this._attribute._localName,e)}[Symbol.iterator](){let e=this._tokenSet[Symbol.iterator]();return{next:()=>e.next()}}static _create(e,t){return new s(e,t)}}t.DOMTokenListImpl=s},5714(e,t,r){"use strict";t.DocumentFragmentImpl=void 0;let n=r(3841),a=r(579),i=r(270);class o extends a.NodeImpl{_nodeType=n.NodeType.DocumentFragment;_children=new Set;_host;constructor(e=null){super(),this._host=e}getElementById(e){throw Error("Mixin: NonElementParentNode not implemented.")}get children(){throw Error("Mixin: ParentNode not implemented.")}get firstElementChild(){throw Error("Mixin: ParentNode not implemented.")}get lastElementChild(){throw Error("Mixin: ParentNode not implemented.")}get childElementCount(){throw Error("Mixin: ParentNode not implemented.")}prepend(){throw Error("Mixin: ParentNode not implemented.")}append(){throw Error("Mixin: ParentNode not implemented.")}querySelector(e){throw Error("Mixin: ParentNode not implemented.")}querySelectorAll(e){throw Error("Mixin: ParentNode not implemented.")}static _create(e,t=null){let r=new o(t);return r._nodeDocument=e,r}}t.DocumentFragmentImpl=o,(0,i.idl_defineConst)(o.prototype,"_nodeType",n.NodeType.DocumentFragment)},8034(e,t,r){"use strict";t.DocumentImpl=void 0;let n=r(9091),a=r(3841),i=r(8036),o=r(579),s=r(8723),l=r(3738),u=r(360),d=r(2694),c=r(8792),h=r(270);class p extends o.NodeImpl{_nodeType=a.NodeType.Document;_children=new Set;_encoding={name:"UTF-8",labels:["unicode-1-1-utf-8","utf-8","utf8"]};_contentType="application/xml";_URL={scheme:"about",username:"",password:"",host:null,port:null,path:["blank"],query:null,fragment:null,_cannotBeABaseURLFlag:!0,_blobURLEntry:null};_origin=null;_type="xml";_mode="no-quirks";_implementation;_documentElement=null;_hasNamespaces=!1;_nodeDocumentOverwrite=null;get _nodeDocument(){return this._nodeDocumentOverwrite||this}set _nodeDocument(e){this._nodeDocumentOverwrite=e}constructor(){super()}get implementation(){return this._implementation||(this._implementation=(0,c.create_domImplementation)(this))}get URL(){return(0,d.urlSerializer)(this._URL)}get documentURI(){return this.URL}get origin(){return"null"}get compatMode(){return"quirks"===this._mode?"BackCompat":"CSS1Compat"}get characterSet(){return this._encoding.name}get charset(){return this._encoding.name}get inputEncoding(){return this._encoding.name}get contentType(){return this._contentType}get doctype(){for(let e of this._children)if(s.Guard.isDocumentTypeNode(e))return e;return null}get documentElement(){return this._documentElement}getElementsByTagName(e){return(0,c.node_listOfElementsWithQualifiedName)(e,this)}getElementsByTagNameNS(e,t){return(0,c.node_listOfElementsWithNamespace)(e,t,this)}getElementsByClassName(e){return(0,c.node_listOfElementsWithClassNames)(e,this)}createElement(e,t){if(!(0,c.xml_isName)(e))throw new i.InvalidCharacterError;"html"===this._type&&(e=e.toLowerCase());let r=null;void 0!==t&&(r=(0,l.isString)(t)?t:t.is);let n="html"===this._type||"application/xhtml+xml"===this._contentType?u.namespace.HTML:null;return(0,c.element_createAnElement)(this,e,n,null,r,!0)}createElementNS(e,t,r){return(0,c.document_internalCreateElementNS)(this,e,t,r)}createDocumentFragment(){return(0,c.create_documentFragment)(this)}createTextNode(e){return(0,c.create_text)(this,e)}createCDATASection(e){if("html"===this._type)throw new i.NotSupportedError;if(-1!==e.indexOf("]]>"))throw new i.InvalidCharacterError;return(0,c.create_cdataSection)(this,e)}createComment(e){return(0,c.create_comment)(this,e)}createProcessingInstruction(e,t){if(!(0,c.xml_isName)(e)||-1!==t.indexOf("?>"))throw new i.InvalidCharacterError;return(0,c.create_processingInstruction)(this,e,t)}importNode(e,t=!1){if(s.Guard.isDocumentNode(e)||s.Guard.isShadowRoot(e))throw new i.NotSupportedError;return(0,c.node_clone)(e,this,t)}adoptNode(e){if(s.Guard.isDocumentNode(e))throw new i.NotSupportedError;if(s.Guard.isShadowRoot(e))throw new i.HierarchyRequestError;return(0,c.document_adopt)(e,this),e}createAttribute(e){if(!(0,c.xml_isName)(e))throw new i.InvalidCharacterError;return"html"===this._type&&(e=e.toLowerCase()),(0,c.create_attr)(this,e)}createAttributeNS(e,t){let[r,n,a]=(0,c.namespace_validateAndExtract)(e,t),i=(0,c.create_attr)(this,a);return i._namespace=r,i._namespacePrefix=n,i}createEvent(e){return(0,c.event_createLegacyEvent)(e)}createRange(){let e=(0,c.create_range)();return e._start=[this,0],e._end=[this,0],e}createNodeIterator(e,t=a.WhatToShow.All,r=null){let n=(0,c.create_nodeIterator)(e,e,!0);return n._whatToShow=t,n._iteratorCollection=(0,c.create_nodeList)(e),(0,l.isFunction)(r)?(n._filter=(0,c.create_nodeFilter)(),n._filter.acceptNode=r):n._filter=r,n}createTreeWalker(e,t=a.WhatToShow.All,r=null){let n=(0,c.create_treeWalker)(e,e);return n._whatToShow=t,(0,l.isFunction)(r)?(n._filter=(0,c.create_nodeFilter)(),n._filter.acceptNode=r):n._filter=r,n}_getTheParent(e){return"load"===e._type?null:n.dom.window}getElementById(e){throw Error("Mixin: NonElementParentNode not implemented.")}get children(){throw Error("Mixin: ParentNode not implemented.")}get firstElementChild(){throw Error("Mixin: ParentNode not implemented.")}get lastElementChild(){throw Error("Mixin: ParentNode not implemented.")}get childElementCount(){throw Error("Mixin: ParentNode not implemented.")}prepend(){throw Error("Mixin: ParentNode not implemented.")}append(){throw Error("Mixin: ParentNode not implemented.")}querySelector(e){throw Error("Mixin: ParentNode not implemented.")}querySelectorAll(e){throw Error("Mixin: ParentNode not implemented.")}}t.DocumentImpl=p,(0,h.idl_defineConst)(p.prototype,"_nodeType",a.NodeType.Document)},6175(e,t){"use strict";t.DocumentOrShadowRootImpl=void 0,t.DocumentOrShadowRootImpl=class{}},7466(e,t,r){"use strict";t.DocumentTypeImpl=void 0;let n=r(3841),a=r(579),i=r(270);class o extends a.NodeImpl{_nodeType=n.NodeType.DocumentType;_name="";_publicId="";_systemId="";constructor(e,t,r){super(),this._name=e,this._publicId=t,this._systemId=r}get name(){return this._name}get publicId(){return this._publicId}get systemId(){return this._systemId}before(){throw Error("Mixin: ChildNode not implemented.")}after(){throw Error("Mixin: ChildNode not implemented.")}replaceWith(){throw Error("Mixin: ChildNode not implemented.")}remove(){throw Error("Mixin: ChildNode not implemented.")}static _create(e,t,r="",n=""){let a=new o(t,r,n);return a._nodeDocument=e,a}}t.DocumentTypeImpl=o,(0,i.idl_defineConst)(o.prototype,"_nodeType",n.NodeType.DocumentType)},7207(e,t,r){"use strict";t.ElementImpl=void 0;let n=r(3841),a=r(579),i=r(8036),o=r(360),s=r(8792),l=r(270);class u extends a.NodeImpl{_nodeType=n.NodeType.Element;_children=new Set;_namespace=null;_namespacePrefix=null;_localName="";_customElementState="undefined";_customElementDefinition=null;_is=null;_shadowRoot=null;_attributeList=(0,s.create_namedNodeMap)(this);_uniqueIdentifier;_attributeChangeSteps=[];_name="";_assignedSlot=null;constructor(){super()}get namespaceURI(){return this._namespace}get prefix(){return this._namespacePrefix}get localName(){return this._localName}get tagName(){return this._htmlUppercasedQualifiedName}get id(){return(0,s.element_getAnAttributeValue)(this,"id")}set id(e){(0,s.element_setAnAttributeValue)(this,"id",e)}get className(){return(0,s.element_getAnAttributeValue)(this,"class")}set className(e){(0,s.element_setAnAttributeValue)(this,"class",e)}get classList(){let e=(0,s.element_getAnAttributeByName)("class",this);return null===e&&(e=(0,s.create_attr)(this._nodeDocument,"class")),(0,s.create_domTokenList)(this,e)}get slot(){return(0,s.element_getAnAttributeValue)(this,"slot")}set slot(e){(0,s.element_setAnAttributeValue)(this,"slot",e)}hasAttributes(){return 0!==this._attributeList.length}get attributes(){return this._attributeList}getAttributeNames(){let e=[];for(let t of this._attributeList)e.push(t._qualifiedName);return e}getAttribute(e){let t=(0,s.element_getAnAttributeByName)(e,this);return t?t._value:null}getAttributeNS(e,t){let r=(0,s.element_getAnAttributeByNamespaceAndLocalName)(e,t,this);return r?r._value:null}setAttribute(e,t){if(!(0,s.xml_isName)(e))throw new i.InvalidCharacterError;this._namespace===o.namespace.HTML&&"html"===this._nodeDocument._type&&(e=e.toLowerCase());let r=null;for(let t=0;t<this._attributeList.length;t++){let n=this._attributeList[t];if(n._qualifiedName===e){r=n;break}}if(null===r){(r=(0,s.create_attr)(this._nodeDocument,e))._value=t,(0,s.element_append)(r,this);return}(0,s.element_change)(r,this,t)}setAttributeNS(e,t,r){let[n,a,i]=(0,s.namespace_validateAndExtract)(e,t);(0,s.element_setAnAttributeValue)(this,i,r,a,n)}removeAttribute(e){(0,s.element_removeAnAttributeByName)(e,this)}removeAttributeNS(e,t){(0,s.element_removeAnAttributeByNamespaceAndLocalName)(e,t,this)}hasAttribute(e){this._namespace===o.namespace.HTML&&"html"===this._nodeDocument._type&&(e=e.toLowerCase());for(let t=0;t<this._attributeList.length;t++)if(this._attributeList[t]._qualifiedName===e)return!0;return!1}toggleAttribute(e,t){if(!(0,s.xml_isName)(e))throw new i.InvalidCharacterError;this._namespace===o.namespace.HTML&&"html"===this._nodeDocument._type&&(e=e.toLowerCase());let r=null;for(let t=0;t<this._attributeList.length;t++){let n=this._attributeList[t];if(n._qualifiedName===e){r=n;break}}return null===r?(void 0===t||!0===t)&&((r=(0,s.create_attr)(this._nodeDocument,e))._value="",(0,s.element_append)(r,this),!0):void 0!==t&&!1!==t||((0,s.element_removeAnAttributeByName)(e,this),!1)}hasAttributeNS(e,t){let r=e||null;for(let e=0;e<this._attributeList.length;e++){let n=this._attributeList[e];if(n._namespace===r&&n._localName===t)return!0}return!1}getAttributeNode(e){return(0,s.element_getAnAttributeByName)(e,this)}getAttributeNodeNS(e,t){return(0,s.element_getAnAttributeByNamespaceAndLocalName)(e,t,this)}setAttributeNode(e){return(0,s.element_setAnAttribute)(e,this)}setAttributeNodeNS(e){return(0,s.element_setAnAttribute)(e,this)}removeAttributeNode(e){let t=!1;for(let r=0;r<this._attributeList.length;r++)if(this._attributeList[r]===e){t=!0;break}if(!t)throw new i.NotFoundError;return(0,s.element_remove)(e,this),e}attachShadow(e){if(this._namespace!==o.namespace.HTML||!(0,s.customElement_isValidCustomElementName)(this._localName)&&!(0,s.customElement_isValidShadowHostName)(this._localName))throw new i.NotSupportedError;if((0,s.customElement_isValidCustomElementName)(this._localName)||null!==this._is){let e=(0,s.customElement_lookUpACustomElementDefinition)(this._nodeDocument,this._namespace,this._localName,this._is);if(null!==e&&!0===e.disableShadow)throw new i.NotSupportedError}if(null!==this._shadowRoot)throw new i.NotSupportedError;let t=(0,s.create_shadowRoot)(this._nodeDocument,this);return t._mode=e.mode,this._shadowRoot=t,t}get shadowRoot(){let e=this._shadowRoot;return null===e||"closed"===e.mode?null:e}closest(e){throw new i.NotImplementedError}matches(e){throw new i.NotImplementedError}webkitMatchesSelector(e){return this.matches(e)}getElementsByTagName(e){return(0,s.node_listOfElementsWithQualifiedName)(e,this)}getElementsByTagNameNS(e,t){return(0,s.node_listOfElementsWithNamespace)(e,t,this)}getElementsByClassName(e){return(0,s.node_listOfElementsWithClassNames)(e,this)}insertAdjacentElement(e,t){return(0,s.element_insertAdjacent)(this,e,t)}insertAdjacentText(e,t){let r=(0,s.create_text)(this._nodeDocument,t);(0,s.element_insertAdjacent)(this,e,r)}get _qualifiedName(){return this._namespacePrefix?this._namespacePrefix+":"+this._localName:this._localName}get _htmlUppercasedQualifiedName(){let e=this._qualifiedName;return this._namespace===o.namespace.HTML&&"html"===this._nodeDocument._type&&(e=e.toUpperCase()),e}get children(){throw Error("Mixin: ParentNode not implemented.")}get firstElementChild(){throw Error("Mixin: ParentNode not implemented.")}get lastElementChild(){throw Error("Mixin: ParentNode not implemented.")}get childElementCount(){throw Error("Mixin: ParentNode not implemented.")}prepend(){throw Error("Mixin: ParentNode not implemented.")}append(){throw Error("Mixin: ParentNode not implemented.")}querySelector(e){throw Error("Mixin: ParentNode not implemented.")}querySelectorAll(e){throw Error("Mixin: ParentNode not implemented.")}get previousElementSibling(){throw Error("Mixin: NonDocumentTypeChildNode not implemented.")}get nextElementSibling(){throw Error("Mixin: NonDocumentTypeChildNode not implemented.")}before(){throw Error("Mixin: ChildNode not implemented.")}after(){throw Error("Mixin: ChildNode not implemented.")}replaceWith(){throw Error("Mixin: ChildNode not implemented.")}remove(){throw Error("Mixin: ChildNode not implemented.")}get assignedSlot(){throw Error("Mixin: Slotable not implemented.")}static _create(e,t,r=null,n=null){let a=new u;return a._localName=t,a._namespace=r,a._namespacePrefix=n,a._nodeDocument=e,a}}t.ElementImpl=u,(0,l.idl_defineConst)(u.prototype,"_nodeType",n.NodeType.Element)},9971(e,t,r){"use strict";t.EventImpl=void 0;let n=r(3841),a=r(8792),i=r(270);class o{static NONE=0;static CAPTURING_PHASE=1;static AT_TARGET=2;static BUBBLING_PHASE=3;NONE=0;CAPTURING_PHASE=1;AT_TARGET=2;BUBBLING_PHASE=3;_target=null;_relatedTarget=null;_touchTargetList=[];_path=[];_currentTarget=null;_eventPhase=n.EventPhase.None;_stopPropagationFlag=!1;_stopImmediatePropagationFlag=!1;_canceledFlag=!1;_inPassiveListenerFlag=!1;_composedFlag=!1;_initializedFlag=!1;_dispatchFlag=!1;_isTrusted=!1;_type;_bubbles=!1;_cancelable=!1;_timeStamp;constructor(e,t){this._type=e,t&&(this._bubbles=t.bubbles||!1,this._cancelable=t.cancelable||!1,this._composedFlag=t.composed||!1),this._initializedFlag=!0,this._timeStamp=new Date().getTime()}get type(){return this._type}get target(){return this._target}get srcElement(){return this._target}get currentTarget(){return this._currentTarget}composedPath(){let e=[],t=this._path;if(0===t.length)return e;let r=this._currentTarget;if(null===r)throw Error("Event currentTarget is null.");e.push(r);let n=0,a=0,i=t.length-1;for(;i>=0;){if(t[i].rootOfClosedTree&&a++,t[i].invocationTarget===r){n=i;break}t[i].slotInClosedTree&&a--,i--}let o=a,s=a;for(i=n-1;i>=0;)t[i].rootOfClosedTree&&o++,o<=s&&e.unshift(t[i].invocationTarget),t[i].slotInClosedTree&&--o<s&&(s=o),i--;for(o=a,s=a,i=n+1;i<t.length;)t[i].slotInClosedTree&&o++,o<=s&&e.push(t[i].invocationTarget),t[i].rootOfClosedTree&&--o<s&&(s=o),i++;return e}get eventPhase(){return this._eventPhase}stopPropagation(){this._stopPropagationFlag=!0}get cancelBubble(){return this._stopPropagationFlag}set cancelBubble(e){e&&this.stopPropagation()}stopImmediatePropagation(){this._stopPropagationFlag=!0,this._stopImmediatePropagationFlag=!0}get bubbles(){return this._bubbles}get cancelable(){return this._cancelable}get returnValue(){return!this._canceledFlag}set returnValue(e){e||(0,a.event_setTheCanceledFlag)(this)}preventDefault(){(0,a.event_setTheCanceledFlag)(this)}get defaultPrevented(){return this._canceledFlag}get composed(){return this._composedFlag}get isTrusted(){return this._isTrusted}get timeStamp(){return this._timeStamp}initEvent(e,t=!1,r=!1){this._dispatchFlag||(0,a.event_initialize)(this,e,t,r)}}t.EventImpl=o,(0,i.idl_defineConst)(o.prototype,"NONE",0),(0,i.idl_defineConst)(o.prototype,"CAPTURING_PHASE",1),(0,i.idl_defineConst)(o.prototype,"AT_TARGET",2),(0,i.idl_defineConst)(o.prototype,"BUBBLING_PHASE",3)},3466(e,t,r){"use strict";t.EventTargetImpl=void 0;let n=r(8036),a=r(8723),i=r(8792);t.EventTargetImpl=class{__eventListenerList;get _eventListenerList(){return this.__eventListenerList||(this.__eventListenerList=[])}__eventHandlerMap;get _eventHandlerMap(){return this.__eventHandlerMap||(this.__eventHandlerMap={})}addEventListener(e,t,r={passive:!1,once:!1,capture:!1}){let n,[o,s,l]=(0,i.eventTarget_flattenMore)(r);t&&(n=a.Guard.isEventListener(t)?t:{handleEvent:t},(0,i.eventTarget_addEventListener)(this,{type:e,callback:n,capture:o,passive:s,once:l,removed:!1}))}removeEventListener(e,t,r={capture:!1}){let n=(0,i.eventTarget_flatten)(r);if(t)for(let r=0;r<this._eventListenerList.length;r++){let o=this._eventListenerList[r];if(o.type===e&&o.capture===n){if(a.Guard.isEventListener(t)&&o.callback===t){(0,i.eventTarget_removeEventListener)(this,o,r);break}else if(t&&o.callback.handleEvent===t){(0,i.eventTarget_removeEventListener)(this,o,r);break}}}}dispatchEvent(e){if(e._dispatchFlag||!e._initializedFlag)throw new n.InvalidStateError;return e._isTrusted=!1,(0,i.event_dispatch)(e,this)}_getTheParent(e){return null}}},6714(e,t,r){"use strict";t.HTMLCollectionImpl=void 0;let n=r(360),a=r(8792),i=r(8723),o=r(3738);class s{_live=!0;_root;_filter;static reservedNames=["_root","_live","_filter","length","item","namedItem","get","set"];constructor(e,t){return this._root=e,this._filter=t,new Proxy(this,this)}get length(){let e=0,t=(0,a.tree_getFirstDescendantNode)(this._root,!1,!1,e=>i.Guard.isElementNode(e)&&this._filter(e));for(;null!==t;)e++,t=(0,a.tree_getNextDescendantNode)(this._root,t,!1,!1,e=>i.Guard.isElementNode(e)&&this._filter(e));return e}item(e){let t=0,r=(0,a.tree_getFirstDescendantNode)(this._root,!1,!1,e=>i.Guard.isElementNode(e)&&this._filter(e));for(;null!==r;){if(t===e)return r;t++,r=(0,a.tree_getNextDescendantNode)(this._root,r,!1,!1,e=>i.Guard.isElementNode(e)&&this._filter(e))}return null}namedItem(e){if(""===e)return null;let t=(0,a.tree_getFirstDescendantNode)(this._root,!1,!1,e=>i.Guard.isElementNode(e)&&this._filter(e));for(;null!=t;){if(t._uniqueIdentifier===e)return t;if(t._namespace===n.namespace.HTML)for(let r=0;r<t._attributeList.length;r++){let n=t._attributeList[r];if("name"===n._localName&&null===n._namespace&&null===n._namespacePrefix&&n._value===e)return t}t=(0,a.tree_getNextDescendantNode)(this._root,t,!1,!1,e=>i.Guard.isElementNode(e)&&this._filter(e))}return null}[Symbol.iterator](){let e=this._root,t=this._filter,r=(0,a.tree_getFirstDescendantNode)(e,!1,!1,e=>i.Guard.isElementNode(e)&&t(e));return{next(){if(null===r)return{done:!0,value:null};{let n={done:!1,value:r};return r=(0,a.tree_getNextDescendantNode)(e,r,!1,!1,e=>i.Guard.isElementNode(e)&&t(e)),n}}}}get(e,t,r){if(!(0,o.isString)(t)||-1!==s.reservedNames.indexOf(t))return Reflect.get(e,t,r);let n=Number(t);return isNaN(n)?e.namedItem(t)||void 0:e.item(n)||void 0}set(e,t,r,n){if(!(0,o.isString)(t)||-1!==s.reservedNames.indexOf(t))return Reflect.set(e,t,r,n);let i=Number(t),l=isNaN(i)?e.namedItem(t)||void 0:e.item(i)||void 0;return!!l&&!!l._parent&&((0,a.mutation_replace)(l,r,l._parent),!0)}static _create(e,t=()=>!0){return new s(e,t)}}t.HTMLCollectionImpl=s},998(e,t,r){"use strict";t.MutationObserverImpl=void 0;let n=r(9091),a=r(8723),i=r(360);t.MutationObserverImpl=class{_callback;_nodeList=[];_recordQueue=[];constructor(e){this._callback=e;const t=n.dom.window;i.set.append(t._mutationObservers,this)}observe(e,t){if((void 0!==(t=t||{childList:!1,subtree:!1}).attributeOldValue||void 0!==t.attributeFilter)&&void 0===t.attributes&&(t.attributes=!0),void 0!==t.characterDataOldValue&&void 0===t.characterData&&(t.characterData=!0),!t.childList&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||void 0!==t.attributeFilter&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw TypeError();let r=!1,n=t;for(let t of e._registeredObserverList)if(t.observer===this){for(let e of(r=!0,this._nodeList))i.list.remove(e._registeredObserverList,e=>a.Guard.isTransientRegisteredObserver(e)&&e.source===t);t.options=n}r||(e._registeredObserverList.push({observer:this,options:t}),this._nodeList.push(e))}disconnect(){for(let e of this._nodeList)i.list.remove(e._registeredObserverList,e=>e.observer===this);this._recordQueue=[]}takeRecords(){let e=this._recordQueue;return this._recordQueue=[],e}}},6609(e,t){"use strict";t.MutationRecordImpl=void 0,t.MutationRecordImpl=class e{_type;_target;_addedNodes;_removedNodes;_previousSibling;_nextSibling;_attributeName;_attributeNamespace;_oldValue;constructor(e,t,r,n,a,i,o,s,l){this._type=e,this._target=t,this._addedNodes=r,this._removedNodes=n,this._previousSibling=a,this._nextSibling=i,this._attributeName=o,this._attributeNamespace=s,this._oldValue=l}get type(){return this._type}get target(){return this._target}get addedNodes(){return this._addedNodes}get removedNodes(){return this._removedNodes}get previousSibling(){return this._previousSibling}get nextSibling(){return this._nextSibling}get attributeName(){return this._attributeName}get attributeNamespace(){return this._attributeNamespace}get oldValue(){return this._oldValue}static _create(t,r,n,a,i,o,s,l,u){return new e(t,r,n,a,i,o,s,l,u)}}},6202(e,t,r){"use strict";t.NamedNodeMapImpl=void 0;let n=r(8036),a=r(8792);t.NamedNodeMapImpl=class e extends Array{_element;constructor(t){super(),this._element=t,Object.setPrototypeOf(this,e.prototype)}_asArray(){return this}item(e){return this[e]||null}getNamedItem(e){return(0,a.element_getAnAttributeByName)(e,this._element)}getNamedItemNS(e,t){return(0,a.element_getAnAttributeByNamespaceAndLocalName)(e||"",t,this._element)}setNamedItem(e){return(0,a.element_setAnAttribute)(e,this._element)}setNamedItemNS(e){return(0,a.element_setAnAttribute)(e,this._element)}removeNamedItem(e){let t=(0,a.element_removeAnAttributeByName)(e,this._element);if(null===t)throw new n.NotFoundError;return t}removeNamedItemNS(e,t){let r=(0,a.element_removeAnAttributeByNamespaceAndLocalName)(e||"",t,this._element);if(null===r)throw new n.NotFoundError;return r}static _create(t){return new e(t)}}},7601(e,t,r){"use strict";t.NodeFilterImpl=void 0;let n=r(3841),a=r(270);class i{static FILTER_ACCEPT=1;static FILTER_REJECT=2;static FILTER_SKIP=3;static SHOW_ALL=0xffffffff;static SHOW_ELEMENT=1;static SHOW_ATTRIBUTE=2;static SHOW_TEXT=4;static SHOW_CDATA_SECTION=8;static SHOW_ENTITY_REFERENCE=16;static SHOW_ENTITY=32;static SHOW_PROCESSING_INSTRUCTION=64;static SHOW_COMMENT=128;static SHOW_DOCUMENT=256;static SHOW_DOCUMENT_TYPE=512;static SHOW_DOCUMENT_FRAGMENT=1024;static SHOW_NOTATION=2048;FILTER_ACCEPT=1;FILTER_REJECT=2;FILTER_SKIP=3;SHOW_ALL=0xffffffff;SHOW_ELEMENT=1;SHOW_ATTRIBUTE=2;SHOW_TEXT=4;SHOW_CDATA_SECTION=8;SHOW_ENTITY_REFERENCE=16;SHOW_ENTITY=32;SHOW_PROCESSING_INSTRUCTION=64;SHOW_COMMENT=128;SHOW_DOCUMENT=256;SHOW_DOCUMENT_TYPE=512;SHOW_DOCUMENT_FRAGMENT=1024;SHOW_NOTATION=2048;acceptNode(e){return n.FilterResult.Accept}static _create(){return new i}}t.NodeFilterImpl=i,(0,a.idl_defineConst)(i.prototype,"FILTER_ACCEPT",1),(0,a.idl_defineConst)(i.prototype,"FILTER_REJECT",2),(0,a.idl_defineConst)(i.prototype,"FILTER_SKIP",3),(0,a.idl_defineConst)(i.prototype,"SHOW_ALL",0xffffffff),(0,a.idl_defineConst)(i.prototype,"SHOW_ELEMENT",1),(0,a.idl_defineConst)(i.prototype,"SHOW_ATTRIBUTE",2),(0,a.idl_defineConst)(i.prototype,"SHOW_TEXT",4),(0,a.idl_defineConst)(i.prototype,"SHOW_CDATA_SECTION",8),(0,a.idl_defineConst)(i.prototype,"SHOW_ENTITY_REFERENCE",16),(0,a.idl_defineConst)(i.prototype,"SHOW_ENTITY",32),(0,a.idl_defineConst)(i.prototype,"SHOW_PROCESSING_INSTRUCTION",64),(0,a.idl_defineConst)(i.prototype,"SHOW_COMMENT",128),(0,a.idl_defineConst)(i.prototype,"SHOW_DOCUMENT",256),(0,a.idl_defineConst)(i.prototype,"SHOW_DOCUMENT_TYPE",512),(0,a.idl_defineConst)(i.prototype,"SHOW_DOCUMENT_FRAGMENT",1024),(0,a.idl_defineConst)(i.prototype,"SHOW_NOTATION",2048)},579(e,t,r){"use strict";t.NodeImpl=void 0;let n=r(9091),a=r(3841),i=r(3466),o=r(8723),s=r(8036),l=r(8792),u=r(2694),d=r(270);class c extends i.EventTargetImpl{static ELEMENT_NODE=1;static ATTRIBUTE_NODE=2;static TEXT_NODE=3;static CDATA_SECTION_NODE=4;static ENTITY_REFERENCE_NODE=5;static ENTITY_NODE=6;static PROCESSING_INSTRUCTION_NODE=7;static COMMENT_NODE=8;static DOCUMENT_NODE=9;static DOCUMENT_TYPE_NODE=10;static DOCUMENT_FRAGMENT_NODE=11;static NOTATION_NODE=12;static DOCUMENT_POSITION_DISCONNECTED=1;static DOCUMENT_POSITION_PRECEDING=2;static DOCUMENT_POSITION_FOLLOWING=4;static DOCUMENT_POSITION_CONTAINS=8;static DOCUMENT_POSITION_CONTAINED_BY=16;static DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;ELEMENT_NODE=1;ATTRIBUTE_NODE=2;TEXT_NODE=3;CDATA_SECTION_NODE=4;ENTITY_REFERENCE_NODE=5;ENTITY_NODE=6;PROCESSING_INSTRUCTION_NODE=7;COMMENT_NODE=8;DOCUMENT_NODE=9;DOCUMENT_TYPE_NODE=10;DOCUMENT_FRAGMENT_NODE=11;NOTATION_NODE=12;DOCUMENT_POSITION_DISCONNECTED=1;DOCUMENT_POSITION_PRECEDING=2;DOCUMENT_POSITION_FOLLOWING=4;DOCUMENT_POSITION_CONTAINS=8;DOCUMENT_POSITION_CONTAINED_BY=16;DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;__childNodes;get _childNodes(){return this.__childNodes||(this.__childNodes=(0,l.create_nodeList)(this))}_nodeDocumentOverride;get _nodeDocument(){return this._nodeDocumentOverride||n.dom.window._associatedDocument}set _nodeDocument(e){this._nodeDocumentOverride=e}__registeredObserverList;get _registeredObserverList(){return this.__registeredObserverList||(this.__registeredObserverList=[])}_parent=null;_children=new o.EmptySet;_firstChild=null;_lastChild=null;_previousSibling=null;_nextSibling=null;constructor(){super()}get nodeType(){return this._nodeType}get nodeName(){if(o.Guard.isElementNode(this))return this._htmlUppercasedQualifiedName;if(o.Guard.isAttrNode(this))return this._qualifiedName;if(o.Guard.isExclusiveTextNode(this))return"#text";if(o.Guard.isCDATASectionNode(this))return"#cdata-section";if(o.Guard.isProcessingInstructionNode(this))return this._target;else if(o.Guard.isCommentNode(this))return"#comment";else if(o.Guard.isDocumentNode(this))return"#document";else if(o.Guard.isDocumentTypeNode(this))return this._name;else if(o.Guard.isDocumentFragmentNode(this))return"#document-fragment";else return""}get baseURI(){return(0,u.urlSerializer)(this._nodeDocument._URL)}get isConnected(){return o.Guard.isElementNode(this)&&(0,l.shadowTree_isConnected)(this)}get ownerDocument(){return this._nodeType===a.NodeType.Document?null:this._nodeDocument}getRootNode(e){return(0,l.tree_rootNode)(this,!!e&&e.composed)}get parentNode(){return this._nodeType===a.NodeType.Attribute?null:this._parent}get parentElement(){return this._parent&&o.Guard.isElementNode(this._parent)?this._parent:null}hasChildNodes(){return null!==this._firstChild}get childNodes(){return this._childNodes}get firstChild(){return this._firstChild}get lastChild(){return this._lastChild}get previousSibling(){return this._previousSibling}get nextSibling(){return this._nextSibling}get nodeValue(){return o.Guard.isAttrNode(this)?this._value:o.Guard.isCharacterDataNode(this)?this._data:null}set nodeValue(e){null===e&&(e=""),o.Guard.isAttrNode(this)?(0,l.attr_setAnExistingAttributeValue)(this,e):o.Guard.isCharacterDataNode(this)&&(0,l.characterData_replaceData)(this,0,this._data.length,e)}get textContent(){return o.Guard.isDocumentFragmentNode(this)||o.Guard.isElementNode(this)?(0,l.text_descendantTextContent)(this):o.Guard.isAttrNode(this)?this._value:o.Guard.isCharacterDataNode(this)?this._data:null}set textContent(e){null===e&&(e=""),o.Guard.isDocumentFragmentNode(this)||o.Guard.isElementNode(this)?(0,l.node_stringReplaceAll)(e,this):o.Guard.isAttrNode(this)?(0,l.attr_setAnExistingAttributeValue)(this,e):o.Guard.isCharacterDataNode(this)&&(0,l.characterData_replaceData)(this,0,(0,l.tree_nodeLength)(this),e)}normalize(){let e=[],t=(0,l.tree_getFirstDescendantNode)(this,!1,!1,e=>o.Guard.isExclusiveTextNode(e));for(;null!==t;)e.push(t),t=(0,l.tree_getNextDescendantNode)(this,t,!1,!1,e=>o.Guard.isExclusiveTextNode(e));for(let t=0;t<e.length;t++){let r=e[t];if(null===r._parent)continue;let a=(0,l.tree_nodeLength)(r);if(0===a){(0,l.mutation_remove)(r,r._parent);continue}let i=[],s="";for(let e of(0,l.text_contiguousExclusiveTextNodes)(r))i.push(e),s+=e._data;if((0,l.characterData_replaceData)(r,a,0,s),0!==n.dom.rangeList.size){let e=r._nextSibling;for(;null!==e&&o.Guard.isExclusiveTextNode(e);){let t=e,i=(0,l.tree_index)(t);for(let e of n.dom.rangeList)e._start[0]===t&&(e._start[0]=r,e._start[1]+=a),e._end[0]===t&&(e._end[0]=r,e._end[1]+=a),e._start[0]===t._parent&&e._start[1]===i&&(e._start[0]=r,e._start[1]=a),e._end[0]===t._parent&&e._end[1]===i&&(e._end[0]=r,e._end[1]=a);a+=(0,l.tree_nodeLength)(e),e=e._nextSibling}}for(let e=0;e<i.length;e++){let t=i[e];null!==t._parent&&(0,l.mutation_remove)(t,t._parent)}}}cloneNode(e=!1){if(o.Guard.isShadowRoot(this))throw new s.NotSupportedError;return(0,l.node_clone)(this,null,e)}isEqualNode(e=null){return null!==e&&(0,l.node_equals)(this,e)}isSameNode(e=null){return this===e}compareDocumentPosition(e){if(e===this)return a.Position.SameNode;let t=e,r=this,i=null,s=null;if(o.Guard.isAttrNode(t)&&(t=(i=t)._element),o.Guard.isAttrNode(r)&&(r=(s=r)._element,i&&t&&t===r))for(let e=0;e<r._attributeList.length;e++){let t=r._attributeList[e];if((0,l.node_equals)(t,i))return a.Position.ImplementationSpecific|a.Position.Preceding;if((0,l.node_equals)(t,s))return a.Position.ImplementationSpecific|a.Position.Following}return null===t||null===r||(0,l.tree_rootNode)(t)!==(0,l.tree_rootNode)(r)?a.Position.Disconnected|a.Position.ImplementationSpecific|(n.dom.compareCache.check(this,e)?a.Position.Preceding:a.Position.Following):!i&&(0,l.tree_isAncestorOf)(r,t)||s&&t===r?a.Position.Contains|a.Position.Preceding:!s&&(0,l.tree_isDescendantOf)(r,t)||i&&t===r?a.Position.ContainedBy|a.Position.Following:(0,l.tree_isPreceding)(r,t)?a.Position.Preceding:a.Position.Following}contains(e){return null!==e&&(0,l.tree_isDescendantOf)(this,e,!0)}lookupPrefix(e){if(!e)return null;if(o.Guard.isElementNode(this))return(0,l.node_locateANamespacePrefix)(this,e);if(o.Guard.isDocumentNode(this))if(null===this.documentElement)return null;else return(0,l.node_locateANamespacePrefix)(this.documentElement,e);if(o.Guard.isDocumentTypeNode(this)||o.Guard.isDocumentFragmentNode(this))return null;if(o.Guard.isAttrNode(this))if(null===this._element)return null;else return(0,l.node_locateANamespacePrefix)(this._element,e);if(null!==this._parent&&o.Guard.isElementNode(this._parent))return(0,l.node_locateANamespacePrefix)(this._parent,e);else return null}lookupNamespaceURI(e){return(0,l.node_locateANamespace)(this,e||null)}isDefaultNamespace(e){return e||(e=null),(0,l.node_locateANamespace)(this,null)===e}insertBefore(e,t){return(0,l.mutation_preInsert)(e,this,t)}appendChild(e){return(0,l.mutation_append)(e,this)}replaceChild(e,t){return(0,l.mutation_replace)(t,e,this)}removeChild(e){return(0,l.mutation_preRemove)(e,this)}_getTheParent(e){return o.Guard.isSlotable(this)&&(0,l.shadowTree_isAssigned)(this)?this._assignedSlot:this._parent}}t.NodeImpl=c,c.prototype._children=new o.EmptySet,(0,d.idl_defineConst)(c.prototype,"ELEMENT_NODE",1),(0,d.idl_defineConst)(c.prototype,"ATTRIBUTE_NODE",2),(0,d.idl_defineConst)(c.prototype,"TEXT_NODE",3),(0,d.idl_defineConst)(c.prototype,"CDATA_SECTION_NODE",4),(0,d.idl_defineConst)(c.prototype,"ENTITY_REFERENCE_NODE",5),(0,d.idl_defineConst)(c.prototype,"ENTITY_NODE",6),(0,d.idl_defineConst)(c.prototype,"PROCESSING_INSTRUCTION_NODE",7),(0,d.idl_defineConst)(c.prototype,"COMMENT_NODE",8),(0,d.idl_defineConst)(c.prototype,"DOCUMENT_NODE",9),(0,d.idl_defineConst)(c.prototype,"DOCUMENT_TYPE_NODE",10),(0,d.idl_defineConst)(c.prototype,"DOCUMENT_FRAGMENT_NODE",11),(0,d.idl_defineConst)(c.prototype,"NOTATION_NODE",12),(0,d.idl_defineConst)(c.prototype,"DOCUMENT_POSITION_DISCONNECTED",1),(0,d.idl_defineConst)(c.prototype,"DOCUMENT_POSITION_PRECEDING",2),(0,d.idl_defineConst)(c.prototype,"DOCUMENT_POSITION_FOLLOWING",4),(0,d.idl_defineConst)(c.prototype,"DOCUMENT_POSITION_CONTAINS",8),(0,d.idl_defineConst)(c.prototype,"DOCUMENT_POSITION_CONTAINED_BY",16),(0,d.idl_defineConst)(c.prototype,"DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC",32)},7765(e,t,r){"use strict";t.NodeIteratorImpl=void 0;let n=r(5459),a=r(8792);class i extends n.TraverserImpl{_iteratorCollection;_reference;_pointerBeforeReference;constructor(e,t,r){super(e),this._iteratorCollection=void 0,this._reference=t,this._pointerBeforeReference=r,(0,a.nodeIterator_iteratorList)().add(this)}get referenceNode(){return this._reference}get pointerBeforeReferenceNode(){return this._pointerBeforeReference}nextNode(){return(0,a.nodeIterator_traverse)(this,!0)}previousNode(){return(0,a.nodeIterator_traverse)(this,!1)}detach(){(0,a.nodeIterator_iteratorList)().delete(this)}static _create(e,t,r){return new i(e,t,r)}}t.NodeIteratorImpl=i},8071(e,t,r){"use strict";t.NodeListImpl=void 0;let n=r(9091),a=r(3738),i=r(8792);class o{_live=!0;_root;_filter=null;_length=0;constructor(e){return this._root=e,new Proxy(this,this)}get length(){return this._root._children.size}item(e){if(e<0||e>this.length-1)return null;if(e<this.length/2){let t=0,r=this._root._firstChild;for(;null!==r&&t!==e;)r=r._nextSibling,t++;return r}{let t=this.length-1,r=this._root._lastChild;for(;null!==r&&t!==e;)r=r._previousSibling,t--;return r}}keys(){return{[Symbol.iterator]:(function(){let e=0;return{next:(function(){return e===this.length?{done:!0,value:null}:{done:!1,value:e++}}).bind(this)}}).bind(this)}}values(){return{[Symbol.iterator]:(function(){let e=this[Symbol.iterator]();return{next:()=>e.next()}}).bind(this)}}entries(){return{[Symbol.iterator]:(function(){let e=this[Symbol.iterator](),t=0;return{next(){let r=e.next();return r.done?{done:!0,value:null}:{done:!1,value:[t++,r.value]}}}}).bind(this)}}[Symbol.iterator](){return this._root._children[Symbol.iterator]()}forEach(e,t){void 0===t&&(t=n.dom.window);let r=0;for(let n of this._root._children)e.call(t,n,r++,this)}get(e,t,r){if(!(0,a.isString)(t))return Reflect.get(e,t,r);let n=Number(t);return isNaN(n)?Reflect.get(e,t,r):e.item(n)||void 0}set(e,t,r,n){if(!(0,a.isString)(t))return Reflect.set(e,t,r,n);let o=Number(t);if(isNaN(o))return Reflect.set(e,t,r,n);let s=e.item(o)||void 0;return!!s&&!!s._parent&&((0,i.mutation_replace)(s,r,s._parent),!0)}static _create(e){return new o(e)}}t.NodeListImpl=o},8993(e,t,r){"use strict";t.NodeListStaticImpl=void 0;let n=r(9091),a=r(3738);class i{_live=!1;_root;_filter;_items=[];_length=0;constructor(e){return this._root=e,this._items=[],this._filter=function(e){return!0},new Proxy(this,this)}get length(){return this._items.length}item(e){return e<0||e>this.length-1?null:this._items[e]}keys(){return{[Symbol.iterator]:(function(){let e=0;return{next:(function(){return e===this.length?{done:!0,value:null}:{done:!1,value:e++}}).bind(this)}}).bind(this)}}values(){return{[Symbol.iterator]:(function(){let e=this[Symbol.iterator]();return{next:()=>e.next()}}).bind(this)}}entries(){return{[Symbol.iterator]:(function(){let e=this[Symbol.iterator](),t=0;return{next(){let r=e.next();return r.done?{done:!0,value:null}:{done:!1,value:[t++,r.value]}}}}).bind(this)}}[Symbol.iterator](){let e=this._items[Symbol.iterator]();return{next:()=>e.next()}}forEach(e,t){void 0===t&&(t=n.dom.window);let r=0;for(let n of this._items)e.call(t,n,r++,this)}get(e,t,r){if(!(0,a.isString)(t))return Reflect.get(e,t,r);let n=Number(t);return isNaN(n)?Reflect.get(e,t,r):e._items[n]||void 0}set(e,t,r,n){if(!(0,a.isString)(t))return Reflect.set(e,t,r,n);let i=Number(t);return isNaN(i)?Reflect.set(e,t,r,n):i>=0&&i<e._items.length&&(e._items[i]=r,!0)}static _create(e,t){let r=new i(e);return r._items=t,r}}t.NodeListStaticImpl=i},6403(e,t,r){"use strict";t.NonDocumentTypeChildNodeImpl=void 0;let n=r(8723);t.NonDocumentTypeChildNodeImpl=class{get previousElementSibling(){let e=n.Cast.asNode(this)._previousSibling;for(;e;)if(n.Guard.isElementNode(e))return e;else e=e._previousSibling;return null}get nextElementSibling(){let e=n.Cast.asNode(this)._nextSibling;for(;e;)if(n.Guard.isElementNode(e))return e;else e=e._nextSibling;return null}}},3106(e,t,r){"use strict";t.NonElementParentNodeImpl=void 0;let n=r(8723),a=r(8792);t.NonElementParentNodeImpl=class{getElementById(e){let t=(0,a.tree_getFirstDescendantNode)(n.Cast.asNode(this),!1,!1,e=>n.Guard.isElementNode(e));for(;null!==t;){if(t._uniqueIdentifier===e)return t;t=(0,a.tree_getNextDescendantNode)(n.Cast.asNode(this),t,!1,!1,e=>n.Guard.isElementNode(e))}return null}}},7091(e,t,r){"use strict";t.ParentNodeImpl=void 0;let n=r(8723),a=r(8792);t.ParentNodeImpl=class{get children(){return(0,a.create_htmlCollection)(n.Cast.asNode(this))}get firstElementChild(){let e=n.Cast.asNode(this)._firstChild;for(;e;)if(n.Guard.isElementNode(e))return e;else e=e._nextSibling;return null}get lastElementChild(){let e=n.Cast.asNode(this)._lastChild;for(;e;)if(n.Guard.isElementNode(e))return e;else e=e._previousSibling;return null}get childElementCount(){let e=0;for(let t of n.Cast.asNode(this)._children)n.Guard.isElementNode(t)&&e++;return e}prepend(...e){let t=n.Cast.asNode(this),r=(0,a.parentNode_convertNodesIntoANode)(e,t._nodeDocument);(0,a.mutation_preInsert)(r,t,t._firstChild)}append(...e){let t=n.Cast.asNode(this),r=(0,a.parentNode_convertNodesIntoANode)(e,t._nodeDocument);(0,a.mutation_append)(r,t)}querySelector(e){let t=n.Cast.asNode(this),r=(0,a.selectors_scopeMatchASelectorsString)(e,t);return 0===r.length?null:r[0]}querySelectorAll(e){let t=n.Cast.asNode(this),r=(0,a.selectors_scopeMatchASelectorsString)(e,t);return(0,a.create_nodeListStatic)(t,r)}}},8326(e,t,r){"use strict";t.ProcessingInstructionImpl=void 0;let n=r(3841),a=r(1628),i=r(270);class o extends a.CharacterDataImpl{_nodeType=n.NodeType.ProcessingInstruction;_target;constructor(e,t){super(t),this._target=e}get target(){return this._target}static _create(e,t,r){let n=new o(t,r);return n._nodeDocument=e,n}}t.ProcessingInstructionImpl=o,(0,i.idl_defineConst)(o.prototype,"_nodeType",n.NodeType.ProcessingInstruction)},1466(e,t,r){"use strict";t.RangeImpl=void 0;let n=r(9091),a=r(3841),i=r(2044),o=r(8036),s=r(8792),l=r(270),u=r(8723);class d extends i.AbstractRangeImpl{static START_TO_START=0;static START_TO_END=1;static END_TO_END=2;static END_TO_START=3;START_TO_START=0;START_TO_END=1;END_TO_END=2;END_TO_START=3;_start;_end;constructor(){super();const e=n.dom.window._associatedDocument;this._start=[e,0],this._end=[e,0],n.dom.rangeList.add(this)}get commonAncestorContainer(){let e=this._start[0];for(;!(0,s.tree_isAncestorOf)(this._end[0],e,!0);){if(null===e._parent)throw Error("Parent node is null.");e=e._parent}return e}setStart(e,t){(0,s.range_setTheStart)(this,e,t)}setEnd(e,t){(0,s.range_setTheEnd)(this,e,t)}setStartBefore(e){let t=e._parent;if(null===t)throw new o.InvalidNodeTypeError;(0,s.range_setTheStart)(this,t,(0,s.tree_index)(e))}setStartAfter(e){let t=e._parent;if(null===t)throw new o.InvalidNodeTypeError;(0,s.range_setTheStart)(this,t,(0,s.tree_index)(e)+1)}setEndBefore(e){let t=e._parent;if(null===t)throw new o.InvalidNodeTypeError;(0,s.range_setTheEnd)(this,t,(0,s.tree_index)(e))}setEndAfter(e){let t=e._parent;if(null===t)throw new o.InvalidNodeTypeError;(0,s.range_setTheEnd)(this,t,(0,s.tree_index)(e)+1)}collapse(e){e?this._end=this._start:this._start=this._end}selectNode(e){(0,s.range_select)(e,this)}selectNodeContents(e){if(u.Guard.isDocumentTypeNode(e))throw new o.InvalidNodeTypeError;let t=(0,s.tree_nodeLength)(e);this._start=[e,0],this._end=[e,t]}compareBoundaryPoints(e,t){let r,n;if(e!==a.HowToCompare.StartToStart&&e!==a.HowToCompare.StartToEnd&&e!==a.HowToCompare.EndToEnd&&e!==a.HowToCompare.EndToStart)throw new o.NotSupportedError;if((0,s.range_root)(this)!==(0,s.range_root)(t))throw new o.WrongDocumentError;switch(e){case a.HowToCompare.StartToStart:r=this._start,n=t._start;break;case a.HowToCompare.StartToEnd:r=this._end,n=t._start;break;case a.HowToCompare.EndToEnd:r=this._end,n=t._end;break;case a.HowToCompare.EndToStart:r=this._start,n=t._end;break;default:throw new o.NotSupportedError}let i=(0,s.boundaryPoint_position)(r,n);return i===a.BoundaryPosition.Before?-1:+(i===a.BoundaryPosition.After)}deleteContents(){let e,t;if((0,s.range_collapsed)(this))return;let r=this._startNode,n=this._startOffset,a=this._endNode,i=this._endOffset;if(r===a&&u.Guard.isCharacterDataNode(r))return void(0,s.characterData_replaceData)(r,n,i-n,"");let o=[];for(let e of(0,s.range_getContainedNodes)(this)){let t=e._parent;null!==t&&(0,s.range_isContained)(t,this)||o.push(e)}if((0,s.tree_isAncestorOf)(a,r,!0))e=r,t=n;else{let n=r;for(;null!==n._parent&&!(0,s.tree_isAncestorOf)(a,n._parent,!0);)n=n._parent;if(null===n._parent)throw Error("Parent node is null.");e=n._parent,t=(0,s.tree_index)(n)+1}for(let e of(u.Guard.isCharacterDataNode(r)&&(0,s.characterData_replaceData)(r,n,(0,s.tree_nodeLength)(r)-n,""),o))e._parent&&(0,s.mutation_remove)(e,e._parent);u.Guard.isCharacterDataNode(a)&&(0,s.characterData_replaceData)(a,0,i,""),this._start=[e,t],this._end=[e,t]}extractContents(){return(0,s.range_extract)(this)}cloneContents(){return(0,s.range_cloneTheContents)(this)}insertNode(e){return(0,s.range_insert)(e,this)}surroundContents(e){for(let e of(0,s.range_getPartiallyContainedNodes)(this))if(!u.Guard.isTextNode(e))throw new o.InvalidStateError;if(u.Guard.isDocumentNode(e)||u.Guard.isDocumentTypeNode(e)||u.Guard.isDocumentFragmentNode(e))throw new o.InvalidNodeTypeError;let t=(0,s.range_extract)(this);0!==e._children.size&&(0,s.mutation_replaceAll)(null,e),(0,s.range_insert)(e,this),(0,s.mutation_append)(t,e),(0,s.range_select)(e,this)}cloneRange(){return(0,s.create_range)(this._start,this._end)}detach(){n.dom.rangeList.delete(this)}isPointInRange(e,t){if((0,s.tree_rootNode)(e)!==(0,s.range_root)(this))return!1;if(u.Guard.isDocumentTypeNode(e))throw new o.InvalidNodeTypeError;if(t>(0,s.tree_nodeLength)(e))throw new o.IndexSizeError;let r=[e,t];return(0,s.boundaryPoint_position)(r,this._start)!==a.BoundaryPosition.Before&&(0,s.boundaryPoint_position)(r,this._end)!==a.BoundaryPosition.After}comparePoint(e,t){if((0,s.tree_rootNode)(e)!==(0,s.range_root)(this))throw new o.WrongDocumentError;if(u.Guard.isDocumentTypeNode(e))throw new o.InvalidNodeTypeError;if(t>(0,s.tree_nodeLength)(e))throw new o.IndexSizeError;let r=[e,t];return(0,s.boundaryPoint_position)(r,this._start)===a.BoundaryPosition.Before?-1:+((0,s.boundaryPoint_position)(r,this._end)===a.BoundaryPosition.After)}intersectsNode(e){if((0,s.tree_rootNode)(e)!==(0,s.range_root)(this))return!1;let t=e._parent;if(null===t)return!0;let r=(0,s.tree_index)(e);return(0,s.boundaryPoint_position)([t,r],this._end)===a.BoundaryPosition.Before&&(0,s.boundaryPoint_position)([t,r+1],this._start)===a.BoundaryPosition.After}toString(){let e="";if(this._startNode===this._endNode&&u.Guard.isTextNode(this._startNode))return this._startNode._data.substring(this._startOffset,this._endOffset);for(let t of(u.Guard.isTextNode(this._startNode)&&(e+=this._startNode._data.substring(this._startOffset)),(0,s.range_getContainedNodes)(this)))u.Guard.isTextNode(t)&&(e+=t._data);return u.Guard.isTextNode(this._endNode)&&(e+=this._endNode._data.substring(0,this._endOffset)),e}static _create(e,t){let r=new d;return e&&(r._start=e),t&&(r._end=t),r}}t.RangeImpl=d,(0,l.idl_defineConst)(d.prototype,"START_TO_START",0),(0,l.idl_defineConst)(d.prototype,"START_TO_END",1),(0,l.idl_defineConst)(d.prototype,"END_TO_END",2),(0,l.idl_defineConst)(d.prototype,"END_TO_START",3)},4483(e,t,r){"use strict";t.ShadowRootImpl=void 0;let n=r(5714),a=r(3738),i=r(8792);class o extends n.DocumentFragmentImpl{_host;_mode;constructor(e,t){super(),this._host=e,this._mode=t}get mode(){return this._mode}get host(){return this._host}_getTheParent(e){return e._composedFlag||(0,a.isEmpty)(e._path)||(0,i.tree_rootNode)(e._path[0].invocationTarget)!==this?this._host:null}static _create(e,t){return new o(t,"closed")}}t.ShadowRootImpl=o},9183(e,t,r){"use strict";t.SlotableImpl=void 0;let n=r(8792);t.SlotableImpl=class{__name;__assignedSlot;get _name(){return this.__name||""}set _name(e){this.__name=e}get _assignedSlot(){return this.__assignedSlot||null}set _assignedSlot(e){this.__assignedSlot=e}get assignedSlot(){return(0,n.shadowTree_findASlot)(this,!0)}}},1396(e,t,r){"use strict";t.StaticRangeImpl=void 0;let n=r(2044),a=r(8036),i=r(8723);class o extends n.AbstractRangeImpl{_start;_end;constructor(e){if(super(),i.Guard.isDocumentTypeNode(e.startContainer)||i.Guard.isAttrNode(e.startContainer)||i.Guard.isDocumentTypeNode(e.endContainer)||i.Guard.isAttrNode(e.endContainer))throw new a.InvalidNodeTypeError;this._start=[e.startContainer,e.startOffset],this._end=[e.endContainer,e.endOffset]}}t.StaticRangeImpl=o},3800(e,t,r){"use strict";t.TextImpl=void 0;let n=r(3841),a=r(1628),i=r(8792),o=r(270);class s extends a.CharacterDataImpl{_nodeType=n.NodeType.Text;_name="";_assignedSlot=null;constructor(e=""){super(e)}get wholeText(){let e="";for(let t of(0,i.text_contiguousTextNodes)(this,!0))e+=t._data;return e}splitText(e){return(0,i.text_split)(this,e)}get assignedSlot(){throw Error("Mixin: Slotable not implemented.")}static _create(e,t=""){let r=new s(t);return r._nodeDocument=e,r}}t.TextImpl=s,(0,o.idl_defineConst)(s.prototype,"_nodeType",n.NodeType.Text)},5459(e,t,r){"use strict";t.TraverserImpl=void 0;let n=r(3841);t.TraverserImpl=class{_activeFlag;_root;_whatToShow;_filter;constructor(e){this._activeFlag=!1,this._root=e,this._whatToShow=n.WhatToShow.All,this._filter=null}get root(){return this._root}get whatToShow(){return this._whatToShow}get filter(){return this._filter}}},1933(e,t,r){"use strict";t.TreeWalkerImpl=void 0;let n=r(3841),a=r(5459),i=r(8792);class o extends a.TraverserImpl{_current;constructor(e,t){super(e),this._current=t}get currentNode(){return this._current}set currentNode(e){this._current=e}parentNode(){let e=this._current;for(;null!==e&&e!==this._root;)if(null!==(e=e._parent)&&(0,i.traversal_filter)(this,e)===n.FilterResult.Accept)return this._current=e,e;return null}firstChild(){return(0,i.treeWalker_traverseChildren)(this,!0)}lastChild(){return(0,i.treeWalker_traverseChildren)(this,!1)}nextSibling(){return(0,i.treeWalker_traverseSiblings)(this,!0)}previousNode(){let e=this._current;for(;e!==this._root;){let t=e._previousSibling;for(;t;){e=t;let r=(0,i.traversal_filter)(this,e);for(;r!==n.FilterResult.Reject&&e._lastChild;)e=e._lastChild,r=(0,i.traversal_filter)(this,e);if(r===n.FilterResult.Accept)return this._current=e,e;t=e._previousSibling}if(e===this._root||null===e._parent)break;if(e=e._parent,(0,i.traversal_filter)(this,e)===n.FilterResult.Accept)return this._current=e,e}return null}previousSibling(){return(0,i.treeWalker_traverseSiblings)(this,!1)}nextNode(){let e=this._current,t=n.FilterResult.Accept;for(;;){for(;t!==n.FilterResult.Reject&&e._firstChild;)if(e=e._firstChild,(t=(0,i.traversal_filter)(this,e))===n.FilterResult.Accept)return this._current=e,e;let r=null,a=e;for(;null!==a;){if(a===this._root)return null;if(null!==(r=a._nextSibling)){e=r;break}a=a._parent}if((t=(0,i.traversal_filter)(this,e))===n.FilterResult.Accept)return this._current=e,e}}static _create(e,t){return new o(e,t)}}t.TreeWalkerImpl=o},3243(e,t,r){"use strict";t.WindowImpl=void 0;let n=r(3466),a=r(3738),i=r(8792);class o extends n.EventTargetImpl{_currentEvent;_signalSlots=new Set;_mutationObserverMicrotaskQueued=!1;_mutationObservers=new Set;_associatedDocument;_iteratorList=new a.FixedSizeSet;constructor(){super(),this._associatedDocument=(0,i.create_document)()}get document(){return this._associatedDocument}get event(){return this._currentEvent}static _create(){return new o}}t.WindowImpl=o},8135(e,t,r){"use strict";t.XMLDocumentImpl=void 0;let n=r(8034);class a extends n.DocumentImpl{constructor(){super()}}t.XMLDocumentImpl=a},5313(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLDocument=t.Window=t.TreeWalker=t.Traverser=t.Text=t.StaticRange=t.ShadowRoot=t.Range=t.ProcessingInstruction=t.NodeListStatic=t.NodeList=t.NodeIterator=t.Node=t.NodeFilter=t.NamedNodeMap=t.MutationRecord=t.MutationObserver=t.HTMLCollection=t.EventTarget=t.Event=t.Element=t.DOMTokenList=t.DOMImplementation=t.dom=t.DocumentType=t.Document=t.DocumentFragment=t.CustomEvent=t.Comment=t.CharacterData=t.CDATASection=t.Attr=t.AbstractRange=t.AbortSignal=t.AbortController=void 0;let n=r(3738),a=r(3813);Object.defineProperty(t,"AbortController",{enumerable:!0,get:function(){return a.AbortControllerImpl}});let i=r(745);Object.defineProperty(t,"AbortSignal",{enumerable:!0,get:function(){return i.AbortSignalImpl}});let o=r(2044);Object.defineProperty(t,"AbstractRange",{enumerable:!0,get:function(){return o.AbstractRangeImpl}});let s=r(6648);Object.defineProperty(t,"Attr",{enumerable:!0,get:function(){return s.AttrImpl}});let l=r(7331);Object.defineProperty(t,"CDATASection",{enumerable:!0,get:function(){return l.CDATASectionImpl}});let u=r(1628);Object.defineProperty(t,"CharacterData",{enumerable:!0,get:function(){return u.CharacterDataImpl}});let d=r(9629),c=r(7090);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return c.CommentImpl}});let h=r(5945);Object.defineProperty(t,"CustomEvent",{enumerable:!0,get:function(){return h.CustomEventImpl}});let p=r(5714);Object.defineProperty(t,"DocumentFragment",{enumerable:!0,get:function(){return p.DocumentFragmentImpl}});let m=r(8034);Object.defineProperty(t,"Document",{enumerable:!0,get:function(){return m.DocumentImpl}});let f=r(6175),g=r(7466);Object.defineProperty(t,"DocumentType",{enumerable:!0,get:function(){return g.DocumentTypeImpl}});let y=r(9091);Object.defineProperty(t,"dom",{enumerable:!0,get:function(){return y.dom}});let v=r(9173);Object.defineProperty(t,"DOMImplementation",{enumerable:!0,get:function(){return v.DOMImplementationImpl}});let b=r(1374);Object.defineProperty(t,"DOMTokenList",{enumerable:!0,get:function(){return b.DOMTokenListImpl}});let w=r(7207);Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return w.ElementImpl}});let x=r(9971);Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return x.EventImpl}});let C=r(3466);Object.defineProperty(t,"EventTarget",{enumerable:!0,get:function(){return C.EventTargetImpl}});let k=r(6714);Object.defineProperty(t,"HTMLCollection",{enumerable:!0,get:function(){return k.HTMLCollectionImpl}});let M=r(998);Object.defineProperty(t,"MutationObserver",{enumerable:!0,get:function(){return M.MutationObserverImpl}});let S=r(6609);Object.defineProperty(t,"MutationRecord",{enumerable:!0,get:function(){return S.MutationRecordImpl}});let E=r(6202);Object.defineProperty(t,"NamedNodeMap",{enumerable:!0,get:function(){return E.NamedNodeMapImpl}});let T=r(7601);Object.defineProperty(t,"NodeFilter",{enumerable:!0,get:function(){return T.NodeFilterImpl}});let I=r(579);Object.defineProperty(t,"Node",{enumerable:!0,get:function(){return I.NodeImpl}});let P=r(7765);Object.defineProperty(t,"NodeIterator",{enumerable:!0,get:function(){return P.NodeIteratorImpl}});let _=r(8071);Object.defineProperty(t,"NodeList",{enumerable:!0,get:function(){return _.NodeListImpl}});let D=r(8993);Object.defineProperty(t,"NodeListStatic",{enumerable:!0,get:function(){return D.NodeListStaticImpl}});let O=r(6403),A=r(3106),R=r(7091),L=r(8326);Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return L.ProcessingInstructionImpl}});let N=r(1466);Object.defineProperty(t,"Range",{enumerable:!0,get:function(){return N.RangeImpl}});let V=r(4483);Object.defineProperty(t,"ShadowRoot",{enumerable:!0,get:function(){return V.ShadowRootImpl}});let F=r(9183),B=r(1396);Object.defineProperty(t,"StaticRange",{enumerable:!0,get:function(){return B.StaticRangeImpl}});let j=r(3800);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return j.TextImpl}});let W=r(5459);Object.defineProperty(t,"Traverser",{enumerable:!0,get:function(){return W.TraverserImpl}});let U=r(1933);Object.defineProperty(t,"TreeWalker",{enumerable:!0,get:function(){return U.TreeWalkerImpl}});let z=r(3243);Object.defineProperty(t,"Window",{enumerable:!0,get:function(){return z.WindowImpl}});let H=r(8135);Object.defineProperty(t,"XMLDocument",{enumerable:!0,get:function(){return H.XMLDocumentImpl}}),(0,n.applyMixin)(w.ElementImpl,d.ChildNodeImpl),(0,n.applyMixin)(u.CharacterDataImpl,d.ChildNodeImpl),(0,n.applyMixin)(g.DocumentTypeImpl,d.ChildNodeImpl),(0,n.applyMixin)(m.DocumentImpl,f.DocumentOrShadowRootImpl),(0,n.applyMixin)(V.ShadowRootImpl,f.DocumentOrShadowRootImpl),(0,n.applyMixin)(w.ElementImpl,O.NonDocumentTypeChildNodeImpl),(0,n.applyMixin)(u.CharacterDataImpl,O.NonDocumentTypeChildNodeImpl),(0,n.applyMixin)(m.DocumentImpl,A.NonElementParentNodeImpl),(0,n.applyMixin)(p.DocumentFragmentImpl,A.NonElementParentNodeImpl),(0,n.applyMixin)(m.DocumentImpl,R.ParentNodeImpl),(0,n.applyMixin)(p.DocumentFragmentImpl,R.ParentNodeImpl),(0,n.applyMixin)(w.ElementImpl,R.ParentNodeImpl),(0,n.applyMixin)(j.TextImpl,F.SlotableImpl),(0,n.applyMixin)(w.ElementImpl,F.SlotableImpl)},3841(e,t){"use strict";var r,n,a,i,o,s,l,u,d,c,h,p,m,f;t.HowToCompare=t.WhatToShow=t.FilterResult=t.Position=t.NodeType=t.EventPhase=t.BoundaryPosition=void 0,(u=r||(t.BoundaryPosition=r={}))[u.Before=0]="Before",u[u.Equal=1]="Equal",u[u.After=2]="After",(d=n||(t.EventPhase=n={}))[d.None=0]="None",d[d.Capturing=1]="Capturing",d[d.AtTarget=2]="AtTarget",d[d.Bubbling=3]="Bubbling",(c=a||(t.NodeType=a={}))[c.Element=1]="Element",c[c.Attribute=2]="Attribute",c[c.Text=3]="Text",c[c.CData=4]="CData",c[c.EntityReference=5]="EntityReference",c[c.Entity=6]="Entity",c[c.ProcessingInstruction=7]="ProcessingInstruction",c[c.Comment=8]="Comment",c[c.Document=9]="Document",c[c.DocumentType=10]="DocumentType",c[c.DocumentFragment=11]="DocumentFragment",c[c.Notation=12]="Notation",(h=i||(t.Position=i={}))[h.SameNode=0]="SameNode",h[h.Disconnected=1]="Disconnected",h[h.Preceding=2]="Preceding",h[h.Following=4]="Following",h[h.Contains=8]="Contains",h[h.ContainedBy=16]="ContainedBy",h[h.ImplementationSpecific=32]="ImplementationSpecific",(p=o||(t.FilterResult=o={}))[p.Accept=1]="Accept",p[p.Reject=2]="Reject",p[p.Skip=3]="Skip",(m=s||(t.WhatToShow=s={}))[m.All=0xffffffff]="All",m[m.Element=1]="Element",m[m.Attribute=2]="Attribute",m[m.Text=4]="Text",m[m.CDataSection=8]="CDataSection",m[m.EntityReference=16]="EntityReference",m[m.Entity=32]="Entity",m[m.ProcessingInstruction=64]="ProcessingInstruction",m[m.Comment=128]="Comment",m[m.Document=256]="Document",m[m.DocumentType=512]="DocumentType",m[m.DocumentFragment=1024]="DocumentFragment",m[m.Notation=2048]="Notation",(f=l||(t.HowToCompare=l={}))[f.StartToStart=0]="StartToStart",f[f.StartToEnd=1]="StartToEnd",f[f.EndToEnd=2]="EndToEnd",f[f.EndToStart=3]="EndToStart"},1362(e,t,r){"use strict";t.DOMImplementation=void 0,r(5313).dom.setFeatures(!0);var n=r(5313);Object.defineProperty(t,"DOMImplementation",{enumerable:!0,get:function(){return n.DOMImplementation}}),r(8884),r(963)},8649(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DOMParserImpl=void 0;let n=r(8792),a=r(8764);t.DOMParserImpl=class{parseFromString(e,t){if("text/html"===t)throw Error("HTML parser not implemented.");try{let r=new a.XMLParserImpl().parse(e);return r._contentType=t,r}catch(i){let e="http://www.mozilla.org/newlayout/xml/parsererror.xml",t=(0,n.create_xmlDocument)(),r=t.createElementNS(e,"parsererror"),a=t.createElementNS(e,"error");return a.setAttribute("message",i.message),r.appendChild(a),t.appendChild(r),t}}}},8764(e,t,r){"use strict";t.XMLParserImpl=void 0;let n=r(9460),a=r(2854),i=r(360),o=r(8792),s=r(2351);t.XMLParserImpl=class{parse(e){let t=new n.XMLStringLexer(e,{skipWhitespaceOnlyText:!0}),r=(0,o.create_document)(),l=r,u=t.nextToken();for(;u.type!==a.TokenType.EOF;){switch(u.type){case a.TokenType.Declaration:let e=u;if("1.0"!==e.version)throw Error("Invalid xml version: "+e.version);break;case a.TokenType.DocType:let n=u;if(!(0,o.xml_isPubidChar)(n.pubId))throw Error("DocType public identifier does not match PubidChar construct.");if(!(0,o.xml_isLegalChar)(n.sysId)||-1!==n.sysId.indexOf('"')&&-1!==n.sysId.indexOf("'"))throw Error("DocType system identifier contains invalid characters.");l.appendChild(r.implementation.createDocumentType(n.name,n.pubId,n.sysId));break;case a.TokenType.CDATA:let d=u;if(!(0,o.xml_isLegalChar)(d.data)||-1!==d.data.indexOf("]]>"))throw Error("CDATA contains invalid characters.");l.appendChild(r.createCDATASection(d.data));break;case a.TokenType.Comment:let c=u;if(!(0,o.xml_isLegalChar)(c.data)||-1!==c.data.indexOf("--")||c.data.endsWith("-"))throw Error("Comment data contains invalid characters.");l.appendChild(r.createComment(c.data));break;case a.TokenType.PI:let h=u;if(-1!==h.target.indexOf(":")||/^xml$/i.test(h.target))throw Error("Processing instruction target contains invalid characters.");if(!(0,o.xml_isLegalChar)(h.data)||-1!==h.data.indexOf("?>"))throw Error("Processing instruction data contains invalid characters.");l.appendChild(r.createProcessingInstruction(h.target,h.data));break;case a.TokenType.Text:let p=u;if(!(0,o.xml_isLegalChar)(p.data))throw Error("Text data contains invalid characters.");l.appendChild(r.createTextNode(this._decodeText(p.data)));break;case a.TokenType.Element:let m=u,[f,g]=(0,o.namespace_extractQName)(m.name);if(-1!==g.indexOf(":")||!(0,o.xml_isName)(g))throw Error("Node local name contains invalid characters.");if("xmlns"===f)throw Error("An element cannot have the 'xmlns' prefix.");let y=l.lookupNamespaceURI(f),v={};for(let[e,t]of m.attributes)if("xmlns"===e)y=t;else{let[r,n]=(0,o.namespace_extractQName)(e);"xmlns"===r&&(n===f&&(y=t),v[n]=t)}let b=null!==y?r.createElementNS(y,m.name):r.createElement(m.name);l.appendChild(b);let w=new s.LocalNameSet;for(let[e,t]of m.attributes){let[r,n]=(0,o.namespace_extractQName)(e),a=null;if("xmlns"===r||null===r&&"xmlns"===n?a=i.namespace.XMLNS:null!==(a=b.lookupNamespaceURI(r))&&b.isDefaultNamespace(a)?a=null:null===a&&null!==r&&(a=v[r]||null),w.has(a,n))throw Error("Element contains duplicate attributes.");if(w.set(a,n),a===i.namespace.XMLNS&&t===i.namespace.XMLNS)throw Error("XMLNS namespace is reserved.");if(-1!==n.indexOf(":")||!(0,o.xml_isName)(n))throw Error("Attribute local name contains invalid characters.");if("xmlns"===r&&""===t)throw Error("Empty XML namespace is not allowed.");null!==a?b.setAttributeNS(a,e,this._decodeAttributeValue(t)):b.setAttribute(e,this._decodeAttributeValue(t))}m.selfClosing||(l=b);break;case a.TokenType.ClosingTag:if(u.name!==l.nodeName)throw Error("Closing tag name does not match opening tag name.");l._parent&&(l=l._parent)}u=t.nextToken()}return r}_decodeText(e){return null==e?e:e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")}_decodeAttributeValue(e){return null==e?e:e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")}}},9460(e,t,r){"use strict";t.XMLStringLexer=void 0;let n=r(2854);class a{_str;_index;_length;_options={skipWhitespaceOnlyText:!1};err={line:-1,col:-1,index:-1,str:""};constructor(e,t){this._str=e,this._index=0,this._length=e.length,t&&(this._options.skipWhitespaceOnlyText=t.skipWhitespaceOnlyText||!1)}nextToken(){if(this.eof())return{type:n.TokenType.EOF};let e=this.skipIfStartsWith("<")?this.openBracket():this.text();return this._options.skipWhitespaceOnlyText&&e.type===n.TokenType.Text&&a.isWhiteSpaceToken(e)&&(e=this.nextToken()),e}openBracket(){if(this.skipIfStartsWith("?"))if(!this.skipIfStartsWith("xml"))return this.pi();else if(a.isSpace(this._str[this._index]))return this.declaration();else return this.seek(-3),this.pi();if(this.skipIfStartsWith("!"))if(this.skipIfStartsWith("--"))return this.comment();else{if(this.skipIfStartsWith("[CDATA["))return this.cdata();if(this.skipIfStartsWith("DOCTYPE"))return this.doctype();this.throwError("Invalid '!' in opening tag.")}else if(this.skipIfStartsWith("/"))return this.closeTag();else return this.openTag()}declaration(){let e="",t="",r="";for(;!this.eof();){if(this.skipSpace(),this.skipIfStartsWith("?>"))return{type:n.TokenType.Declaration,version:e,encoding:t,standalone:r};{let[n,a]=this.attribute();"version"===n?e=a:"encoding"===n?t=a:"standalone"===n?r=a:this.throwError("Invalid attribute name: "+n)}}this.throwError("Missing declaration end symbol `?>`")}doctype(){let e="",t="";this.skipSpace();let r=this.takeUntil2("[",">",!0);return this.skipSpace(),this.skipIfStartsWith("PUBLIC")?(e=this.quotedString(),t=this.quotedString()):this.skipIfStartsWith("SYSTEM")&&(t=this.quotedString()),this.skipSpace(),this.skipIfStartsWith("[")&&(this.skipUntil("]"),this.skipIfStartsWith("]")||this.throwError("Missing end bracket of DTD internal subset")),this.skipSpace(),this.skipIfStartsWith(">")||this.throwError("Missing doctype end symbol `>`"),{type:n.TokenType.DocType,name:r,pubId:e,sysId:t}}pi(){let e=this.takeUntilStartsWith("?>",!0);if(this.eof()&&this.throwError("Missing processing instruction end symbol `?>`"),this.skipSpace(),this.skipIfStartsWith("?>"))return{type:n.TokenType.PI,target:e,data:""};let t=this.takeUntilStartsWith("?>");return this.eof()&&this.throwError("Missing processing instruction end symbol `?>`"),this.seek(2),{type:n.TokenType.PI,target:e,data:t}}text(){let e=this.takeUntil("<");return{type:n.TokenType.Text,data:e}}comment(){let e=this.takeUntilStartsWith("--\x3e");return this.eof()&&this.throwError("Missing comment end symbol `--\x3e`"),this.seek(3),{type:n.TokenType.Comment,data:e}}cdata(){let e=this.takeUntilStartsWith("]]>");return this.eof()&&this.throwError("Missing CDATA end symbol `]>`"),this.seek(3),{type:n.TokenType.CDATA,data:e}}openTag(){this.skipSpace();let e=this.takeUntil2(">","/",!0);if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:n.TokenType.Element,name:e,attributes:[],selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:n.TokenType.Element,name:e,attributes:[],selfClosing:!0};let t=[];for(;!this.eof();){if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:n.TokenType.Element,name:e,attributes:t,selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:n.TokenType.Element,name:e,attributes:t,selfClosing:!0};let r=this.attribute();t.push(r)}this.throwError("Missing opening element tag end symbol `>`")}closeTag(){this.skipSpace();let e=this.takeUntil(">",!0);return this.skipSpace(),this.skipIfStartsWith(">")||this.throwError("Missing closing element tag end symbol `>`"),{type:n.TokenType.ClosingTag,name:e}}attribute(){this.skipSpace();let e=this.takeUntil("=",!0);return this.skipSpace(),this.skipIfStartsWith("=")||this.throwError("Missing equals sign before attribute value"),[e,this.quotedString()]}quotedString(){this.skipSpace();let e=this.take(1);a.isQuote(e)||this.throwError("Missing start quote character before quoted value");let t=this.takeUntil(e);return this.skipIfStartsWith(e)||this.throwError("Missing end quote character after quoted value"),t}eof(){return this._index>=this._length}skipIfStartsWith(e){let t=e.length;if(1===t)if(this._str[this._index]===e)return this._index++,!0;else return!1;for(let r=0;r<t;r++)if(this._str[this._index+r]!==e[r])return!1;return this._index+=t,!0}seek(e){this._index+=e,this._index<0&&(this._index=0),this._index>this._length&&(this._index=this._length)}skipSpace(){for(;!this.eof()&&a.isSpace(this._str[this._index]);)this._index++}take(e){if(1===e)return this._str[this._index++];let t=this._index;return this.seek(e),this._str.slice(t,this._index)}takeUntil(e,t=!1){let r=this._index;for(;this._index<this._length;){let r=this._str[this._index];if(r===e||t&&a.isSpace(r))break;this._index++}return this._str.slice(r,this._index)}takeUntil2(e,t,r=!1){let n=this._index;for(;this._index<this._length;){let n=this._str[this._index];if(n===e||n===t||r&&a.isSpace(n))break;this._index++}return this._str.slice(n,this._index)}takeUntilStartsWith(e,t=!1){let r=this._index,n=e.length;for(;this._index<this._length;){let i=!0;for(let o=0;o<n;o++){let n=this._str[this._index+o],s=e[o];if(t&&a.isSpace(n))return this._str.slice(r,this._index);if(n!==s){this._index++,i=!1;break}}if(i)return this._str.slice(r,this._index)}return this._index=this._length,this._str.slice(r)}skipUntil(e){for(;this._index<this._length;)if(this._str[this._index]!==e)this._index++;else break}static isWhiteSpaceToken(e){let t=e.data;for(let e=0;e<t.length;e++){let r=t[e];if(" "!==r&&"\n"!==r&&"\r"!==r&&" "!==r&&"\f"!==r)return!1}return!0}static isSpace(e){return" "===e||"\n"===e||"\r"===e||" "===e}static isQuote(e){return'"'===e||"'"===e}throwError(e){let t=/\r\n|\r|\n/g,r=null,n=0,a=0,i=this._str.length;for(;null!==(r=t.exec(this._str))&&null!==r;)if(n++,r.index<this._index&&(a=t.lastIndex),r.index>this._index){i=r.index;break}throw this.err={line:n,col:this._index-a,index:this._index,str:this._str.substring(a,i)},Error(e+"\nIndex: "+this.err.index+"\nLn: "+this.err.line+", Col: "+this.err.col+"\nInput: "+this.err.str)}[Symbol.iterator](){return this._index=0,{next:(function(){let e=this.nextToken();return e.type===n.TokenType.EOF?{done:!0,value:null}:{done:!1,value:e}}).bind(this)}}}t.XMLStringLexer=a},8884(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DOMParser=void 0;var n=r(8649);Object.defineProperty(t,"DOMParser",{enumerable:!0,get:function(){return n.DOMParserImpl}})},2854(e,t){"use strict";var r,n;t.TokenType=void 0,(n=r||(t.TokenType=r={}))[n.EOF=0]="EOF",n[n.Declaration=1]="Declaration",n[n.DocType=2]="DocType",n[n.Element=3]="Element",n[n.Text=4]="Text",n[n.CDATA=5]="CDATA",n[n.PI=6]="PI",n[n.Comment=7]="Comment",n[n.ClosingTag=8]="ClosingTag"},2351(e,t){"use strict";t.LocalNameSet=void 0,t.LocalNameSet=class{_items={};_nullItems={};set(e,t){null===e?this._nullItems[t]=!0:(this._items[e]||(this._items[e]={}),this._items[e][t]=!0)}has(e,t){return null===e?!0===this._nullItems[t]:!!this._items[e]&&!0===this._items[e][t]}}},7280(e,t){"use strict";t.NamespacePrefixMap=void 0,t.NamespacePrefixMap=class e{_items={};_nullItems=[];copy(){let t=new e;for(let e in this._items)t._items[e]=this._items[e].slice(0);return t._nullItems=this._nullItems.slice(0),t}get(e,t){let r=null===t?this._nullItems:this._items[t]||null;if(null===r)return null;let n=null;for(let t=0;t<r.length&&(n=r[t])!==e;t++);return n}has(e,t){let r=null===t?this._nullItems:this._items[t]||null;return null!==r&&-1!==r.indexOf(e)}hasPrefix(e){if(-1!==this._nullItems.indexOf(e))return!0;for(let t in this._items)if(-1!==this._items[t].indexOf(e))return!0;return!1}set(e,t){let r=null===t?this._nullItems:this._items[t]||null;null!==t&&null===r?this._items[t]=[e]:r.push(e)}}},9620(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLSerializerImpl=void 0;let n=r(3841),a=r(2351),i=r(7280),o=r(8036),s=r(360),l=r(8792);class u{static _VoidElementNames=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]);serializeToString(e){return this._xmlSerialization(e,!1)}_xmlSerialization(e,t){if(void 0===e._nodeDocument||e._nodeDocument._hasNamespaces){let r=new i.NamespacePrefixMap;r.set("xml",s.namespace.XML);try{return this._serializeNodeNS(e,null,r,{value:1},t)}catch{throw new o.InvalidStateError}}try{return this._serializeNode(e,t)}catch{throw new o.InvalidStateError}}_serializeNodeNS(e,t,r,a,i){switch(e.nodeType){case n.NodeType.Element:return this._serializeElementNS(e,t,r,a,i);case n.NodeType.Document:return this._serializeDocumentNS(e,t,r,a,i);case n.NodeType.Comment:return this._serializeComment(e,i);case n.NodeType.Text:return this._serializeText(e,i);case n.NodeType.DocumentFragment:return this._serializeDocumentFragmentNS(e,t,r,a,i);case n.NodeType.DocumentType:return this._serializeDocumentType(e,i);case n.NodeType.ProcessingInstruction:return this._serializeProcessingInstruction(e,i);case n.NodeType.CData:return this._serializeCData(e,i);default:throw Error(`Unknown node type: ${e.nodeType}`)}}_serializeNode(e,t){switch(e.nodeType){case n.NodeType.Element:return this._serializeElement(e,t);case n.NodeType.Document:return this._serializeDocument(e,t);case n.NodeType.Comment:return this._serializeComment(e,t);case n.NodeType.Text:return this._serializeText(e,t);case n.NodeType.DocumentFragment:return this._serializeDocumentFragment(e,t);case n.NodeType.DocumentType:return this._serializeDocumentType(e,t);case n.NodeType.ProcessingInstruction:return this._serializeProcessingInstruction(e,t);case n.NodeType.CData:return this._serializeCData(e,t);default:throw Error(`Unknown node type: ${e.nodeType}`)}}_serializeElementNS(e,t,r,n,a){if(a&&(-1!==e.localName.indexOf(":")||!(0,l.xml_isName)(e.localName)))throw Error("Node local name contains invalid characters (well-formed required).");let i="<",o="",d=!1,c=!1,h=r.copy(),p={},m=this._recordNamespaceInformation(e,h,p),f=t,g=e.namespaceURI;if(f===g)null!==m&&(c=!0),i+=o=g===s.namespace.XML?"xml:"+e.localName:e.localName;else{let t=e.prefix,r=null;if((null!==t||g!==m)&&(r=h.get(t,g)),"xmlns"===t){if(a)throw Error("An element cannot have the 'xmlns' prefix (well-formed required).");r=t}null!==r?(o=r+":"+e.localName,null!==m&&m!==s.namespace.XML&&(f=m||null),i+=o):null!==t?(t in p&&(t=this._generatePrefix(g,h,n)),h.set(t,g),o+=t+":"+e.localName,i+=o,i+=" xmlns:"+t+'="'+this._serializeAttributeValue(g,a)+'"',null!==m&&(f=m||null)):null===m||null!==m&&m!==g?(c=!0,o+=e.localName,f=g,i+=o,i+=' xmlns="'+this._serializeAttributeValue(g,a)+'"'):(o+=e.localName,f=g,i+=o)}i+=this._serializeAttributesNS(e,h,n,p,c,a);let y=g===s.namespace.HTML;if(y&&0===e.childNodes.length&&u._VoidElementNames.has(e.localName)?(i+=" /",d=!0):y||0!==e.childNodes.length||(i+="/",d=!0),i+=">",d)return i;if(y&&"template"===e.localName);else for(let t of e._children||e.childNodes)i+=this._serializeNodeNS(t,f,h,n,a);return i+("</"+o+">")}_serializeDocumentNS(e,t,r,n,a){if(a&&null===e.documentElement)throw Error("Missing document element (well-formed required).");let i="";for(let o of e._children||e.childNodes)i+=this._serializeNodeNS(o,t,r,n,a);return i}_serializeComment(e,t){if(t&&(!(0,l.xml_isLegalChar)(e.data)||-1!==e.data.indexOf("--")||e.data.endsWith("-")))throw Error("Comment data contains invalid characters (well-formed required).");return"\x3c!--"+e.data+"--\x3e"}_serializeText(e,t){if(t&&!(0,l.xml_isLegalChar)(e.data))throw Error("Text data contains invalid characters (well-formed required).");let r="";for(let t=0;t<e.data.length;t++){let n=e.data[t];"&"===n?r+="&amp;":"<"===n?r+="&lt;":">"===n?r+="&gt;":r+=n}return r}_serializeDocumentFragmentNS(e,t,r,n,a){let i="";for(let o of e._children||e.childNodes)i+=this._serializeNodeNS(o,t,r,n,a);return i}_serializeDocumentType(e,t){if(t&&!(0,l.xml_isPubidChar)(e.publicId))throw Error("DocType public identifier does not match PubidChar construct (well-formed required).");if(t&&(!(0,l.xml_isLegalChar)(e.systemId)||-1!==e.systemId.indexOf('"')&&-1!==e.systemId.indexOf("'")))throw Error("DocType system identifier contains invalid characters (well-formed required).");return e.publicId&&e.systemId?"<!DOCTYPE "+e.name+' PUBLIC "'+e.publicId+'" "'+e.systemId+'">':e.publicId?"<!DOCTYPE "+e.name+' PUBLIC "'+e.publicId+'">':e.systemId?"<!DOCTYPE "+e.name+' SYSTEM "'+e.systemId+'">':"<!DOCTYPE "+e.name+">"}_serializeProcessingInstruction(e,t){if(t&&(-1!==e.target.indexOf(":")||/^xml$/i.test(e.target)))throw Error("Processing instruction target contains invalid characters (well-formed required).");if(t&&(!(0,l.xml_isLegalChar)(e.data)||-1!==e.data.indexOf("?>")))throw Error("Processing instruction data contains invalid characters (well-formed required).");return"<?"+(""===e.data?e.target:e.target+" "+e.data)+"?>"}_serializeCData(e,t){if(t&&-1!==e.data.indexOf("]]>"))throw Error("CDATA contains invalid characters (well-formed required).");return"<![CDATA["+e.data+"]]>"}_serializeAttributesNS(e,t,r,n,i,o){let u="",d=o?new a.LocalNameSet:void 0;for(let a of e.attributes){if(!i&&!o&&null===a.namespaceURI){u+=" "+a.localName+'="'+this._serializeAttributeValue(a.value,o)+'"';continue}if(o&&d&&d.has(a.namespaceURI,a.localName))throw Error("Element contains duplicate attributes (well-formed required).");o&&d&&d.set(a.namespaceURI,a.localName);let e=a.namespaceURI,c=null;if(null!==e)if(c=t.get(a.prefix,e),e===s.namespace.XMLNS){if(a.value===s.namespace.XML||null===a.prefix&&i||null!==a.prefix&&(!(a.localName in n)||n[a.localName]!==a.value)&&t.has(a.localName,a.value))continue;if(o&&a.value===s.namespace.XMLNS)throw Error("XMLNS namespace is reserved (well-formed required).");if(o&&""===a.value)throw Error("Namespace prefix declarations cannot be used to undeclare a namespace (well-formed required).");"xmlns"===a.prefix&&(c="xmlns")}else null===c&&(u+=" xmlns:"+(c=null!==a.prefix&&(!t.hasPrefix(a.prefix)||t.has(a.prefix,e))?a.prefix:this._generatePrefix(e,t,r))+'="'+this._serializeAttributeValue(e,o)+'"');if(u+=" ",null!==c&&(u+=c+":"),o&&(-1!==a.localName.indexOf(":")||!(0,l.xml_isName)(a.localName)||"xmlns"===a.localName&&null===e))throw Error("Attribute local name contains invalid characters (well-formed required).");u+=a.localName+'="'+this._serializeAttributeValue(a.value,o)+'"'}return u}_recordNamespaceInformation(e,t,r){let n=null;for(let a of e.attributes){let e=a.namespaceURI,i=a.prefix;if(e===s.namespace.XMLNS)if(null===i){n=a.value;continue}else{let e=a.localName,n=a.value;if(n===s.namespace.XML||(""===n&&(n=null),t.has(e,n)))continue;t.set(e,n),r[e]=n||""}}return n}_generatePrefix(e,t,r){let n="ns"+r.value;return r.value++,t.set(n,e),n}_serializeAttributeValue(e,t){if(t&&null!==e&&!(0,l.xml_isLegalChar)(e))throw Error("Invalid characters in attribute value.");if(null===e)return"";let r="";for(let t=0;t<e.length;t++){let n=e[t];'"'===n?r+="&quot;":"&"===n?r+="&amp;":"<"===n?r+="&lt;":">"===n?r+="&gt;":r+=n}return r}_serializeElement(e,t){if(t&&(-1!==e.localName.indexOf(":")||!(0,l.xml_isName)(e.localName)))throw Error("Node local name contains invalid characters (well-formed required).");let r=!1,n=e.localName,a="<"+n;if(a+=this._serializeAttributes(e,t),0===e._children.size&&(a+="/",r=!0),a+=">",r)return a;for(let r of e._children)a+=this._serializeNode(r,t);return a+("</"+n+">")}_serializeDocument(e,t){if(t&&null===e.documentElement)throw Error("Missing document element (well-formed required).");let r="";for(let n of e._children)r+=this._serializeNode(n,t);return r}_serializeDocumentFragment(e,t){let r="";for(let n of e._children)r+=this._serializeNode(n,t);return r}_serializeAttributes(e,t){let r="",n=t?{}:void 0;for(let a of e.attributes){if(t&&n&&a.localName in n)throw Error("Element contains duplicate attributes (well-formed required).");if(t&&n&&(n[a.localName]=!0),t&&(-1!==a.localName.indexOf(":")||!(0,l.xml_isName)(a.localName)))throw Error("Attribute local name contains invalid characters (well-formed required).");r+=" "+a.localName+'="'+this._serializeAttributeValue(a.value,t)+'"'}return r}}t.XMLSerializerImpl=u},963(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLSerializer=void 0;var n=r(9620);Object.defineProperty(t,"XMLSerializer",{enumerable:!0,get:function(){return n.XMLSerializerImpl}})},4308(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cast=void 0;let n=r(4489);t.Cast=class{static asNode(e){if(n.Guard.isNode(e))return e;throw Error("Invalid object. Node expected.")}}},9964(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptySet=void 0;class r{get size(){return 0}add(e){throw Error("Cannot add to an empty set.")}clear(){}delete(e){return!1}forEach(e,t){}has(e){return!1}[Symbol.iterator](){return new n}entries(){return new n}keys(){return new n}values(){return new n}get[Symbol.toStringTag](){return"EmptySet"}}t.EmptySet=r;class n{[Symbol.iterator](){return this}next(){return{done:!0,value:null}}}},4489(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Guard=void 0;let n=r(3841);t.Guard=class e{static isNode(e){return!!e&&void 0!==e._nodeType}static isDocumentNode(t){return e.isNode(t)&&t._nodeType===n.NodeType.Document}static isDocumentTypeNode(t){return e.isNode(t)&&t._nodeType===n.NodeType.DocumentType}static isDocumentFragmentNode(t){return e.isNode(t)&&t._nodeType===n.NodeType.DocumentFragment}static isAttrNode(t){return e.isNode(t)&&t._nodeType===n.NodeType.Attribute}static isCharacterDataNode(t){if(!e.isNode(t))return!1;let r=t._nodeType;return r===n.NodeType.Text||r===n.NodeType.ProcessingInstruction||r===n.NodeType.Comment||r===n.NodeType.CData}static isTextNode(t){return e.isNode(t)&&(t._nodeType===n.NodeType.Text||t._nodeType===n.NodeType.CData)}static isExclusiveTextNode(t){return e.isNode(t)&&t._nodeType===n.NodeType.Text}static isCDATASectionNode(t){return e.isNode(t)&&t._nodeType===n.NodeType.CData}static isCommentNode(t){return e.isNode(t)&&t._nodeType===n.NodeType.Comment}static isProcessingInstructionNode(t){return e.isNode(t)&&t._nodeType===n.NodeType.ProcessingInstruction}static isElementNode(t){return e.isNode(t)&&t._nodeType===n.NodeType.Element}static isCustomElementNode(t){return e.isElementNode(t)&&"custom"===t._customElementState}static isShadowRoot(e){return!!e&&void 0!==e.host}static isMouseEvent(e){return!!e&&void 0!==e.screenX&&void 0!=e.screenY}static isSlotable(t){return!!t&&void 0!==t._name&&void 0!==t._assignedSlot&&(e.isTextNode(t)||e.isElementNode(t))}static isSlot(t){return!!t&&void 0!==t._name&&void 0!==t._assignedNodes&&e.isElementNode(t)}static isWindow(e){return!!e&&void 0!==e.navigator}static isEventListener(e){return!!e&&void 0!==e.handleEvent}static isRegisteredObserver(e){return!!e&&void 0!==e.observer&&void 0!==e.options}static isTransientRegisteredObserver(t){return!!t&&void 0!==t.source&&e.isRegisteredObserver(t)}}},8723(e,t,r){"use strict";t.EmptySet=t.Guard=t.Cast=void 0;var n=r(4308);Object.defineProperty(t,"Cast",{enumerable:!0,get:function(){return n.Cast}});var a=r(4489);Object.defineProperty(t,"Guard",{enumerable:!0,get:function(){return a.Guard}});var i=r(9964);Object.defineProperty(t,"EmptySet",{enumerable:!0,get:function(){return i.EmptySet}})},3053(e,t,r){"use strict";var n=r(1429).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.forgivingBase64Encode=function(e){return n.from(e).toString("base64")},t.forgivingBase64Decode=function(e){return""===e?"":((e=e.replace(a.ASCIIWhiteSpace,"")).length%4==0&&(e.endsWith("==")?e=e.substr(0,e.length-2):e.endsWith("=")&&(e=e.substr(0,e.length-1))),e.length%4!=1&&/[0-9A-Za-z+/]/.test(e))?n.from(e,"base64").toString("utf8"):null};let a=r(4776)},8292(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isASCIIByte=function(e){return e>=0&&e<=127}},5089(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.length=function(e){return e.length},t.byteLowercase=function(e){for(let t=0;t<e.length;t++){let r=e[t];r>=65&&r<=90&&(e[t]=r+32)}},t.byteUppercase=function(e){for(let t=0;t<e.length;t++){let r=e[t];r>=97&&r<=122&&(e[t]=r-32)}},t.byteCaseInsensitiveMatch=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],a=t[r];if(n>=65&&n<=90&&(n+=32),a>=65&&a<=90&&(a+=32),n!==a)return!1}return!0},t.startsWith=function(e,t){let r=0;for(;;){if(r>=e.length)return!1;if(r>=t.length)return!0;if(e[r]!==t[r])return!1;r++}},t.byteLessThan=function(e,t){let r=0;for(;;){if(r>=e.length)return!1;if(r>=t.length)return!0;let n=e[r],a=t[r];if(n<a)return!0;if(n>a)return!1;r++}},t.isomorphicDecode=function(e){return String.fromCodePoint(...e)}},4776(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ASCIIAlphanumeric=t.ASCIIAlpha=t.ASCIILowerAlpha=t.ASCIIUpperAlpha=t.ASCIIHexDigit=t.ASCIILowerHexDigit=t.ASCIIUpperHexDigit=t.ASCIIDigit=t.Control=t.C0ControlOrSpace=t.C0Control=t.ASCIIWhiteSpace=t.ASCIITabOrNewLine=t.ASCIICodePoint=t.NonCharacter=t.ScalarValue=t.Surrogate=void 0,t.Surrogate=/[\uD800-\uDFFF]/,t.ScalarValue=/[\uD800-\uDFFF]/,t.NonCharacter=/[\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]/,t.ASCIICodePoint=/[\u0000-\u007F]/,t.ASCIITabOrNewLine=/[\t\n\r]/,t.ASCIIWhiteSpace=/[\t\n\f\r ]/,t.C0Control=/[\u0000-\u001F]/,t.C0ControlOrSpace=/[\u0000-\u001F ]/,t.Control=/[\u0000-\u001F\u007F-\u009F]/,t.ASCIIDigit=/[0-9]/,t.ASCIIUpperHexDigit=/[0-9A-F]/,t.ASCIILowerHexDigit=/[0-9a-f]/,t.ASCIIHexDigit=/[0-9A-Fa-f]/,t.ASCIIUpperAlpha=/[A-Z]/,t.ASCIILowerAlpha=/[a-z]/,t.ASCIIAlpha=/[A-Za-z]/,t.ASCIIAlphanumeric=/[0-9A-Za-z]/},480(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSONFromBytes=function(e){let t=(0,n.utf8Decode)(e);return JSON.parse.call(void 0,t)},t.serializeJSONToBytes=function(e){let t=JSON.stringify.call(void 0,e);return(0,n.utf8Encode)(t)},t.parseJSONIntoInfraValues=function(e){return a(JSON.parse.call(void 0,e))},t.convertAJSONDerivedJavaScriptValueToAnInfraValue=a;let n=r(3738);function a(e){if(null===e||(0,n.isString)(e)||(0,n.isNumber)(e))return e;if((0,n.isArray)(e)){let t=[];for(let r of e)t.push(a(r));return t}if((0,n.isObject)(e)){let t=new Map;for(let r in e)if(e.hasOwnProperty(r)){let n=e[r];t.set(r,a(n))}return t}return e}},7570(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.append=function(e,t){e.push(t)},t.extend=function(e,t){e.push(...t)},t.prepend=function(e,t){e.unshift(t)},t.replace=function(e,t,r){let a=0;for(let i of e){if((0,n.isFunction)(t))t.call(null,i)&&(e[a]=r);else if(i===t){e[a]=r;return}a++}},t.insert=function(e,t,r){e.splice(r,0,t)},t.remove=function(e,t){let r=e.length;for(;r--;){let a=e[r];if((0,n.isFunction)(t))t.call(null,a)&&e.splice(r,1);else if(a===t)return void e.splice(r,1)}},t.empty=function(e){e.length=0},t.contains=function(e,t){for(let r of e)if((0,n.isFunction)(t)){if(t.call(null,r))return!0}else if(r===t)return!0;return!1},t.size=function(e,t){if(void 0===t)return e.length;{let r=0;for(let n of e)t.call(null,n)&&r++;return r}},t.isEmpty=function(e){return 0===e.length},t.forEach=function*(e,t){if(void 0===t)yield*e;else for(let r of e)t.call(null,r)&&(yield r)},t.clone=function(e){return Array(...e)},t.sortInAscendingOrder=function(e,t){return e.sort((e,r)=>t.call(null,e,r)?-1:1)},t.sortInDescendingOrder=function(e,t){return e.sort((e,r)=>t.call(null,e,r)?1:-1)};let n=r(3738)},8946(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.get=function(e,t){return e.get(t)},t.set=function(e,t,r){e.set(t,r)},t.remove=function(e,t){if((0,n.isFunction)(t)){let r=[];for(let n of e)t.call(null,n)&&r.push(n[0]);for(let t of r)e.delete(t)}else e.delete(t)},t.contains=function(e,t){if(!(0,n.isFunction)(t))return e.has(t);for(let r of e)if(t.call(null,r))return!0;return!1},t.keys=function(e){return new Set(e.keys())},t.values=function(e){return[...e.values()]},t.size=function(e,t){if(void 0===t)return e.size;{let r=0;for(let n of e)t.call(null,n)&&r++;return r}},t.isEmpty=function(e){return 0===e.size},t.forEach=function*(e,t){if(void 0===t)yield*e;else for(let r of e)t.call(null,r)&&(yield r)},t.clone=function(e){return new Map(e)},t.sortInAscendingOrder=function(e,t){let r=Array(...e);return r.sort((e,r)=>t.call(null,e,r)?-1:1),new Map(r)},t.sortInDescendingOrder=function(e,t){let r=Array(...e);return r.sort((e,r)=>t.call(null,e,r)?1:-1),new Map(r)};let n=r(3738)},9055(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XLink=t.SVG=t.MathML=t.XMLNS=t.XML=t.HTML=void 0,t.HTML="http://www.w3.org/1999/xhtml",t.XML="http://www.w3.org/XML/1998/namespace",t.XMLNS="http://www.w3.org/2000/xmlns/",t.MathML="http://www.w3.org/1998/Math/MathML",t.SVG="http://www.w3.org/2000/svg",t.XLink="http://www.w3.org/1999/xlink"},3975(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.enqueue=function(e,t){e.push(t)},t.dequeue=function(e){return e.shift()||null}},8344(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.append=function(e,t){e.add(t)},t.extend=function(e,t){t.forEach(e.add,e)},t.prepend=function(e,t){let r=new Set(e);e.clear(),e.add(t),r.forEach(e.add,e)},t.replace=function(e,t,r){let a=new Set;for(let i of e)(0,n.isFunction)(t)?t.call(null,i)?a.add(r):a.add(i):i===t?a.add(r):a.add(i);e.clear(),a.forEach(e.add,e)},t.insert=function(e,t,r){let n=new Set,a=0;for(let i of e)a===r&&n.add(t),n.add(i),a++;e.clear(),n.forEach(e.add,e)},t.remove=function(e,t){if((0,n.isFunction)(t)){let r=[];for(let n of e)t.call(null,n)&&r.push(n);for(let t of r)e.delete(t)}else e.delete(t)},t.empty=function(e){e.clear()},t.contains=function(e,t){if(!(0,n.isFunction)(t))return e.has(t);for(let r of e)if(t.call(null,r))return!0;return!1},t.size=function(e,t){if(void 0===t)return e.size;{let r=0;for(let n of e)t.call(null,n)&&r++;return r}},t.isEmpty=function(e){return 0===e.size},t.forEach=function*(e,t){if(void 0===t)yield*e;else for(let r of e)t.call(null,r)&&(yield r)},t.clone=function(e){return new Set(e)},t.sortInAscendingOrder=function(e,t){let r=Array(...e);return r.sort((e,r)=>t.call(null,e,r)?-1:1),new Set(r)},t.sortInDescendingOrder=function(e,t){let r=Array(...e);return r.sort((e,r)=>t.call(null,e,r)?1:-1),new Set(r)},t.isSubsetOf=a,t.isSupersetOf=function(e,t){return a(t,e)},t.intersection=function(e,t){let r=new Set;for(let n of e)t.has(n)&&r.add(n);return r},t.union=function(e,t){let r=new Set(e);return t.forEach(r.add,r),r},t.range=function(e,t){let r=new Set;for(let n=e;n<=t;n++)r.add(n);return r};let n=r(3738);function a(e,t){for(let r of e)if(!t.has(r))return!1;return!0}},9924(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.push=function(e,t){e.push(t)},t.pop=function(e){return e.pop()||null}},9927(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCodeUnitPrefix=s,t.isCodeUnitLessThan=function(e,t){if(s(t,e))return!1;if(s(e,t))return!0;for(let r=0;r<Math.min(e.length,t.length);r++){let n=e.charCodeAt(r),a=t.charCodeAt(r);if(n!==a)return n<a}return!1},t.isomorphicEncode=l,t.isASCIIString=u,t.asciiLowercase=d,t.asciiUppercase=function(e){let t="";for(let r of e){let e=r.codePointAt(0);void 0!==e&&e>=97&&e<=122?t+=String.fromCodePoint(e-32):t+=r}return t},t.asciiCaseInsensitiveMatch=function(e,t){return d(e)===d(t)},t.asciiEncode=function(e){return console.assert(u(e),"asciiEncode requires an ASCII string."),l(e)},t.asciiDecode=function(e){for(let t of e)console.assert((0,i.isASCIIByte)(t),"asciiDecode requires an ASCII byte sequence.");return(0,a.isomorphicDecode)(e)},t.stripNewlines=function(e){return e.replace(/[\n\r]/g,"")},t.normalizeNewlines=function(e){return e.replace(/\r\n/g,"\n").replace(/\r/g,"\n")},t.stripLeadingAndTrailingASCIIWhitespace=c,t.stripAndCollapseASCIIWhitespace=function(e){return c(e.replace(/[\t\n\f\r ]{2,}/g," "))},t.collectASequenceOfCodePoints=h,t.skipASCIIWhitespace=p,t.strictlySplit=function e(t,r){if(!(0,o.isArray)(t))return e(Array.from(t),r);let n={position:0},a=[],i=h(e=>r!==e,t,n);for(a.push(i);n.position<t.length;)console.assert(t[n.position]===r,"strictlySplit found no delimiter in input string."),n.position++,a.push(i=h(e=>r!==e,t,n));return a},t.splitAStringOnASCIIWhitespace=function e(t){if(!(0,o.isArray)(t))return e(Array.from(t));let r={position:0},a=[];for(p(t,r);r.position<t.length;){let e=h(e=>!n.ASCIIWhiteSpace.test(e),t,r);a.push(e),p(t,r)}return a},t.splitAStringOnCommas=function e(t){if(!(0,o.isArray)(t))return e(Array.from(t));let r={position:0},n=[];for(;r.position<t.length;){let e=h(e=>","!==e,t,r);n.push(c(e)),r.position<t.length&&(console.assert(","===t[r.position],"splitAStringOnCommas found no delimiter in input string."),r.position++)}return n},t.concatenate=function(e,t=""){return 0===e.length?"":e.join(t)};let n=r(4776),a=r(5089),i=r(8292),o=r(3738);function s(e,t){let r=0;for(;;){let n=r<e.length?e.charCodeAt(r):null,a=r<t.length?t.charCodeAt(r):null;if(null===n)return!0;if(n!==a)return!1;r++}}function l(e){let t=new Uint8Array(Array.from(e).length),r=0;for(let n of e){let e=n.codePointAt(0);console.assert(void 0!==e&&e<=255,"isomorphicEncode requires string bytes to be less than or equal to 0x00FF."),void 0!==e&&e<=255&&(t[r++]=e)}return t}function u(e){return/^[\u0000-\u007F]*$/.test(e)}function d(e){let t="";for(let r of e){let e=r.codePointAt(0);void 0!==e&&e>=65&&e<=90?t+=String.fromCodePoint(e+32):t+=r}return t}function c(e){return e.replace(/^[\t\n\f\r ]+/,"").replace(/[\t\n\f\r ]+$/,"")}function h(e,t,r){if(!(0,o.isArray)(t))return h(e,Array.from(t),r);let n="";for(;r.position<t.length&&e.call(null,t[r.position]);)n+=t[r.position],r.position++;return n}function p(e,t){h(e=>n.ASCIIWhiteSpace.test(e),e,t)}},360(e,t,r){"use strict";var n,a=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(n=function(e){return(n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),o=0;o<r.length;o++)"default"!==r[o]&&a(t,e,r[o]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.stack=t.set=t.queue=t.namespace=t.map=t.list=t.json=t.codePoint=t.byteSequence=t.byte=t.base64=void 0,t.base64=o(r(3053)),t.byte=o(r(8292)),t.byteSequence=o(r(5089)),t.codePoint=o(r(4776)),t.json=o(r(480)),t.list=o(r(7570)),t.map=o(r(8946)),t.namespace=o(r(9055)),t.queue=o(r(3975)),t.set=o(r(8344)),t.stack=o(r(9924)),t.string=o(r(9927))},2694(e,t,r){"use strict";t.urlSerializer=function(e,t=!1){let r=e.scheme+":";if(null!==e.host?(r+="//",s(e)&&(r+=e.username,""!==e.password&&(r+=":"+e.password),r+="@"),r+=function(e){return(0,n.isNumber)(e)?function(e){let t="",r=e;for(let e=1;e<=4;e++)t=(r%256).toString()+t,4!==e&&(t="."+t),r=Math.floor(r/256);return t}(e):(0,n.isArray)(e)?"["+function(e){let t="",r=null,n=-1,a=0,i=0;for(let t=0;t<8;t++)if(0===e[t]){a=1;for(let r=t+1;r<8&&0===e[r];r++)a++;a>i&&(i=a,n=t)}i>1&&(r=n);let o=!1;for(let n=0;n<8;n++)if(!o||0!==e[n]){if(o&&(o=!1),r===n){t+=0===n?"::":":",o=!0;continue}t+=e[n].toString(16),7!==n&&(t+=":")}return t}(e)+"]":e}(e.host),null!==e.port&&(r+=":"+e.port)):null===e.host&&"file"===e.scheme&&(r+="//"),e._cannotBeABaseURLFlag)r+=e.path[0];else for(let t of e.path)r+="/"+t;return null!==e.query&&(r+="?"+e.query),t||null===e.fragment||(r+="#"+e.fragment),r};let n=r(3738),a=r(7287),i=r(360),o=r(2841);function s(e){return""!==e.username||""!==e.password}},7287(e,t){"use strict";var r,n;t.OpaqueOrigin=t.ParserState=void 0,(n=r||(t.ParserState=r={}))[n.SchemeStart=0]="SchemeStart",n[n.Scheme=1]="Scheme",n[n.NoScheme=2]="NoScheme",n[n.SpecialRelativeOrAuthority=3]="SpecialRelativeOrAuthority",n[n.PathOrAuthority=4]="PathOrAuthority",n[n.Relative=5]="Relative",n[n.RelativeSlash=6]="RelativeSlash",n[n.SpecialAuthoritySlashes=7]="SpecialAuthoritySlashes",n[n.SpecialAuthorityIgnoreSlashes=8]="SpecialAuthorityIgnoreSlashes",n[n.Authority=9]="Authority",n[n.Host=10]="Host",n[n.Hostname=11]="Hostname",n[n.Port=12]="Port",n[n.File=13]="File",n[n.FileSlash=14]="FileSlash",n[n.FileHost=15]="FileHost",n[n.PathStart=16]="PathStart",n[n.Path=17]="Path",n[n.CannotBeABaseURLPath=18]="CannotBeABaseURLPath",n[n.Query=19]="Query",n[n.Fragment=20]="Fragment",t.OpaqueOrigin=["","",null,null]},1799(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompareCache=void 0;class r{_limit;_items=new Map;constructor(e=1e3){this._limit=e}check(e,t){if(this._items.get(e)===t)return!0;if(this._items.get(t)===e)return!1;let r=.5>Math.random();if(r?this._items.set(e,t):this._items.set(t,e),this._items.size>this._limit){let e=this._items.keys().next();e.done||this._items.delete(e.value)}return r}}t.CompareCache=r},5585(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedSizeSet=void 0;class r{_limit;_items=new Set;constructor(e=1e3){this._limit=e}add(e){if(this._items.add(e),this._items.size>this._limit){let e=this._items.values().next();e.done||this._items.delete(e.value)}return this}delete(e){return this._items.delete(e)}has(e){return this._items.has(e)}clear(){this._items.clear()}get size(){return this._items.size}forEach(e,t){this._items.forEach(r=>e.call(t,r,r,this))}*keys(){yield*this._items.keys()}*values(){yield*this._items.values()}*entries(){yield*this._items.entries()}*[Symbol.iterator](){yield*this._items}get[Symbol.toStringTag](){return"FixedSizeSet"}}t.FixedSizeSet=r},3362(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lazy=void 0,t.Lazy=class{_initialized=!1;_initFunc;_value;constructor(e){this._value=void 0,this._initFunc=e}get value(){return this._initialized||(this._value=this._initFunc(),this._initialized=!0),this._value}}},2293(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectCache=void 0;class r{_limit;_items=new Map;constructor(e=1e3){this._limit=e}get(e){return this._items.get(e)}set(e,t){if(this._items.set(e,t),this._items.size>this._limit){let e=this._items.keys().next();e.done||this._items.delete(e.value)}}delete(e){return this._items.delete(e)}has(e){return this._items.has(e)}clear(){this._items.clear()}get size(){return this._items.size}forEach(e,t){this._items.forEach((r,n)=>e.call(t,n,r))}*keys(){yield*this._items.keys()}*values(){yield*this._items.values()}*entries(){yield*this._items.entries()}*[Symbol.iterator](){yield*this._items}get[Symbol.toStringTag](){return"ObjectCache"}}t.ObjectCache=r},1251(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringWalker=void 0,t.StringWalker=class{_chars;_length;_pointer=0;_codePoint;_c;_remaining;_substring;constructor(e){this._chars=Array.from(e),this._length=this._chars.length}get eof(){return this._pointer>=this._length}get length(){return this._length}codePoint(){if(void 0===this._codePoint)if(this.eof)this._codePoint=-1;else{let e=this._chars[this._pointer].codePointAt(0);void 0!==e?this._codePoint=e:this._codePoint=-1}return this._codePoint}c(){return void 0===this._c&&(this._c=this.eof?"":this._chars[this._pointer]),this._c}remaining(){return void 0===this._remaining&&(this._remaining=this.eof?"":this._chars.slice(this._pointer+1).join("")),this._remaining}substring(){return void 0===this._substring&&(this._substring=this.eof?"":this._chars.slice(this._pointer).join("")),this._substring}get pointer(){return this._pointer}set pointer(e){e!==this._pointer&&(this._pointer=e,this._codePoint=void 0,this._c=void 0,this._remaining=void 0,this._substring=void 0)}}},3738(e,t,r){"use strict";t.StringWalker=t.CompareCache=t.FixedSizeSet=void 0,t.applyMixin=function(e,t,...r){Object.getOwnPropertyNames(t.prototype).forEach(n=>{if("constructor"!==n){if(-1!==r.indexOf(n)){let t=Object.getOwnPropertyDescriptor(e.prototype,n);t&&Object.defineProperty(e.prototype,"_"+n,t)}let a=Object.getOwnPropertyDescriptor(t.prototype,n);a&&Object.defineProperty(e.prototype,n,a)}})},t.applyDefaults=function e(t,r,n=!1){let a=function e(t){if(s(t))return t;if(u(t)){let r=[];for(let n of t)r.push(e(n));return r}if(!h(t))return t;{let r={};for(let n in t)if(t.hasOwnProperty(n)){let a=t[n];r[n]=e(a)}return r}}(t||{});return o(r,(t,r)=>{h(r)?a[t]=e(a[t],r,n):(n||void 0===a[t])&&(a[t]=r)}),a},t.forEachArray=function(e,t,r){e.forEach(t,r)},t.forEachObject=o,t.objectLength=function(e){return c(e)?e.size:Object.keys(e).length},t.isBoolean=function(e){return"boolean"==typeof e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isFunction=s,t.isObject=l,t.isArray=u,t.isSet=d,t.isMap=c,t.isEmpty=function(e){if(u(e))return!e.length;if(d(e))return!e.size;if(c(e))return!e.size;if(l(e)){for(let t in e)if(e.hasOwnProperty(t))return!1;return!0}return!1},t.isPlainObject=h,t.getValue=function(e){return s(e.valueOf)?e.valueOf():e},t.utf8Encode=function(e){let t=new Uint8Array(4*e.length),r=0;for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(a<128){t[r++]=a;continue}if(a<2048)t[r++]=a>>6|192;else{if(a>55295&&a<56320){if(++n>=e.length)throw Error("Incomplete surrogate pair.");let i=e.charCodeAt(n);if(i<56320||i>57343)throw Error("Invalid surrogate character.");a=65536+((1023&a)<<10)+(1023&i),t[r++]=a>>18|240,t[r++]=a>>12&63|128}else t[r++]=a>>12|224;t[r++]=a>>6&63|128}t[r++]=63&a|128}return t.subarray(0,r)},t.utf8Decode=function(e){let t="",r=0;for(;r<e.length;){var n=e[r++];if(n>127)if(n>191&&n<224){if(r>=e.length)throw Error("Incomplete 2-byte sequence.");n=(31&n)<<6|63&e[r++]}else if(n>223&&n<240){if(r+1>=e.length)throw Error("Incomplete 3-byte sequence.");n=(15&n)<<12|(63&e[r++])<<6|63&e[r++]}else if(n>239&&n<248){if(r+2>=e.length)throw Error("Incomplete 4-byte sequence.");n=(7&n)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++]}else throw Error("Unknown multi-byte start.");if(n<=65535)t+=String.fromCharCode(n);else if(n<=1114111)n-=65536,t+=String.fromCharCode(n>>10|55296),t+=String.fromCharCode(1023&n|56320);else throw Error("Code point exceeds UTF-16 limit.")}return t};var n=r(5585);Object.defineProperty(t,"FixedSizeSet",{enumerable:!0,get:function(){return n.FixedSizeSet}}),r(2293);var a=r(1799);Object.defineProperty(t,"CompareCache",{enumerable:!0,get:function(){return a.CompareCache}}),r(3362);var i=r(1251);function o(e,t,r){if(c(e))e.forEach((e,n)=>t.call(r,n,e));else for(let n in e)e.hasOwnProperty(n)&&t.call(r,n,e[n])}Object.defineProperty(t,"StringWalker",{enumerable:!0,get:function(){return i.StringWalker}});function s(e){return!!e&&"function"==typeof e}function l(e){let t=typeof e;return!!e&&("function"===t||"object"===t)}function u(e){return Array.isArray(e)}function d(e){return e instanceof Set}function c(e){return e instanceof Map}function h(e){if(l(e)){let t=Object.getPrototypeOf(e),r=t.constructor;return t&&r&&"function"==typeof r&&r instanceof r&&Function.prototype.toString.call(r)===Function.prototype.toString.call(Object)}return!1}},6366(e){"use strict";function t(){return null}function r(){return t}t.isRequired=t,e.exports={and:r,between:r,booleanSome:r,childrenHavePropXorChildren:r,childrenOf:r,childrenOfType:r,childrenSequenceOf:r,componentWithName:r,disallowedIf:r,elementType:r,empty:r,explicitNull:r,forbidExtraProps:Object,integer:r,keysOf:r,mutuallyExclusiveProps:r,mutuallyExclusiveTrueProps:r,nChildren:r,nonNegativeInteger:t,nonNegativeNumber:r,numericString:r,object:r,or:r,predicate:r,range:r,ref:r,requiredBy:r,restrictedProp:r,sequenceOf:r,shape:r,stringEndsWith:r,stringStartsWith:r,uniqueArray:r,uniqueArrayOf:r,valuesOf:r,withShape:r}},6221(e,t,r){e.exports=r(6366)},4028(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=l(e),o=i[0],s=i[1],u=new a((o+s)*3/4-s),d=0,c=s>0?o-4:o;for(r=0;r<c;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[d++]=t>>16&255,u[d++]=t>>8&255,u[d++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[d++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[d++]=t>>8&255,u[d++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,a=n%3,i=[],o=0,s=n-a;o<s;o+=16383)i.push(function(e,t,n){for(var a,i=[],o=t;o<n;o+=3)a=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(r[a>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return i.join("")}(e,o,o+16383>s?s:o+16383));return 1===a?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===a&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],a="u">typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=i.length;o<s;++o)r[o]=i[o],n[i.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},1429(e,t,r){"use strict";var n=r(4028),a=r(5801),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var n=e,a=t;if(("string"!=typeof a||""===a)&&(a="utf8"),!s.isEncoding(a))throw TypeError("Unknown encoding: "+a);var i=0|m(n,a),l=o(i),u=l.write(n,a);return u!==i&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(e)){var d=e;if(P(d,Uint8Array)){var f=new Uint8Array(d);return h(f.buffer,f.byteOffset,f.byteLength)}return c(d)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var g=e.valueOf&&e.valueOf();if(null!=g&&g!==e)return s.from(g,t,r);var y=function(e){if(s.isBuffer(e)){var t=0|p(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(y)return y;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),o(e<0?0:0|p(e))}function c(e){for(var t=e.length<0?0:0|p(e.length),r=o(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function m(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return E(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return T(e).length;default:if(a)return n?-1:E(e).length;t=(""+t).toLowerCase(),a=!0}}function f(e,t,r){var a,i,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var a="",i=t;i<r;++i)a+=_[e[i]];return a}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(127&e[a]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(e[a]);return n}(this,t,r);case"base64":return a=this,i=t,o=r,0===i&&o===a.length?n.fromByteArray(a):n.fromByteArray(a.slice(i,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),a="",i=0;i<n.length-1;i+=2)a+=String.fromCharCode(n[i]+256*n[i+1]);return a}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,a){var i;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r*=1)!=i&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(a)return -1;else r=e.length-1;else if(r<0)if(!a)return -1;else r=0;if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,a);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(a)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return v(e,[t],r,n,a)}throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,a){var i,o=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var d=-1;for(i=r;i<s;i++)if(u(e,i)===u(t,-1===d?0:i-d)){if(-1===d&&(d=i),i-d+1===l)return d*o}else -1!==d&&(i-=i-d),d=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){for(var c=!0,h=0;h<l;h++)if(u(e,i+h)!==u(t,h)){c=!1;break}if(c)return i}return -1}function b(e,t,r){r=Math.min(e.length,r);for(var n=[],a=t;a<r;){var i,o,s,l,u=e[a],d=null,c=u>239?4:u>223?3:u>191?2:1;if(a+c<=r)switch(c){case 1:u<128&&(d=u);break;case 2:(192&(i=e[a+1]))==128&&(l=(31&u)<<6|63&i)>127&&(d=l);break;case 3:i=e[a+1],o=e[a+2],(192&i)==128&&(192&o)==128&&(l=(15&u)<<12|(63&i)<<6|63&o)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:i=e[a+1],o=e[a+2],s=e[a+3],(192&i)==128&&(192&o)==128&&(192&s)==128&&(l=(15&u)<<18|(63&i)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(d=l)}null===d?(d=65533,c=1):d>65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|1023&d),n.push(d),a+=c}var h=n,p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var m="",f=0;f<p;)m+=String.fromCharCode.apply(String,h.slice(f,f+=4096));return m}function w(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function x(e,t,r,n,a,i){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function C(e,t,r,n,a,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function k(e,t,r,n,i){return t*=1,r>>>=0,i||C(e,t,r,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,r,n,23,4),r+4}function M(e,t,r,n,i){return t*=1,r>>>=0,i||C(e,t,r,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,r,n,52,8),r+8}t.hp=s,t.IS=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!s.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(P(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),P(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,a=0,i=Math.min(r,n);a<i;++a)if(e[a]!==t[a]){r=e[a],n=t[a];break}return r<n?-1:+(n<r)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),a=0;for(r=0;r<e.length;++r){var i=e[r];if(P(i,Uint8Array))a+i.length>n.length?s.from(i).copy(n,a):Uint8Array.prototype.set.call(n,i,a);else if(s.isBuffer(i))i.copy(n,a);else throw TypeError('"list" argument must be an Array of Buffers');a+=i.length}return n},s.byteLength=m,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):f.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,a){if(P(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,a>>>=0,this===e)return 0;for(var i=a-n,o=r-t,l=Math.min(i,o),u=this.slice(n,a),d=e.slice(t,r),c=0;c<l;++c)if(u[c]!==d[c]){i=u[c],o=d[c];break}return i<o?-1:+(o<i)},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a,i,o,s,l,u,d,c,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var a=e.length-r;n?(n=Number(n))>a&&(n=a):n=a;var i=t.length;n>i/2&&(n=i/2);for(var o=0;o<n;++o){var s,l=parseInt(t.substr(2*o,2),16);if((s=l)!=s)break;e[r+o]=l}return o}(this,e,t,r);case"utf8":case"utf-8":return a=t,i=r,I(E(e,this.length-a),this,a,i);case"ascii":case"latin1":case"binary":return o=t,s=r,I(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,o,s);case"base64":return l=t,u=r,I(T(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=t,c=r,I(function(e,t){for(var r,n,a=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,a.push(r%256),a.push(n);return a}(e,this.length-d),this,d,c);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],a=1,i=0;++i<t&&(a*=256);)n+=this[e+i]*a;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e+--t],a=1;t>0&&(a*=256);)n+=this[e+--t]*a;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],a=1,i=0;++i<t&&(a*=256);)n+=this[e+i]*a;return n>=(a*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=t,a=1,i=this[e+--n];n>0&&(a*=256);)i+=this[e+--n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),a.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),a.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),a.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),a.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var a=Math.pow(2,8*r)-1;x(this,e,t,r,a,0)}var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var a=Math.pow(2,8*r)-1;x(this,e,t,r,a,0)}var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var a=Math.pow(2,8*r-1);x(this,e,t,r,a-1,-a)}var i=0,o=1,s=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var a=Math.pow(2,8*r-1);x(this,e,t,r,a-1,-a)}var i=r-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return M(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return M(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var a=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),a},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var a,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var o=s.isBuffer(e)?e:s.from(e,n),l=o.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=o[a%l]}return this};var S=/[^+/0-9A-Za-z-_]/g;function E(e,t){t=t||1/0;for(var r,n=e.length,a=null,i=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!a){if(r>56319||o+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=(a-55296<<10|r-56320)+65536}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function T(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function I(e,t,r,n){for(var a=0;a<n&&!(a+r>=t.length)&&!(a>=e.length);++a)t[a+r]=e[a];return a}function P(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var _=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,a=0;a<16;++a)t[n+a]=e[r]+e[a];return t}()},9630(e,t,r){"use strict";var n=r(469),a=r(24),i=r(1530);e.exports=r(7009)||n.call(i,a)},4983(e,t,r){"use strict";var n=r(469),a=r(24),i=r(9630);e.exports=function(){return i(n,a,arguments)}},24(e){"use strict";e.exports=Function.prototype.apply},1530(e){"use strict";e.exports=Function.prototype.call},7196(e,t,r){"use strict";var n=r(469),a=r(6757),i=r(1530),o=r(9630);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new a("a function is required");return o(n,i,e)}},7009(e){"use strict";e.exports="u">typeof Reflect&&Reflect&&Reflect.apply},8682(e,t,r){"use strict";var n=r(4295),a=r(7196),i=a([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?a([r]):r}},6515(e,t,r){"use strict";r.r(t),r.d(t,{addEventListener:()=>l});var n=!!("u">typeof window&&window.document&&window.document.createElement),a=void 0;function i(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function o(e){this.target=e,this.events={}}o.prototype.getEventHandlers=function(e,t){var r=String(e)+" "+String(t?!0===t?100:(0|t.capture)+(t.passive<<1)+(t.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]},o.prototype.handleEvent=function(e,t,r){var n=this.getEventHandlers(e,t);n.handlers=n.nextHandlers,n.handlers.forEach(function(e){e&&e(r)})},o.prototype.add=function(e,t,r){var n=this,a=this.getEventHandlers(e,r);i(a),0===a.nextHandlers.length&&(a.handleEvent=this.handleEvent.bind(this,e,r),this.target.addEventListener(e,a.handleEvent,r)),a.nextHandlers.push(t);var o=!0;return function(){if(o){o=!1,i(a);var s=a.nextHandlers.indexOf(t);a.nextHandlers.splice(s,1),0===a.nextHandlers.length&&(n.target&&n.target.removeEventListener(e,a.handleEvent,r),a.handleEvent=void 0)}}};var s="__consolidated_events_handlers__";function l(e,t,r,i){e[s]||(e[s]=new o(e));var l=function(e){if(e)return(void 0===a&&(a=function(){if(!n||!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),r=function(){};window.addEventListener("testPassiveEventSupport",r,t),window.removeEventListener("testPassiveEventSupport",r,t)}catch(e){}return e}()),a)?e:!!e.capture}(i);return e[s].add(t,r,l)}},5956(e){"use strict";var t="%[a-f0-9]{2}",r=RegExp("("+t+")|([^%]+?)","gi"),n=RegExp("("+t+")+","gi");e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},a=n.exec(e);a;){try{t[a[0]]=decodeURIComponent(a[0])}catch(e){var i=function(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=(function e(t,r){try{return[decodeURIComponent(t.join(""))]}catch(e){}if(1===t.length)return t;r=r||1;var n=t.slice(0,r),a=t.slice(r);return Array.prototype.concat.call([],e(n),e(a))})(t,n).join("")).match(r)||[];return e}}(a[0]);i!==a[0]&&(t[a[0]]=i)}a=n.exec(e)}t["%C2"]="�";for(var o=Object.keys(t),s=0;s<o.length;s++){var l=o[s];e=e.replace(RegExp(l,"g"),t[l])}return e}(e)}}},75(e,t,r){"use strict";var n=r(9997),a=r(1742),i=r(6757),o=r(1233);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,d=arguments.length>6&&arguments[6],c=!!o&&o(e,t);if(n)n(e,t,{configurable:null===u&&c?c.configurable:!u,enumerable:null===s&&c?c.enumerable:!s,value:r,writable:null===l&&c?c.writable:!l});else if(!d&&(s||l||u))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},5806(e,t,r){"use strict";var n=r(3735),a="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,o=Array.prototype.concat,s=r(75),l=r(9118)(),u=function(e,t,r,n){if(t in e){if(!0===n){if(e[t]===r)return}else if("function"!=typeof n||"[object Function]"!==i.call(n)||!n())return}l?s(e,t,r,!0):s(e,t,r)},d=function(e,t){var r=arguments.length>2?arguments[2]:{},i=n(t);a&&(i=o.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;s+=1)u(e,i[s],t[i[s]],r[i[s]])};d.supportsDescriptors=!!l,e.exports=d},313(e,t,r){var n=r(1429).hp;e.exports=function(e){var t,r;return r={},a.m=t=[function(t,r){t.exports=e},function(e,t,r){"use strict";r.r(t),r.d(t,"isStringVr",function(){return i}),r.d(t,"isPrivateTag",function(){return o}),r.d(t,"parsePN",function(){return s}),r.d(t,"parseTM",function(){return l}),r.d(t,"parseDA",function(){return u}),r.d(t,"explicitElementToString",function(){return d}),r.d(t,"explicitDataSetToJS",function(){return c}),r.d(t,"createJPEGBasicOffsetTable",function(){return p}),r.d(t,"parseDicomDataSetExplicit",function(){return P}),r.d(t,"parseDicomDataSetImplicit",function(){return _}),r.d(t,"readFixedString",function(){return y}),r.d(t,"alloc",function(){return D}),r.d(t,"version",function(){return O}),r.d(t,"bigEndianByteArrayParser",function(){return A}),r.d(t,"ByteStream",function(){return N}),r.d(t,"sharedCopy",function(){return R}),r.d(t,"DataSet",function(){return w}),r.d(t,"findAndSetUNElementLength",function(){return g}),r.d(t,"findEndOfEncapsulatedElement",function(){return f}),r.d(t,"findItemDelimitationItemAndSetElementLength",function(){return x}),r.d(t,"littleEndianByteArrayParser",function(){return V}),r.d(t,"parseDicom",function(){return B}),r.d(t,"readDicomElementExplicit",function(){return I}),r.d(t,"readDicomElementImplicit",function(){return C}),r.d(t,"readEncapsulatedImageFrame",function(){return H}),r.d(t,"readEncapsulatedPixelData",function(){return q}),r.d(t,"readEncapsulatedPixelDataFromFragments",function(){return W}),r.d(t,"readPart10Header",function(){return F}),r.d(t,"readSequenceItemsExplicit",function(){return T}),r.d(t,"readSequenceItemsImplicit",function(){return S}),r.d(t,"readSequenceItem",function(){return k}),r.d(t,"readTag",function(){return m});var a={AE:!0,AS:!0,AT:!1,CS:!0,DA:!0,DS:!0,DT:!0,FL:!1,FD:!1,IS:!0,LO:!0,LT:!0,OB:!1,OD:!1,OF:!1,OW:!1,PN:!0,SH:!0,SL:!1,SQ:!1,SS:!1,ST:!0,TM:!0,UI:!0,UL:!1,UN:void 0,UR:!0,US:!1,UT:!0},i=function(e){return a[e]},o=function(e){if(isNaN(e=parseInt(e[4],16)))throw"dicomParser.isPrivateTag: cannot parse last character of group";return e%2==1},s=function(e){if(void 0!==e)return{familyName:(e=e.split("^"))[0],givenName:e[1],middleName:e[2],prefix:e[3],suffix:e[4]}};function l(e,t){if(2<=e.length){var r=parseInt(e.substring(0,2),10),n=4<=e.length?parseInt(e.substring(2,4),10):void 0,a=6<=e.length?parseInt(e.substring(4,6),10):void 0,i=8<=e.length?e.substring(7,13):void 0,i=i?parseInt(i,10)*Math.pow(10,6-i.length):void 0;if(t&&(isNaN(r)||void 0!==n&&isNaN(n)||void 0!==a&&isNaN(a)||void 0!==i&&isNaN(i)||r<0||23<r||n&&(n<0||59<n)||a&&(a<0||59<a)||i&&(i<0||999999<i)))throw"invalid TM '".concat(e,"'");return{hours:r,minutes:n,seconds:a,fractionalSeconds:i}}if(t)throw"invalid TM '".concat(e,"'")}function u(e,t){if(e&&8===e.length){var r=parseInt(e.substring(0,4),10),n=parseInt(e.substring(4,6),10),a=parseInt(e.substring(6,8),10);if(t&&!0!=(!isNaN(r)&&0<n&&n<=12&&0<a&&a<=function(e,t){switch(e){case 2:return t%4==0&&t%100||t%400==0?29:28;case 9:case 4:case 6:case 11:return 30;default:return 31}}(n,r)))throw"invalid DA '".concat(e,"'");return{year:r,month:n,day:a}}if(t)throw"invalid DA '".concat(e,"'")}function d(e,t){if(void 0===e||void 0===t)throw"dicomParser.explicitElementToString: missing required parameters";if(void 0===t.vr)throw"dicomParser.explicitElementToString: cannot convert implicit element to string";var r,n=t.vr,a=t.tag;function o(t,r){for(var n="",i=0;i<t;i++)0!==i&&(n+="/"),n+=r.call(e,a,i).toString();return n}if(!0===i(n))r=e.string(a);else{if("AT"===n){var s=e.uint32(a);return void 0===s?void 0:"x".concat((s=s<0?0xffffffff+s+1:s).toString(16).toUpperCase())}"US"===n?r=o(t.length/2,e.uint16):"SS"===n?r=o(t.length/2,e.int16):"UL"===n?r=o(t.length/4,e.uint32):"SL"===n?r=o(t.length/4,e.int32):"FD"===n?r=o(t.length/8,e.double):"FL"===n&&(r=o(t.length/4,e.float))}return r}function c(e,t){if(void 0===e)throw"dicomParser.explicitDataSetToJS: missing required parameter dataSet";t=t||{omitPrivateAttibutes:!0,maxElementLength:128};var r,n={};for(r in e.elements){var a=e.elements[r];if(!0!==t.omitPrivateAttibutes||!o(r))if(a.items){for(var i=[],s=0;s<a.items.length;s++)i.push(c(a.items[s].dataSet,t));n[r]=i}else{var l=void 0;a.length<t.maxElementLength&&(l=d(e,a)),n[r]=void 0!==l?l:{dataOffset:a.dataOffset,length:a.length}}}return n}function h(e,t){return 255===e.byteArray[t]&&217===e.byteArray[t+1]}function p(e,t,r){if(void 0===e)throw"dicomParser.createJPEGBasicOffsetTable: missing required parameter dataSet";if(void 0===t)throw"dicomParser.createJPEGBasicOffsetTable: missing required parameter pixelDataElement";if("x7fe00010"!==t.tag)throw"dicomParser.createJPEGBasicOffsetTable: parameter 'pixelDataElement' refers to non pixel data tag (expected tag = x7fe00010'";if(!0!==t.encapsulatedPixelData||!0!==t.hadUndefinedLength||void 0===t.basicOffsetTable||void 0===t.fragments||t.fragments.length<=0)throw"dicomParser.createJPEGBasicOffsetTable: parameter 'pixelDataElement' refers to pixel data element that does not have encapsulated pixel data";if(r&&r.length<=0)throw"dicomParser.createJPEGBasicOffsetTable: parameter 'fragments' must not be zero length";r=r||t.fragments;for(var n=[],a=0;;){n.push(t.fragments[a].offset);var i=function(e,t,r){for(var n,a=r;a<t.fragments.length;a++)if(n=a,!(!h(e,(n=t.fragments[n]).position+n.length-2)&&!h(e,n.position+n.length-3)))return a}(e,t,a);if(void 0===i||i===t.fragments.length-1)return n;a=i+1}}function m(e){if(void 0===e)throw"dicomParser.readTag: missing required parameter 'byteStream'";var t=256*e.readUint16()*256,e=e.readUint16();return"x".concat("00000000".concat((t+e).toString(16)).substr(-8))}function f(e,t,r){if(void 0===e)throw"dicomParser.findEndOfEncapsulatedElement: missing required parameter 'byteStream'";if(void 0===t)throw"dicomParser.findEndOfEncapsulatedElement: missing required parameter 'element'";if(t.encapsulatedPixelData=!0,t.basicOffsetTable=[],t.fragments=[],"xfffee000"!==m(e))throw"dicomParser.findEndOfEncapsulatedElement: basic offset table not found";for(var n=e.readUint32()/4,a=0;a<n;a++){var i=e.readUint32();t.basicOffsetTable.push(i)}for(var o=e.position;e.position<e.byteArray.length;){var s=m(e),l=e.readUint32();if("xfffee0dd"===s)return e.seek(l),void(t.length=e.position-t.dataOffset);if("xfffee000"!==s)return r&&r.push("unexpected tag ".concat(s," while searching for end of pixel data element with undefined length")),l>e.byteArray.length-e.position&&(l=e.byteArray.length-e.position),t.fragments.push({offset:e.position-o-8,position:e.position,length:l}),e.seek(l),void(t.length=e.position-t.dataOffset);t.fragments.push({offset:e.position-o-8,position:e.position,length:l}),e.seek(l)}r&&r.push("pixel data element ".concat(t.tag," missing sequence delimiter tag xfffee0dd"))}function g(e,t){if(void 0===e)throw"dicomParser.findAndSetUNElementLength: missing required parameter 'byteStream'";for(var r=e.byteArray.length-8;e.position<=r;)if(65534===e.readUint16()&&57565===e.readUint16())return 0!==e.readUint32()&&e.warnings("encountered non zero length following item delimiter at position ".concat(e.position-4," while reading element of undefined length with tag ").concat(t.tag)),void(t.length=e.position-t.dataOffset);t.length=e.byteArray.length-t.dataOffset,e.seek(e.byteArray.length-e.position)}function y(e,t,r){if(r<0)throw"dicomParser.readFixedString - length cannot be less than 0";if(t+r>e.length)throw"dicomParser.readFixedString: attempt to read past end of buffer";for(var n,a="",i=0;i<r;i++){if(0===(n=e[t+i]))return t+=r,a;a+=String.fromCharCode(n)}return a}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t){return void 0!==e.parser?e.parser:t}var w=function(){var e,t;function r(e,t,n){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),this.byteArrayParser=e,this.byteArray=t,this.elements=n}return e=[{key:"uint16",value:function(e,t){if(t=void 0!==t?t:0,(e=this.elements[e])&&0!==e.length)return b(e,this.byteArrayParser).readUint16(this.byteArray,e.dataOffset+2*t)}},{key:"int16",value:function(e,t){if(t=void 0!==t?t:0,(e=this.elements[e])&&0!==e.length)return b(e,this.byteArrayParser).readInt16(this.byteArray,e.dataOffset+2*t)}},{key:"uint32",value:function(e,t){if(t=void 0!==t?t:0,(e=this.elements[e])&&0!==e.length)return b(e,this.byteArrayParser).readUint32(this.byteArray,e.dataOffset+4*t)}},{key:"int32",value:function(e,t){if(t=void 0!==t?t:0,(e=this.elements[e])&&0!==e.length)return b(e,this.byteArrayParser).readInt32(this.byteArray,e.dataOffset+4*t)}},{key:"float",value:function(e,t){if(t=void 0!==t?t:0,(e=this.elements[e])&&0!==e.length)return b(e,this.byteArrayParser).readFloat(this.byteArray,e.dataOffset+4*t)}},{key:"double",value:function(e,t){if(t=void 0!==t?t:0,(e=this.elements[e])&&0!==e.length)return b(e,this.byteArrayParser).readDouble(this.byteArray,e.dataOffset+8*t)}},{key:"numStringValues",value:function(e){if((e=this.elements[e])&&0<e.length)return null===(e=y(this.byteArray,e.dataOffset,e.length).match(/\\/g))?1:e.length+1}},{key:"string",value:function(e,t){return(e=this.elements[e])&&e.Value?e.Value:e&&0<e.length?(e=y(this.byteArray,e.dataOffset,e.length),0<=t?e.split("\\")[t].trim():e.trim()):void 0}},{key:"text",value:function(e,t){if((e=this.elements[e])&&0<e.length)return e=y(this.byteArray,e.dataOffset,e.length),0<=t?e.split("\\")[t].replace(/ +$/,""):e.replace(/ +$/,"")}},{key:"floatString",value:function(e,t){var r=this.elements[e];if(r&&0<r.length&&void 0!==(t=this.string(e,t=void 0!==t?t:0)))return parseFloat(t)}},{key:"intString",value:function(e,t){var r=this.elements[e];if(r&&0<r.length&&void 0!==(t=this.string(e,t=void 0!==t?t:0)))return parseInt(t)}},{key:"attributeTag",value:function(e){var t=this.elements[e];if(t&&4===t.length){var r=b(t,this.byteArrayParser).readUint16,e=this.byteArray,t=t.dataOffset;return"x".concat("00000000".concat((256*r(e,t)*256+r(e,t+2)).toString(16)).substr(-8))}}}],v(r.prototype,e),t&&v(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}();function x(e,t){if(void 0===e)throw"dicomParser.readDicomElementImplicit: missing required parameter 'byteStream'";for(var r=e.byteArray.length-8;e.position<=r;)if(65534===e.readUint16()&&57357===e.readUint16())return 0!==e.readUint32()&&e.warnings("encountered non zero length following item delimiter at position ".concat(e.position-4," while reading element of undefined length with tag ").concat(t.tag)),void(t.length=e.position-t.dataOffset);t.length=e.byteArray.length-t.dataOffset,e.seek(e.byteArray.length-e.position)}function C(e,t,r){if(void 0===e)throw"dicomParser.readDicomElementImplicit: missing required parameter 'byteStream'";var n,a=m(e),a={tag:a,vr:void 0!==r?r(a):void 0,length:e.readUint32(),dataOffset:e.position};return 0xffffffff===a.length&&(a.hadUndefinedLength=!0),a.tag===t||((void 0!==(n=a).vr?"SQ"!==n.vr:e.position+4<=e.byteArray.length?(n=m(e),e.seek(-4),"xfffee000"!==n&&"xfffee0dd"!==n):(e.warnings.push("eof encountered before finding sequence item tag or sequence delimiter tag in peeking to determine VR"),!0))||o(a.tag)&&!a.hadUndefinedLength?a.hadUndefinedLength?x(e,a):e.seek(a.length):(S(e,a,r),o(a.tag)&&(a.items=void 0))),a}function k(e){if(void 0===e)throw"dicomParser.readSequenceItem: missing required parameter 'byteStream'";var t={tag:m(e),length:e.readUint32(),dataOffset:e.position};if("xfffee000"!==t.tag)throw"dicomParser.readSequenceItem: item tag (FFFE,E000) not found at offset ".concat(e.position);return t}function M(e,t){var r=k(e);return 0xffffffff===r.length?(r.hadUndefinedLength=!0,r.dataSet=function(e,t){for(var r={};e.position<e.byteArray.length;){var n=C(e,void 0,t);if("xfffee00d"===(r[n.tag]=n).tag)return new w(e.byteArrayParser,e.byteArray,r)}return e.warnings.push("eof encountered before finding sequence item delimiter in sequence item of undefined length"),new w(e.byteArrayParser,e.byteArray,r)}(e,t),r.length=e.position-r.dataOffset):(r.dataSet=new w(e.byteArrayParser,e.byteArray,{}),_(r.dataSet,e,e.position+r.length,{vrCallback:t})),r}function S(e,t,r){if(void 0===e)throw"dicomParser.readSequenceItemsImplicit: missing required parameter 'byteStream'";if(void 0===t)throw"dicomParser.readSequenceItemsImplicit: missing required parameter 'element'";t.items=[],(0xffffffff===t.length?function(e,t,r){for(;e.position+4<=e.byteArray.length;){var n=m(e);if(e.seek(-4),"xfffee0dd"===n)return t.length=e.position-t.dataOffset,e.seek(8);n=M(e,r),t.items.push(n)}e.warnings.push("eof encountered before finding sequence delimiter in sequence of undefined length"),t.length=e.byteArray.length-t.dataOffset}:function(e,t,r){for(var n=t.dataOffset+t.length;e.position<n;){var a=M(e,r);t.items.push(a)}})(e,t,r)}function E(e,t){var r=k(e);return 0xffffffff===r.length?(r.hadUndefinedLength=!0,r.dataSet=function(e,t){for(var r={};e.position<e.byteArray.length;){var n=I(e,t);if("xfffee00d"===(r[n.tag]=n).tag)return new w(e.byteArrayParser,e.byteArray,r)}return t.push("eof encountered before finding item delimiter tag while reading sequence item of undefined length"),new w(e.byteArrayParser,e.byteArray,r)}(e,t),r.length=e.position-r.dataOffset):(r.dataSet=new w(e.byteArrayParser,e.byteArray,{}),P(r.dataSet,e,e.position+r.length)),r}function T(e,t,r){if(void 0===e)throw"dicomParser.readSequenceItemsExplicit: missing required parameter 'byteStream'";if(void 0===t)throw"dicomParser.readSequenceItemsExplicit: missing required parameter 'element'";t.items=[],(0xffffffff===t.length?function(e,t,r){for(;e.position+4<=e.byteArray.length;){var n=m(e);if(e.seek(-4),"xfffee0dd"===n)return t.length=e.position-t.dataOffset,e.seek(8);n=E(e,r),t.items.push(n)}r.push("eof encountered before finding sequence delimitation tag while reading sequence of undefined length"),t.length=e.position-t.dataOffset}:function(e,t,r){for(var n=t.dataOffset+t.length;e.position<n;){var a=E(e,r);t.items.push(a)}})(e,t,r)}function I(e,t,r){if(void 0===e)throw"dicomParser.readDicomElementExplicit: missing required parameter 'byteStream'";var n,a={tag:m(e),vr:e.readFixedString(2)};return 2==("OB"===(n=a.vr)||"OD"===n||"OL"===n||"OW"===n||"SQ"===n||"OF"===n||"UC"===n||"UR"===n||"UT"===n||"UN"===n?4:2)?a.length=e.readUint16():(e.seek(2),a.length=e.readUint32()),a.dataOffset=e.position,0xffffffff===a.length&&(a.hadUndefinedLength=!0),a.tag===r||("SQ"===a.vr?T(e,a,t):0xffffffff===a.length?"x7fe00010"===a.tag?f(e,a,t):("UN"===a.vr?S:x)(e,a):e.seek(a.length)),a}function P(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};if(r=void 0===r?t.byteArray.length:r,void 0===t)throw"dicomParser.parseDicomDataSetExplicit: missing required parameter 'byteStream'";if(r<t.position||r>t.byteArray.length)throw"dicomParser.parseDicomDataSetExplicit: invalid value for parameter 'maxP osition'";for(var a=e.elements;t.position<r;){var i=I(t,e.warnings,n.untilTag);if((a[i.tag]=i).tag===n.untilTag)return}if(t.position>r)throw"dicomParser:parseDicomDataSetExplicit: buffer overrun"}function _(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};if(r=void 0===r?e.byteArray.length:r,void 0===t)throw"dicomParser.parseDicomDataSetImplicit: missing required parameter 'byteStream'";if(r<t.position||r>t.byteArray.length)throw"dicomParser.parseDicomDataSetImplicit: invalid value for parameter 'maxPosition'";for(var a=e.elements;t.position<r;){var i=C(t,n.untilTag,n.vrCallback);if((a[i.tag]=i).tag===n.untilTag)return}}function D(e,t){if(void 0!==n&&e instanceof n)return n.alloc(t);if(e instanceof Uint8Array)return new Uint8Array(t);throw"dicomParser.alloc: unknown type for byteArray"}var O="1.8.12",A={readUint16:function(e,t){if(t<0)throw"bigEndianByteArrayParser.readUint16: position cannot be less than 0";if(t+2>e.length)throw"bigEndianByteArrayParser.readUint16: attempt to read past end of buffer";return(e[t]<<8)+e[t+1]},readInt16:function(e,t){if(t<0)throw"bigEndianByteArrayParser.readInt16: position cannot be less than 0";if(t+2>e.length)throw"bigEndianByteArrayParser.readInt16: attempt to read past end of buffer";return 32768&(t=(e[t]<<8)+e[t+1])?t-65535-1:t},readUint32:function(e,t){if(t<0)throw"bigEndianByteArrayParser.readUint32: position cannot be less than 0";if(t+4>e.length)throw"bigEndianByteArrayParser.readUint32: attempt to read past end of buffer";return 256*(256*(256*e[t]+e[t+1])+e[t+2])+e[t+3]},readInt32:function(e,t){if(t<0)throw"bigEndianByteArrayParser.readInt32: position cannot be less than 0";if(t+4>e.length)throw"bigEndianByteArrayParser.readInt32: attempt to read past end of buffer";return(e[t]<<24)+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]},readFloat:function(e,t){if(t<0)throw"bigEndianByteArrayParser.readFloat: position cannot be less than 0";if(t+4>e.length)throw"bigEndianByteArrayParser.readFloat: attempt to read past end of buffer";var r=new Uint8Array(4);return r[3]=e[t],r[2]=e[t+1],r[1]=e[t+2],r[0]=e[t+3],new Float32Array(r.buffer)[0]},readDouble:function(e,t){if(t<0)throw"bigEndianByteArrayParser.readDouble: position cannot be less than 0";if(t+8>e.length)throw"bigEndianByteArrayParser.readDouble: attempt to read past end of buffer";var r=new Uint8Array(8);return r[7]=e[t],r[6]=e[t+1],r[5]=e[t+2],r[4]=e[t+3],r[3]=e[t+4],r[2]=e[t+5],r[1]=e[t+6],r[0]=e[t+7],new Float64Array(r.buffer)[0]}};function R(e,t,r){if(void 0!==n&&e instanceof n)return e.slice(t,t+r);if(e instanceof Uint8Array)return new Uint8Array(e.buffer,e.byteOffset+t,r);throw"dicomParser.from: unknown type for byteArray"}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var N=function(){var e,t;function r(e,t,a){if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),void 0===e)throw"dicomParser.ByteStream: missing required parameter 'byteArrayParser'";if(void 0===t)throw"dicomParser.ByteStream: missing required parameter 'byteArray'";if(t instanceof Uint8Array==!1&&(void 0===n||t instanceof n==!1))throw"dicomParser.ByteStream: parameter byteArray is not of type Uint8Array or Buffer";if(a<0)throw"dicomParser.ByteStream: parameter 'position' cannot be less than 0";if(a>=t.length)throw"dicomParser.ByteStream: parameter 'position' cannot be greater than or equal to 'byteArray' length";this.byteArrayParser=e,this.byteArray=t,this.position=a||0,this.warnings=[]}return e=[{key:"seek",value:function(e){if(this.position+e<0)throw"dicomParser.ByteStream.prototype.seek: cannot seek to position < 0";this.position+=e}},{key:"readByteStream",value:function(e){if(this.position+e>this.byteArray.length)throw"dicomParser.ByteStream.prototype.readByteStream: readByteStream - buffer overread";var t=R(this.byteArray,this.position,e);return this.position+=e,new r(this.byteArrayParser,t)}},{key:"getSize",value:function(){return this.byteArray.length}},{key:"readUint16",value:function(){var e=this.byteArrayParser.readUint16(this.byteArray,this.position);return this.position+=2,e}},{key:"readUint32",value:function(){var e=this.byteArrayParser.readUint32(this.byteArray,this.position);return this.position+=4,e}},{key:"readFixedString",value:function(e){var t=y(this.byteArray,this.position,e);return this.position+=e,t}}],L(r.prototype,e),t&&L(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}(),V={readUint16:function(e,t){if(t<0)throw"littleEndianByteArrayParser.readUint16: position cannot be less than 0";if(t+2>e.length)throw"littleEndianByteArrayParser.readUint16: attempt to read past end of buffer";return e[t]+256*e[t+1]},readInt16:function(e,t){if(t<0)throw"littleEndianByteArrayParser.readInt16: position cannot be less than 0";if(t+2>e.length)throw"littleEndianByteArrayParser.readInt16: attempt to read past end of buffer";return 32768&(t=e[t]+(e[t+1]<<8))?t-65535-1:t},readUint32:function(e,t){if(t<0)throw"littleEndianByteArrayParser.readUint32: position cannot be less than 0";if(t+4>e.length)throw"littleEndianByteArrayParser.readUint32: attempt to read past end of buffer";return e[t]+256*e[t+1]+256*e[t+2]*256+256*e[t+3]*65536},readInt32:function(e,t){if(t<0)throw"littleEndianByteArrayParser.readInt32: position cannot be less than 0";if(t+4>e.length)throw"littleEndianByteArrayParser.readInt32: attempt to read past end of buffer";return e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24)},readFloat:function(e,t){if(t<0)throw"littleEndianByteArrayParser.readFloat: position cannot be less than 0";if(t+4>e.length)throw"littleEndianByteArrayParser.readFloat: attempt to read past end of buffer";var r=new Uint8Array(4);return r[0]=e[t],r[1]=e[t+1],r[2]=e[t+2],r[3]=e[t+3],new Float32Array(r.buffer)[0]},readDouble:function(e,t){if(t<0)throw"littleEndianByteArrayParser.readDouble: position cannot be less than 0";if(t+8>e.length)throw"littleEndianByteArrayParser.readDouble: attempt to read past end of buffer";var r=new Uint8Array(8);return r[0]=e[t],r[1]=e[t+1],r[2]=e[t+2],r[3]=e[t+3],r[4]=e[t+4],r[5]=e[t+5],r[6]=e[t+6],r[7]=e[t+7],new Float64Array(r.buffer)[0]}};function F(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e)throw"dicomParser.readPart10Header: missing required parameter 'byteArray'";var r=t.TransferSyntaxUID,n=new N(V,e);return function(){var e=function(){if(132>=n.getSize()&&r)return!1;if(n.seek(128),"DICM"===n.readFixedString(4))return!0;if(!(t||{}).TransferSyntaxUID)throw"dicomParser.readPart10Header: DICM prefix not found at location 132 - this is not a valid DICOM P10 file.";return n.seek(0),!1}(),a=[],i={};if(!e)return n.position=0,{elements:{x00020010:{tag:"x00020010",vr:"UI",Value:r}},warnings:a};for(;n.position<n.byteArray.length;){var o=n.position,s=I(n,a);if("x0002ffff"<s.tag){n.position=o;break}s.parser=V,i[s.tag]=s}return(e=new w(n.byteArrayParser,n.byteArray,i)).warnings=n.warnings,e.position=n.position,e}()}function B(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e)throw Error("dicomParser.parseDicom: missing required parameter 'byteArray'");var n,a=function(t){if(void 0===t.elements.x00020010)throw Error("dicomParser.parseDicom: missing required meta header attribute 0002,0010");return(t=t.elements.x00020010)&&t.Value||y(e,t.dataOffset,t.length)},i=n=F(e,t),o=function(n){var i=a(n),o="1.2.840.10008.1.2"!==i,i=function(n,a){var i="[object process]"===Object.prototype.toString.call("u">typeof process?process:0);if("1.2.840.10008.1.2.1.99"!==n)return new N("1.2.840.10008.1.2.2"===n?A:V,e,a);if(t&&t.inflater)return new N(V,n=t.inflater(e,a),0);if(!0==i){var o=r(0),s=R(e,a,e.length-a),o=o.inflateRawSync(s),s=D(e,o.length+a);return e.copy(s,0,0,a),o.copy(s,a),new N(V,s,0)}if("u"<typeof pako)throw"dicomParser.parseDicom: no inflater available to handle deflate transfer syntax";return o=e.slice(a),(o=D(e,(s=pako.inflateRaw(o)).length+a)).set(e.slice(0,a),0),o.set(s,a),new N(V,o,0)}(i,n.position),n=new w(i.byteArrayParser,i.byteArray,{});n.warnings=i.warnings;try{(o?P:_)(n,i,i.byteArray.length,t)}catch(e){throw{exception:e,dataSet:n}}return n}(n);for(var s in i.elements)i.elements.hasOwnProperty(s)&&(o.elements[s]=i.elements[s]);return void 0!==i.warnings&&(o.warnings=i.warnings.concat(o.warnings)),o}var j=function(e,t,r){for(var n=0,a=t;a<t+r;a++)n+=e[a].length;return n};function W(e,t,r,n,a){if(a=a||t.fragments,void 0===e)throw"dicomParser.readEncapsulatedPixelDataFromFragments: missing required parameter 'dataSet'";if(void 0===t)throw"dicomParser.readEncapsulatedPixelDataFromFragments: missing required parameter 'pixelDataElement'";if(void 0===r)throw"dicomParser.readEncapsulatedPixelDataFromFragments: missing required parameter 'startFragmentIndex'";if(void 0===(n=n||1))throw"dicomParser.readEncapsulatedPixelDataFromFragments: missing required parameter 'numFragments'";if("x7fe00010"!==t.tag)throw"dicomParser.readEncapsulatedPixelDataFromFragments: parameter 'pixelDataElement' refers to non pixel data tag (expected tag = x7fe00010";if(!0!==t.encapsulatedPixelData||!0!==t.hadUndefinedLength||void 0===t.basicOffsetTable||void 0===t.fragments||t.fragments.length<=0)throw"dicomParser.readEncapsulatedPixelDataFromFragments: parameter 'pixelDataElement' refers to pixel data element that does not have encapsulated pixel data";if(r<0)throw"dicomParser.readEncapsulatedPixelDataFromFragments: parameter 'startFragmentIndex' must be >= 0";if(r>=t.fragments.length)throw"dicomParser.readEncapsulatedPixelDataFromFragments: parameter 'startFragmentIndex' must be < number of fragments";if(n<1)throw"dicomParser.readEncapsulatedPixelDataFromFragments: parameter 'numFragments' must be > 0";if(r+n>t.fragments.length)throw"dicomParser.readEncapsulatedPixelDataFromFragments: parameter 'startFragment' + 'numFragments' < number of fragments";var i=new N(e.byteArrayParser,e.byteArray,t.dataOffset),t=k(i);if("xfffee000"!==t.tag)throw"dicomParser.readEncapsulatedPixelData: missing basic offset table xfffee000";i.seek(t.length);var o=i.position;if(1===n)return R(i.byteArray,o+a[r].offset+8,a[r].length);for(var t=j(a,r,n),s=D(i.byteArray,t),l=0,u=r;u<r+n;u++)for(var d=o+a[u].offset+8,c=0;c<a[u].length;c++)s[l++]=i.byteArray[d++];return s}var U=function(e,t){for(var r=0;r<e.length;r++)if(e[r].offset===t)return r},z=function(e,t,r,n){if(e===t.length-1)return r.length-n;for(var a=t[e+1],i=n+1;i<r.length;i++)if(r[i].offset===a)return i-n;throw"dicomParser.calculateNumberOfFragmentsForFrame: could not find fragment with offset matching basic offset table"};function H(e,t,r,n,a){if(n=n||t.basicOffsetTable,a=a||t.fragments,void 0===e)throw"dicomParser.readEncapsulatedImageFrame: missing required parameter 'dataSet'";if(void 0===t)throw"dicomParser.readEncapsulatedImageFrame: missing required parameter 'pixelDataElement'";if(void 0===r)throw"dicomParser.readEncapsulatedImageFrame: missing required parameter 'frameIndex'";if(void 0===n)throw"dicomParser.readEncapsulatedImageFrame: parameter 'pixelDataElement' does not have basicOffsetTable";if("x7fe00010"!==t.tag)throw"dicomParser.readEncapsulatedImageFrame: parameter 'pixelDataElement' refers to non pixel data tag (expected tag = x7fe00010)";if(!0!==t.encapsulatedPixelData)throw"dicomParser.readEncapsulatedImageFrame: parameter 'pixelDataElement' refers to pixel data element that does not have encapsulated pixel data";if(!0!==t.hadUndefinedLength)throw"dicomParser.readEncapsulatedImageFrame: parameter 'pixelDataElement' refers to pixel data element that does not have undefined length";if(void 0===t.fragments)throw"dicomParser.readEncapsulatedImageFrame: parameter 'pixelDataElement' refers to pixel data element that does not have fragments";if(0===n.length)throw"dicomParser.readEncapsulatedImageFrame: basicOffsetTable has zero entries";if(r<0)throw"dicomParser.readEncapsulatedImageFrame: parameter 'frameIndex' must be >= 0";if(r>=n.length)throw"dicomParser.readEncapsulatedImageFrame: parameter 'frameIndex' must be < basicOffsetTable.length";var i=n[r],i=U(a,i);if(void 0===i)throw"dicomParser.readEncapsulatedImageFrame: unable to find fragment that matches basic offset table entry";return W(e,t,i,z(r,n,a,i),a)}var G=!1;function q(e,t,r){if(G||(G=!0,console&&console.log&&console.log("WARNING: dicomParser.readEncapsulatedPixelData() has been deprecated")),void 0===e)throw"dicomParser.readEncapsulatedPixelData: missing required parameter 'dataSet'";if(void 0===t)throw"dicomParser.readEncapsulatedPixelData: missing required parameter 'element'";if(void 0===r)throw"dicomParser.readEncapsulatedPixelData: missing required parameter 'frame'";if("x7fe00010"!==t.tag)throw"dicomParser.readEncapsulatedPixelData: parameter 'element' refers to non pixel data tag (expected tag = x7fe00010)";if(!0!==t.encapsulatedPixelData||!0!==t.hadUndefinedLength||void 0===t.basicOffsetTable||void 0===t.fragments)throw"dicomParser.readEncapsulatedPixelData: parameter 'element' refers to pixel data element that does not have encapsulated pixel data";if(r<0)throw"dicomParser.readEncapsulatedPixelData: parameter 'frame' must be >= 0";return 0!==t.basicOffsetTable.length?H(e,t,r):W(e,t,0,t.fragments.length)}t.default={isStringVr:i,isPrivateTag:o,parsePN:s,parseTM:l,parseDA:u,explicitElementToString:d,explicitDataSetToJS:c,createJPEGBasicOffsetTable:p,parseDicomDataSetExplicit:P,parseDicomDataSetImplicit:_,readFixedString:y,alloc:D,version:O,bigEndianByteArrayParser:A,ByteStream:N,sharedCopy:R,DataSet:w,findAndSetUNElementLength:g,findEndOfEncapsulatedElement:f,findItemDelimitationItemAndSetElementLength:x,littleEndianByteArrayParser:V,parseDicom:B,readDicomElementExplicit:I,readDicomElementImplicit:C,readEncapsulatedImageFrame:H,readEncapsulatedPixelData:q,readEncapsulatedPixelDataFromFragments:W,readPart10Header:F,readSequenceItemsExplicit:T,readSequenceItemsImplicit:S,readSequenceItem:k,readTag:m,LEI:"1.2.840.10008.1.2",LEE:"1.2.840.10008.1.2.1"}}],a.c=r,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,(function(t){return e[t]}).bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=1);function a(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,a),n.l=!0,n.exports}}(r(2534))},9123(e){"use strict";e.exports=function(e){if(arguments.length<1)throw TypeError("1 argument is required");if("object"!=typeof e)throw TypeError("Argument 1 (”other“) to Node.contains must be an instance of Node");var t=e;do{if(this===t)return!0;t&&(t=t.parentNode)}while(t);return!1}},5325(e,t,r){"use strict";var n=r(5806),a=r(9123),i=r(5306),o=i(),s=r(4248),l=function(e,t){return o.apply(e,[t])};n(l,{getPolyfill:i,implementation:a,shim:s}),e.exports=l},5306(e,t,r){"use strict";var n=r(9123);e.exports=function(){if("u">typeof document){if(document.contains)return document.contains;if(document.body&&document.body.contains)try{if("boolean"==typeof document.body.contains.call(document,""))return document.body.contains}catch(e){}}return n}},4248(e,t,r){"use strict";var n=r(5806),a=r(5306);e.exports=function(){var e=a();return"u">typeof document&&(n(document,{contains:e},{contains:function(){return document.contains!==e}}),"u">typeof Element&&n(Element.prototype,{contains:e},{contains:function(){return Element.prototype.contains!==e}})),e}},714(e,t,r){"use strict";var n,a=r(7196),i=r(1233);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!n&&i&&i(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=o&&"function"==typeof o.get?a([o.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},9997(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},155(e){"use strict";e.exports=EvalError},593(e){"use strict";e.exports=Error},7180(e){"use strict";e.exports=RangeError},9304(e){"use strict";e.exports=ReferenceError},1742(e){"use strict";e.exports=SyntaxError},6757(e){"use strict";e.exports=TypeError},4923(e){"use strict";e.exports=URIError},6542(e,t,r){"use strict";var n=r(6757);e.exports=function(e){if(null==e)throw new n(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}},802(e){"use strict";e.exports=Object},8621(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(r,n){var a,i,o;function s(r){e.removeListener(t,l),n(r)}function l(){"function"==typeof e.removeListener&&e.removeListener("error",s),r([].slice.call(arguments))}f(e,t,l,{once:!0}),"error"!==t&&(a=e,i=s,o={once:!0},"function"==typeof a.on&&f(a,"error",i,o))})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function s(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){if(s(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),o=i[t]),void 0===o)o=i[t]=r,++e._eventsCount;else if("function"==typeof o?o=i[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(a=l(e))>0&&o.length>a&&!o.warned){o.warned=!0;var a,i,o,u=Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,console&&console.warn&&console.warn(u)}return e}function d(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=d.bind(n);return a.listener=r,n.wrapFn=a,a}function h(e,t,r){var n=e._events;if(void 0===n)return[];var a=n[t];return void 0===a?[]:"function"==typeof a?r?[a.listener||a]:[a]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(a):m(a,a.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function f(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function a(i){n.once&&e.removeEventListener(t,a),r(i)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||a(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),i.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var a="error"===e,i=this._events;if(void 0!==i)a=a&&void 0===i.error;else if(!a)return!1;if(a){if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var o,s=Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else for(var u=l.length,d=m(l,u),r=0;r<u;++r)n(d[r],this,t);return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,c(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,c(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,a,i,o;if(s(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(a=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){o=r[i].listener,a=i;break}if(a<0)return this;0===a?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,a),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var a,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(a=i[n])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return h(this,e,!0)},i.prototype.rawListeners=function(e){return h(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},5043(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(a=n;0!=a--;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(a=n;0!=a--;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;0!=a--;){var n,a,i,o=i[a];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}},9913(e){"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),i=0;i<n.length;i++){var o=n[i],s=e[o];(a?-1!==t.indexOf(o):t(o,s,e))&&(r[o]=s)}return r}},9691(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var a=0;a<t.length;a+=1)r[a+e.length]=t[a];return r},a=function(e,t){for(var r=[],n=t||0,a=0;n<e.length;n+=1,a+=1)r[a]=e[n];return r},i=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var o,s=this;if("function"!=typeof s||"[object Function]"!==t.apply(s))throw TypeError("Function.prototype.bind called on incompatible "+s);for(var l=a(arguments,1),u=r(0,s.length-l.length),d=[],c=0;c<u;c++)d[c]="$"+c;if(o=Function("binder","return function ("+i(d,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var t=s.apply(this,n(l,arguments));return Object(t)===t?t:this}return s.apply(e,n(l,arguments))}),s.prototype){var h=function(){};h.prototype=s.prototype,o.prototype=new h,h.prototype=null}return o}},469(e,t,r){"use strict";var n=r(9691);e.exports=Function.prototype.bind||n},4295(e,t,r){"use strict";var n,a=r(802),i=r(593),o=r(155),s=r(7180),l=r(9304),u=r(1742),d=r(6757),c=r(4923),h=r(7256),p=r(5414),m=r(7954),f=r(3452),g=r(1358),y=r(5720),v=r(3515),b=Function,w=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},x=r(1233),C=r(9997),k=function(){throw new d},M=x?function(){try{return arguments.callee,k}catch(e){try{return x(arguments,"callee").get}catch(e){return k}}}():k,S=r(8573)(),E=r(7582),T=r(2170),I=r(9090),P=r(24),_=r(1530),D={},O="u">typeof Uint8Array&&E?E(Uint8Array):n,A={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":S&&E?E([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":D,"%AsyncGenerator%":D,"%AsyncGeneratorFunction%":D,"%AsyncIteratorPrototype%":D,"%Atomics%":"u"<typeof Atomics?n:Atomics,"%BigInt%":"u"<typeof BigInt?n:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"u"<typeof Float16Array?n:Float16Array,"%Float32Array%":"u"<typeof Float32Array?n:Float32Array,"%Float64Array%":"u"<typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":D,"%Int8Array%":"u"<typeof Int8Array?n:Int8Array,"%Int16Array%":"u"<typeof Int16Array?n:Int16Array,"%Int32Array%":"u"<typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&E?E(E([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"u"<typeof Map?n:Map,"%MapIteratorPrototype%":"u">typeof Map&&S&&E?E(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":a,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?n:Promise,"%Proxy%":"u"<typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"u"<typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?n:Set,"%SetIteratorPrototype%":"u">typeof Set&&S&&E?E(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&E?E(""[Symbol.iterator]()):n,"%Symbol%":S?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":M,"%TypedArray%":O,"%TypeError%":d,"%Uint8Array%":"u"<typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?n:Uint32Array,"%URIError%":c,"%WeakMap%":"u"<typeof WeakMap?n:WeakMap,"%WeakRef%":"u"<typeof WeakRef?n:WeakRef,"%WeakSet%":"u"<typeof WeakSet?n:WeakSet,"%Function.prototype.call%":_,"%Function.prototype.apply%":P,"%Object.defineProperty%":C,"%Object.getPrototypeOf%":T,"%Math.abs%":h,"%Math.floor%":p,"%Math.max%":m,"%Math.min%":f,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":v,"%Reflect.getPrototypeOf%":I};if(E)try{null.error}catch(e){var R=E(E(e));A["%Error.prototype%"]=R}var L=function e(t){var r;if("%AsyncFunction%"===t)r=w("async function () {}");else if("%GeneratorFunction%"===t)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=w("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&E&&(r=E(a.prototype))}return A[t]=r,r},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},V=r(469),F=r(9731),B=V.call(_,Array.prototype.concat),j=V.call(P,Array.prototype.splice),W=V.call(_,String.prototype.replace),U=V.call(_,String.prototype.slice),z=V.call(_,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,q=function(e){var t=U(e,0,1),r=U(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return W(e,H,function(e,t,r,a){n[n.length]=r?W(a,G,"$1"):t||e}),n},$=function(e,t){var r,n=e;if(F(N,n)&&(n="%"+(r=N[n])[0]+"%"),F(A,n)){var a=A[n];if(a===D&&(a=L(n)),void 0===a&&!t)throw new d("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:a}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new d('"allowMissing" argument must be a boolean');if(null===z(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=q(e),n=r.length>0?r[0]:"",a=$("%"+n+"%",t),i=a.name,o=a.value,s=!1,l=a.alias;l&&(n=l[0],j(r,B([0,1],l)));for(var c=1,h=!0;c<r.length;c+=1){var p=r[c],m=U(p,0,1),f=U(p,-1);if(('"'===m||"'"===m||"`"===m||'"'===f||"'"===f||"`"===f)&&m!==f)throw new u("property names with quotes must have matching quotes");if("constructor"!==p&&h||(s=!0),n+="."+p,F(A,i="%"+n+"%"))o=A[i];else if(null!=o){if(!(p in o)){if(!t)throw new d("base intrinsic for "+e+" exists, but the property is not available.");return}if(x&&c+1>=r.length){var g=x(o,p);o=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:o[p]}else h=F(o,p),o=o[p];h&&!s&&(A[i]=o)}}return o}},2170(e,t,r){"use strict";e.exports=r(802).getPrototypeOf||null},9090(e){"use strict";e.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},7582(e,t,r){"use strict";var n=r(9090),a=r(2170),i=r(714);e.exports=n?function(e){return n(e)}:a?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return a(e)}:i?function(e){return i(e)}:null},1067(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},1233(e,t,r){"use strict";var n=r(1067);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},9118(e,t,r){"use strict";var n=r(9997),a=function(){return!!n};a.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=a},8573(e,t,r){"use strict";var n="u">typeof Symbol&&Symbol,a=r(9535);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&a()}},9535(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},9731(e,t,r){"use strict";var n=Function.prototype.call,a=Object.prototype.hasOwnProperty;e.exports=r(469).call(n,a)},2396(e,t,r){"use strict";var n=r(261),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?o:s[e.$$typeof]||a}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=o;var u=Object.defineProperty,d=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(m){var a=p(r);a&&a!==m&&e(t,a,n)}var o=d(r);c&&(o=o.concat(c(r)));for(var s=l(t),f=l(r),g=0;g<o.length;++g){var y=o[g];if(!i[y]&&!(n&&n[y])&&!(f&&f[y])&&!(s&&s[y])){var v=h(r,y);try{u(t,y,v)}catch(e){}}}}return t}},5801(e,t){t.read=function(e,t,r,n,a){var i,o,s=8*a-n-1,l=(1<<s)-1,u=l>>1,d=-7,c=r?a-1:0,h=r?-1:1,p=e[t+c];for(c+=h,i=p&(1<<-d)-1,p>>=-d,d+=s;d>0;i=256*i+e[t+c],c+=h,d-=8);for(o=i&(1<<-d)-1,i>>=-d,d+=n;d>0;o=256*o+e[t+c],c+=h,d-=8);if(0===i)i=1-u;else{if(i===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),i-=u}return(p?-1:1)*o*Math.pow(2,i-n)},t.write=function(e,t,r,n,a,i){var o,s,l,u=8*i-a-1,d=(1<<u)-1,c=d>>1,h=5960464477539062e-23*(23===a),p=n?0:i-1,m=n?1:-1,f=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+c>=1?t+=h/l:t+=h*Math.pow(2,1-c),t*l>=2&&(o++,l/=2),o+c>=d?(s=0,o=d):o+c>=1?(s=(t*l-1)*Math.pow(2,a),o+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,a),o=0));a>=8;e[r+p]=255&s,p+=m,s/=256,a-=8);for(o=o<<a|s,u+=a;u>0;e[r+p]=255&o,p+=m,o/=256,u-=8);e[r+p-m]|=128*f}},1752(e,t){"use strict";function r(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var n="object"==typeof process;function a(e,t){if(!e){if(n)throw Error("Invariant failed");throw Error(t())}}t.invariant=a;var i=Object.prototype.hasOwnProperty,o=Array.prototype.splice,s=Object.prototype.toString;function l(e){return s.call(e).slice(8,-1)}var u=Object.assign||function(e,t){return d(t).forEach(function(r){i.call(t,r)&&(e[r]=t[r])}),e},d="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function c(e){return Array.isArray(e)?u(e.constructor(e.length),e):"Map"===l(e)?new Map(e):"Set"===l(e)?new Set(e):e&&"object"==typeof e?u(Object.create(Object.getPrototypeOf(e)),e):e}var h=function(){function e(){this.commands=u({},p),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return new e().update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var r=this,n="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(n)||a(!Array.isArray(n),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),a("object"==typeof n&&null!==n,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(r.commands).join(", ")+"."});var o=e;return d(n).forEach(function(t){if(i.call(r.commands,t)){var a=e===o;o=r.commands[t](n[t],o,n,e),a&&r.isEquals(o,e)&&(o=e)}else{var s="Map"===l(e)?r.update(e.get(t),n[t]):r.update(e[t],n[t]),u="Map"===l(o)?o.get(t):o[t];r.isEquals(s,u)&&(void 0!==s||i.call(e,t))||(o===e&&(o=c(e)),"Map"===l(o)?o.set(t,s):o[t]=s)}}),o},e}();t.Context=h;var p={$push:function(e,t,r){return f(t,r,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,r){return f(t,r,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,i){var s,l;return s=t,l=n,a(Array.isArray(s),function(){return"Expected $splice target to be an array; got "+r(s)}),y(l.$splice),e.forEach(function(e){y(e),t===i&&e.length&&(t=c(i)),o.apply(t,e)}),t},$set:function(e,t,r){return a(1===Object.keys(r).length,function(){return"Cannot have more than one key in an object with $set"}),e},$toggle:function(e,t){g(e,"$toggle");var r=e.length?c(t):t;return e.forEach(function(e){r[e]=!t[e]}),r},$unset:function(e,t,r,n){return g(e,"$unset"),e.forEach(function(e){Object.hasOwnProperty.call(t,e)&&(t===n&&(t=c(n)),delete t[e])}),t},$add:function(e,t,r,n){return v(t,"$add"),g(e,"$add"),"Map"===l(t)?e.forEach(function(e){var r=e[0],a=e[1];t===n&&t.get(r)!==a&&(t=c(n)),t.set(r,a)}):e.forEach(function(e){t!==n||t.has(e)||(t=c(n)),t.add(e)}),t},$remove:function(e,t,r,n){return v(t,"$remove"),g(e,"$remove"),e.forEach(function(e){t===n&&t.has(e)&&(t=c(n)),t.delete(e)}),t},$merge:function(e,t,n,i){var o,s;return o=t,a((s=e)&&"object"==typeof s,function(){return"update(): $merge expects a spec of type 'object'; got "+r(s)}),a(o&&"object"==typeof o,function(){return"update(): $merge expects a target of type 'object'; got "+r(o)}),d(e).forEach(function(r){e[r]!==t[r]&&(t===i&&(t=c(i)),t[r]=e[r])}),t},$apply:function(e,t){var n;return a("function"==typeof(n=e),function(){return"update(): expected spec of $apply to be a function; got "+r(n)+"."}),e(t)}},m=new h;function f(e,t,n){a(Array.isArray(e),function(){return"update(): expected target of "+r(n)+" to be an array; got "+r(e)+"."}),g(t[n],n)}function g(e,t){a(Array.isArray(e),function(){return"update(): expected spec of "+r(t)+" to be an array; got "+r(e)+". Did you forget to wrap your parameter in an array?"})}function y(e){a(Array.isArray(e),function(){return"update(): expected spec of $splice to be an array of arrays; got "+r(e)+". Did you forget to wrap your parameters in an array?"})}function v(e,t){var n=l(e);a("Map"===n||"Set"===n,function(){return"update(): "+r(t)+" expects a target of type Set or Map; got "+r(n)})}t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=u(t.default,t)},6642(e,t){"use strict";self.atob.bind(self),self.btoa.bind(self)},5388(e,t,r){"use strict";let n=r(1741),a=r(8475);function i(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}r(1862),r(5257),r(9133),r(1610),r(4455),r(4019),e.exports.load=n.load,n.loadAll,a.dump,r(9289),r(6940),r(5075),r(7703),r(4684),r(8652),r(4278),r(6273),r(589),r(8836),r(9793),r(3e3),r(7142),r(7690),i("safeLoad","load"),i("safeLoadAll","loadAll"),i("safeDump","dump")},7851(e){"use strict";e.exports.isNothing=function(e){return null==e},e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.repeat=function(e,t){let r="";for(let n=0;n<t;n+=1)r+=e;return r},e.exports.isNegativeZero=function(e){return 0===e&&-1/0==1/e}},8475(e,t,r){"use strict";let n=r(7851),a=r(9289),i=r(4019),o=Object.prototype.toString,s=Object.prototype.hasOwnProperty,l={};l[0]="\\0",l[7]="\\a",l[8]="\\b",l[9]="\\t",l[10]="\\n",l[11]="\\v",l[12]="\\f",l[13]="\\r",l[27]="\\e",l[34]='\\"',l[92]="\\\\",l[133]="\\N",l[160]="\\_",l[8232]="\\L",l[8233]="\\P";let u=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],d=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function c(e){this.schema=e.schema||i,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=n.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){if(null===t)return{};let r={},n=Object.keys(t);for(let a=0,i=n.length;a<i;a+=1){let i=n[a],o=String(t[i]);"!!"===i.slice(0,2)&&(i="tag:yaml.org,2002:"+i.slice(2));let l=e.compiledTypeMap.fallback[i];l&&s.call(l.styleAliases,o)&&(o=l.styleAliases[o]),r[i]=o}return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function h(e,t){let r=n.repeat(" ",t),a=0,i="",o=e.length;for(;a<o;){let t,n=e.indexOf("\n",a);-1===n?(t=e.slice(a),a=o):(t=e.slice(a,n+1),a=n+1),t.length&&"\n"!==t&&(i+=r),i+=t}return i}function p(e,t){return"\n"+n.repeat(" ",e.indent*t)}function m(e){return 32===e||9===e}function f(e){return e>=32&&e<=126||e>=161&&e<=55295&&8232!==e&&8233!==e||e>=57344&&e<=65533&&65279!==e||e>=65536&&e<=1114111}function g(e){return f(e)&&65279!==e&&13!==e&&10!==e}function y(e,t,r){let n=g(e),a=n&&!m(e);return(r?n:n&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!a)||g(t)&&!m(t)&&35===e||58===t&&a}function v(e,t){let r,n=e.charCodeAt(t);return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?(n-55296)*1024+r-56320+65536:n}function b(e){return/^\n* /.test(e)}function w(e,t){let r=b(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function x(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function C(e,t){let r,n;if(""===e||" "===e[0])return e;let a=/ [^ ]/g,i=0,o=0,s=0,l="";for(;r=a.exec(e);)(s=r.index)-i>t&&(n=o>i?o:s,l+="\n"+e.slice(i,n),i=n+1),o=s;return l+="\n",e.length-i>t&&o>i?l+=e.slice(i,o)+"\n"+e.slice(o+1):l+=e.slice(i),l.slice(1)}function k(e,t,r,n){let a="",i=e.tag;for(let i=0,o=r.length;i<o;i+=1){let o=r[i];e.replacer&&(o=e.replacer.call(r,String(i),o)),(S(e,t+1,o,!0,!0,!1,!0)||void 0===o&&S(e,t+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=p(e,t)),e.dump&&10===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump)}e.tag=i,e.dump=a||"[]"}function M(e,t,r){let n=r?e.explicitTypes:e.implicitTypes;for(let i=0,l=n.length;i<l;i+=1){let l=n[i];if((l.instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof t&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(r?l.multi&&l.representName?e.tag=l.representName(t):e.tag=l.tag:e.tag="?",l.represent){let r,n=e.styleMap[l.tag]||l.defaultStyle;if("[object Function]"===o.call(l.represent))r=l.represent(t,n);else if(s.call(l.represent,n))r=l.represent[n](t,n);else throw new a("!<"+l.tag+'> tag resolver accepts not "'+n+'" style');e.dump=r}return!0}}return!1}function S(e,t,r,i,s,c,g){let E,T;e.tag=null,e.dump=r,M(e,r,!1)||M(e,r,!0);let I=o.call(e.dump),P=i;i&&(i=e.flowLevel<0||e.flowLevel>t);let _="[object Object]"===I||"[object Array]"===I;if(_&&(T=-1!==(E=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||T||2!==e.indent&&t>0)&&(s=!1),T&&e.usedDuplicates[E])e.dump="*ref_"+E;else{if(_&&T&&!e.usedDuplicates[E]&&(e.usedDuplicates[E]=!0),"[object Object]"===I)i&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){let i="",o=e.tag,s=Object.keys(r);if(!0===e.sortKeys)s.sort();else if("function"==typeof e.sortKeys)s.sort(e.sortKeys);else if(e.sortKeys)throw new a("sortKeys must be a boolean or a function");for(let a=0,o=s.length;a<o;a+=1){let o="";n&&""===i||(o+=p(e,t));let l=s[a],u=r[l];if(e.replacer&&(u=e.replacer.call(r,l,u)),!S(e,t+1,l,!0,!0,!0))continue;let d=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024;d&&(e.dump&&10===e.dump.charCodeAt(0)?o+="?":o+="? "),o+=e.dump,d&&(o+=p(e,t)),S(e,t+1,u,!0,d)&&(e.dump&&10===e.dump.charCodeAt(0)?o+=":":o+=": ",o+=e.dump,i+=o)}e.tag=o,e.dump=i||"{}"}(e,t,e.dump,s),T&&(e.dump="&ref_"+E+e.dump)):(!function(e,t,r){let n="",a=e.tag,i=Object.keys(r);for(let a=0,o=i.length;a<o;a+=1){let o="";""!==n&&(o+=", "),e.condenseFlow&&(o+='"');let s=i[a],l=r[s];e.replacer&&(l=e.replacer.call(r,s,l)),S(e,t,s,!1,!1)&&(e.dump.length>1024&&(o+="? "),o+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),S(e,t,l,!1,!1)&&(o+=e.dump,n+=o))}e.tag=a,e.dump="{"+n+"}"}(e,t,e.dump),T&&(e.dump="&ref_"+E+" "+e.dump));else if("[object Array]"===I)i&&0!==e.dump.length?(e.noArrayIndent&&!g&&t>0?k(e,t-1,e.dump,s):k(e,t,e.dump,s),T&&(e.dump="&ref_"+E+e.dump)):(!function(e,t,r){let n="",a=e.tag;for(let a=0,i=r.length;a<i;a+=1){let i=r[a];e.replacer&&(i=e.replacer.call(r,String(a),i)),(S(e,t,i,!1,!1)||void 0===i&&S(e,t,null,!1,!1))&&(""!==n&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump)}e.tag=a,e.dump="["+n+"]"}(e,t,e.dump),T&&(e.dump="&ref_"+E+" "+e.dump));else if("[object String]"===I){var D;"?"!==e.tag&&(D=e.dump,e.dump=function(){if(0===D.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==u.indexOf(D)||d.test(D)))return 2===e.quotingType?'"'+D+'"':"'"+D+"'";let r=e.indent*Math.max(1,t),i=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-r);switch(function(e,t,r,n,a,i,o,s){var l,u;let d,c=0,h=null,p=!1,g=!1,w=-1!==n,x=-1,C=f(l=v(e,0))&&65279!==l&&!m(l)&&45!==l&&63!==l&&58!==l&&44!==l&&91!==l&&93!==l&&123!==l&&125!==l&&35!==l&&38!==l&&42!==l&&33!==l&&124!==l&&61!==l&&62!==l&&39!==l&&34!==l&&37!==l&&64!==l&&96!==l&&!m(u=v(e,e.length-1))&&58!==u;if(t||o)for(d=0;d<e.length;c>=65536?d+=2:d++){if(!f(c=v(e,d)))return 5;C=C&&y(c,h,s),h=c}else{for(d=0;d<e.length;c>=65536?d+=2:d++){if(10===(c=v(e,d)))p=!0,w&&(g=g||d-x-1>n&&" "!==e[x+1],x=d);else if(!f(c))return 5;C=C&&y(c,h,s),h=c}g=g||w&&d-x-1>n&&" "!==e[x+1]}return p||g?r>9&&b(e)?5:o?2===i?5:2:g?4:3:!C||o||a(e)?2===i?5:2:1}(D,c||e.flowLevel>-1&&t>=e.flowLevel,e.indent,i,function(t){for(let r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1},e.quotingType,e.forceQuotes&&!c,P)){case 1:return D;case 2:return"'"+D.replace(/'/g,"''")+"'";case 3:return"|"+w(D,e.indent)+x(h(D,r));case 4:return">"+w(D,e.indent)+x(h(function(e,t){let r,n,a,i=/(\n+)([^\n]*)/g,o=(i.lastIndex=a=-1!==(a=e.indexOf("\n"))?a:e.length,C(e.slice(0,a),t)),s="\n"===e[0]||" "===e[0];for(;n=i.exec(e);){let e=n[1],a=n[2];r=" "===a[0],o+=e+(s||r||""===a?"":"\n")+C(a,t),s=r}return o}(D,i),r));case 5:return'"'+function(e){let t="",r=0;for(let i=0;i<e.length;r>=65536?i+=2:i++){let o=l[r=v(e,i)];!o&&f(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=o||function(e){let t,r,i=e.toString(16).toUpperCase();if(e<=255)t="x",r=2;else if(e<=65535)t="u",r=4;else if(e<=0xffffffff)t="U",r=8;else throw new a("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+n.repeat("0",r-i.length)+i}(r)}return t}(D)+'"';default:throw new a("impossible error: invalid scalar style")}}())}else{if("[object Undefined]"===I||e.skipInvalid)return!1;throw new a("unacceptable kind of an object to dump "+I)}if(null!==e.tag&&"?"!==e.tag){let t=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21");t="!"===e.tag[0]?"!"+t:"tag:yaml.org,2002:"===t.slice(0,18)?"!!"+t.slice(18):"!<"+t+">",e.dump=t+" "+e.dump}}return!0}e.exports.dump=function(e,t){let r=new c(t=t||{});r.noRefs||function(e,t){let r=[],n=[];!function e(t,r,n){if(null!==t&&"object"==typeof t){let a=r.indexOf(t);if(-1!==a)-1===n.indexOf(a)&&n.push(a);else if(r.push(t),Array.isArray(t))for(let a=0,i=t.length;a<i;a+=1)e(t[a],r,n);else{let a=Object.keys(t);for(let i=0,o=a.length;i<o;i+=1)e(t[a[i]],r,n)}}}(e,r,n);let a=n.length;for(let e=0;e<a;e+=1)t.duplicates.push(r[n[e]]);t.usedDuplicates=Array(a)}(e,r);let n=e;return(r.replacer&&(n=r.replacer.call({"":n},"",n)),S(r,0,n,!0,!0))?r.dump+"\n":""}},9289(e){"use strict";function t(e,t){let r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function r(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.toString=function(e){return this.name+": "+t(this,e)},e.exports=r},1741(e,t,r){"use strict";let n=r(7851),a=r(9289),i=r(6513),o=r(4019),s=Object.prototype.hasOwnProperty,l=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,u=/[\x85\u2028\u2029]/,d=/[,\[\]{}]/,c=/^(?:!|!!|![0-9A-Za-z-]+!)$/,h=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function p(e){return Object.prototype.toString.call(e)}function m(e){return 10===e||13===e}function f(e){return 9===e||32===e}function g(e){return 9===e||32===e||10===e||13===e}function y(e){return 44===e||91===e||93===e||123===e||125===e}function v(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:case 9:return" ";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1b";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xa0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function b(e,t,r){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}let w=Array(256),x=Array(256);for(let e=0;e<256;e++)w[e]=+!!v(e),x[e]=v(e);function C(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||o,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth="number"==typeof t.maxDepth?t.maxDepth:100,this.maxTotalMergeKeys="number"==typeof t.maxTotalMergeKeys?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function k(e,t){let r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=i(r),new a(t,r)}function M(e,t){throw k(e,t)}function S(e,t){e.onWarning&&e.onWarning.call(null,k(e,t))}function E(e,t,r){let n=e.anchorMapTransactions;if(0!==n.length){let r=n[n.length-1];s.call(r,t)||(r[t]={existed:s.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=r}function T(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function I(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}let P={YAML:function(e,t,r){null!==e.version&&M(e,"duplication of %YAML directive"),1!==r.length&&M(e,"YAML directive accepts exactly one argument");let n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);null===n&&M(e,"ill-formed argument of the YAML directive");let a=parseInt(n[1],10),i=parseInt(n[2],10);1!==a&&M(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&S(e,"unsupported YAML version of the document")},TAG:function(e,t,r){let n;2!==r.length&&M(e,"TAG directive accepts exactly two arguments");let a=r[0];n=r[1],c.test(a)||M(e,"ill-formed tag handle (first argument) of the TAG directive"),s.call(e.tagMap,a)&&M(e,'there is a previously declared suffix for "'+a+'" tag handle'),h.test(n)||M(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(t){M(e,"tag prefix is malformed: "+n)}e.tagMap[a]=n}};function _(e,t,r,n){if(t<r){let a=e.input.slice(t,r);if(n)for(let t=0,r=a.length;t<r;t+=1){let r=a.charCodeAt(t);9===r||r>=32&&r<=1114111||M(e,"expected valid JSON character")}else l.test(a)&&M(e,"the stream contains non-printable characters");e.result+=a}}function D(e,t,r,a){n.isObject(r)||M(e,"cannot merge mappings; the provided source object is unacceptable");let i=Object.keys(r);for(let n=0,o=i.length;n<o;n+=1){let o=i[n];-1!==e.maxTotalMergeKeys&&++e.totalMergeKeys>e.maxTotalMergeKeys&&M(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")"),s.call(t,o)||(b(t,o,r[o]),a[o]=!0)}}function O(e,t,r,n,a,i,o,l,u){if(Array.isArray(a)){a=Array.prototype.slice.call(a);for(let t=0,r=a.length;t<r;t+=1)Array.isArray(a[t])&&M(e,"nested arrays are not supported inside keys"),"object"==typeof a&&"[object Object]"===p(a[t])&&(a[t]="[object Object]")}if("object"==typeof a&&"[object Object]"===p(a)&&(a="[object Object]"),a=String(a),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(let n=0,a=i.length;n<a;n+=1)D(e,t,i[n],r);else D(e,t,i,r);else!e.json&&!s.call(r,a)&&s.call(t,a)&&(e.line=o||e.line,e.lineStart=l||e.lineStart,e.position=u||e.position,M(e,"duplicated mapping key")),b(t,a,i),delete r[a];return t}function A(e){let t=e.input.charCodeAt(e.position);10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):M(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function R(e,t,r){let n=0,a=e.input.charCodeAt(e.position);for(;0!==a;){for(;f(a);)9===a&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),a=e.input.charCodeAt(++e.position);if(t&&35===a)do a=e.input.charCodeAt(++e.position);while(10!==a&&13!==a&&0!==a);if(m(a))for(A(e),a=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);else break}return -1!==r&&0!==n&&e.lineIndent<r&&S(e,"deficient indentation"),n}function L(e){let t=e.position,r=e.input.charCodeAt(t);return!!((45===r||46===r)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,0===(r=e.input.charCodeAt(t))||g(r)))||!1}function N(e,t){1===t?e.result+=" ":t>1&&(e.result+=n.repeat("\n",t-1))}function V(e,t){let r=e.tag,n=e.anchor,a=[],i=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&E(e,e.anchor,a);let o=e.input.charCodeAt(e.position);for(;0!==o&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,M(e,"tab characters must not be used in indentation")),45===o&&g(e.input.charCodeAt(e.position+1)));){if(i=!0,e.position++,R(e,!0,-1)&&e.lineIndent<=t){a.push(null),o=e.input.charCodeAt(e.position);continue}let r=e.line;if(B(e,t,3,!1,!0),a.push(e.result),R(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==o)M(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!i&&(e.tag=r,e.anchor=n,e.kind="sequence",e.result=a,!0)}function F(e,t,r){let n,a,i,o,s=e.tag,l=e.anchor,u={},d=Object.create(null),c=null,h=null,p=null,m=!1,y=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&E(e,e.anchor,u);let v=e.input.charCodeAt(e.position);for(;0!==v;){m||-1===e.firstTabInLine||(e.position=e.firstTabInLine,M(e,"tab characters must not be used in indentation"));let b=e.input.charCodeAt(e.position+1),w=e.line;if((63===v||58===v)&&g(b))63===v?(m&&(O(e,u,d,c,h,null,a,i,o),c=h=p=null),y=!0,m=!0,n=!0):m?(m=!1,n=!0):M(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=b;else{if(a=e.line,i=e.lineStart,o=e.position,!B(e,r,2,!1,!0))break;if(e.line===w){for(v=e.input.charCodeAt(e.position);f(v);)v=e.input.charCodeAt(++e.position);if(58===v)g(v=e.input.charCodeAt(++e.position))||M(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(O(e,u,d,c,h,null,a,i,o),c=h=p=null),y=!0,m=!1,n=!1,c=e.tag,h=e.result;else{if(!y)return e.tag=s,e.anchor=l,!0;M(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return e.tag=s,e.anchor=l,!0;M(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((e.line===w||e.lineIndent>t)&&(m&&(a=e.line,i=e.lineStart,o=e.position),B(e,t,4,!0,n)&&(m?h=e.result:p=e.result),m||(O(e,u,d,c,h,p,a,i,o),c=h=p=null),R(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===w||e.lineIndent>t)&&0!==v)M(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&O(e,u,d,c,h,null,a,i,o),y&&(e.tag=s,e.anchor=l,e.kind="mapping",e.result=u),y}function B(e,t,r,a,i){let o,l,u,p,v,b=1,C=!1,k=!1,S=null;e.depth>=e.maxDepth&&M(e,"nesting exceeded maxDepth ("+e.maxDepth+")"),e.depth+=1,null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let P=o=l=4===r||3===r;if(a&&R(e,!0,-1)&&(C=!0,e.lineIndent>t?b=1:e.lineIndent===t?b=0:e.lineIndent<t&&(b=-1)),1===b)for(;;){let r=e.input.charCodeAt(e.position),n=T(e);if(C&&(33===r&&null!==e.tag||38===r&&null!==e.anchor)||!function(e){let t,r,n=!1,a=!1,i=e.input.charCodeAt(e.position);if(33!==i)return!1;null!==e.tag&&M(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(n=!0,i=e.input.charCodeAt(++e.position)):33===i?(a=!0,t="!!",i=e.input.charCodeAt(++e.position)):t="!";let o=e.position;if(n){do i=e.input.charCodeAt(++e.position);while(0!==i&&62!==i);e.position<e.length?(r=e.input.slice(o,e.position),i=e.input.charCodeAt(++e.position)):M(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!g(i);)33===i&&(a?M(e,"tag suffix cannot contain exclamation marks"):(t=e.input.slice(o-1,e.position+1),c.test(t)||M(e,"named tag handle cannot contain such characters"),a=!0,o=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(o,e.position),d.test(r)&&M(e,"tag suffix cannot contain flow indicator characters")}r&&!h.test(r)&&M(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){M(e,"tag name is malformed: "+r)}return n?e.tag=r:s.call(e.tagMap,t)?e.tag=e.tagMap[t]+r:"!"===t?e.tag="!"+r:"!!"===t?e.tag="tag:yaml.org,2002:"+r:M(e,'undeclared tag handle "'+t+'"'),!0}(e)&&!function(e){let t=e.input.charCodeAt(e.position);if(38!==t)return!1;null!==e.anchor&&M(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position);let r=e.position;for(;0!==t&&!g(t)&&!y(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&M(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}(e))break;null===S&&(S=n),R(e,!0,-1)?(C=!0,l=P,e.lineIndent>t?b=1:e.lineIndent===t?b=0:e.lineIndent<t&&(b=-1)):l=!1}if(l&&(l=C||i),1===b||4===r)if(p=1===r||2===r?t:t+1,v=e.position-e.lineStart,1===b)if(l&&(V(e,v)||F(e,v,p))||function(e,t){let r,n,a,i,o,s,l,u,d,c,h,p=!0,m=e.tag,f=e.anchor,y=Object.create(null),v=e.input.charCodeAt(e.position);if(91===v)o=93,u=!1,i=[];else{if(123!==v)return!1;o=125,u=!0,i={}}for(null!==e.anchor&&E(e,e.anchor,i),v=e.input.charCodeAt(++e.position);0!==v;){if(R(e,!0,t),(v=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=m,e.anchor=f,e.kind=u?"mapping":"sequence",e.result=i,!0;p?44===v&&M(e,"expected the node content, but found ','"):M(e,"missed comma between flow collection entries"),c=d=h=null,s=l=!1,63===v&&g(e.input.charCodeAt(e.position+1))&&(s=l=!0,e.position++,R(e,!0,t)),r=e.line,n=e.lineStart,a=e.position,B(e,t,1,!1,!0),c=e.tag,d=e.result,R(e,!0,t),v=e.input.charCodeAt(e.position),(l||e.line===r)&&58===v&&(s=!0,v=e.input.charCodeAt(++e.position),R(e,!0,t),B(e,t,1,!1,!0),h=e.result),u?O(e,i,y,c,d,h,r,n,a):s?i.push(O(e,null,y,c,d,h,r,n,a)):i.push(d),R(e,!0,t),44===(v=e.input.charCodeAt(e.position))?(p=!0,v=e.input.charCodeAt(++e.position)):p=!1}M(e,"unexpected end of the stream within a flow collection")}(e,p))k=!0;else{let t=e.input.charCodeAt(e.position);null!==S&&P&&!l&&124!==t&&62!==t&&function(e,t,r,n){let a=T(e);if(e.anchorMapTransactions.push(Object.create(null)),I(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,F(e,r,n)&&"mapping"===e.kind)return!function(e){let t=e.anchorMapTransactions.pop(),r=e.anchorMapTransactions;if(0===r.length)return;let n=r[r.length-1],a=Object.keys(t);for(let e=0,r=a.length;e<r;e+=1){let r=a[e];s.call(n,r)||(n[r]=t[r])}}(e),!0;let i=e.anchorMapTransactions.pop(),o=Object.keys(i);for(let t=o.length-1;t>=0;t-=1){let r=i[o[t]];r.existed?e.anchorMap[o[t]]=r.value:delete e.anchorMap[o[t]]}return I(e,a),!1}(e,S,S.position-S.lineStart,p)||o&&function(e,t){let r,a,i=1,o=!1,s=!1,l=t,u=0,d=!1,c=e.input.charCodeAt(e.position);if(124===c)r=!1;else{if(62!==c)return!1;r=!0}for(e.kind="scalar",e.result="";0!==c;)if(43===(c=e.input.charCodeAt(++e.position))||45===c)1===i?i=43===c?3:2:M(e,"repeat of a chomping mode identifier");else{var h;if((a=(h=c)>=48&&h<=57?h-48:-1)>=0)0===a?M(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?M(e,"repeat of an indentation width identifier"):(l=t+a-1,s=!0);else break}if(f(c)){do c=e.input.charCodeAt(++e.position);while(f(c));if(35===c)do c=e.input.charCodeAt(++e.position);while(!m(c)&&0!==c)}for(;0!==c;){for(A(e),e.lineIndent=0,c=e.input.charCodeAt(e.position);(!s||e.lineIndent<l)&&32===c;)e.lineIndent++,c=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>l&&(l=e.lineIndent),m(c)){u++;continue}if(s||0!==l||M(e,"missing indentation for block scalar"),e.lineIndent<l){3===i?e.result+=n.repeat("\n",o?1+u:u):1===i&&o&&(e.result+="\n");break}r?f(c)?(d=!0,e.result+=n.repeat("\n",o?1+u:u)):d?(d=!1,e.result+=n.repeat("\n",u+1)):0===u?o&&(e.result+=" "):e.result+=n.repeat("\n",u):e.result+=n.repeat("\n",o?1+u:u),o=!0,s=!0,u=0;let t=e.position;for(;!m(c)&&0!==c;)c=e.input.charCodeAt(++e.position);_(e,t,e.position,!1)}return!0}(e,p)||function(e,t){let r,n,a=e.input.charCodeAt(e.position);if(39!==a)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(a=e.input.charCodeAt(e.position));)if(39===a){if(_(e,r,e.position,!0),39!==(a=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,n=e.position}else m(a)?(_(e,r,n,!0),N(e,R(e,!1,t)),r=n=e.position):e.position===e.lineStart&&L(e)?M(e,"unexpected end of the document within a single quoted scalar"):(e.position++,f(a)||(n=e.position));M(e,"unexpected end of the stream within a single quoted scalar")}(e,p)||function(e,t){let r,n,a,i=e.input.charCodeAt(e.position);if(34!==i)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(i=e.input.charCodeAt(e.position));)if(34===i)return _(e,r,e.position,!0),e.position++,!0;else if(92===i){if(_(e,r,e.position,!0),m(i=e.input.charCodeAt(++e.position)))R(e,!1,t);else if(i<256&&w[i])e.result+=x[i],e.position++;else{var o,s;if((a=120===(o=i)?2:117===o?4:8*(85===o))>0){let t=a,r=0;for(;t>0;t--)(a=function(e){if(e>=48&&e<=57)return e-48;let t=32|e;return t>=97&&t<=102?t-97+10:-1}(i=e.input.charCodeAt(++e.position)))>=0?r=(r<<4)+a:M(e,"expected hexadecimal character");e.result+=(s=r)<=65535?String.fromCharCode(s):String.fromCharCode((s-65536>>10)+55296,(s-65536&1023)+56320),e.position++}else M(e,"unknown escape sequence")}r=n=e.position}else m(i)?(_(e,r,n,!0),N(e,R(e,!1,t)),r=n=e.position):e.position===e.lineStart&&L(e)?M(e,"unexpected end of the document within a double quoted scalar"):(e.position++,f(i)||(n=e.position));M(e,"unexpected end of the stream within a double quoted scalar")}(e,p)?k=!0:function(e){let t=e.input.charCodeAt(e.position);if(42!==t)return!1;t=e.input.charCodeAt(++e.position);let r=e.position;for(;0!==t&&!g(t)&&!y(t);)t=e.input.charCodeAt(++e.position);e.position===r&&M(e,"name of an alias node must contain at least one character");let n=e.input.slice(r,e.position);return s.call(e.anchorMap,n)||M(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],R(e,!0,-1),!0}(e)?(k=!0,(null!==e.tag||null!==e.anchor)&&M(e,"alias node should not have any properties")):function(e,t,r){let n,a,i,o,s,l,u=e.kind,d=e.result,c=e.input.charCodeAt(e.position);if(g(c)||y(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c)return!1;if(63===c||45===c){let t=e.input.charCodeAt(e.position+1);if(g(t)||r&&y(t))return!1}for(e.kind="scalar",e.result="",n=a=e.position,i=!1;0!==c;){if(58===c){let t=e.input.charCodeAt(e.position+1);if(g(t)||r&&y(t))break}else if(35===c){if(g(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&L(e)||r&&y(c))break;else if(m(c)){if(o=e.line,s=e.lineStart,l=e.lineIndent,R(e,!1,-1),e.lineIndent>=t){i=!0,c=e.input.charCodeAt(e.position);continue}e.position=a,e.line=o,e.lineStart=s,e.lineIndent=l;break}i&&(_(e,n,a,!1),N(e,e.line-o),n=a=e.position,i=!1),f(c)||(a=e.position+1),c=e.input.charCodeAt(++e.position)}return _(e,n,a,!1),!!e.result||(e.kind=u,e.result=d,!1)}(e,p,1===r)&&(k=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&E(e,e.anchor,e.result)}else 0===b&&(k=l&&V(e,v));if(null===e.tag)null!==e.anchor&&E(e,e.anchor,e.result);else if("?"===e.tag){null!==e.result&&"scalar"!==e.kind&&M(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"');for(let t=0,r=e.implicitTypes.length;t<r;t+=1)if((u=e.implicitTypes[t]).resolve(e.result)){e.result=u.construct(e.result),e.tag=u.tag,null!==e.anchor&&E(e,e.anchor,e.result);break}}else if("!"!==e.tag){if(s.call(e.typeMap[e.kind||"fallback"],e.tag))u=e.typeMap[e.kind||"fallback"][e.tag];else{u=null;let t=e.typeMap.multi[e.kind||"fallback"];for(let r=0,n=t.length;r<n;r+=1)if(e.tag.slice(0,t[r].tag.length)===t[r].tag){u=t[r];break}}u||M(e,"unknown tag !<"+e.tag+">"),null!==e.result&&u.kind!==e.kind&&M(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+u.kind+'", not "'+e.kind+'"'),u.resolve(e.result,e.tag)?(e.result=u.construct(e.result,e.tag),null!==e.anchor&&E(e,e.anchor,e.result)):M(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),e.depth-=1,null!==e.tag||null!==e.anchor||k}function j(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));let r=new C(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,M(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)!function(e){let t,r=e.position,n=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(t=e.input.charCodeAt(e.position))&&(R(e,!0,-1),t=e.input.charCodeAt(e.position),!(e.lineIndent>0)&&37===t);){n=!0,t=e.input.charCodeAt(++e.position);let r=e.position;for(;0!==t&&!g(t);)t=e.input.charCodeAt(++e.position);let a=e.input.slice(r,e.position),i=[];for(a.length<1&&M(e,"directive name must not be less than one character in length");0!==t;){for(;f(t);)t=e.input.charCodeAt(++e.position);if(35===t){do t=e.input.charCodeAt(++e.position);while(0!==t&&!m(t));break}if(m(t))break;for(r=e.position;0!==t&&!g(t);)t=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}0!==t&&A(e),s.call(P,a)?P[a](e,a,i):S(e,'unknown document directive "'+a+'"')}if(R(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,R(e,!0,-1)):n&&M(e,"directives end mark is expected"),B(e,e.lineIndent-1,4,!1,!0),R(e,!0,-1),e.checkLineBreaks&&u.test(e.input.slice(r,e.position))&&S(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&L(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,R(e,!0,-1));return}e.position<e.length-1&&M(e,"end of the stream or a document separator is expected")}(r);return r.documents}e.exports.loadAll=function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);let n=j(e,r);if("function"!=typeof t)return n;for(let e=0,r=n.length;e<r;e+=1)t(n[e])},e.exports.load=function(e,t){let r=j(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new a("expected a single document in the stream, but found more")}}},5257(e,t,r){"use strict";let n=r(9289),a=r(1862);function i(e,t){let r=[];return e[t].forEach(function(e){let t=r.length;r.forEach(function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)}),r[t]=e}),r}function o(e){return this.extend(e)}o.prototype.extend=function(e){let t=[],r=[];if(e instanceof a)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new n("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof a))throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new n("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new n("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(e){if(!(e instanceof a))throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let s=Object.create(o.prototype);return s.implicit=(this.implicit||[]).concat(t),s.explicit=(this.explicit||[]).concat(r),s.compiledImplicit=i(s,"implicit"),s.compiledExplicit=i(s,"explicit"),s.compiledTypeMap=function(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(let e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(t);return e}(s.compiledImplicit,s.compiledExplicit),s},e.exports=o},4455(e,t,r){"use strict";e.exports=r(1610)},4019(e,t,r){"use strict";e.exports=r(4455).extend({implicit:[r(6273),r(9793)],explicit:[r(6940),r(3e3),r(8652),r(4278)]})},9133(e,t,r){"use strict";e.exports=new(r(5257))({explicit:[r(7690),r(7142),r(7703)]})},1610(e,t,r){"use strict";e.exports=r(9133).extend({implicit:[r(4684),r(589),r(8836),r(5075)]})},6513(e,t,r){"use strict";let n=r(7851);function a(e,t,r,n,a){let i="",o="",s=Math.floor(a/2)-1;return n-t>s&&(t=n-s+(i=" ... ").length),r-n>s&&(r=n+s-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+i.length}}function i(e,t){return n.repeat(" ",t-e.length)+e}e.exports=function(e,t){let r;if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);let o=/\r?\n|\r|\0/g,s=[0],l=[],u=-1;for(;r=o.exec(e.buffer);)l.push(r.index),s.push(r.index+r[0].length),e.position<=r.index&&u<0&&(u=s.length-2);u<0&&(u=s.length-1);let d="",c=Math.min(e.line+t.linesAfter,l.length).toString().length,h=t.maxLength-(t.indent+c+3);for(let r=1;r<=t.linesBefore&&!(u-r<0);r++){let o=a(e.buffer,s[u-r],l[u-r],e.position-(s[u]-s[u-r]),h);d=n.repeat(" ",t.indent)+i((e.line-r+1).toString(),c)+" | "+o.str+"\n"+d}let p=a(e.buffer,s[u],l[u],e.position,h);d+=n.repeat(" ",t.indent)+i((e.line+1).toString(),c)+" | "+p.str+"\n"+n.repeat("-",t.indent+c+3+p.pos)+"^\n";for(let r=1;r<=t.linesAfter&&!(u+r>=l.length);r++){let o=a(e.buffer,s[u+r],l[u+r],e.position-(s[u]-s[u+r]),h);d+=n.repeat(" ",t.indent)+i((e.line+r+1).toString(),c)+" | "+o.str+"\n"}return d.replace(/\n$/,"")}},1862(e,t,r){"use strict";let n=r(9289),a=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],i=["scalar","sequence","mapping"];e.exports=function(e,t){var r;let o;if(Object.keys(t=t||{}).forEach(function(t){if(-1===a.indexOf(t))throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(r=t.styleAliases||null,o={},null!==r&&Object.keys(r).forEach(function(e){r[e].forEach(function(t){o[String(t)]=e})}),o),-1===i.indexOf(this.kind))throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},6940(e,t,r){"use strict";let n=r(1862),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;let t=0,r=e.length;for(let n=0;n<r;n++){let r=a.indexOf(e.charAt(n));if(!(r>64)){if(r<0)return!1;t+=6}}return t%8==0},construct:function(e){let t=e.replace(/[\r\n=]/g,""),r=t.length,n=0,i=[];for(let e=0;e<r;e++)e%4==0&&e&&(i.push(n>>16&255),i.push(n>>8&255),i.push(255&n)),n=n<<6|a.indexOf(t.charAt(e));let o=r%4*6;return 0===o?(i.push(n>>16&255),i.push(n>>8&255),i.push(255&n)):18===o?(i.push(n>>10&255),i.push(n>>2&255)):12===o&&i.push(n>>4&255),new Uint8Array(i)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){let t="",r=0,n=e.length;for(let i=0;i<n;i++)i%3==0&&i&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[63&r]),r=(r<<8)+e[i];let i=n%3;return 0===i?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[63&r]):2===i?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):1===i&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}})},589(e,t,r){"use strict";e.exports=new(r(1862))("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;let t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},5075(e,t,r){"use strict";let n=r(7851),a=r(1862),i=RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),o=RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),s=/^[-+]?[0-9]+e/;e.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!!i.test(e)&&(!!isFinite(parseFloat(e,10))||o.test(e))},construct:function(e){let t=e.toLowerCase(),r="-"===t[0]?-1:1;return("+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===r?1/0:-1/0:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||n.isNegativeZero(e))},represent:function(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";let r=e.toString(10);return s.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})},8836(e,t,r){"use strict";let n=r(7851);function a(e){let t=e,r=1,n=t[0];if(("-"===n||"+"===n)&&("-"===n&&(r=-1),n=(t=t.slice(1))[0]),"0"===t)return 0;if("0"===n){if("b"===t[1])return r*parseInt(t.slice(2),2);if("x"===t[1])return r*parseInt(t.slice(2),16);if("o"===t[1])return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}e.exports=new(r(1862))("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){var t,r,n;if(null===e)return!1;let i=e.length,o=0,s=!1;if(!i)return!1;let l=e[o];if(("-"===l||"+"===l)&&(l=e[++o]),"0"===l){if(o+1===i)return!0;if("b"===(l=e[++o])){for(o++;o<i;o++){if("0"!==(l=e[o])&&"1"!==l)return!1;s=!0}return s&&isFinite(a(e))}if("x"===l){for(o++;o<i;o++){if(!((t=e.charCodeAt(o))>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102))return!1;s=!0}return s&&isFinite(a(e))}if("o"===l){for(o++;o<i;o++){if(!((r=e.charCodeAt(o))>=48&&r<=55))return!1;s=!0}return s&&isFinite(a(e))}}for(;o<i;o++){if(!((n=e.charCodeAt(o))>=48&&n<=57))return!1;s=!0}return!!s&&isFinite(a(e))},construct:function(e){return a(e)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!n.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},7703(e,t,r){"use strict";e.exports=new(r(1862))("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},9793(e,t,r){"use strict";e.exports=new(r(1862))("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},4684(e,t,r){"use strict";e.exports=new(r(1862))("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;let t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},3e3(e,t,r){"use strict";let n=r(1862),a=Object.prototype.hasOwnProperty,i=Object.prototype.toString;e.exports=new n("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;let t=[];for(let r=0,n=e.length;r<n;r+=1){let n,o=e[r],s=!1;if("[object Object]"!==i.call(o))return!1;for(n in o)if(a.call(o,n))if(s)return!1;else s=!0;if(!s||-1!==t.indexOf(n))return!1;t.push(n)}return!0},construct:function(e){return null!==e?e:[]}})},8652(e,t,r){"use strict";let n=r(1862),a=Object.prototype.toString;e.exports=new n("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;let t=Array(e.length);for(let r=0,n=e.length;r<n;r+=1){let n=e[r];if("[object Object]"!==a.call(n))return!1;let i=Object.keys(n);if(1!==i.length)return!1;t[r]=[i[0],n[i[0]]]}return!0},construct:function(e){if(null===e)return[];let t=Array(e.length);for(let r=0,n=e.length;r<n;r+=1){let n=e[r],a=Object.keys(n);t[r]=[a[0],n[a[0]]]}return t}})},7142(e,t,r){"use strict";e.exports=new(r(1862))("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},4278(e,t,r){"use strict";let n=r(1862),a=Object.prototype.hasOwnProperty;e.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;for(let t in e)if(a.call(e,t)&&null!==e[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})},7690(e,t,r){"use strict";e.exports=new(r(1862))("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},6273(e,t,r){"use strict";let n=r(1862),a=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==a.exec(e)||null!==i.exec(e))},construct:function(e){let t=0,r=null,n=a.exec(e);if(null===n&&(n=i.exec(e)),null===n)throw Error("Date resolve error");let o=+n[1],s=n[2]-1,l=+n[3];if(!n[4])return new Date(Date.UTC(o,s,l));let u=+n[4],d=+n[5],c=+n[6];if(n[7]){for(t=n[7].slice(0,3);t.length<3;)t+="0";t*=1}n[9]&&(r=(60*n[10]+ +(n[11]||0))*6e4,"-"===n[9]&&(r=-r));let h=new Date(Date.UTC(o,s,l,u,d,c,t));return r&&h.setTime(h.getTime()-r),h},instanceOf:Date,represent:function(e){return e.toISOString()}})},3359(e,t,r){e=r.nmd(e);var n,a="__lodash_hash_undefined__",i="[object Arguments]",o="[object Boolean]",s="[object Date]",l="[object Function]",u="[object GeneratorFunction]",d="[object Map]",c="[object Number]",h="[object Object]",p="[object Promise]",m="[object RegExp]",f="[object Set]",g="[object String]",y="[object Symbol]",v="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",x="[object Float32Array]",C="[object Float64Array]",k="[object Int8Array]",M="[object Int16Array]",S="[object Int32Array]",E="[object Uint8Array]",T="[object Uint8ClampedArray]",I="[object Uint16Array]",P="[object Uint32Array]",_=/\w*$/,D=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,A={};A[i]=A["[object Array]"]=A[b]=A[w]=A[o]=A[s]=A[x]=A[C]=A[k]=A[M]=A[S]=A[d]=A[c]=A[h]=A[m]=A[f]=A[g]=A[y]=A[E]=A[T]=A[I]=A[P]=!0,A["[object Error]"]=A[l]=A[v]=!1;var R="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,L="object"==typeof self&&self&&self.Object===Object&&self,N=R||L||Function("return this")(),V=t&&!t.nodeType&&t,F=V&&e&&!e.nodeType&&e,B=F&&F.exports===V;function j(e,t){return e.set(t[0],t[1]),e}function W(e,t){return e.add(t),e}function U(e,t,r,n){var a=-1,i=e?e.length:0;for(n&&i&&(r=e[++a]);++a<i;)r=t(r,e[a],a,e);return r}function z(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function H(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function G(e,t){return function(r){return e(t(r))}}function q(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var $=Array.prototype,K=Function.prototype,Y=Object.prototype,Z=N["__core-js_shared__"],X=(n=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",J=K.toString,Q=Y.hasOwnProperty,ee=Y.toString,et=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),er=B?N.Buffer:void 0,en=N.Symbol,ea=N.Uint8Array,ei=G(Object.getPrototypeOf,Object),eo=Object.create,es=Y.propertyIsEnumerable,el=$.splice,eu=Object.getOwnPropertySymbols,ed=er?er.isBuffer:void 0,ec=G(Object.keys,Object),eh=eR(N,"DataView"),ep=eR(N,"Map"),em=eR(N,"Promise"),ef=eR(N,"Set"),eg=eR(N,"WeakMap"),ey=eR(Object,"create"),ev=eF(eh),eb=eF(ep),ew=eF(em),ex=eF(ef),eC=eF(eg),ek=en?en.prototype:void 0,eM=ek?ek.valueOf:void 0;function eS(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eE(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eT(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eI(e){this.__data__=new eE(e)}function eP(e,t,r){var n=e[t];Q.call(e,t)&&eB(n,r)&&(void 0!==r||t in e)||(e[t]=r)}function e_(e,t){for(var r=e.length;r--;)if(eB(e[r][0],t))return r;return -1}function eD(e){var t=new e.constructor(e.byteLength);return new ea(t).set(new ea(e)),t}function eO(e,t,r,n){r||(r={});for(var a=-1,i=t.length;++a<i;){var o=t[a],s=n?n(r[o],e[o],o,r,e):void 0;eP(r,o,void 0===s?e[o]:s)}return r}function eA(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function eR(e,t){var r,n=null==e?void 0:e[t];return!(!eH(n)||(r=n,X&&X in r))&&(ez(n)||z(n)?et:D).test(eF(n))?n:void 0}eS.prototype.clear=function(){this.__data__=ey?ey(null):{}},eS.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},eS.prototype.get=function(e){var t=this.__data__;if(ey){var r=t[e];return r===a?void 0:r}return Q.call(t,e)?t[e]:void 0},eS.prototype.has=function(e){var t=this.__data__;return ey?void 0!==t[e]:Q.call(t,e)},eS.prototype.set=function(e,t){return this.__data__[e]=ey&&void 0===t?a:t,this},eE.prototype.clear=function(){this.__data__=[]},eE.prototype.delete=function(e){var t=this.__data__,r=e_(t,e);return!(r<0)&&(r==t.length-1?t.pop():el.call(t,r,1),!0)},eE.prototype.get=function(e){var t=this.__data__,r=e_(t,e);return r<0?void 0:t[r][1]},eE.prototype.has=function(e){return e_(this.__data__,e)>-1},eE.prototype.set=function(e,t){var r=this.__data__,n=e_(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},eT.prototype.clear=function(){this.__data__={hash:new eS,map:new(ep||eE),string:new eS}},eT.prototype.delete=function(e){return eA(this,e).delete(e)},eT.prototype.get=function(e){return eA(this,e).get(e)},eT.prototype.has=function(e){return eA(this,e).has(e)},eT.prototype.set=function(e,t){return eA(this,e).set(e,t),this},eI.prototype.clear=function(){this.__data__=new eE},eI.prototype.delete=function(e){return this.__data__.delete(e)},eI.prototype.get=function(e){return this.__data__.get(e)},eI.prototype.has=function(e){return this.__data__.has(e)},eI.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eE){var n=r.__data__;if(!ep||n.length<199)return n.push([e,t]),this;r=this.__data__=new eT(n)}return r.set(e,t),this};var eL=eu?G(eu,Object):function(){return[]},eN=function(e){return ee.call(e)};function eV(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function eF(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eB(e,t){return e===t||e!=e&&t!=t}(eh&&eN(new eh(new ArrayBuffer(1)))!=w||ep&&eN(new ep)!=d||em&&eN(em.resolve())!=p||ef&&eN(new ef)!=f||eg&&eN(new eg)!=v)&&(eN=function(e){var t=ee.call(e),r=t==h?e.constructor:void 0,n=r?eF(r):void 0;if(n)switch(n){case ev:return w;case eb:return d;case ew:return p;case ex:return f;case eC:return v}return t});var ej=Array.isArray;function eW(e){var t;return null!=e&&"number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=0x1fffffffffffff&&!ez(e)}var eU=ed||function(){return!1};function ez(e){var t=eH(e)?ee.call(e):"";return t==l||t==u}function eH(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eG(e){return eW(e)?function(e){var t,r,n,a,o,s=ej(e)||(n=r=t=e)&&"object"==typeof n&&eW(r)&&Q.call(t,"callee")&&(!es.call(t,"callee")||ee.call(t)==i)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=s.length,u=!!l;for(var d in e){Q.call(e,d)&&!(u&&("length"==d||(a=d,(o=null==(o=l)?0x1fffffffffffff:o)&&("number"==typeof a||O.test(a))&&a>-1&&a%1==0&&a<o)))&&s.push(d)}return s}(e):function(e){if(!eV(e))return ec(e);var t=[];for(var r in Object(e))Q.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}e.exports=function(e){return function e(t,r,n,a,p,v,D){if(a&&(O=v?a(t,p,v,D):a(t)),void 0!==O)return O;if(!eH(t))return t;var O,R=ej(t);if(R){if(N=(L=t).length,V=L.constructor(N),N&&"string"==typeof L[0]&&Q.call(L,"index")&&(V.index=L.index,V.input=L.input),O=V,!r){var L,N,V,F=t,B=O,G=-1,$=F.length;for(B||(B=Array($));++G<$;)B[G]=F[G];return B}}else{var K,Y,Z,X,J,ee=eN(t),et=ee==l||ee==u;if(eU(t)){var er=t,en=r;if(en)return er.slice();var ea=new er.constructor(er.length);return er.copy(ea),ea}if(ee==h||ee==i||et&&!v){if(z(t))return v?t:{};if(O="function"!=typeof(K=et?{}:t).constructor||eV(K)?{}:eH(Y=ei(K))?eo(Y):{},!r){return Z=t,X=(J=O)&&eO(t,eG(t),J),eO(Z,eL(Z),X)}}else{if(!A[ee])return v?t:{};O=function(e,t,r,n){var a,i,l,u=e.constructor;switch(t){case b:return eD(e);case o:case s:return new u(+e);case w:return a=n?eD(e.buffer):e.buffer,new e.constructor(a,e.byteOffset,e.byteLength);case x:case C:case k:case M:case S:case E:case T:case I:case P:return i=n?eD(e.buffer):e.buffer,new e.constructor(i,e.byteOffset,e.length);case d:return U(n?r(H(e),!0):H(e),j,new e.constructor);case c:case g:return new u(e);case m:return(l=new e.constructor(e.source,_.exec(e))).lastIndex=e.lastIndex,l;case f:return U(n?r(q(e),!0):q(e),W,new e.constructor);case y:return eM?Object(eM.call(e)):{}}}(t,ee,e,r)}}D||(D=new eI);var es=D.get(t);if(es)return es;if(D.set(t,O),!R)var el=n?function(e){var t;return t=eG(e),ej(e)?t:function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}(t,eL(e))}(t):eG(t);return!function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););}(el||t,function(i,o){el&&(i=t[o=i]),eP(O,o,e(i,r,n,a,o,t,D))}),O}(e,!0,!0)}},2051(e,t,r){var n=0/0,a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,d="object"==typeof self&&self&&self.Object===Object&&self,c=u||d||Function("return this")(),h=Object.prototype.toString,p=Math.max,m=Math.min,f=function(){return c.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==h.call(t))return n;if(g(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=g(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var u=o.test(e);return u||s.test(e)?l(e.slice(2),u?2:8):i.test(e)?n:+e}e.exports=function(e,t,r){var n,a,i,o,s,l,u=0,d=!1,c=!1,h=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var r=n,i=a;return n=a=void 0,u=t,o=e.apply(i,r)}function b(e){var r=e-l,n=e-u;return void 0===l||r>=t||r<0||c&&n>=i}function w(){var e,r,n,a=f();if(b(a))return x(a);s=setTimeout(w,(e=a-l,r=a-u,n=t-e,c?m(n,i-r):n))}function x(e){return(s=void 0,h&&n)?v(e):(n=a=void 0,o)}function C(){var e,r=f(),i=b(r);if(n=arguments,a=this,l=r,i){if(void 0===s)return u=e=l,s=setTimeout(w,t),d?v(e):o;if(c)return s=setTimeout(w,t),v(l)}return void 0===s&&(s=setTimeout(w,t)),o}return t=y(t)||0,g(r)&&(d=!!r.leading,i=(c="maxWait"in r)?p(y(r.maxWait)||0,t):i,h="trailing"in r?!!r.trailing:h),C.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=l=a=s=void 0},C.flush=function(){return void 0===s?o:x(f())},C}},2816(e,t,r){e=r.nmd(e);var n,a,i,o,s,l,u,d,c,h,p,m="__lodash_hash_undefined__",f="[object Arguments]",g="[object Function]",y="[object Object]",v=/^\[object .+?Constructor\]$/,b=/^(?:0|[1-9]\d*)$/,w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w[f]=w["[object Array]"]=w["[object ArrayBuffer]"]=w["[object Boolean]"]=w["[object DataView]"]=w["[object Date]"]=w["[object Error]"]=w[g]=w["[object Map]"]=w["[object Number]"]=w[y]=w["[object RegExp]"]=w["[object Set]"]=w["[object String]"]=w["[object WeakMap]"]=!1;var x="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,C="object"==typeof self&&self&&self.Object===Object&&self,k=x||C||Function("return this")(),M=t&&!t.nodeType&&t,S=M&&e&&!e.nodeType&&e,E=S&&S.exports===M,T=E&&x.process,I=function(){try{var e=S&&S.require&&S.require("util").types;if(e)return e;return T&&T.binding&&T.binding("util")}catch(e){}}(),P=I&&I.isTypedArray,_=Array.prototype,D=Function.prototype,O=Object.prototype,A=k["__core-js_shared__"],R=D.toString,L=O.hasOwnProperty,N=(u=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"",V=O.toString,F=R.call(Object),B=RegExp("^"+R.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=E?k.Buffer:void 0,W=k.Symbol,U=k.Uint8Array,z=j?j.allocUnsafe:void 0,H=(d=Object.getPrototypeOf,c=Object,function(e){return d(c(e))}),G=Object.create,q=O.propertyIsEnumerable,$=_.splice,K=W?W.toStringTag:void 0,Y=function(){try{var e=ep(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Z=j?j.isBuffer:void 0,X=Math.max,J=Date.now,Q=ep(k,"Map"),ee=ep(Object,"create"),et=function(){function e(){}return function(t){if(!eS(t))return{};if(G)return G(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function er(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function en(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ea(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ei(e){var t=this.__data__=new en(e);this.size=t.size}function eo(e,t,r){(void 0===r||ev(e[t],r))&&(void 0!==r||t in e)||el(e,t,r)}function es(e,t){for(var r=e.length;r--;)if(ev(e[r][0],t))return r;return -1}function el(e,t,r){"__proto__"==t&&Y?Y(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}er.prototype.clear=function(){this.__data__=ee?ee(null):{},this.size=0},er.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},er.prototype.get=function(e){var t=this.__data__;if(ee){var r=t[e];return r===m?void 0:r}return L.call(t,e)?t[e]:void 0},er.prototype.has=function(e){var t=this.__data__;return ee?void 0!==t[e]:L.call(t,e)},er.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=ee&&void 0===t?m:t,this},en.prototype.clear=function(){this.__data__=[],this.size=0},en.prototype.delete=function(e){var t=this.__data__,r=es(t,e);return!(r<0)&&(r==t.length-1?t.pop():$.call(t,r,1),--this.size,!0)},en.prototype.get=function(e){var t=this.__data__,r=es(t,e);return r<0?void 0:t[r][1]},en.prototype.has=function(e){return es(this.__data__,e)>-1},en.prototype.set=function(e,t){var r=this.__data__,n=es(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},ea.prototype.clear=function(){this.size=0,this.__data__={hash:new er,map:new(Q||en),string:new er}},ea.prototype.delete=function(e){var t=eh(this,e).delete(e);return this.size-=!!t,t},ea.prototype.get=function(e){return eh(this,e).get(e)},ea.prototype.has=function(e){return eh(this,e).has(e)},ea.prototype.set=function(e,t){var r=eh(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this},ei.prototype.clear=function(){this.__data__=new en,this.size=0},ei.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ei.prototype.get=function(e){return this.__data__.get(e)},ei.prototype.has=function(e){return this.__data__.has(e)},ei.prototype.set=function(e,t){var r=this.__data__;if(r instanceof en){var n=r.__data__;if(!Q||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ea(n)}return r.set(e,t),this.size=r.size,this};var eu=function(e,t,r){for(var n=-1,a=Object(e),i=r(e),o=i.length;o--;){var s=i[++n];if(!1===t(a[s],s,a))break}return e};function ed(e){var t;return null==e?void 0===e?"[object Undefined]":"[object Null]":K&&K in Object(e)?function(e){var t=L.call(e,K),r=e[K];try{e[K]=void 0;var n=!0}catch(e){}var a=V.call(e);return n&&(t?e[K]=r:delete e[K]),a}(e):(t=e,V.call(t))}function ec(e){return eE(e)&&ed(e)==f}function eh(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function ep(e,t){var r,n=null==e?void 0:e[t];return!(!eS(n)||(r=n,N&&N in r))&&(ek(n)?B:v).test(function(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(n))?n:void 0}function em(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&b.test(e))&&e>-1&&e%1==0&&e<t}function ef(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||O)}function eg(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ey=(n=Y?function(e,t){var r;return Y(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0})}:e_,a=0,i=0,function(){var e=J(),t=16-(e-i);if(i=e,t>0){if(++a>=800)return arguments[0]}else a=0;return n.apply(void 0,arguments)});function ev(e,t){return e===t||e!=e&&t!=t}var eb=ec(function(){return arguments}())?ec:function(e){return eE(e)&&L.call(e,"callee")&&!q.call(e,"callee")},ew=Array.isArray;function ex(e){return null!=e&&eM(e.length)&&!ek(e)}var eC=Z||function(){return!1};function ek(e){if(!eS(e))return!1;var t=ed(e);return t==g||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eM(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eS(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eE(e){return null!=e&&"object"==typeof e}var eT=P?function(e){return P(e)}:function(e){return eE(e)&&eM(e.length)&&!!w[ed(e)]};function eI(e){return ex(e)?function(e,t){var r=ew(e),n=!r&&eb(e),a=!r&&!n&&eC(e),i=!r&&!n&&!a&&eT(e),o=r||n||a||i,s=o?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=s.length;for(var u in e)(t||L.call(e,u))&&!(o&&("length"==u||a&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||em(u,l)))&&s.push(u);return s}(e,!0):function(e){if(!eS(e)){var t=e,r=[];if(null!=t)for(var n in Object(t))r.push(n);return r}var a=ef(e),i=[];for(var o in e)"constructor"==o&&(a||!L.call(e,o))||i.push(o);return i}(e)}var eP=(h=function(e,t,r){!function e(t,r,n,a,i){t!==r&&eu(r,function(o,s){if(i||(i=new ei),eS(o))!function(e,t,r,n,a,i,o){var s=eg(e,r),l=eg(t,r),u=o.get(l);if(u)return eo(e,r,u);var d=i?i(s,l,r+"",e,t,o):void 0,c=void 0===d;if(c){var h,p,m,f,g,v,b,w=ew(l),x=!w&&eC(l),C=!w&&!x&&eT(l);d=l,w||x||C?ew(s)?d=s:eE(h=s)&&ex(h)?d=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(s):x?(c=!1,d=function(e,t){if(t)return e.slice();var r=e.length,n=z?z(r):new e.constructor(r);return e.copy(n),n}(l,!0)):C?(c=!1,p=l,g=(new U(f=new(m=p.buffer).constructor(m.byteLength)).set(new U(m)),f),d=new p.constructor(g,p.byteOffset,p.length)):d=[]:function(e){if(!eE(e)||ed(e)!=y)return!1;var t=H(e);if(null===t)return!0;var r=L.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&R.call(r)==F}(l)||eb(l)?(d=s,eb(s)?d=function(e,t,r){var n=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var o=t[a],s=void 0;void 0===s&&(s=e[o]),n?el(r,o,s):function(e,t,r){var n=e[t];L.call(e,t)&&ev(n,r)&&(void 0!==r||t in e)||el(e,t,r)}(r,o,s)}return r}(v=s,eI(v)):(!eS(s)||ek(s))&&(d="function"!=typeof(b=l).constructor||ef(b)?{}:et(H(b)))):c=!1}c&&(o.set(l,d),a(d,l,n,i,o),o.delete(l)),eo(e,r,d)}(t,r,s,n,e,a,i);else{var l=a?a(eg(t,s),o,s+"",t,r,i):void 0;void 0===l&&(l=o),eo(t,s,l)}},eI)}(e,t,r)},ey((o=p=function(e,t){var r=-1,n=t.length,a=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(a=h.length>3&&"function"==typeof a?(n--,a):void 0,i&&function(e,t,r){if(!eS(r))return!1;var n=typeof t;return("number"==n?!!(ex(r)&&em(t,r.length)):"string"==n&&t in r)&&ev(r[t],e)}(t[0],t[1],i)&&(a=n<3?void 0:a,n=1),e=Object(e);++r<n;){var o=t[r];o&&h(e,o,r)}return e},s=void 0,l=e_,s=X(void 0===s?o.length-1:s,0),function(){for(var e=arguments,t=-1,r=X(e.length-s,0),n=Array(r);++t<r;)n[t]=e[s+t];t=-1;for(var a=Array(s+1);++t<s;)a[t]=e[t];a[s]=l(n);switch(a.length){case 0:return o.call(this);case 1:return o.call(this,a[0]);case 2:return o.call(this,a[0],a[1]);case 3:return o.call(this,a[0],a[1],a[2])}return o.apply(this,a)}),p+""));function e_(e){return e}e.exports=eP},7256(e){"use strict";e.exports=Math.abs},5414(e){"use strict";e.exports=Math.floor},981(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},7954(e){"use strict";e.exports=Math.max},3452(e){"use strict";e.exports=Math.min},1358(e){"use strict";e.exports=Math.pow},5720(e){"use strict";e.exports=Math.round},3515(e,t,r){"use strict";var n=r(981);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},4867(e,t,r){e=r.nmd(e),e.exports=function(){"use strict";function t(){return W.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(i(e,t))return!1;return!0}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var r,n=[],a=e.length;for(r=0;r<a;++r)n.push(t(e[r],r));return n}function c(e,t){for(var r in t)i(t,r)&&(e[r]=t[r]);return i(t,"toString")&&(e.toString=t.toString),i(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,r,n){return ti(e,t,r,n,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());return(n&&(t=p(e),r=U.call(t.parsedDateParts,function(e){return null!=e}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e))?n:(e._isValid=n,e._isValid)}function f(e){var t=h(NaN);return null!=e?c(p(t),e):p(t).userInvalidated=!0,t}U=Array.prototype.some?Array.prototype.some:function(e){var t,r=Object(this),n=r.length>>>0;for(t=0;t<n;t++)if(t in r&&e.call(this,r[t],t,r))return!0;return!1};var g,y,v=t.momentProperties=[],b=!1;function w(e,t){var r,n,a,i=v.length;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=p(t)),s(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)s(a=t[n=v[r]])||(e[n]=a);return e}function x(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,t.updateOffset(this),b=!1)}function C(e){return e instanceof x||null!=e&&null!=e._isAMomentObject}function k(e){!1===t.suppressDeprecationWarnings&&"u">typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function M(e,r){var n=!0;return c(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){var a,o,s,l=[],u=arguments.length;for(o=0;o<u;o++){if(a="","object"==typeof arguments[o]){for(s in a+="\n["+o+"] ",arguments[0])i(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[o];l.push(a)}k(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+Error().stack),n=!1}return r.apply(this,arguments)},r)}var S={};function E(e,r){null!=t.deprecationHandler&&t.deprecationHandler(e,r),S[e]||(k(r),S[e]=!0)}function T(e){return"u">typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function I(e,t){var r,n=c({},e);for(r in t)i(t,r)&&(a(e[r])&&a(t[r])?(n[r]={},c(n[r],e[r]),c(n[r],t[r])):null!=t[r]?n[r]=t[r]:delete n[r]);for(r in e)i(e,r)&&!i(t,r)&&a(e[r])&&(n[r]=c({},n[r]));return n}function P(e){null!=e&&this.set(e)}function _(e,t,r){var n=""+Math.abs(e);return(e>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A={},R={};function L(e,t,r,n){var a=n;"string"==typeof n&&(a=function(){return this[n]()}),e&&(R[e]=a),t&&(R[t[0]]=function(){return _(a.apply(this,arguments),t[1],t[2])}),r&&(R[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(A[t=V(t,e.localeData())]=A[t]||function(e){var t,r,n,a=e.match(D);for(r=0,n=a.length;r<n;r++)R[a[r]]?a[r]=R[a[r]]:a[r]=(t=a[r]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){var r,i="";for(r=0;r<n;r++)i+=T(a[r])?a[r].call(t,e):a[r];return i}}(t),A[t](e)):e.localeData().invalidDate()}function V(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(O.lastIndex=0;r>=0&&O.test(e);)e=e.replace(O,n),O.lastIndex=0,r-=1;return e}var F={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function B(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function j(e){var t,r,n={};for(r in e)i(e,r)&&(t=B(r))&&(n[t]=e[r]);return n}var W,U,z,H={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},G=Object.keys?Object.keys:function(e){var t,r=[];for(t in e)i(e,t)&&r.push(t);return r},q=/\d/,$=/\d\d/,K=/\d{3}/,Y=/\d{4}/,Z=/[+-]?\d{6}/,X=/\d\d?/,J=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,ee=/\d{1,3}/,et=/\d{1,4}/,er=/[+-]?\d{1,6}/,en=/\d+/,ea=/[+-]?\d+/,ei=/Z|[+-]\d\d:?\d\d/gi,eo=/Z|[+-]\d\d(?::?\d\d)?/gi,es=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,el=/^[1-9]\d?/,eu=/^([1-9]\d|\d)/;function ed(e,t,r){z[e]=T(t)?t:function(e,n){return e&&r?r:t}}function ec(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function eh(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ep(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=eh(t)),r}z={};var em={};function ef(e,t){var r,n,a=t;for("string"==typeof e&&(e=[e]),l(t)&&(a=function(e,r){r[t]=ep(e)}),n=e.length,r=0;r<n;r++)em[e[r]]=a}function eg(e,t){ef(e,function(e,r,n,a){n._w=n._w||{},t(e,n._w,n,a)})}function ey(e){return e%4==0&&e%100!=0||e%400==0}function ev(e){return ey(e)?366:365}L("Y",0,0,function(){var e=this.year();return e<=9999?_(e,4):"+"+e}),L(0,["YY",2],0,function(){return this.year()%100}),L(0,["YYYY",4],0,"year"),L(0,["YYYYY",5],0,"year"),L(0,["YYYYYY",6,!0],0,"year"),ed("Y",ea),ed("YY",X,$),ed("YYYY",et,Y),ed("YYYYY",er,Z),ed("YYYYYY",er,Z),ef(["YYYYY","YYYYYY"],0),ef("YYYY",function(e,r){r[0]=2===e.length?t.parseTwoDigitYear(e):ep(e)}),ef("YY",function(e,r){r[0]=t.parseTwoDigitYear(e)}),ef("Y",function(e,t){t[0]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return ep(e)+(ep(e)>68?1900:2e3)};var eb=ew("FullYear",!0);function ew(e,r){return function(n){return null!=n?(eC(this,e,n),t.updateOffset(this,r),this):ex(this,e)}}function ex(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function eC(e,t,r){var n,a,i,o;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=e.month(),o=29!==(o=e.date())||1!==i||ey(r)?o:28,a?n.setUTCFullYear(r,i,o):n.setFullYear(r,i,o)}}function ek(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=(t%12+12)%12;return e+=(t-r)/12,1===r?ey(e)?29:28:31-r%7%2}ez=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return -1},L("M",["MM",2],"Mo",function(){return this.month()+1}),L("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),L("MMMM",0,0,function(e){return this.localeData().months(this,e)}),ed("M",X,el),ed("MM",X,$),ed("MMM",function(e,t){return t.monthsShortRegex(e)}),ed("MMMM",function(e,t){return t.monthsRegex(e)}),ef(["M","MM"],function(e,t){t[1]=ep(e)-1}),ef(["MMM","MMMM"],function(e,t,r,n){var a=r._locale.monthsParse(e,n,r._strict);null!=a?t[1]=a:p(r).invalidMonth=e});var eM="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),eS=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function eE(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=h([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();if(r)if("MMM"===t)return -1!==(a=ez.call(this._shortMonthsParse,o))?a:null;else return -1!==(a=ez.call(this._longMonthsParse,o))?a:null;return"MMM"===t?-1!==(a=ez.call(this._shortMonthsParse,o))||-1!==(a=ez.call(this._longMonthsParse,o))?a:null:-1!==(a=ez.call(this._longMonthsParse,o))||-1!==(a=ez.call(this._shortMonthsParse,o))?a:null}function eT(e,t){if(!e.isValid())return e;if("string"==typeof t){if(/^\d+$/.test(t))t=ep(t);else if(!l(t=e.localeData().monthsParse(t)))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,ek(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function eI(e){return null!=e?(eT(this,e),t.updateOffset(this,!0),this):ex(this,"Month")}function eP(){function e(e,t){return t.length-e.length}var t,r,n,a,i=[],o=[],s=[];for(t=0;t<12;t++)r=h([2e3,t]),n=ec(this.monthsShort(r,"")),a=ec(this.months(r,"")),i.push(n),o.push(a),s.push(a),s.push(n);i.sort(e),o.sort(e),s.sort(e),this._monthsRegex=RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+i.join("|")+")","i")}function e_(e,t,r,n,a,i,o){var s;return e<100&&e>=0?isFinite((s=new Date(e+400,t,r,n,a,i,o)).getFullYear())&&s.setFullYear(e):s=new Date(e,t,r,n,a,i,o),s}function eD(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,r))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function eO(e,t,r){var n=7+t-r;return-((7+eD(e,0,n).getUTCDay()-t)%7)+n-1}function eA(e,t,r,n,a){var i,o,s=1+7*(t-1)+(7+r-n)%7+eO(e,n,a);return s<=0?o=ev(i=e-1)+s:s>ev(e)?(i=e+1,o=s-ev(e)):(i=e,o=s),{year:i,dayOfYear:o}}function eR(e,t,r){var n,a,i=eO(e.year(),t,r),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?n=o+eL(a=e.year()-1,t,r):o>eL(e.year(),t,r)?(n=o-eL(e.year(),t,r),a=e.year()+1):(a=e.year(),n=o),{week:n,year:a}}function eL(e,t,r){var n=eO(e,t,r),a=eO(e+1,t,r);return(ev(e)-n+a)/7}function eN(e,t){return e.slice(t,7).concat(e.slice(0,t))}L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),ed("w",X,el),ed("ww",X,$),ed("W",X,el),ed("WW",X,$),eg(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=ep(e)}),L("d",0,"do","day"),L("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),L("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),L("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),L("e",0,0,"weekday"),L("E",0,0,"isoWeekday"),ed("d",X),ed("e",X),ed("E",X),ed("dd",function(e,t){return t.weekdaysMinRegex(e)}),ed("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ed("dddd",function(e,t){return t.weekdaysRegex(e)}),eg(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);null!=a?t.d=a:p(r).invalidWeekday=e}),eg(["d","e","E"],function(e,t,r,n){t[n]=ep(e)});var eV="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eF(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=h([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();if(r)if("dddd"===t)return -1!==(a=ez.call(this._weekdaysParse,o))?a:null;else if("ddd"===t)return -1!==(a=ez.call(this._shortWeekdaysParse,o))?a:null;else return -1!==(a=ez.call(this._minWeekdaysParse,o))?a:null;return"dddd"===t?-1!==(a=ez.call(this._weekdaysParse,o))||-1!==(a=ez.call(this._shortWeekdaysParse,o))||-1!==(a=ez.call(this._minWeekdaysParse,o))?a:null:"ddd"===t?-1!==(a=ez.call(this._shortWeekdaysParse,o))||-1!==(a=ez.call(this._weekdaysParse,o))||-1!==(a=ez.call(this._minWeekdaysParse,o))?a:null:-1!==(a=ez.call(this._minWeekdaysParse,o))||-1!==(a=ez.call(this._weekdaysParse,o))||-1!==(a=ez.call(this._shortWeekdaysParse,o))?a:null}function eB(){function e(e,t){return t.length-e.length}var t,r,n,a,i,o=[],s=[],l=[],u=[];for(t=0;t<7;t++)r=h([2e3,1]).day(t),n=ec(this.weekdaysMin(r,"")),a=ec(this.weekdaysShort(r,"")),i=ec(this.weekdays(r,"")),o.push(n),s.push(a),l.push(i),u.push(n),u.push(a),u.push(i);o.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+o.join("|")+")","i")}function ej(){return this.hours()%12||12}function eW(e,t){L(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eU(e,t){return t._meridiemParse}L("H",["HH",2],0,"hour"),L("h",["hh",2],0,ej),L("k",["kk",2],0,function(){return this.hours()||24}),L("hmm",0,0,function(){return""+ej.apply(this)+_(this.minutes(),2)}),L("hmmss",0,0,function(){return""+ej.apply(this)+_(this.minutes(),2)+_(this.seconds(),2)}),L("Hmm",0,0,function(){return""+this.hours()+_(this.minutes(),2)}),L("Hmmss",0,0,function(){return""+this.hours()+_(this.minutes(),2)+_(this.seconds(),2)}),eW("a",!0),eW("A",!1),ed("a",eU),ed("A",eU),ed("H",X,eu),ed("h",X,el),ed("k",X,el),ed("HH",X,$),ed("hh",X,$),ed("kk",X,$),ed("hmm",J),ed("hmmss",Q),ed("Hmm",J),ed("Hmmss",Q),ef(["H","HH"],3),ef(["k","kk"],function(e,t,r){var n=ep(e);t[3]=24===n?0:n}),ef(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),ef(["h","hh"],function(e,t,r){t[3]=ep(e),p(r).bigHour=!0}),ef("hmm",function(e,t,r){var n=e.length-2;t[3]=ep(e.substr(0,n)),t[4]=ep(e.substr(n)),p(r).bigHour=!0}),ef("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[3]=ep(e.substr(0,n)),t[4]=ep(e.substr(n,2)),t[5]=ep(e.substr(a)),p(r).bigHour=!0}),ef("Hmm",function(e,t,r){var n=e.length-2;t[3]=ep(e.substr(0,n)),t[4]=ep(e.substr(n))}),ef("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[3]=ep(e.substr(0,n)),t[4]=ep(e.substr(n,2)),t[5]=ep(e.substr(a))});var ez,eH,eG=ew("Hours",!0),eq={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:eM,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eV,meridiemParse:/[ap]\.?m?\.?/i},e$={},eK={};function eY(e){return e?e.toLowerCase().replace("_","-"):e}function eZ(t){var n=null;if(void 0===e$[t]&&e&&e.exports&&t&&t.match("^[^/\\\\]*$"))try{n=eH._abbr,r(3118)("./locale/"+t),eX(n)}catch(e){e$[t]=null}return e$[t]}function eX(e,t){var r;return e&&((r=s(t)?eQ(e):eJ(e,t))?eH=r:"u">typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eH._abbr}function eJ(e,t){if(null===t)return delete e$[e],null;var r,n=eq;if(t.abbr=e,null!=e$[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=e$[e]._config;else if(null!=t.parentLocale)if(null!=e$[t.parentLocale])n=e$[t.parentLocale]._config;else{if(null==(r=eZ(t.parentLocale)))return eK[t.parentLocale]||(eK[t.parentLocale]=[]),eK[t.parentLocale].push({name:e,config:t}),null;n=r._config}return e$[e]=new P(I(n,t)),eK[e]&&eK[e].forEach(function(e){eJ(e.name,e.config)}),eX(e),e$[e]}function eQ(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eH;if(!n(e)){if(t=eZ(e))return t;e=[e]}return function(e){for(var t,r,n,a,i=0;i<e.length;){for(t=(a=eY(e[i]).split("-")).length,r=(r=eY(e[i+1]))?r.split("-"):null;t>0;){if(n=eZ(a.slice(0,t).join("-")))return n;if(r&&r.length>=t&&function(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}(a,r)>=t-1)break;t--}i++}return eH}(e)}function e0(e){var t,r=e._a;return r&&-2===p(e).overflow&&(t=r[1]<0||r[1]>11?1:r[2]<1||r[2]>ek(r[0],r[1])?2:r[3]<0||r[3]>24||24===r[3]&&(0!==r[4]||0!==r[5]||0!==r[6])?3:r[4]<0||r[4]>59?4:r[5]<0||r[5]>59?5:r[6]<0||r[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}var e1=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e2=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e5=/Z|[+-]\d\d(?::?\d\d)?/,e3=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],e4=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],e8=/^\/?Date\((-?\d+)/i,e6=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,e9={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function e7(e){var t,r,n,a,i,o,s=e._i,l=e1.exec(s)||e2.exec(s),u=e3.length,d=e4.length;if(l){for(p(e).iso=!0,t=0,r=u;t<r;t++)if(e3[t][1].exec(l[1])){a=e3[t][0],n=!1!==e3[t][2];break}if(null==a){e._isValid=!1;return}if(l[3]){for(t=0,r=d;t<r;t++)if(e4[t][1].exec(l[3])){i=(l[2]||" ")+e4[t][0];break}if(null==i){e._isValid=!1;return}}if(!n&&null!=i){e._isValid=!1;return}if(l[4])if(e5.exec(l[4]))o="Z";else{e._isValid=!1;return}e._f=a+(i||"")+(o||""),tn(e)}else e._isValid=!1}function te(e){var t,r,n,a,i,o,s,l,u,d,c,h=e6.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(h){if(i=h[4],o=h[3],s=h[2],l=h[5],u=h[6],d=h[7],c=[(t=parseInt(i,10))<=49?2e3+t:t<=999?1900+t:t,eM.indexOf(o),parseInt(s,10),parseInt(l,10),parseInt(u,10)],d&&c.push(parseInt(d,10)),r=h[1],n=c,a=e,r&&eV.indexOf(r)!==new Date(n[0],n[1],n[2]).getDay()&&(p(a).weekdayMismatch=!0,a._isValid=!1,1))return;e._a=c,e._tzm=function(e,t,r){if(e)return e9[e];if(t)return 0;var n=parseInt(r,10),a=n%100;return(n-a)/100*60+a}(h[8],h[9],h[10]),e._d=eD.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function tt(e,t,r){return null!=e?e:null!=t?t:r}function tr(e){var r,n,a,i,o,s,l,u,d,c,h,m,f,g,y,v,b=[];if(!e._d){for(h=new Date(t.now()),g=e._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],e._w&&null==e._a[2]&&null==e._a[1]&&(null!=(n=(r=e)._w).GG||null!=n.W||null!=n.E?(s=1,l=4,a=tt(n.GG,r._a[0],eR(to(),1,4).year),i=tt(n.W,1),((o=tt(n.E,1))<1||o>7)&&(d=!0)):(s=r._locale._week.dow,l=r._locale._week.doy,c=eR(to(),s,l),a=tt(n.gg,r._a[0],c.year),i=tt(n.w,c.week),null!=n.d?((o=n.d)<0||o>6)&&(d=!0):null!=n.e?(o=n.e+s,(n.e<0||n.e>6)&&(d=!0)):o=s),i<1||i>eL(a,s,l)?p(r)._overflowWeeks=!0:null!=d?p(r)._overflowWeekday=!0:(u=eA(a,i,o,s,l),r._a[0]=u.year,r._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(v=tt(e._a[0],g[0]),(e._dayOfYear>ev(v)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),f=eD(v,0,e._dayOfYear),e._a[1]=f.getUTCMonth(),e._a[2]=f.getUTCDate()),m=0;m<3&&null==e._a[m];++m)e._a[m]=b[m]=g[m];for(;m<7;m++)e._a[m]=b[m]=null==e._a[m]?+(2===m):e._a[m];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?eD:e_).apply(null,b),y=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==y&&(p(e).weekdayMismatch=!0)}}function tn(e){if(e._f===t.ISO_8601)return void e7(e);if(e._f===t.RFC_2822)return void te(e);e._a=[],p(e).empty=!0;var r,n,a,o,s,l,u,d,c,h,m,f=""+e._i,g=f.length,y=0;for(m=(u=V(e._f,e._locale).match(D)||[]).length,s=0;s<m;s++)if(d=u[s],(l=(f.match(!i(z,d)?new RegExp(ec(d.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,n,a){return t||r||n||a}))):z[d](e._strict,e._locale))||[])[0])&&((c=f.substr(0,f.indexOf(l))).length>0&&p(e).unusedInput.push(c),f=f.slice(f.indexOf(l)+l.length),y+=l.length),R[d])l?p(e).empty=!1:p(e).unusedTokens.push(d),null!=l&&i(em,d)&&em[d](l,e._a,e,d);else e._strict&&!l&&p(e).unusedTokens.push(d);p(e).charsLeftOver=g-y,f.length>0&&p(e).unusedInput.push(f),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=(r=e._locale,n=e._a[3],null==(a=e._meridiem)?n:null!=r.meridiemHour?r.meridiemHour(n,a):(null!=r.isPM&&((o=r.isPM(a))&&n<12&&(n+=12),o||12!==n||(n=0)),n)),null!==(h=p(e).era)&&(e._a[0]=e._locale.erasConvertYear(h,e._a[0])),tr(e),e0(e)}function ta(e){var r=e._i,i=e._f;return(e._locale=e._locale||eQ(e._l),null===r||void 0===i&&""===r)?f({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),C(r))?new x(e0(r)):(u(r)?e._d=r:n(i)?!function(e){var t,r,n,a,i,o,s=!1,l=e._f.length;if(0===l){p(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<l;a++)i=0,o=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],tn(t),m(t)&&(o=!0),i+=p(t).charsLeftOver,i+=10*p(t).unusedTokens.length,p(t).score=i,s?i<n&&(n=i,r=t):(null==n||i<n||o)&&(n=i,r=t,o&&(s=!0));c(e,r||t)}(e):i?tn(e):function(e){var r=e._i;if(s(r))e._d=new Date(t.now());else if(u(r))e._d=new Date(r.valueOf());else if("string"==typeof r)!function(e){var r=e8.exec(e._i);if(null!==r){e._d=new Date(+r[1]);return}e7(e),!1!==e._isValid||(delete e._isValid,te(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e)))}(e);else if(n(r))e._a=d(r.slice(0),function(e){return parseInt(e,10)}),tr(e);else if(a(r)){if(!e._d){var i=j(e._i),o=void 0===i.day?i.date:i.day;e._a=d([i.year,i.month,o,i.hour,i.minute,i.second,i.millisecond],function(e){return e&&parseInt(e,10)}),tr(e)}}else l(r)?e._d=new Date(r):t.createFromInputFallback(e)}(e),m(e)||(e._d=null),e)}function ti(e,t,r,i,s){var l,u={};return(!0===t||!1===t)&&(i=t,t=void 0),(!0===r||!1===r)&&(i=r,r=void 0),(a(e)&&o(e)||n(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=r,u._i=e,u._f=t,u._strict=i,(l=new x(e0(ta(u))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function to(e,t,r,n){return ti(e,t,r,n,!1)}t.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var ts=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=to.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:f()}),tl=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=to.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:f()});function tu(e,t){var r,a;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return to();for(r=t[0],a=1;a<t.length;++a)(!t[a].isValid()||t[a][e](r))&&(r=t[a]);return r}var td=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tc(e){var t=j(e),r=t.year||0,n=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,u=t.minute||0,d=t.second||0,c=t.millisecond||0;this._isValid=function(e){var t,r,n=!1,a=td.length;for(t in e)if(i(e,t)&&!(-1!==ez.call(td,t)&&(null==e[t]||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[td[r]]){if(n)return!1;parseFloat(e[td[r]])!==ep(e[td[r]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*d+6e4*u+1e3*l*3600,this._days=+s+7*o,this._months=+a+3*n+12*r,this._data={},this._locale=eQ(),this._bubble()}function th(e){return e instanceof tc}function tp(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function tm(e,t){L(e,0,0,function(){var e=this.utcOffset(),r="+";return e<0&&(e=-e,r="-"),r+_(~~(e/60),2)+t+_(~~e%60,2)})}tm("Z",":"),tm("ZZ",""),ed("Z",eo),ed("ZZ",eo),ef(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=tg(eo,e)});var tf=/([\+\-]|\d\d)/gi;function tg(e,t){var r,n,a=(t||"").match(e);return null===a?null:0===(n=+(60*(r=((a[a.length-1]||[])+"").match(tf)||["-",0,0])[1])+ep(r[2]))?0:"+"===r[0]?n:-n}function ty(e,r){var n,a;return r._isUTC?(n=r.clone(),a=(C(e)||u(e)?e.valueOf():to(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),t.updateOffset(n,!1),n):to(e).local()}function tv(e){return-Math.round(e._d.getTimezoneOffset())}function tb(){return!!this.isValid()&&this._isUTC&&0===this._offset}t.updateOffset=function(){};var tw=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tx=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function tC(e,t){var r,n,a,o,s,u,d=e,c=null;return th(e)?d={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(d={},t?d[t]=+e:d.milliseconds=+e):(c=tw.exec(e))?(o="-"===c[1]?-1:1,d={y:0,d:ep(c[2])*o,h:ep(c[3])*o,m:ep(c[4])*o,s:ep(c[5])*o,ms:ep(tp(1e3*c[6]))*o}):(c=tx.exec(e))?(o="-"===c[1]?-1:1,d={y:tk(c[2],o),M:tk(c[3],o),w:tk(c[4],o),d:tk(c[5],o),h:tk(c[6],o),m:tk(c[7],o),s:tk(c[8],o)}):null==d?d={}:"object"==typeof d&&("from"in d||"to"in d)&&(r=to(d.from),n=to(d.to),u=r.isValid()&&n.isValid()?(n=ty(n,r),r.isBefore(n)?a=tM(r,n):((a=tM(n,r)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(d={}).ms=u.milliseconds,d.M=u.months),s=new tc(d),th(e)&&i(e,"_locale")&&(s._locale=e._locale),th(e)&&i(e,"_isValid")&&(s._isValid=e._isValid),s}function tk(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function tM(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=t-e.clone().add(r.months,"M"),r}function tS(e,t){return function(r,n){var a;return null===n||isNaN(+n)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=n,n=a),tE(this,tC(r,n),e),this}}function tE(e,r,n,a){var i=r._milliseconds,o=tp(r._days),s=tp(r._months);e.isValid()&&(a=null==a||a,s&&eT(e,ex(e,"Month")+s*n),o&&eC(e,"Date",ex(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),a&&t.updateOffset(e,o||s))}tC.fn=tc.prototype,tC.invalid=function(){return tC(NaN)};var tT=tS(1,"add"),tI=tS(-1,"subtract");function tP(e){return"string"==typeof e||e instanceof String}function t_(e,t){if(e.date()<t.date())return-t_(t,e);var r,n=(t.year()-e.year())*12+(t.month()-e.month()),a=e.clone().add(n,"months");return r=t-a<0?(t-a)/(a-e.clone().add(n-1,"months")):(t-a)/(e.clone().add(n+1,"months")-a),-(n+r)||0}function tD(e){var t;return void 0===e?this._locale._abbr:(null!=(t=eQ(e))&&(this._locale=t),this)}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tO=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function tA(){return this._locale}function tR(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-126227808e5:new Date(e,t,r).valueOf()}function tL(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-126227808e5:Date.UTC(e,t,r)}function tN(e,t){return t.erasAbbrRegex(e)}function tV(){var e,t,r,n,a,i=[],o=[],s=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)r=ec(u[e].name),n=ec(u[e].abbr),a=ec(u[e].narrow),o.push(r),i.push(n),s.push(a),l.push(r),l.push(n),l.push(a);this._erasRegex=RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+s.join("|")+")","i")}function tF(e,t){L(0,[e,e.length],0,t)}function tB(e,t,r,n,a){var i;return null==e?eR(this,n,a).year:(t>(i=eL(e,n,a))&&(t=i),tj.call(this,e,t,r,n,a))}function tj(e,t,r,n,a){var i=eA(e,t,r,n,a),o=eD(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}L("N",0,0,"eraAbbr"),L("NN",0,0,"eraAbbr"),L("NNN",0,0,"eraAbbr"),L("NNNN",0,0,"eraName"),L("NNNNN",0,0,"eraNarrow"),L("y",["y",1],"yo","eraYear"),L("y",["yy",2],0,"eraYear"),L("y",["yyy",3],0,"eraYear"),L("y",["yyyy",4],0,"eraYear"),ed("N",tN),ed("NN",tN),ed("NNN",tN),ed("NNNN",function(e,t){return t.erasNameRegex(e)}),ed("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ef(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?p(r).era=a:p(r).invalidEra=e}),ed("y",en),ed("yy",en),ed("yyy",en),ed("yyyy",en),ed("yo",function(e,t){return t._eraYearOrdinalRegex||en}),ef(["y","yy","yyy","yyyy"],0),ef(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[0]=r._locale.eraYearOrdinalParse(e,a):t[0]=parseInt(e,10)}),L(0,["gg",2],0,function(){return this.weekYear()%100}),L(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tF("gggg","weekYear"),tF("ggggg","weekYear"),tF("GGGG","isoWeekYear"),tF("GGGGG","isoWeekYear"),ed("G",ea),ed("g",ea),ed("GG",X,$),ed("gg",X,$),ed("GGGG",et,Y),ed("gggg",et,Y),ed("GGGGG",er,Z),ed("ggggg",er,Z),eg(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=ep(e)}),eg(["gg","GG"],function(e,r,n,a){r[a]=t.parseTwoDigitYear(e)}),L("Q",0,"Qo","quarter"),ed("Q",q),ef("Q",function(e,t){t[1]=(ep(e)-1)*3}),L("D",["DD",2],"Do","date"),ed("D",X,el),ed("DD",X,$),ed("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ef(["D","DD"],2),ef("Do",function(e,t){t[2]=ep(e.match(X)[0])});var tW=ew("Date",!0);L("DDD",["DDDD",3],"DDDo","dayOfYear"),ed("DDD",ee),ed("DDDD",K),ef(["DDD","DDDD"],function(e,t,r){r._dayOfYear=ep(e)}),L("m",["mm",2],0,"minute"),ed("m",X,eu),ed("mm",X,$),ef(["m","mm"],4);var tU=ew("Minutes",!1);L("s",["ss",2],0,"second"),ed("s",X,eu),ed("ss",X,$),ef(["s","ss"],5);var tz=ew("Seconds",!1);for(L("S",0,0,function(){return~~(this.millisecond()/100)}),L(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),L(0,["SSS",3],0,"millisecond"),L(0,["SSSS",4],0,function(){return 10*this.millisecond()}),L(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),L(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),L(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),L(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),L(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ed("S",ee,q),ed("SS",ee,$),ed("SSS",ee,K),g="SSSS";g.length<=9;g+="S")ed(g,en);function tH(e,t){t[6]=ep(("0."+e)*1e3)}for(g="S";g.length<=9;g+="S")ef(g,tH);y=ew("Milliseconds",!1),L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName");var tG=x.prototype;function tq(e){return e}tG.add=tT,tG.calendar=function(e,r){if(1==arguments.length)if(arguments[0]){var s,d,c,h;if(s=arguments[0],C(s)||u(s)||tP(s)||l(s)||(c=n(d=s),h=!1,c&&(h=0===d.filter(function(e){return!l(e)&&tP(d)}).length),c&&h)||function(e){var t,r,n=a(e)&&!o(e),s=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=l.length;for(t=0;t<u;t+=1)r=l[t],s=s||i(e,r);return n&&s}(s)||null==s)e=arguments[0],r=void 0;else(function(e){var t,r,n=a(e)&&!o(e),s=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<l.length;t+=1)r=l[t],s=s||i(e,r);return n&&s})(arguments[0])&&(r=arguments[0],e=void 0)}else e=void 0,r=void 0;var p=e||to(),m=ty(p,this).startOf("day"),f=t.calendarFormat(this,m)||"sameElse",g=r&&(T(r[f])?r[f].call(this,p):r[f]);return this.format(g||this.localeData().calendar(f,this,to(p)))},tG.clone=function(){return new x(this)},tG.diff=function(e,t,r){var n,a,i;if(!this.isValid()||!(n=ty(e,this)).isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,t=B(t)){case"year":i=t_(this,n)/12;break;case"month":i=t_(this,n);break;case"quarter":i=t_(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-a)/864e5;break;case"week":i=(this-n-a)/6048e5;break;default:i=this-n}return r?i:eh(i)},tG.endOf=function(e){var r,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tL:tR,e){case"year":r=n(this.year()+1,0,1)-1;break;case"quarter":r=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":r=n(this.year(),this.month()+1,1)-1;break;case"week":r=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":r=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":r=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":r=this._d.valueOf(),r+=36e5-((r+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5-1;break;case"minute":r=this._d.valueOf(),r+=6e4-(r%6e4+6e4)%6e4-1;break;case"second":r=this._d.valueOf(),r+=1e3-(r%1e3+1e3)%1e3-1}return this._d.setTime(r),t.updateOffset(this,!0),this},tG.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var r=N(this,e);return this.localeData().postformat(r)},tG.from=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||to(e).isValid())?tC({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tG.fromNow=function(e){return this.from(to(),e)},tG.to=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||to(e).isValid())?tC({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tG.toNow=function(e){return this.to(to(),e)},tG.get=function(e){return T(this[e=B(e)])?this[e]():this},tG.invalidAt=function(){return p(this).overflow},tG.isAfter=function(e,t){var r=C(e)?e:to(e);return!!(this.isValid()&&r.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf())},tG.isBefore=function(e,t){var r=C(e)?e:to(e);return!!(this.isValid()&&r.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf())},tG.isBetween=function(e,t,r,n){var a=C(e)?e:to(e),i=C(t)?t:to(t);return!!(this.isValid()&&a.isValid()&&i.isValid())&&("("===(n=n||"()")[0]?this.isAfter(a,r):!this.isBefore(a,r))&&(")"===n[1]?this.isBefore(i,r):!this.isAfter(i,r))},tG.isSame=function(e,t){var r,n=C(e)?e:to(e);return!!(this.isValid()&&n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()))},tG.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},tG.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},tG.isValid=function(){return m(this)},tG.lang=tO,tG.locale=tD,tG.localeData=tA,tG.max=tl,tG.min=ts,tG.parsingFlags=function(){return c({},p(this))},tG.set=function(e,t){if("object"==typeof e){var r,n=function(e){var t,r=[];for(t in e)i(e,t)&&r.push({unit:t,priority:H[t]});return r.sort(function(e,t){return e.priority-t.priority}),r}(e=j(e)),a=n.length;for(r=0;r<a;r++)this[n[r].unit](e[n[r].unit])}else if(T(this[e=B(e)]))return this[e](t);return this},tG.startOf=function(e){var r,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tL:tR,e){case"year":r=n(this.year(),0,1);break;case"quarter":r=n(this.year(),this.month()-this.month()%3,1);break;case"month":r=n(this.year(),this.month(),1);break;case"week":r=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":r=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":r=n(this.year(),this.month(),this.date());break;case"hour":r=this._d.valueOf(),r-=((r+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5;break;case"minute":r=this._d.valueOf(),r-=(r%6e4+6e4)%6e4;break;case"second":r=this._d.valueOf(),r-=(r%1e3+1e3)%1e3}return this._d.setTime(r),t.updateOffset(this,!0),this},tG.subtract=tI,tG.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},tG.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},tG.toDate=function(){return new Date(this.valueOf())},tG.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,r=t?this.clone().utc():this;if(0>r.year()||r.year()>9999)return N(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(T(Date.prototype.toISOString))if(t)return this.toDate().toISOString();else return new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(r,"Z"));return N(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},tG.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r,n="moment",a="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+n+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",r=a+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+r)},"u">typeof Symbol&&null!=Symbol.for&&(tG[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tG.toJSON=function(){return this.isValid()?this.toISOString():null},tG.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tG.unix=function(){return Math.floor(this.valueOf()/1e3)},tG.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tG.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tG.eraName=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""},tG.eraNarrow=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""},tG.eraAbbr=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""},tG.eraYear=function(){var e,r,n,a,i=this.localeData().eras();for(e=0,r=i.length;e<r;++e)if(n=i[e].since<=i[e].until?1:-1,a=this.clone().startOf("day").valueOf(),i[e].since<=a&&a<=i[e].until||i[e].until<=a&&a<=i[e].since)return(this.year()-t(i[e].since).year())*n+i[e].offset;return this.year()},tG.year=eb,tG.isLeapYear=function(){return ey(this.year())},tG.weekYear=function(e){return tB.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},tG.isoWeekYear=function(e){return tB.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},tG.quarter=tG.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)},tG.month=eI,tG.daysInMonth=function(){return ek(this.year(),this.month())},tG.week=tG.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add((e-t)*7,"d")},tG.isoWeek=tG.isoWeeks=function(e){var t=eR(this,1,4).week;return null==e?t:this.add((e-t)*7,"d")},tG.weeksInYear=function(){var e=this.localeData()._week;return eL(this.year(),e.dow,e.doy)},tG.weeksInWeekYear=function(){var e=this.localeData()._week;return eL(this.weekYear(),e.dow,e.doy)},tG.isoWeeksInYear=function(){return eL(this.year(),1,4)},tG.isoWeeksInISOWeekYear=function(){return eL(this.isoWeekYear(),1,4)},tG.date=tW,tG.day=tG.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,r,n=ex(this,"Day");return null==e?n:(t=e,r=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=r.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d"))},tG.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},tG.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,r=(t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?r:r-7)},tG.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},tG.hour=tG.hours=eG,tG.minute=tG.minutes=tU,tG.second=tG.seconds=tz,tG.millisecond=tG.milliseconds=y,tG.utcOffset=function(e,r,n){var a,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:tv(this);if("string"==typeof e){if(null===(e=tg(eo,e)))return this}else 16>Math.abs(e)&&!n&&(e*=60);return!this._isUTC&&r&&(a=tv(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),i!==e&&(!r||this._changeInProgress?tE(this,tC(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},tG.utc=function(e){return this.utcOffset(0,e)},tG.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(tv(this),"m")),this},tG.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tg(ei,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tG.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?to(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tG.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tG.isLocal=function(){return!!this.isValid()&&!this._isUTC},tG.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tG.isUtc=tb,tG.isUTC=tb,tG.zoneAbbr=function(){return this._isUTC?"UTC":""},tG.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tG.dates=M("dates accessor is deprecated. Use date instead.",tW),tG.months=M("months accessor is deprecated. Use month instead",eI),tG.years=M("years accessor is deprecated. Use year instead",eb),tG.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),tG.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=ta(t))._a?(e=t._isUTC?h(t._a):to(t._a),this._isDSTShifted=this.isValid()&&function(e,t){var r,n=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0;for(r=0;r<n;r++)ep(e[r])!==ep(t[r])&&i++;return i+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var t$=P.prototype;function tK(e,t,r,n){var a=eQ(),i=h().set(n,t);return a[r](i,e)}function tY(e,t,r){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return tK(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=tK(e,n,r,"month");return a}function tZ(e,t,r,n){"boolean"==typeof e||(r=t=e,e=!1),l(t)&&(r=t,t=void 0),t=t||"";var a,i=eQ(),o=e?i._week.dow:0,s=[];if(null!=r)return tK(t,(r+o)%7,n,"day");for(a=0;a<7;a++)s[a]=tK(t,(a+o)%7,n,"day");return s}t$.calendar=function(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return T(n)?n.call(t,r):n},t$.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(D).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},t$.invalidDate=function(){return this._invalidDate},t$.ordinal=function(e){return this._ordinal.replace("%d",e)},t$.preparse=tq,t$.postformat=tq,t$.relativeTime=function(e,t,r,n){var a=this._relativeTime[r];return T(a)?a(e,t,r,n):a.replace(/%d/i,e)},t$.pastFuture=function(e,t){var r=this._relativeTime[e>0?"future":"past"];return T(r)?r(t):r.replace(/%s/i,t)},t$.set=function(e){var t,r;for(r in e)i(e,r)&&(T(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},t$.eras=function(e,r){var n,a,i,o=this._eras||eQ("en")._eras;for(n=0,a=o.length;n<a;++n)switch("string"==typeof o[n].since&&(i=t(o[n].since).startOf("day"),o[n].since=i.valueOf()),typeof o[n].until){case"undefined":o[n].until=Infinity;break;case"string":i=t(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf()}return o},t$.erasParse=function(e,t,r){var n,a,i,o,s,l=this.eras();for(e=e.toUpperCase(),n=0,a=l.length;n<a;++n)if(i=l[n].name.toUpperCase(),o=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[n];break;case"NNNN":if(i===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if([i,o,s].indexOf(e)>=0)return l[n]},t$.erasConvertYear=function(e,r){var n=e.since<=e.until?1:-1;return void 0===r?t(e.since).year():t(e.since).year()+(r-e.offset)*n},t$.erasAbbrRegex=function(e){return i(this,"_erasAbbrRegex")||tV.call(this),e?this._erasAbbrRegex:this._erasRegex},t$.erasNameRegex=function(e){return i(this,"_erasNameRegex")||tV.call(this),e?this._erasNameRegex:this._erasRegex},t$.erasNarrowRegex=function(e){return i(this,"_erasNarrowRegex")||tV.call(this),e?this._erasNarrowRegex:this._erasRegex},t$.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||eS).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},t$.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[eS.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},t$.monthsParse=function(e,t,r){var n,a,i;if(this._monthsParseExact)return eE.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=h([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=RegExp(i.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}},t$.monthsRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||eP.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(i(this,"_monthsRegex")||(this._monthsRegex=es),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},t$.monthsShortRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||eP.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(i(this,"_monthsShortRegex")||(this._monthsShortRegex=es),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},t$.week=function(e){return eR(e,this._week.dow,this._week.doy).week},t$.firstDayOfYear=function(){return this._week.doy},t$.firstDayOfWeek=function(){return this._week.dow},t$.weekdays=function(e,t){var r=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?eN(r,this._week.dow):e?r[e.day()]:r},t$.weekdaysMin=function(e){return!0===e?eN(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},t$.weekdaysShort=function(e){return!0===e?eN(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},t$.weekdaysParse=function(e,t,r){var n,a,i;if(this._weekdaysParseExact)return eF.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=h([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=RegExp(i.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;else if(!r&&this._weekdaysParse[n].test(e))return n}},t$.weekdaysRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eB.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(i(this,"_weekdaysRegex")||(this._weekdaysRegex=es),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},t$.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eB.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=es),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},t$.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eB.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=es),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},t$.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},t$.meridiem=function(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"},eX("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=1===ep(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+r}}),t.lang=M("moment.lang is deprecated. Use moment.locale instead.",eX),t.langData=M("moment.langData is deprecated. Use moment.localeData instead.",eQ);var tX=Math.abs;function tJ(e,t,r,n){var a=tC(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function tQ(e){return e<0?Math.floor(e):Math.ceil(e)}function t0(e){return 4800*e/146097}function t1(e){return 146097*e/4800}function t2(e){return function(){return this.as(e)}}var t5=t2("ms"),t3=t2("s"),t4=t2("m"),t8=t2("h"),t6=t2("d"),t9=t2("w"),t7=t2("M"),re=t2("Q"),rt=t2("y");function rr(e){return function(){return this.isValid()?this._data[e]:NaN}}var rn=rr("milliseconds"),ra=rr("seconds"),ri=rr("minutes"),ro=rr("hours"),rs=rr("days"),rl=rr("months"),ru=rr("years"),rd=Math.round,rc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function rh(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}var rp=Math.abs;function rm(e){return(e>0)-(e<0)||+e}function rf(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n,a,i,o,s,l=rp(this._milliseconds)/1e3,u=rp(this._days),d=rp(this._months),c=this.asSeconds();return c?(e=eh(l/60),t=eh(e/60),l%=60,e%=60,r=eh(d/12),d%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=c<0?"-":"",i=rm(this._months)!==rm(c)?"-":"",o=rm(this._days)!==rm(c)?"-":"",s=rm(this._milliseconds)!==rm(c)?"-":"",a+"P"+(r?i+r+"Y":"")+(d?i+d+"M":"")+(u?o+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+n+"S":"")):"P0D"}var rg=tc.prototype;return rg.isValid=function(){return this._isValid},rg.abs=function(){var e=this._data;return this._milliseconds=tX(this._milliseconds),this._days=tX(this._days),this._months=tX(this._months),e.milliseconds=tX(e.milliseconds),e.seconds=tX(e.seconds),e.minutes=tX(e.minutes),e.hours=tX(e.hours),e.months=tX(e.months),e.years=tX(e.years),this},rg.add=function(e,t){return tJ(this,e,t,1)},rg.subtract=function(e,t){return tJ(this,e,t,-1)},rg.as=function(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+t0(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(t1(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw Error("Unknown unit "+e)}},rg.asMilliseconds=t5,rg.asSeconds=t3,rg.asMinutes=t4,rg.asHours=t8,rg.asDays=t6,rg.asWeeks=t9,rg.asMonths=t7,rg.asQuarters=re,rg.asYears=rt,rg.valueOf=t5,rg._bubble=function(){var e,t,r,n,a,i=this._milliseconds,o=this._days,s=this._months,l=this._data;return i>=0&&o>=0&&s>=0||i<=0&&o<=0&&s<=0||(i+=864e5*tQ(t1(s)+o),o=0,s=0),l.milliseconds=i%1e3,l.seconds=(e=eh(i/1e3))%60,l.minutes=(t=eh(e/60))%60,l.hours=(r=eh(t/60))%24,o+=eh(r/24),s+=a=eh(t0(o)),o-=tQ(t1(a)),n=eh(s/12),s%=12,l.days=o,l.months=s,l.years=n,this},rg.clone=function(){return tC(this)},rg.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},rg.milliseconds=rn,rg.seconds=ra,rg.minutes=ri,rg.hours=ro,rg.days=rs,rg.weeks=function(){return eh(this.days()/7)},rg.months=rl,rg.years=ru,rg.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,n,a,i,o,s,l,u,d,c,h,p,m,f=!1,g=rc;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(f=e),"object"==typeof t&&(g=Object.assign({},rc,t),null!=t.s&&null==t.ss&&(g.ss=t.s-1)),p=this.localeData(),r=!f,n=g,a=tC(this).abs(),i=rd(a.as("s")),o=rd(a.as("m")),s=rd(a.as("h")),l=rd(a.as("d")),u=rd(a.as("M")),d=rd(a.as("w")),c=rd(a.as("y")),h=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l],null!=n.w&&(h=h||d<=1&&["w"]||d<n.w&&["ww",d]),(h=h||u<=1&&["M"]||u<n.M&&["MM",u]||c<=1&&["y"]||["yy",c])[2]=r,h[3]=+this>0,h[4]=p,m=rh.apply(null,h),f&&(m=p.pastFuture(+this,m)),p.postformat(m)},rg.toISOString=rf,rg.toString=rf,rg.toJSON=rf,rg.locale=tD,rg.localeData=tA,rg.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",rf),rg.lang=tO,L("X",0,0,"unix"),L("x",0,0,"valueOf"),ed("x",ea),ed("X",/[+-]?\d+(\.\d{1,3})?/),ef("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e))}),ef("x",function(e,t,r){r._d=new Date(ep(e))}),t.version="2.30.1",W=to,t.fn=tG,t.min=function(){var e=[].slice.call(arguments,0);return tu("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return tu("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=h,t.unix=function(e){return to(1e3*e)},t.months=function(e,t){return tY(e,t,"months")},t.isDate=u,t.locale=eX,t.invalid=f,t.duration=tC,t.isMoment=C,t.weekdays=function(e,t,r){return tZ(e,t,r,"weekdays")},t.parseZone=function(){return to.apply(null,arguments).parseZone()},t.localeData=eQ,t.isDuration=th,t.monthsShort=function(e,t){return tY(e,t,"monthsShort")},t.weekdaysMin=function(e,t,r){return tZ(e,t,r,"weekdaysMin")},t.defineLocale=eJ,t.updateLocale=function(e,t){if(null!=t){var r,n,a=eq;null!=e$[e]&&null!=e$[e].parentLocale?e$[e].set(I(e$[e]._config,t)):(null!=(n=eZ(e))&&(a=n._config),t=I(a,t),null==n&&(t.abbr=e),(r=new P(t)).parentLocale=e$[e],e$[e]=r),eX(e)}else null!=e$[e]&&(null!=e$[e].parentLocale?(e$[e]=e$[e].parentLocale,e===eX()&&eX(e)):null!=e$[e]&&delete e$[e]);return e$[e]},t.locales=function(){return G(e$)},t.weekdaysShort=function(e,t,r){return tZ(e,t,r,"weekdaysShort")},t.normalizeUnits=B,t.relativeTimeRounding=function(e){return void 0===e?rd:"function"==typeof e&&(rd=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==rc[e]&&(void 0===t?rc[e]:(rc[e]=t,"s"===e&&(rc.ss=t-1),!0))},t.calendarFormat=function(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},t.prototype=tG,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}()},3118(e){function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=3118,e.exports=t},8681(e){!function(t,r){if(t){for(var n,a={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},i={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},o={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},s={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},l=1;l<20;++l)a[111+l]="f"+l;for(l=0;l<=9;++l)a[l+96]=l.toString();p.prototype.bind=function(e,t,r){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,r),this},p.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},p.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},p.prototype.reset=function(){return this._callbacks={},this._directMap={},this},p.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1||function e(t,n){return null!==t&&t!==r&&(t===n||e(t.parentNode,n))}(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},p.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},p.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(a[t]=e[t]);n=null},p.init=function(){var e=p(r);for(var t in e)"_"!==t.charAt(0)&&(p[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},p.init(),t.Mousetrap=p,e.exports&&(e.exports=p),"function"==typeof define&&define.amd&&define(function(){return p})}function u(e,t,r){e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent("on"+t,r)}function d(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return a[e.which]?a[e.which]:i[e.which]?i[e.which]:String.fromCharCode(e.which).toLowerCase()}function c(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function h(e,t){var r,i,l,u,d,h,p=[];for(u="+"===(r=e)?["+"]:(r=r.replace(/\+{2}/g,"+plus")).split("+"),h=0;h<u.length;++h)s[d=u[h]]&&(d=s[d]),t&&"keypress"!=t&&o[d]&&(d=o[d],p.push("shift")),c(d)&&p.push(d);return i=d,(l=t)||(l=function(){if(!n)for(var e in n={},a)e>95&&e<112||a.hasOwnProperty(e)&&(n[a[e]]=e);return n}()[i]?"keydown":"keypress"),"keypress"==l&&p.length&&(l="keydown"),{key:d,modifiers:p,action:t=l}}function p(e){var t,n=this;if(e=e||r,!(n instanceof p))return new p(e);n.target=e,n._callbacks={},n._directMap={};var a={},i=!1,o=!1,s=!1;function l(e){e=e||{};var t,r=!1;for(t in a){if(e[t]){r=!0;continue}a[t]=0}r||(s=!1)}function m(e,t,r,i,o,s){var l,u,d,h,p=[],m=r.type;if(!n._callbacks[e])return[];for("keyup"==m&&c(e)&&(t=[e]),d=0;d<n._callbacks[e].length;++d)if((h=n._callbacks[e][d],i||!h.seq||a[h.seq]==h.level)&&m==h.action&&("keypress"==m&&!r.metaKey&&!r.ctrlKey||(l=t,u=h.modifiers,l.sort().join(",")===u.sort().join(",")))){var f=!i&&h.combo==o,g=i&&h.seq==i&&h.level==s;(f||g)&&n._callbacks[e].splice(d,1),p.push(h)}return p}function f(e,t,r,a){!n.stopCallback(t,t.target||t.srcElement,r,a)&&!1===e(t,r)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation?t.stopPropagation():t.cancelBubble=!0)}function g(e){"number"!=typeof e.which&&(e.which=e.keyCode);var t,r=d(e);if(r){if("keyup"==e.type&&i===r){i=!1;return}n.handleKey(r,(t=[],e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t),e)}}n._handleKey=function(e,t,r){var n,a=m(e,t,r),i={},u=0,d=!1;for(n=0;n<a.length;++n)a[n].seq&&(u=Math.max(u,a[n].level));for(n=0;n<a.length;++n){if(a[n].seq){if(a[n].level!=u)continue;d=!0,i[a[n].seq]=1,f(a[n].callback,r,a[n].combo,a[n].seq);continue}d||f(a[n].callback,r,a[n].combo)}var h="keypress"==r.type&&o;r.type!=s||c(e)||h||l(i),o=d&&"keydown"==r.type};n._bindMultiple=function(e,r,o){for(var u=0;u<e.length;++u)!function e(r,o,u,c,p){n._directMap[r+":"+u]=o;var g,y=(r=r.replace(/\s+/g," ")).split(" ");y.length>1?function(r,n,o,u){function c(e){f(o,e,r),"keyup"!==u&&(i=d(e)),setTimeout(l,10)}a[r]=0;for(var p=0;p<n.length;++p){var m=p+1===n.length?c:function(e){return function(){s=e,++a[r],clearTimeout(t),t=setTimeout(l,1e3)}}(u||h(n[p+1]).action);e(n[p],m,u,r,p)}}(r,y,o,u):(g=h(r,u),n._callbacks[g.key]=n._callbacks[g.key]||[],m(g.key,g.modifiers,{type:g.action},c,r,p),n._callbacks[g.key][c?"unshift":"push"]({callback:o,modifiers:g.modifiers,action:g.action,seq:c,level:p,combo:r}))}(e[u],r,o)},u(e,"keypress",g),u(e,"keydown",g),u(e,"keyup",g)}}("u">typeof window?window:null,"u">typeof window?document:null)},3109(e,t,r){var n="function"==typeof Map&&Map.prototype,a=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&a&&"function"==typeof a.get?a.get:null,o=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"==typeof l.get?l.get:null,d=s&&Set.prototype.forEach,c="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,f=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,x=String.prototype.toLowerCase,C=RegExp.prototype.test,k=Array.prototype.concat,M=Array.prototype.join,S=Array.prototype.slice,E=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,_="function"==typeof Symbol&&"object"==typeof Symbol.iterator,D="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===_?"object":"symbol")?Symbol.toStringTag:null,O=Object.prototype.propertyIsEnumerable,A=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||C.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-E(-e):E(e);if(n!==e){var a=String(n),i=v.call(t,a.length+1);return b.call(a,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var L=r(6550),N=L.custom,V=H(N)?N:null,F={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function j(e,t,r){var n=F[r.quoteStyle||t];return n+e+n}function W(e){return!D||!("object"==typeof e&&(D in e||void 0!==e[D]))}function U(e){return"[object Array]"===$(e)&&W(e)}function z(e){return"[object RegExp]"===$(e)&&W(e)}function H(e){if(_)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,a,s){var l,f,w,C,E,I=n||{};if(q(I,"quoteStyle")&&!q(F,I.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(q(I,"maxStringLength")&&("number"==typeof I.maxStringLength?I.maxStringLength<0&&I.maxStringLength!==1/0:null!==I.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var N=!q(I,"customInspect")||I.customInspect;if("boolean"!=typeof N&&"symbol"!==N)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(I,"indent")&&null!==I.indent&&" "!==I.indent&&!(parseInt(I.indent,10)===I.indent&&I.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(I,"numericSeparator")&&"boolean"!=typeof I.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var G=I.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength;return e(v.call(t,0,r.maxStringLength),r)+("... "+n)+" more character"+(n>1?"s":"")}var a=B[r.quoteStyle||"single"];return a.lastIndex=0,j(b.call(b.call(t,a,"\\$1"),/[\x00-\x1f]/g,Y),"single",r)}(t,I);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return G?R(t,et):et}if("bigint"==typeof t){var er=String(t)+"n";return G?R(t,er):er}var en=void 0===I.depth?5:I.depth;if(void 0===a&&(a=0),a>=en&&en>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var ea=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=M.call(Array(e.indent+1)," ")}return{base:r,prev:M.call(Array(t+1),r)}}(I,a);if(void 0===s)s=[];else if(K(s,t)>=0)return"[Circular]";function ei(t,r,n){if(r&&(s=S.call(s)).push(r),n){var i={depth:I.depth};return q(I,"quoteStyle")&&(i.quoteStyle=I.quoteStyle),e(t,i,a+1,s)}return e(t,I,a+1,s)}if("function"==typeof t&&!z(t)){var eo=function(e){if(e.name)return e.name;var t=y.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),es=ee(t,ei);return"[Function"+(eo?": "+eo:" (anonymous)")+"]"+(es.length>0?" { "+M.call(es,", ")+" }":"")}if(H(t)){var el=_?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(t);return"object"!=typeof t||_?el:Z(el)}if((eu=t)&&"object"==typeof eu&&("u">typeof HTMLElement&&eu instanceof HTMLElement||"string"==typeof eu.nodeName&&"function"==typeof eu.getAttribute)){for(var eu,ed,ec="<"+x.call(String(t.nodeName)),eh=t.attributes||[],ep=0;ep<eh.length;ep++){ec+=" "+eh[ep].name+"="+j((ed=eh[ep].value,b.call(String(ed),/"/g,"&quot;")),"double",I)}return ec+=">",t.childNodes&&t.childNodes.length&&(ec+="..."),ec+="</"+x.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var em=ee(t,ei);return ea&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(em)?"["+Q(em,ea)+"]":"[ "+M.call(em,", ")+" ]"}if("[object Error]"===$(l=t)&&W(l)){var ef=ee(t,ei);return"cause"in Error.prototype||!("cause"in t)||O.call(t,"cause")?0===ef.length?"["+String(t)+"]":"{ ["+String(t)+"] "+M.call(ef,", ")+" }":"{ ["+String(t)+"] "+M.call(k.call("[cause]: "+ei(t.cause),ef),", ")+" }"}if("object"==typeof t&&N){if(V&&"function"==typeof t[V]&&L)return L(t,{depth:en-a});else if("symbol"!==N&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var eg=[];return o&&o.call(t,function(e,r){eg.push(ei(r,t,!0)+" => "+ei(e,t))}),J("Map",i.call(t),eg,ea)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ey=[];return d&&d.call(t,function(e){ey.push(ei(e,t))}),J("Set",u.call(t),ey,ea)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e,c);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return X("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{c.call(e,c)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if("[object Number]"===$(f=t)&&W(f))return Z(ei(Number(t)));if(function(e){if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}(t))return Z(ei(T.call(t)));if("[object Boolean]"===$(w=t)&&W(w))return Z(m.call(t));if("[object String]"===$(C=t)&&W(C))return Z(ei(String(t)));if("u">typeof window&&t===window)return"{ [object Window] }";if("u">typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===$(E=t)&&W(E))&&!z(t)){var ev=ee(t,ei),eb=A?A(t)===Object.prototype:t instanceof Object||t.constructor===Object,ew=t instanceof Object?"":"null prototype",ex=!eb&&D&&Object(t)===t&&D in t?v.call($(t),8,-1):ew?"Object":"",eC=(eb||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ex||ew?"["+M.call(k.call([],ex||[],ew||[]),": ")+"] ":"");return 0===ev.length?eC+"{}":ea?eC+"{"+Q(ev,ea)+"}":eC+"{ "+M.call(ev,", ")+" }"}return String(t)};var G=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return G.call(e,t)}function $(e){return f.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}function Y(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function J(e,t,r,n){return e+" ("+t+") {"+(n?Q(r,n):M.call(r,", "))+"}"}function Q(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+M.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,n=U(e),a=[];if(n){a.length=e.length;for(var i=0;i<e.length;i++)a[i]=q(e,i)?t(e[i],e):""}var o="function"==typeof I?I(e):[];if(_){r={};for(var s=0;s<o.length;s++)r["$"+o[s]]=o[s]}for(var l in e)if(q(e,l)&&(!n||String(Number(l))!==l||!(l<e.length)))if(_&&r["$"+l]instanceof Symbol)continue;else C.call(/[^\w$]/,l)?a.push(t(l,e)+": "+t(e[l],e)):a.push(l+": "+t(e[l],e));if("function"==typeof I)for(var u=0;u<o.length;u++)O.call(e,o[u])&&a.push("["+t(o[u])+"]: "+t(e[o[u]],e));return a}},1385(e,t,r){"use strict";var n;if(!Object.keys){var a=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=r(6199),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call(function(){},"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("u"<typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&a.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{c(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),m=function(e){if("u"<typeof window||!p)return c(e);try{return c(e)}catch(e){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===i.call(e),n=o(e),s=t&&"[object String]"===i.call(e),c=[];if(!t&&!r&&!n)throw TypeError("Object.keys called on a non-object");var h=u&&r;if(s&&e.length>0&&!a.call(e,0))for(var p=0;p<e.length;++p)c.push(String(p));if(n&&e.length>0)for(var f=0;f<e.length;++f)c.push(String(f));else for(var g in e)!(h&&"prototype"===g)&&a.call(e,g)&&c.push(String(g));if(l)for(var y=m(e),v=0;v<d.length;++v)!(y&&"constructor"===d[v])&&a.call(e,d[v])&&c.push(d[v]);return c}}e.exports=n},3735(e,t,r){"use strict";var n=Array.prototype.slice,a=r(6199),i=Object.keys,o=i?function(e){return i(e)}:r(1385),s=Object.keys;o.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return a(e)?s(n.call(e)):s(e)}):Object.keys=o,Object.keys||o},e.exports=o},6199(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},5544(e,t,r){"use strict";var n=r(6542),a=r(8682)("Object.prototype.propertyIsEnumerable");e.exports=function(e){var t=n(e),r=[];for(var i in t)a(t,i)&&(r[r.length]=t[i]);return r}},8996(e,t,r){"use strict";var n=r(5806),a=r(9096),i=r(5544),o=r(525),s=r(2715),l=a(o(),Object);n(l,{getPolyfill:o,implementation:i,shim:s}),e.exports=l},9096(e,t,r){"use strict";var n=r(8187),a=r(9997),i=r(7196),o=r(4983);e.exports=function(e){var t=i(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},a?a(e.exports,"apply",{value:o}):e.exports.apply=o},525(e,t,r){"use strict";var n=r(5544);e.exports=function(){return"function"==typeof Object.values?Object.values:n}},2715(e,t,r){"use strict";var n=r(525),a=r(5806);e.exports=function(){var e=n();return a(Object,{values:e},{values:function(){return Object.values!==e}}),e}},856(e,t,r){"use strict";var n=r(7183);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,i,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return r.PropTypes=r,r}},7598(e,t,r){e.exports=r(856)()},7183(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5539(e){"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},8183(e,t,r){"use strict";var n=r(6334),a=r(4816);e.exports={formats:r(5539),parse:a,stringify:n}},4816(e,t,r){"use strict";var n=r(1954),a=Object.prototype.hasOwnProperty,i=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},l=function(e,t){var r={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,d=l.split(t.delimiter,t.throwOnLimitExceeded?u+1:u);if(t.throwOnLimitExceeded&&d.length>u)throw RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var c=-1,h=t.charset;if(t.charsetSentinel)for(p=0;p<d.length;++p)0===d[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[p]?h="utf-8":"utf8=%26%2310003%3B"===d[p]&&(h="iso-8859-1"),c=p,p=d.length);for(p=0;p<d.length;++p)if(p!==c){var p,m,f,g=d[p],y=g.indexOf("]="),v=-1===y?g.indexOf("="):y+1;if(-1===v?(m=t.decoder(g,o.decoder,h,"key"),f=t.strictNullHandling?null:""):null!==(m=t.decoder(g.slice(0,v),o.decoder,h,"key"))&&(f=n.maybeMap(s(g.slice(v+1),t,i(r[m])?r[m].length:0),function(e){return t.decoder(e,o.decoder,h,"value")})),f&&t.interpretNumericEntities&&"iso-8859-1"===h&&(f=String(f).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),g.indexOf("[]=")>-1&&(f=i(f)?[f]:f),null!==m){var b=a.call(r,m);b&&"combine"===t.duplicates?r[m]=n.combine(r[m],f,t.arrayLimit,t.plainObjects):b&&"last"!==t.duplicates||(r[m]=f)}}return r},u=function(e,t,r,a){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var o=e.slice(0,-1).join("");i=Array.isArray(t)&&t[o]?t[o].length:0}for(var l=a?t:s(t,r,i),u=e.length-1;u>=0;--u){var d,c=e[u];if("[]"===c&&r.parseArrays)d=n.isOverflow(l)?l:r.allowEmptyArrays&&(""===l||r.strictNullHandling&&null===l)?[]:n.combine([],l,r.arrayLimit,r.plainObjects);else{d=r.plainObjects?{__proto__:null}:{};var h="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,p=r.decodeDotInKeys?h.replace(/%2E/g,"."):h,m=parseInt(p,10);r.parseArrays||""!==p?!isNaN(m)&&c!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(d=[])[m]=l:"__proto__"!==p&&(d[p]=l):d={0:l}}l=d}return l},d=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&a.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var n=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(r),o=i?r.slice(0,i.index):r,s=[];if(o){if(!t.plainObjects&&a.call(Object.prototype,o)&&!t.allowPrototypes)return;s.push(o)}for(var l=0;null!==(i=n.exec(r))&&l<t.depth;){l+=1;var u=i[1].slice(1,-1);if(!t.plainObjects&&a.call(Object.prototype,u)&&!t.allowPrototypes)return;s.push(i[1])}if(i){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");s.push("["+r.slice(i.index)+"]")}return s},c=function(e,t,r,n){if(e){var a=d(e,r);if(a)return u(a,t,r,n)}},h=function(e){if(!e)return o;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?o.charset:e.charset,r=void 0===e.duplicates?o.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||o.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:o.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:o.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var r=h(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var a="string"==typeof e?l(e,r):e,i=r.plainObjects?{__proto__:null}:{},o=Object.keys(a),s=0;s<o.length;++s){var u=o[s],d=c(u,a[u],r,"string"==typeof e);i=n.merge(i,d,r)}return!0===r.allowSparse?i:n.compact(i)}},6334(e,t,r){"use strict";var n=r(6278),a=r(1954),i=r(5539),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,d=function(e,t){u.apply(e,l(t)?t:[t])},c=Date.prototype.toISOString,h=i.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:a.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},m={},f=function e(t,r,i,o,s,u,c,h,f,g,y,v,b,w,x,C,k,M){for(var S,E,T=t,I=M,P=0,_=!1;void 0!==(I=I.get(m))&&!_;){var D=I.get(t);if(P+=1,void 0!==D)if(D===P)throw RangeError("Cyclic object value");else _=!0;void 0===I.get(m)&&(P=0)}if("function"==typeof g?T=g(r,T):T instanceof Date?T=b(T):"comma"===i&&l(T)&&(T=a.maybeMap(T,function(e){return e instanceof Date?b(e):e})),null===T){if(u)return f&&!C?f(r,p.encoder,k,"key",w):r;T=""}if("string"==typeof(S=T)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||a.isBuffer(T))return f?[x(C?r:f(r,p.encoder,k,"key",w))+"="+x(f(T,p.encoder,k,"value",w))]:[x(r)+"="+x(String(T))];var O=[];if(void 0===T)return O;if("comma"===i&&l(T))C&&f&&(T=a.maybeMap(T,f)),E=[{value:T.length>0?T.join(",")||null:void 0}];else if(l(g))E=g;else{var A=Object.keys(T);E=y?A.sort(y):A}var R=h?String(r).replace(/\./g,"%2E"):String(r),L=o&&l(T)&&1===T.length?R+"[]":R;if(s&&l(T)&&0===T.length)return L+"[]";for(var N=0;N<E.length;++N){var V=E[N],F="object"==typeof V&&V&&void 0!==V.value?V.value:T[V];if(!c||null!==F){var B=v&&h?String(V).replace(/\./g,"%2E"):String(V),j=l(T)?"function"==typeof i?i(L,B):L:L+(v?"."+B:"["+B+"]");M.set(t,P);var W=n();W.set(m,M),d(O,e(F,j,i,o,s,u,c,h,"comma"===i&&C&&l(T)?null:f,g,y,v,b,w,x,C,k,W))}}return O},g=function(e){if(!e)return p;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var a=i.formatters[n],u=p.filter;if(("function"==typeof e.filter||l(e.filter))&&(u=e.filter),t=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var d=void 0===e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:d,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:u,format:n,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}};e.exports=function(e,t){var r,a=e,i=g(t);"function"==typeof i.filter?a=(0,i.filter)("",a):l(i.filter)&&(r=i.filter);var o=[];if("object"!=typeof a||null===a)return"";var u=s[i.arrayFormat],c="comma"===u&&i.commaRoundTrip;r||(r=Object.keys(a)),i.sort&&r.sort(i.sort);for(var h=n(),p=0;p<r.length;++p){var m=r[p],y=a[m];i.skipNulls&&null===y||d(o,f(y,m,u,c,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,h))}var v=o.join(i.delimiter),b=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),v.length>0?b+v:""}},1954(e,t,r){"use strict";var n=r(5539),a=r(6278),i=Object.prototype.hasOwnProperty,o=Array.isArray,s=a(),l=function(e,t){return s.set(e,t),e},u=function(e){return s.has(e)},d=function(e){return s.get(e)},c=function(e,t){s.set(e,t)},h=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),p=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],a=0;a<r.length;++a)void 0!==r[a]&&n.push(r[a]);t.obj[t.prop]=n}}},m=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:m,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t,r,n){if(u(e)){var a=d(e)+1;return e[a]=t,c(e,a),e}var i=[].concat(e,t);return i.length>r?l(m(i,{plainObjects:n}),i.length-1):i},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var a=t[n],i=a.obj[a.prop],o=Object.keys(i),s=0;s<o.length;++s){var l=o[s],u=i[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:l}),r.push(u))}return p(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,a,i){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var s="",l=0;l<o.length;l+=1024){for(var u=o.length>=1024?o.slice(l,l+1024):o,d=[],c=0;c<u.length;++c){var p=u.charCodeAt(c);if(45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===n.RFC1738&&(40===p||41===p)){d[d.length]=u.charAt(c);continue}if(p<128){d[d.length]=h[p];continue}if(p<2048){d[d.length]=h[192|p>>6]+h[128|63&p];continue}if(p<55296||p>=57344){d[d.length]=h[224|p>>12]+h[128|p>>6&63]+h[128|63&p];continue}c+=1,p=65536+((1023&p)<<10|1023&u.charCodeAt(c)),d[d.length]=h[240|p>>18]+h[128|p>>12&63]+h[128|p>>6&63]+h[128|63&p]}s+=d.join("")}return s},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:u,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(o(t))t.push(r);else if(!t||"object"!=typeof t)return[t,r];else if(u(t)){var a=d(t)+1;t[a]=r,c(t,a)}else(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0);return t}if(!t||"object"!=typeof t){if(u(r)){for(var s=Object.keys(r),h=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},p=0;p<s.length;p++)h[parseInt(s[p],10)+1]=r[s[p]];return l(h,d(r)+1)}return[t].concat(r)}var f=t;return(o(t)&&!o(r)&&(f=m(t,n)),o(t)&&o(r))?(r.forEach(function(r,a){if(i.call(t,a)){var o=t[a];o&&"object"==typeof o&&r&&"object"==typeof r?t[a]=e(o,r,n):t.push(r)}else t[a]=r}),t):Object.keys(r).reduce(function(t,a){var o=r[a];return i.call(t,a)?t[a]=e(t[a],o,n):t[a]=o,t},f)}}},8985(e,t,r){"use strict";let n=r(3182),a=r(5956),i=r(9646),o=r(9913);function s(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function u(e,t){return t.decode?a(e):e}function d(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function c(e){let t=(e=d(e)).indexOf("?");return -1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())&&(e="true"===e.toLowerCase()),e}function p(e,t){s((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);let r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t){n[e]=r;return}void 0===n[e]&&(n[e]={}),n[e][t[1]]=r};case"bracket":return(e,r,n)=>{if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case"comma":case"separator":return(t,r,n)=>{let a="string"==typeof r&&r.includes(e.arrayFormatSeparator),i="string"==typeof r&&!a&&u(r,e).includes(e.arrayFormatSeparator);r=i?u(r,e):r;let o=a||i?r.split(e.arrayFormatSeparator).map(t=>u(t,e)):null===r?r:u(r,e);n[t]=o};default:return(e,t,r)=>{if(void 0===r[e]){r[e]=t;return}r[e]=[].concat(r[e],t)}}}(t),n=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return n;for(let a of e.split("&")){if(""===a)continue;let[e,o]=i(t.decode?a.replace(/\+/g," "):a,"=");o=void 0===o?null:["comma","separator"].includes(t.arrayFormat)?o:u(o,t),r(u(e,t),o,n)}for(let e of Object.keys(n)){let r=n[e];if("object"==typeof r&&null!==r)for(let e of Object.keys(r))r[e]=h(r[e],t);else n[e]=h(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{let r=n[t];return r&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):e[t]=r,e},Object.create(null))}t.extract=c,t.parse=p,t.stringify=(e,t)=>{if(!e)return"";s((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);let r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let a=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[",a,"]"].join("")]:[...r,[l(t,e),"[",l(a,e),"]=",l(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[]"].join("")]:[...r,[l(t,e),"[]=",l(n,e)].join("")];case"comma":case"separator":return t=>(r,n)=>null==n||0===n.length?r:0===r.length?[[l(t,e),"=",l(n,e)].join("")]:[[r,l(n,e)].join(e.arrayFormatSeparator)];default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,l(t,e)]:[...r,[l(t,e),"=",l(n,e)].join("")]}}(t),a={};for(let t of Object.keys(e))r(t)||(a[t]=e[t]);let i=Object.keys(a);return!1!==t.sort&&i.sort(t.sort),i.map(r=>{let a=e[r];return void 0===a?"":null===a?l(r,t):Array.isArray(a)?a.reduce(n(r),[]).join("&"):l(r,t)+"="+l(a,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=i(e,"#");return Object.assign({url:r.split("?")[0]||"",query:p(c(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,t)}:{})},t.stringifyUrl=(e,r)=>{var n;let a,i;r=Object.assign({encode:!0,strict:!0},r);let o=d(e.url).split("?")[0]||"",s=t.extract(e.url),u=Object.assign(t.parse(s,{sort:!1}),e.query),c=t.stringify(u,r);c&&(c=`?${c}`);let h=(n=e.url,a="",-1!==(i=n.indexOf("#"))&&(a=n.slice(i)),a);return e.fragmentIdentifier&&(h=`#${l(e.fragmentIdentifier,r)}`),`${o}${c}${h}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0},n);let{url:a,query:i,fragmentIdentifier:s}=t.parseUrl(e,n);return t.stringifyUrl({url:a,query:o(i,r),fragmentIdentifier:s},n)},t.exclude=(e,r,n)=>{let a=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,a,n)}},4505(e,t){"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,c=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,f=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case d:case c:case i:case s:case o:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case g:case f:case l:return e;default:return t}}case a:return t}}}function C(e){return x(e)===c}t.AsyncMode=d,t.ConcurrentMode=c,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=i,t.Lazy=g,t.Memo=f,t.Portal=a,t.Profiler=s,t.StrictMode=o,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||x(e)===d},t.isConcurrentMode=C,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===f},t.isPortal=function(e){return x(e)===a},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===o},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===c||e===s||e===o||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},261(e,t,r){"use strict";e.exports=r(4505)},4796(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=d(r(4883)),i=d(r(7598)),o=r(6221),s=r(6515),l=d(r(8996)),u=d(r(5325));function d(e){return e&&e.__esModule?e:{default:e}}var c={BLOCK:"block",FLEX:"flex",INLINE:"inline",INLINE_BLOCK:"inline-block",CONTENTS:"contents"},h=(0,o.forbidExtraProps)({children:i.default.node.isRequired,onOutsideClick:i.default.func.isRequired,disabled:i.default.bool,useCapture:i.default.bool,display:i.default.oneOf((0,l.default)(c))}),p={disabled:!1,useCapture:!0,display:c.BLOCK},m=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var e,r=arguments.length,n=Array(r),a=0;a<r;a++)n[a]=arguments[a];var i=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(n)));return i.onMouseDown=i.onMouseDown.bind(i),i.onMouseUp=i.onMouseUp.bind(i),i.setChildNodeRef=i.setChildNodeRef.bind(i),i}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),n(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.disabled,r=e.useCapture;t||this.addMouseDownEventListener(r)}},{key:"componentDidUpdate",value:function(e){var t=e.disabled,r=this.props,n=r.disabled,a=r.useCapture;t!==n&&(n?this.removeEventListeners():this.addMouseDownEventListener(a))}},{key:"componentWillUnmount",value:function(){this.removeEventListeners()}},{key:"onMouseDown",value:function(e){var t=this.props.useCapture;this.childNode&&(0,u.default)(this.childNode,e.target)||(this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),this.removeMouseUp=(0,s.addEventListener)(document,"mouseup",this.onMouseUp,{capture:t}))}},{key:"onMouseUp",value:function(e){var t=this.props.onOutsideClick,r=this.childNode&&(0,u.default)(this.childNode,e.target);this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),r||t(e)}},{key:"setChildNodeRef",value:function(e){this.childNode=e}},{key:"addMouseDownEventListener",value:function(e){this.removeMouseDown=(0,s.addEventListener)(document,"mousedown",this.onMouseDown,{capture:e})}},{key:"removeEventListeners",value:function(){this.removeMouseDown&&this.removeMouseDown(),this.removeMouseUp&&this.removeMouseUp()}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.display;return a.default.createElement("div",{ref:this.setChildNodeRef,style:r!==c.BLOCK&&(0,l.default)(c).includes(r)?{display:r}:void 0},t)}}]),t}(a.default.Component);m.propTypes=h,m.defaultProps=p},3236(e,t,r){r(4796)},9094(e,t,r){"use strict";var n=r(4883),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,i={},u=null,d=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(d=t.ref),t)o.call(t,n)&&!l.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:a,type:e,key:u,ref:d,props:i,_owner:s.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},6870(e,t,r){"use strict";e.exports=r(9094)},6037(e,t,r){var n=r(9738),a=r(1327),i=r(1897),o=r(9329),s=r(5967),l=r(8415),u=r(7663);u.alea=n,u.xor128=a,u.xorwow=i,u.xorshift7=o,u.xor4096=s,u.tychei=l,e.exports=u},9738(e,t,r){!function(e,t){function r(e){var t,r=this,n=(t=0xefc8249d,function(e){e=String(e);for(var r=0;r<e.length;r++){var n=.02519603282416938*(t+=e.charCodeAt(r));t=n>>>0,n-=t,n*=t,t=n>>>0,n-=t,t+=0x100000000*n}return(t>>>0)*23283064365386963e-26});r.next=function(){var e=2091639*r.s0+23283064365386963e-26*r.c;return r.s0=r.s1,r.s1=r.s2,r.s2=e-(r.c=0|e)},r.c=1,r.s0=n(" "),r.s1=n(" "),r.s2=n(" "),r.s0-=n(e),r.s0<0&&(r.s0+=1),r.s1-=n(e),r.s1<0&&(r.s1+=1),r.s2-=n(e),r.s2<0&&(r.s2+=1)}function n(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function a(e,t){var a=new r(e),i=t&&t.state,o=a.next;return o.int32=function(){return 0x100000000*a.next()|0},o.double=function(){return o()+(2097152*o()|0)*11102230246251565e-32},o.quick=o,i&&("object"==typeof i&&n(i,a),o.state=function(){return n(a,{})}),o}e&&e.exports?e.exports=a:t&&t.amd?t(function(){return a}):this.alea=a}(e=r.nmd(e),"function"==typeof define&&define)},8415(e,t,r){!function(e,t){function r(e){var t=this,r="";t.next=function(){var e=t.b,r=t.c,n=t.d,a=t.a;return e=e<<25^e>>>7^r,r=r-n|0,n=n<<24^n>>>8^a,a=a-e|0,t.b=e=e<<20^e>>>12^r,t.c=r=r-n|0,t.d=n<<16^r>>>16^a,t.a=a-e|0},t.a=0,t.b=0,t.c=-0x61c88647,t.d=0x517cc1b7,e===Math.floor(e)?(t.a=e/0x100000000|0,t.b=0|e):r+=e;for(var n=0;n<r.length+20;n++)t.b^=r.charCodeAt(n),t.next()}function n(e,t){return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t}function a(e,t){var a=new r(e),i=t&&t.state,o=function(){return(a.next()>>>0)/0x100000000};return o.double=function(){do var e=((a.next()>>>11)+(a.next()>>>0)/0x100000000)/2097152;while(0===e);return e},o.int32=a.next,o.quick=o,i&&("object"==typeof i&&n(i,a),o.state=function(){return n(a,{})}),o}e&&e.exports?e.exports=a:t&&t.amd?t(function(){return a}):this.tychei=a}(e=r.nmd(e),"function"==typeof define&&define)},1327(e,t,r){!function(e,t){function r(e){var t=this,r="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:r+=e;for(var n=0;n<r.length+64;n++)t.x^=r.charCodeAt(n),t.next()}function n(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t}function a(e,t){var a=new r(e),i=t&&t.state,o=function(){return(a.next()>>>0)/0x100000000};return o.double=function(){do var e=((a.next()>>>11)+(a.next()>>>0)/0x100000000)/2097152;while(0===e);return e},o.int32=a.next,o.quick=o,i&&("object"==typeof i&&n(i,a),o.state=function(){return n(a,{})}),o}e&&e.exports?e.exports=a:t&&t.amd?t(function(){return a}):this.xor128=a}(e=r.nmd(e),"function"==typeof define&&define)},5967(e,t,r){!function(e,t){function r(e){var t=this;t.next=function(){var e,r,n=t.w,a=t.X,i=t.i;return t.w=n=n+0x61c88647|0,r=a[i+34&127],e=a[i=i+1&127],r^=r<<13,e^=e<<17,r^=r>>>15,e^=e>>>12,r=a[i]=r^e,t.i=i,r+(n^n>>>16)|0},!function(e,t){var r,n,a,i,o,s=[],l=128;for(t===(0|t)?(n=t,t=null):(t+="\0",n=0,l=Math.max(l,t.length)),a=0,i=-32;i<l;++i)t&&(n^=t.charCodeAt((i+32)%t.length)),0===i&&(o=n),n^=n<<10,n^=n>>>15,n^=n<<4,n^=n>>>13,i>=0&&(o=o+0x61c88647|0,a=0==(r=s[127&i]^=n+o)?a+1:0);for(a>=128&&(s[127&(t&&t.length||0)]=-1),a=127,i=512;i>0;--i)n=s[a+34&127],r=s[a=a+1&127],n^=n<<13,r^=r<<17,n^=n>>>15,r^=r>>>12,s[a]=n^r;e.w=o,e.X=s,e.i=a}(t,e)}function n(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function a(e,t){null==e&&(e=+new Date);var a=new r(e),i=t&&t.state,o=function(){return(a.next()>>>0)/0x100000000};return o.double=function(){do var e=((a.next()>>>11)+(a.next()>>>0)/0x100000000)/2097152;while(0===e);return e},o.int32=a.next,o.quick=o,i&&(i.X&&n(i,a),o.state=function(){return n(a,{})}),o}e&&e.exports?e.exports=a:t&&t.amd?t(function(){return a}):this.xor4096=a}(e=r.nmd(e),"function"==typeof define&&define)},9329(e,t,r){!function(e,t){function r(e){var t=this;t.next=function(){var e,r,n=t.x,a=t.i;return e=n[a],e^=e>>>7,r=e^e<<24^((e=n[a+1&7])^e>>>10)^((e=n[a+3&7])^e>>>3)^((e=n[a+4&7])^e<<7),e=n[a+7&7],e^=e<<13,r^=e^e<<9,n[a]=r,t.i=a+1&7,r};var r,n=e,a=[];if(n===(0|n))a[0]=n;else for(r=0,n=""+n;r<n.length;++r)a[7&r]=a[7&r]<<15^n.charCodeAt(r)+a[r+1&7]<<13;for(;a.length<8;)a.push(0);for(r=0;r<8&&0===a[r];++r);for(8==r?a[7]=-1:a[r],t.x=a,t.i=0,r=256;r>0;--r)t.next()}function n(e,t){return t.x=e.x.slice(),t.i=e.i,t}function a(e,t){null==e&&(e=+new Date);var a=new r(e),i=t&&t.state,o=function(){return(a.next()>>>0)/0x100000000};return o.double=function(){do var e=((a.next()>>>11)+(a.next()>>>0)/0x100000000)/2097152;while(0===e);return e},o.int32=a.next,o.quick=o,i&&(i.x&&n(i,a),o.state=function(){return n(a,{})}),o}e&&e.exports?e.exports=a:t&&t.amd?t(function(){return a}):this.xorshift7=a}(e=r.nmd(e),"function"==typeof define&&define)},1897(e,t,r){!function(e,t){function r(e){var t=this,r="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^(e^e<<1))|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:r+=e;for(var n=0;n<r.length+64;n++)t.x^=r.charCodeAt(n),n==r.length&&(t.d=t.x<<10^t.x>>>4),t.next()}function n(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function a(e,t){var a=new r(e),i=t&&t.state,o=function(){return(a.next()>>>0)/0x100000000};return o.double=function(){do var e=((a.next()>>>11)+(a.next()>>>0)/0x100000000)/2097152;while(0===e);return e},o.int32=a.next,o.quick=o,i&&("object"==typeof i&&n(i,a),o.state=function(){return n(a,{})}),o}e&&e.exports?e.exports=a:t&&t.amd?t(function(){return a}):this.xorwow=a}(e=r.nmd(e),"function"==typeof define&&define)},7663(e,t,r){!function(t,n,a){var i,o="random",s=a.pow(256,6),l=a.pow(2,52),u=2*l;function d(e,r,d){var f=[],g=p(function e(t,r){var n,a=[],i=typeof t;if(r&&"object"==i)for(n in t)try{a.push(e(t[n],r-1))}catch(e){}return a.length?a:"string"==i?t:t+"\0"}((r=!0==r?{entropy:!0}:r||{}).entropy?[e,m(n)]:null==e?function(){try{var e;return i&&(e=i.randomBytes)?e=e(256):(e=new Uint8Array(256),(t.crypto||t.msCrypto).getRandomValues(e)),m(e)}catch(e){var r=t.navigator,a=r&&r.plugins;return[+new Date,t,a,t.screen,m(n)]}}():e,3),f),y=new c(f),v=function(){for(var e=y.g(6),t=s,r=0;e<l;)e=(e+r)*256,t*=256,r=y.g(1);for(;e>=u;)e/=2,t/=2,r>>>=1;return(e+r)/t};return v.int32=function(){return 0|y.g(4)},v.quick=function(){return y.g(4)/0x100000000},v.double=v,p(m(y.S),n),(r.pass||d||function(e,t,r,n){return(n&&(n.S&&h(n,y),e.state=function(){return h(y,{})}),r)?(a[o]=e,t):e})(v,g,"global"in r?r.global:this==a,r.state)}function c(e){var t,r=e.length,n=this,a=0,i=n.i=n.j=0,o=n.S=[];for(r||(e=[r++]);a<256;)o[a]=a++;for(a=0;a<256;a++)o[a]=o[i=255&i+e[a%r]+(t=o[a])],o[i]=t;(n.g=function(e){for(var t,r=0,a=n.i,i=n.j,o=n.S;e--;)t=o[a=255&a+1],r=256*r+o[255&(o[a]=o[i=255&i+t])+(o[i]=t)];return n.i=a,n.j=i,r})(256)}function h(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function p(e,t){for(var r,n=e+"",a=0;a<n.length;)t[255&a]=255&(r^=19*t[255&a])+n.charCodeAt(a++);return m(t)}function m(e){return String.fromCharCode.apply(0,e)}if(p(a.random(),n),e.exports){e.exports=d;try{i=r(1791)}catch(e){}}else"function"==typeof define&&define.amd?define(function(){return d}):a["seed"+o]=d}("u">typeof self?self:this,[],Math)},8187(e,t,r){"use strict";var n=r(4295),a=r(75),i=r(9118)(),o=r(1233),s=r(6757),l=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&o){var d=o(e,"length");d&&!d.configurable&&(n=!1),d&&!d.writable&&(u=!1)}return(n||u||!r)&&(i?a(e,"length",t,!0,!0):a(e,"length",t)),e}},6521(e,t,r){"use strict";var n=r(3109),a=r(6757),i=function(e,t,r){for(var n,a=e;null!=(n=a.next);a=n)if(n.key===t)return a.next=n.next,r||(n.next=e.next,e.next=n),n},o=function(e,t){if(e){var r=i(e,t);return r&&r.value}},s=function(e,t,r){var n=i(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},l=function(e,t){if(e)return i(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+n(e))},delete:function(t){var r=l(e,t);return r&&e&&!e.next&&(e=void 0),!!r},get:function(t){return o(e,t)},has:function(t){var r;return!!(r=e)&&!!i(r,t)},set:function(t,r){e||(e={next:void 0}),s(e,t,r)}};return t}},3977(e,t,r){"use strict";var n=r(4295),a=r(8682),i=r(3109),o=r(6757),s=n("%Map%",!0),l=a("Map.prototype.get",!0),u=a("Map.prototype.set",!0),d=a("Map.prototype.has",!0),c=a("Map.prototype.delete",!0),h=a("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+i(e))},delete:function(t){if(e){var r=c(e,t);return 0===h(e)&&(e=void 0),r}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&d(e,t)},set:function(t,r){e||(e=new s),u(e,t,r)}};return t}},8965(e,t,r){"use strict";var n=r(4295),a=r(8682),i=r(3109),o=r(3977),s=r(6757),l=n("%WeakMap%",!0),u=a("WeakMap.prototype.get",!0),d=a("WeakMap.prototype.set",!0),c=a("WeakMap.prototype.has",!0),h=a("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+i(e))},delete:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(e)return h(e,r)}else if(o&&t)return t.delete(r);return!1},get:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?u(e,r):t&&t.get(r)},has:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?c(e,r):!!t&&t.has(r)},set:function(r,n){l&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new l),d(e,r,n)):o&&(t||(t=o()),t.set(r,n))}};return r}:o},6278(e,t,r){"use strict";var n=r(6757),a=r(3109),i=r(6521),o=r(3977),s=r(8965)||o||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+a(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},989(e){e.exports=function(){"use strict";var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function t(e,t){var r=e[0],n=e[1],a=e[2],i=e[3];r+=(n&a|~n&i)+t[0]-0x28955b88|0,i+=((r=(r<<7|r>>>25)+n|0)&n|~r&a)+t[1]-0x173848aa|0,a+=((i=(i<<12|i>>>20)+r|0)&r|~i&n)+t[2]+0x242070db|0,n+=((a=(a<<17|a>>>15)+i|0)&i|~a&r)+t[3]-0x3e423112|0,r+=((n=(n<<22|n>>>10)+a|0)&a|~n&i)+t[4]-0xa83f051|0,i+=((r=(r<<7|r>>>25)+n|0)&n|~r&a)+t[5]+0x4787c62a|0,a+=((i=(i<<12|i>>>20)+r|0)&r|~i&n)+t[6]-0x57cfb9ed|0,n+=((a=(a<<17|a>>>15)+i|0)&i|~a&r)+t[7]-0x2b96aff|0,r+=((n=(n<<22|n>>>10)+a|0)&a|~n&i)+t[8]+0x698098d8|0,i+=((r=(r<<7|r>>>25)+n|0)&n|~r&a)+t[9]-0x74bb0851|0,a+=((i=(i<<12|i>>>20)+r|0)&r|~i&n)+t[10]-42063|0,n+=((a=(a<<17|a>>>15)+i|0)&i|~a&r)+t[11]-0x76a32842|0,r+=((n=(n<<22|n>>>10)+a|0)&a|~n&i)+t[12]+0x6b901122|0,i+=((r=(r<<7|r>>>25)+n|0)&n|~r&a)+t[13]-0x2678e6d|0,a+=((i=(i<<12|i>>>20)+r|0)&r|~i&n)+t[14]-0x5986bc72|0,n+=((a=(a<<17|a>>>15)+i|0)&i|~a&r)+t[15]+0x49b40821|0,r+=((n=(n<<22|n>>>10)+a|0)&i|a&~i)+t[1]-0x9e1da9e|0,i+=((r=(r<<5|r>>>27)+n|0)&a|n&~a)+t[6]-0x3fbf4cc0|0,a+=((i=(i<<9|i>>>23)+r|0)&n|r&~n)+t[11]+0x265e5a51|0,n+=((a=(a<<14|a>>>18)+i|0)&r|i&~r)+t[0]-0x16493856|0,r+=((n=(n<<20|n>>>12)+a|0)&i|a&~i)+t[5]-0x29d0efa3|0,i+=((r=(r<<5|r>>>27)+n|0)&a|n&~a)+t[10]+0x2441453|0,a+=((i=(i<<9|i>>>23)+r|0)&n|r&~n)+t[15]-0x275e197f|0,n+=((a=(a<<14|a>>>18)+i|0)&r|i&~r)+t[4]-0x182c0438|0,r+=((n=(n<<20|n>>>12)+a|0)&i|a&~i)+t[9]+0x21e1cde6|0,i+=((r=(r<<5|r>>>27)+n|0)&a|n&~a)+t[14]-0x3cc8f82a|0,a+=((i=(i<<9|i>>>23)+r|0)&n|r&~n)+t[3]-0xb2af279|0,n+=((a=(a<<14|a>>>18)+i|0)&r|i&~r)+t[8]+0x455a14ed|0,r+=((n=(n<<20|n>>>12)+a|0)&i|a&~i)+t[13]-0x561c16fb|0,i+=((r=(r<<5|r>>>27)+n|0)&a|n&~a)+t[2]-0x3105c08|0,a+=((i=(i<<9|i>>>23)+r|0)&n|r&~n)+t[7]+0x676f02d9|0,n+=((a=(a<<14|a>>>18)+i|0)&r|i&~r)+t[12]-0x72d5b376|0,r+=((n=(n<<20|n>>>12)+a|0)^a^i)+t[5]-378558|0,i+=((r=(r<<4|r>>>28)+n|0)^n^a)+t[8]-0x788e097f|0,a+=((i=(i<<11|i>>>21)+r|0)^r^n)+t[11]+0x6d9d6122|0,n+=((a=(a<<16|a>>>16)+i|0)^i^r)+t[14]-0x21ac7f4|0,r+=((n=(n<<23|n>>>9)+a|0)^a^i)+t[1]-0x5b4115bc|0,i+=((r=(r<<4|r>>>28)+n|0)^n^a)+t[4]+0x4bdecfa9|0,a+=((i=(i<<11|i>>>21)+r|0)^r^n)+t[7]-0x944b4a0|0,n+=((a=(a<<16|a>>>16)+i|0)^i^r)+t[10]-0x41404390|0,r+=((n=(n<<23|n>>>9)+a|0)^a^i)+t[13]+0x289b7ec6|0,i+=((r=(r<<4|r>>>28)+n|0)^n^a)+t[0]-0x155ed806|0,a+=((i=(i<<11|i>>>21)+r|0)^r^n)+t[3]-0x2b10cf7b|0,n+=((a=(a<<16|a>>>16)+i|0)^i^r)+t[6]+0x4881d05|0,r+=((n=(n<<23|n>>>9)+a|0)^a^i)+t[9]-0x262b2fc7|0,i+=((r=(r<<4|r>>>28)+n|0)^n^a)+t[12]-0x1924661b|0,a+=((i=(i<<11|i>>>21)+r|0)^r^n)+t[15]+0x1fa27cf8|0,n+=((a=(a<<16|a>>>16)+i|0)^i^r)+t[2]-0x3b53a99b|0,n=(n<<23|n>>>9)+a|0,r+=(a^(n|~i))+t[0]-0xbd6ddbc|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~a))+t[7]+0x432aff97|0,i=(i<<10|i>>>22)+r|0,a+=(r^(i|~n))+t[14]-0x546bdc59|0,a=(a<<15|a>>>17)+i|0,n+=(i^(a|~r))+t[5]-0x36c5fc7|0,n=(n<<21|n>>>11)+a|0,r+=(a^(n|~i))+t[12]+0x655b59c3|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~a))+t[3]-0x70f3336e|0,i=(i<<10|i>>>22)+r|0,a+=(r^(i|~n))+t[10]-1051523|0,a=(a<<15|a>>>17)+i|0,n+=(i^(a|~r))+t[1]-0x7a7ba22f|0,n=(n<<21|n>>>11)+a|0,r+=(a^(n|~i))+t[8]+0x6fa87e4f|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~a))+t[15]-0x1d31920|0,i=(i<<10|i>>>22)+r|0,a+=(r^(i|~n))+t[6]-0x5cfebcec|0,a=(a<<15|a>>>17)+i|0,n+=(i^(a|~r))+t[13]+0x4e0811a1|0,n=(n<<21|n>>>11)+a|0,r+=(a^(n|~i))+t[4]-0x8ac817e|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~a))+t[11]-0x42c50dcb|0,i=(i<<10|i>>>22)+r|0,a+=(r^(i|~n))+t[2]+0x2ad7d2bb|0,a=(a<<15|a>>>17)+i|0,n+=(i^(a|~r))+t[9]-0x14792c6f|0,n=(n<<21|n>>>11)+a|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=a+e[2]|0,e[3]=i+e[3]|0}function r(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function a(e){var n,a,i,o,s,l,u=e.length,d=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(n=64;n<=u;n+=64)t(d,r(e.substring(n-64,n)));for(a=(e=e.substring(n-64)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0;n<a;n+=1)i[n>>2]|=e.charCodeAt(n)<<(n%4<<3);if(i[n>>2]|=128<<(n%4<<3),n>55)for(t(d,i),n=0;n<16;n+=1)i[n]=0;return s=parseInt((o=(o=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(o[1],16)||0,i[14]=s,i[15]=l,t(d,i),d}function i(t){var r;for(r=0;r<t.length;r+=1)t[r]=function(t){var r,n="";for(r=0;r<4;r+=1)n+=e[t>>8*r+4&15]+e[t>>8*r&15];return n}(t[r]);return t.join("")}function o(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function s(e){var t,r=[],n=e.length;for(t=0;t<n-1;t+=2)r.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,r)}function l(){this.reset()}return i(a("hello")),"u">typeof ArrayBuffer&&!ArrayBuffer.prototype.slice&&function(){function e(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(t,r){var n,a,i,o,s=this.byteLength,l=e(t,s),u=s;return(void 0!==r&&(u=e(r,s)),l>u)?new ArrayBuffer(0):(i=new Uint8Array(a=new ArrayBuffer(n=u-l)),o=new Uint8Array(this,l,n),i.set(o),a)}}(),l.prototype.append=function(e){return this.appendBinary(o(e)),this},l.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var n,a=this._buff.length;for(n=64;n<=a;n+=64)t(this._hash,r(this._buff.substring(n-64,n)));return this._buff=this._buff.substring(n-64),this},l.prototype.end=function(e){var t,r,n=this._buff,a=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<a;t+=1)o[t>>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(o,a),r=i(this._hash),e&&(r=s(r)),this.reset(),r},l.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},l.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},l.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},l.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},l.prototype._finish=function(e,r){var n,a,i,o=r;if(e[o>>2]|=128<<(o%4<<3),o>55)for(t(this._hash,e),o=0;o<16;o+=1)e[o]=0;a=parseInt((n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),i=parseInt(n[1],16)||0,e[14]=a,e[15]=i,t(this._hash,e)},l.hash=function(e,t){return l.hashBinary(o(e),t)},l.hashBinary=function(e,t){var r=i(a(e));return t?s(r):r},l.ArrayBuffer=function(){this.reset()},l.ArrayBuffer.prototype.append=function(e){var r,a,i,o=(r=this._buff.buffer,(a=new Uint8Array(r.byteLength+e.byteLength)).set(new Uint8Array(r)),a.set(new Uint8Array(e),r.byteLength),a),s=o.length;for(this._length+=e.byteLength,i=64;i<=s;i+=64)t(this._hash,n(o.subarray(i-64,i)));return this._buff=new Uint8Array(i-64<s?o.buffer.slice(i-64):0),this},l.ArrayBuffer.prototype.end=function(e){var t,r,n=this._buff,a=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<a;t+=1)o[t>>2]|=n[t]<<(t%4<<3);return this._finish(o,a),r=i(this._hash),e&&(r=s(r)),this.reset(),r},l.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},l.ArrayBuffer.prototype.getState=function(){var e,t=l.prototype.getState.call(this);return e=t.buff,t.buff=String.fromCharCode.apply(null,new Uint8Array(e)),t},l.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,a=new ArrayBuffer(n),i=new Uint8Array(a);for(r=0;r<n;r+=1)i[r]=e.charCodeAt(r);return t?i:a}(e.buff,!0),l.prototype.setState.call(this,e)},l.ArrayBuffer.prototype.destroy=l.prototype.destroy,l.ArrayBuffer.prototype._finish=l.prototype._finish,l.ArrayBuffer.hash=function(e,r){var a=i(function(e){var r,a,i,o,s,l,u=e.length,d=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(r=64;r<=u;r+=64)t(d,n(e.subarray(r-64,r)));for(a=(e=r-64<u?e.subarray(r-64):new Uint8Array(0)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=0;r<a;r+=1)i[r>>2]|=e[r]<<(r%4<<3);if(i[r>>2]|=128<<(r%4<<3),r>55)for(t(d,i),r=0;r<16;r+=1)i[r]=0;return s=parseInt((o=(o=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(o[1],16)||0,i[14]=s,i[15]=l,t(d,i),d}(new Uint8Array(e)));return r?s(a):a},l}()},9646(e){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];let r=e.indexOf(t);return -1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},3182(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},4936(e,t,r){e=r.nmd(e),function(n){var a=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o="object"==typeof r.g&&r.g;(o.global===o||o.window===o||o.self===o)&&(n=o);var s,l,u=/^xn--/,d=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,m=String.fromCharCode;function f(e){throw RangeError(h[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function y(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(c,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],a=0,i=e.length;a<i;)(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<i?(64512&(r=e.charCodeAt(a++)))==56320?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),a--):n.push(t);return n}function b(e){return g(e,function(e){var t="";return e>65535&&(e-=65536,t+=m(e>>>10&1023|55296),e=56320|1023&e),t+=m(e)}).join("")}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,r){var n=0;for(e=r?p(e/700):e>>1,e+=p(e/t);e>455;n+=36)e=p(e/35);return p(n+36*e/(e+38))}function C(e){var t,r,n,a,i,o,s,l,u,d,c,h=[],m=e.length,g=0,y=128,v=72;for((n=e.lastIndexOf("-"))<0&&(n=0),a=0;a<n;++a)e.charCodeAt(a)>=128&&f("not-basic"),h.push(e.charCodeAt(a));for(i=n>0?n+1:0;i<m;){for(o=g,s=1,l=36;i>=m&&f("invalid-input"),((u=(t=e.charCodeAt(i++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36)>=36||u>p((0x7fffffff-g)/s))&&f("overflow"),g+=u*s,!(u<(d=l<=v?1:l>=v+26?26:l-v));l+=36){;s>p(0x7fffffff/(c=36-d))&&f("overflow"),s*=c}v=x(g-o,r=h.length+1,0==o),p(g/r)>0x7fffffff-y&&f("overflow"),y+=p(g/r),g%=r,h.splice(g++,0,y)}return b(h)}function k(e){var t,r,n,a,i,o,s,l,u,d,c,h,g,y,b,C=[];for(h=(e=v(e)).length,t=128,r=0,i=72,o=0;o<h;++o)(c=e[o])<128&&C.push(m(c));for(n=a=C.length,a&&C.push("-");n<h;){for(s=0x7fffffff,o=0;o<h;++o)(c=e[o])>=t&&c<s&&(s=c);for(s-t>p((0x7fffffff-r)/(g=n+1))&&f("overflow"),r+=(s-t)*g,t=s,o=0;o<h;++o)if((c=e[o])<t&&++r>0x7fffffff&&f("overflow"),c==t){for(l=r,u=36;!(l<(d=u<=i?1:u>=i+26?26:u-i));u+=36)b=l-d,y=36-d,C.push(m(w(d+b%y,0))),l=p(b/y);C.push(m(w(l,0))),i=x(r,g,n==a),r=0,++n}++r,++t}return C.join("")}if(s={version:"1.4.1",ucs2:{decode:v,encode:b},decode:C,encode:k,toASCII:function(e){return y(e,function(e){return d.test(e)?"xn--"+k(e):e})},toUnicode:function(e){return y(e,function(e){return u.test(e)?C(e.slice(4).toLowerCase()):e})}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return s});else if(a&&i)if(e.exports==a)i.exports=s;else for(l in s)s.hasOwnProperty(l)&&(a[l]=s[l]);else n.punycode=s}(this)},2841(e,t,r){"use strict";var n=r(4936);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var i=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n"," "])),u=["%","/","?",";","#"].concat(l),d=["/","?","#"],c=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=r(8183);a.prototype.parse=function(e,t,r){if("string"!=typeof e)throw TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),o=-1!==a&&a<e.indexOf("#")?"?":"#",y=e.split(o);y[0]=y[0].replace(/\\/g,"/");var v=e=y.join(o);if(v=v.trim(),!r&&1===e.split("#").length){var b=s.exec(v);if(b)return this.path=v,this.href=v,this.pathname=b[1],b[2]?(this.search=b[2],t?this.query=g.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=i.exec(v);if(w){var x=(w=w[0]).toLowerCase();this.protocol=x,v=v.substr(w.length)}if(r||w||v.match(/^\/\/[^@/]+@[^@/]+/)){var C="//"===v.substr(0,2);C&&!(w&&m[w])&&(v=v.substr(2),this.slashes=!0)}if(!m[w]&&(C||w&&!f[w])){for(var k,M,S=-1,E=0;E<d.length;E++){var T=v.indexOf(d[E]);-1!==T&&(-1===S||T<S)&&(S=T)}-1!==(M=-1===S?v.lastIndexOf("@"):v.lastIndexOf("@",S))&&(k=v.slice(0,M),v=v.slice(M+1),this.auth=decodeURIComponent(k)),S=-1;for(var E=0;E<u.length;E++){var T=v.indexOf(u[E]);-1!==T&&(-1===S||T<S)&&(S=T)}-1===S&&(S=v.length),this.host=v.slice(0,S),v=v.slice(S),this.parseHost(),this.hostname=this.hostname||"";var I="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!I)for(var P=this.hostname.split(/\./),E=0,_=P.length;E<_;E++){var D=P[E];if(D&&!D.match(c)){for(var O="",A=0,R=D.length;A<R;A++)D.charCodeAt(A)>127?O+="x":O+=D[A];if(!O.match(c)){var L=P.slice(0,E),N=P.slice(E+1),V=D.match(h);V&&(L.push(V[1]),N.unshift(V[2])),N.length&&(v="/"+N.join(".")+v),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+F,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!p[x])for(var E=0,_=l.length;E<_;E++){var j=l[E];if(-1!==v.indexOf(j)){var W=encodeURIComponent(j);W===j&&(W=escape(j)),v=v.split(j).join(W)}}var U=v.indexOf("#");-1!==U&&(this.hash=v.substr(U),v=v.slice(0,U));var z=v.indexOf("?");if(-1!==z?(this.search=v.substr(z),this.query=v.substr(z+1),t&&(this.query=g.parse(this.query)),v=v.slice(0,z)):t&&(this.search="",this.query={}),v&&(this.pathname=v),f[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var F=this.pathname||"",H=this.search||"";this.path=F+H}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":")+"@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",a=!1,i="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(i=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var o=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||f[t])&&!1!==a?(a="//"+(a||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):a||(a=""),n&&"#"!==n.charAt(0)&&(n="#"+n),o&&"?"!==o.charAt(0)&&(o="?"+o),t+a+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(o=o.replace("#","%23"))+n},a.prototype.resolve=function(e){return this.resolveObject(function(e,t,r){if(e&&"object"==typeof e&&e instanceof a)return e;var n=new a;return n.parse(e,t,r),n}(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if("string"==typeof e){var t=new a;t.parse(e,!1,!0),e=t}for(var r=new a,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var u=s[l];"protocol"!==u&&(r[u]=e[u])}return f[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!f[e.protocol]){for(var d=Object.keys(e),c=0;c<d.length;c++){var h=d[c];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||m[e.protocol])r.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var g=r.pathname||"",y=r.search||"";r.path=g+y}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var v=r.pathname&&"/"===r.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=b||v||r.host&&e.pathname,x=w,C=r.pathname&&r.pathname.split("/")||[],p=e.pathname&&e.pathname.split("/")||[],k=r.protocol&&!f[r.protocol];if(k&&(r.hostname="",r.port=null,r.host&&(""===C[0]?C[0]=r.host:C.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===C[0])),b)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,C=p;else if(p.length)C||(C=[]),C.pop(),C=C.concat(p),r.search=e.search,r.query=e.query;else if(null!=e.search){if(k){r.host=C.shift(),r.hostname=r.host;var M=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");M&&(r.auth=M.shift(),r.hostname=M.shift(),r.host=r.hostname)}return r.search=e.search,r.query=e.query,(null!==r.pathname||null!==r.search)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!C.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var S=C.slice(-1)[0],E=(r.host||e.host||C.length>1)&&("."===S||".."===S)||""===S,T=0,I=C.length;I>=0;I--)"."===(S=C[I])?C.splice(I,1):".."===S?(C.splice(I,1),T++):T&&(C.splice(I,1),T--);if(!w&&!x)for(;T--;)C.unshift("..");w&&""!==C[0]&&(!C[0]||"/"!==C[0].charAt(0))&&C.unshift(""),E&&"/"!==C.join("/").substr(-1)&&C.push("");var P=""===C[0]||C[0]&&"/"===C[0].charAt(0);if(k){r.hostname=P?"":C.length?C.shift():"",r.host=r.hostname;var M=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");M&&(r.auth=M.shift(),r.hostname=M.shift(),r.host=r.hostname)}return(w=w||r.host&&C.length)&&!P&&C.unshift(""),C.length>0?r.pathname=C.join("/"):(r.pathname=null,r.path=null),(null!==r.pathname||null!==r.search)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},a.prototype.parseHost=function(){var e=this.host,t=o.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},6834(e,t,r){(function(e,t,r){"use strict";var n=function(e,t,r){r=a.extend({},a.options,r);var i=a.runValidations(e,t,r);if(i.some(function(e){return a.isPromise(e.error)}))throw Error("Use validate.async if you want support for promises");return n.processValidationResults(i,r)},a=n;a.extend=function(e){return[].slice.call(arguments,1).forEach(function(t){for(var r in t)e[r]=t[r]}),e},a.extend(n,{version:{major:0,minor:12,patch:0,metadata:null,toString:function(){var e=a.format("%{major}.%{minor}.%{patch}",a.version);return a.isEmpty(a.version.metadata)||(e+="+"+a.version.metadata),e}},Promise:"u">typeof Promise?Promise:null,EMPTY_STRING_REGEXP:/^\s*$/,runValidations:function(e,t,r){var n,i,o,s,l,u,d=[];for(n in(a.isDomElement(e)||a.isJqueryElement(e))&&(e=a.collectFormValues(e)),t)for(i in o=a.getDeepObjectValue(e,n),s=a.result(t[n],o,e,n,r,t)){if(!(l=a.validators[i]))throw Error(a.format("Unknown validator %{name}",{name:i}));u=s[i],(u=a.result(u,o,e,n,r,t))&&d.push({attribute:n,value:o,validator:i,globalOptions:r,attributes:e,options:u,error:l.call(l,o,u,n,e,r)})}return d},processValidationResults:function(e,t){e=a.pruneEmptyErrors(e,t),e=a.expandMultipleErrors(e,t),e=a.convertErrorMessages(e,t);var r=t.format||"grouped";if("function"==typeof a.formatters[r])e=a.formatters[r](e);else throw Error(a.format("Unknown format %{format}",t));return a.isEmpty(e)?void 0:e},async:function(e,t,r){var n=(r=a.extend({},a.async.options,r)).wrapErrors||function(e){return e};!1!==r.cleanAttributes&&(e=a.cleanAttributes(e,t));var i=a.runValidations(e,t,r);return new a.Promise(function(o,s){a.waitForResults(i).then(function(){var l=a.processValidationResults(i,r);l?s(new n(l,r,e,t)):o(e)},function(e){s(e)})})},single:function(e,t,r){return r=a.extend({},a.single.options,r,{format:"flat",fullMessages:!1}),a({single:e},{single:t},r)},waitForResults:function(e){return e.reduce(function(e,t){return a.isPromise(t.error)?e.then(function(){return t.error.then(function(e){t.error=e||null})}):e},new a.Promise(function(e){e()}))},result:function(e){var t=[].slice.call(arguments,1);return"function"==typeof e&&(e=e.apply(null,t)),e},isNumber:function(e){return"number"==typeof e&&!isNaN(e)},isFunction:function(e){return"function"==typeof e},isInteger:function(e){return a.isNumber(e)&&e%1==0},isBoolean:function(e){return"boolean"==typeof e},isObject:function(e){return e===Object(e)},isDate:function(e){return e instanceof Date},isDefined:function(e){return null!=e},isPromise:function(e){return!!e&&a.isFunction(e.then)},isJqueryElement:function(e){return e&&a.isString(e.jquery)},isDomElement:function(e){return!!e&&!!e.querySelectorAll&&!!e.querySelector&&(!!a.isObject(document)&&e===document||("object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName))},isEmpty:function(e){var t;if(!a.isDefined(e))return!0;if(a.isFunction(e))return!1;if(a.isString(e))return a.EMPTY_STRING_REGEXP.test(e);if(a.isArray(e))return 0===e.length;if(a.isDate(e))return!1;if(a.isObject(e)){for(t in e)return!1;return!0}return!1},format:a.extend(function(e,t){return a.isString(e)?e.replace(a.format.FORMAT_REGEXP,function(e,r,n){return"%"===r?"%{"+n+"}":String(t[n])}):e},{FORMAT_REGEXP:/(%?)%\{([^\}]+)\}/g}),prettify:function(e){if(a.isNumber(e))if(100*e%1==0)return""+e;else return parseFloat(Math.round(100*e)/100).toFixed(2);return a.isArray(e)?e.map(function(e){return a.prettify(e)}).join(", "):a.isObject(e)?e.toString():(e=""+e).replace(/([^\s])\.([^\s])/g,"$1 $2").replace(/\\+/g,"").replace(/[_-]/g," ").replace(/([a-z])([A-Z])/g,function(e,t,r){return""+t+" "+r.toLowerCase()}).toLowerCase()},stringifyValue:function(e,t){return(t&&t.prettify||a.prettify)(e)},isString:function(e){return"string"==typeof e},isArray:function(e){return"[object Array]"===({}).toString.call(e)},isHash:function(e){return a.isObject(e)&&!a.isArray(e)&&!a.isFunction(e)},contains:function(e,t){return!!a.isDefined(e)&&(a.isArray(e)?-1!==e.indexOf(t):t in e)},unique:function(e){return a.isArray(e)?e.filter(function(e,t,r){return r.indexOf(e)==t}):e},forEachKeyInKeypath:function(e,t,r){if(a.isString(t)){var n,i="",o=!1;for(n=0;n<t.length;++n)switch(t[n]){case".":o?(o=!1,i+="."):(e=r(e,i,!1),i="");break;case"\\":o?(o=!1,i+="\\"):o=!0;break;default:o=!1,i+=t[n]}return r(e,i,!0)}},getDeepObjectValue:function(e,t){if(a.isObject(e))return a.forEachKeyInKeypath(e,t,function(e,t){if(a.isObject(e))return e[t]})},collectFormValues:function(e,t){var r,n,i,o,s,l,u={};if(a.isJqueryElement(e)&&(e=e[0]),!e)return u;for(t=t||{},o=e.querySelectorAll("input[name], textarea[name]"),r=0;r<o.length;++r)i=o.item(r),a.isDefined(i.getAttribute("data-ignored"))||(name=i.name.replace(/\./g,"\\\\."),l=a.sanitizeFormValue(i.value,t),"number"===i.type?l=l?+l:null:"checkbox"===i.type?i.attributes.value?i.checked||(l=u[name]||null):l=i.checked:"radio"!==i.type||i.checked||(l=u[name]||null),u[name]=l);for(o=e.querySelectorAll("select[name]"),r=0;r<o.length;++r)if(i=o.item(r),!a.isDefined(i.getAttribute("data-ignored"))){if(i.multiple)for(n in l=[],i.options)(s=i.options[n])&&s.selected&&l.push(a.sanitizeFormValue(s.value,t));else{var d=void 0!==i.options[i.selectedIndex]?i.options[i.selectedIndex].value:"";l=a.sanitizeFormValue(d,t)}u[i.name]=l}return u},sanitizeFormValue:function(e,t){return(t.trim&&a.isString(e)&&(e=e.trim()),!1!==t.nullify&&""===e)?null:e},capitalize:function(e){return a.isString(e)?e[0].toUpperCase()+e.slice(1):e},pruneEmptyErrors:function(e){return e.filter(function(e){return!a.isEmpty(e.error)})},expandMultipleErrors:function(e){var t=[];return e.forEach(function(e){a.isArray(e.error)?e.error.forEach(function(r){t.push(a.extend({},e,{error:r}))}):t.push(e)}),t},convertErrorMessages:function(e,t){var r=[],n=(t=t||{}).prettify||a.prettify;return e.forEach(function(e){var i=a.result(e.error,e.value,e.attribute,e.options,e.attributes,e.globalOptions);a.isString(i)?("^"===i[0]?i=i.slice(1):!1!==t.fullMessages&&(i=a.capitalize(n(e.attribute))+" "+i),i=i.replace(/\\\^/g,"^"),i=a.format(i,{value:a.stringifyValue(e.value,t)}),r.push(a.extend({},e,{error:i}))):r.push(e)}),r},groupErrorsByAttribute:function(e){var t={};return e.forEach(function(e){var r=t[e.attribute];r?r.push(e):t[e.attribute]=[e]}),t},flattenErrorsToArray:function(e){return e.map(function(e){return e.error}).filter(function(e,t,r){return r.indexOf(e)===t})},cleanAttributes:function(e,t){function r(e,t,r){return a.isObject(e[t])?e[t]:e[t]=!!r||{}}return a.isObject(t)&&a.isObject(e)?function e(t,r){if(!a.isObject(t))return t;var n,i,o=a.extend({},t);for(i in t)n=r[i],a.isObject(n)?o[i]=e(o[i],n):n||delete o[i];return o}(e,t=function(e){var t,n={};for(t in e)e[t]&&a.forEachKeyInKeypath(n,t,r);return n}(t)):{}},exposeModule:function(e,t,r,n,a){r?(n&&n.exports&&(r=n.exports=e),r.validate=e):(t.validate=e,e.isFunction(a)&&a.amd&&a([],function(){return e}))},warn:function(e){"u">typeof console&&console.warn&&console.warn("[validate.js] "+e)},error:function(e){"u">typeof console&&console.error&&console.error("[validate.js] "+e)}}),n.validators={presence:function(e,t){if(!1!==(t=a.extend({},this.options,t)).allowEmpty?!a.isDefined(e):a.isEmpty(e))return t.message||this.message||"can't be blank"},length:function(e,t,r){if(a.isDefined(e)){var n,i=(t=a.extend({},this.options,t)).is,o=t.maximum,s=t.minimum,l=t.tokenizer||function(e){return e},u=[],d=(e=l(e)).length;if(!a.isNumber(d))return a.error(a.format("Attribute %{attr} has a non numeric value for `length`",{attr:r})),t.message||this.notValid||"has an incorrect length";if(a.isNumber(i)&&d!==i&&(n=t.wrongLength||this.wrongLength||"is the wrong length (should be %{count} characters)",u.push(a.format(n,{count:i}))),a.isNumber(s)&&d<s&&(n=t.tooShort||this.tooShort||"is too short (minimum is %{count} characters)",u.push(a.format(n,{count:s}))),a.isNumber(o)&&d>o&&(n=t.tooLong||this.tooLong||"is too long (maximum is %{count} characters)",u.push(a.format(n,{count:o}))),u.length>0)return t.message||u}},numericality:function(e,t,r,n,i){if(a.isDefined(e)){t=a.extend({},this.options,t);var o,s,l=[],u={greaterThan:function(e,t){return e>t},greaterThanOrEqualTo:function(e,t){return e>=t},equalTo:function(e,t){return e===t},lessThan:function(e,t){return e<t},lessThanOrEqualTo:function(e,t){return e<=t},divisibleBy:function(e,t){return e%t==0}},d=t.prettify||i&&i.prettify||a.prettify;if(a.isString(e)&&t.strict){var c="^-?(0|[1-9]\\d*)";if(t.onlyInteger||(c+="(\\.\\d+)?"),!new RegExp(c+="$").test(e))return t.message||t.notValid||this.notValid||this.message||"must be a valid number"}if(!0!==t.noStrings&&a.isString(e)&&!a.isEmpty(e)&&(e*=1),!a.isNumber(e))return t.message||t.notValid||this.notValid||this.message||"is not a number";if(t.onlyInteger&&!a.isInteger(e))return t.message||t.notInteger||this.notInteger||this.message||"must be an integer";for(o in u)if(s=t[o],a.isNumber(s)&&!u[o](e,s)){var h="not"+a.capitalize(o),p=t[h]||this[h]||this.message||"must be %{type} %{count}";l.push(a.format(p,{count:s,type:d(o)}))}if(t.odd&&e%2!=1&&l.push(t.notOdd||this.notOdd||this.message||"must be odd"),t.even&&e%2!=0&&l.push(t.notEven||this.notEven||this.message||"must be even"),l.length)return t.message||l}},datetime:a.extend(function(e,t){if(!a.isFunction(this.parse)||!a.isFunction(this.format))throw Error("Both the parse and format functions needs to be set to use the datetime/date validator");if(a.isDefined(e)){t=a.extend({},this.options,t);var r,n=[],i=t.earliest?this.parse(t.earliest,t):NaN,o=t.latest?this.parse(t.latest,t):NaN;if(isNaN(e=this.parse(e,t))||t.dateOnly&&e%864e5!=0)return r=t.notValid||t.message||this.notValid||"must be a valid date",a.format(r,{value:arguments[0]});if(!isNaN(i)&&e<i&&(r=t.tooEarly||t.message||this.tooEarly||"must be no earlier than %{date}",r=a.format(r,{value:this.format(e,t),date:this.format(i,t)}),n.push(r)),!isNaN(o)&&e>o&&(r=t.tooLate||t.message||this.tooLate||"must be no later than %{date}",r=a.format(r,{date:this.format(o,t),value:this.format(e,t)}),n.push(r)),n.length)return a.unique(n)}},{parse:null,format:null}),date:function(e,t){return t=a.extend({},t,{dateOnly:!0}),a.validators.datetime.call(a.validators.datetime,e,t)},format:function(e,t){(a.isString(t)||t instanceof RegExp)&&(t={pattern:t});var r,n=(t=a.extend({},this.options,t)).message||this.message||"is invalid",i=t.pattern;if(a.isDefined(e)&&(!a.isString(e)||(a.isString(i)&&(i=new RegExp(t.pattern,t.flags)),!(r=i.exec(e))||r[0].length!=e.length)))return n},inclusion:function(e,t){if(a.isDefined(e)&&(a.isArray(t)&&(t={within:t}),t=a.extend({},this.options,t),!a.contains(t.within,e))){var r=t.message||this.message||"^%{value} is not included in the list";return a.format(r,{value:e})}},exclusion:function(e,t){if(a.isDefined(e)&&(a.isArray(t)&&(t={within:t}),t=a.extend({},this.options,t),a.contains(t.within,e))){var r=t.message||this.message||"^%{value} is restricted";return a.format(r,{value:e})}},email:a.extend(function(e,t){var r=(t=a.extend({},this.options,t)).message||this.message||"is not a valid email";if(a.isDefined(e)&&(!a.isString(e)||!this.PATTERN.exec(e)))return r},{PATTERN:/^[a-z0-9\u007F-\uffff!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9\u007F-\uffff!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z]{2,}$/i}),equality:function(e,t,r,n,i){if(a.isDefined(e)){a.isString(t)&&(t={attribute:t});var o=(t=a.extend({},this.options,t)).message||this.message||"is not equal to %{attribute}";if(a.isEmpty(t.attribute)||!a.isString(t.attribute))throw Error("The attribute must be a non empty string");var s=a.getDeepObjectValue(n,t.attribute),l=t.comparator||function(e,t){return e===t},u=t.prettify||i&&i.prettify||a.prettify;if(!l(e,s,t,r,n))return a.format(o,{attribute:u(t.attribute)})}},url:function(e,t){if(a.isDefined(e)){var r=(t=a.extend({},this.options,t)).message||this.message||"is not a valid url",n=t.schemes||this.schemes||["http","https"],i=t.allowLocal||this.allowLocal||!1;if(!a.isString(e))return r;var o="^(?:(?:"+n.join("|")+")://)(?:\\S+(?::\\S*)?@)?(?:",s="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";if(i?s+="?":o+="(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})",!RegExp(o+="(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*"+s+")(?::\\d{2,5})?(?:[/?#]\\S*)?$","i").exec(e))return r}}},n.formatters={detailed:function(e){return e},flat:a.flattenErrorsToArray,grouped:function(e){var t;for(t in e=a.groupErrorsByAttribute(e))e[t]=a.flattenErrorsToArray(e[t]);return e},constraint:function(e){var t;for(t in e=a.groupErrorsByAttribute(e))e[t]=e[t].map(function(e){return e.validator}).sort();return e}},n.exposeModule(n,this,e,t,r)}).call(this,t,e=r.nmd(e),"u">typeof define?define:null)},9741(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},2203(e,t,r){e.exports=(function e(t,n,a){function i(s,l){if(!n[s]){if(!t[s]){var u=r(3882);if(!l&&u)return u(s,!0);if(o)return o(s,!0);throw Error("Cannot find module '"+s+"'")}var d=n[s]={exports:{}};t[s][0].call(d.exports,function(e){return i(t[s][1][e]||e)},d,d.exports,e,t,n,a)}return n[s].exports}for(var o=r(3882),s=0;s<a.length;s++)i(a[s]);return i})({1:[function(e,t,r){(function(n,a,i,o,s,l,u,d,c){"use strict";var h=e("crypto");function p(e,t){var r=t=g(e,t);if(void 0===(n="passthrough"!==r.algorithm?h.createHash(r.algorithm):new b).write&&(n.write=n.update,n.end=n.update),v(r,n).dispatch(e),n.update||n.end(""),n.digest)return n.digest("buffer"===r.encoding?void 0:r.encoding);var n,a=n.read();return"buffer"!==r.encoding?a.toString(r.encoding):a}(r=t.exports=p).sha1=function(e){return p(e)},r.keys=function(e){return p(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},r.MD5=function(e){return p(e,{algorithm:"md5",encoding:"hex"})},r.keysMD5=function(e){return p(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var m=h.getHashes?h.getHashes().slice():["sha1","md5"];m.push("passthrough");var f=["buffer","hex","binary","base64"];function g(e,t){var r={};if(r.algorithm=(t=t||{}).algorithm||"sha1",r.encoding=t.encoding||"hex",r.excludeValues=!!t.excludeValues,r.algorithm=r.algorithm.toLowerCase(),r.encoding=r.encoding.toLowerCase(),r.ignoreUnknown=!0===t.ignoreUnknown,r.respectType=!1!==t.respectType,r.respectFunctionNames=!1!==t.respectFunctionNames,r.respectFunctionProperties=!1!==t.respectFunctionProperties,r.unorderedArrays=!0===t.unorderedArrays,r.unorderedSets=!1!==t.unorderedSets,r.unorderedObjects=!1!==t.unorderedObjects,r.replacer=t.replacer||void 0,r.excludeKeys=t.excludeKeys||void 0,void 0===e)throw Error("Object argument required.");for(var n=0;n<m.length;++n)m[n].toLowerCase()===r.algorithm.toLowerCase()&&(r.algorithm=m[n]);if(-1===m.indexOf(r.algorithm))throw Error('Algorithm "'+r.algorithm+'" not supported. supported values: '+m.join(", "));if(-1===f.indexOf(r.encoding)&&"passthrough"!==r.algorithm)throw Error('Encoding "'+r.encoding+'" not supported. supported values: '+f.join(", "));return r}function y(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function v(e,t,r){function n(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return r=r||[],{dispatch:function(t){return e.replacer&&(t=e.replacer(t)),this["_"+(null===t?"null":typeof t)](t)},_object:function(t){var a,o=Object.prototype.toString.call(t),s=/\[object (.*)\]/i.exec(o);if(s=(s=s?s[1]:"unknown:["+o+"]").toLowerCase(),0<=(a=r.indexOf(t)))return this.dispatch("[CIRCULAR:"+a+"]");if(r.push(t),void 0!==i&&i.isBuffer&&i.isBuffer(t))return n("buffer:"),n(t);if("object"===s||"function"===s||"asyncfunction"===s){var l=Object.keys(t);e.unorderedObjects&&(l=l.sort()),!1===e.respectType||y(t)||l.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(l=l.filter(function(t){return!e.excludeKeys(t)})),n("object:"+l.length+":");var u=this;return l.forEach(function(r){u.dispatch(r),n(":"),e.excludeValues||u.dispatch(t[r]),n(",")})}if(!this["_"+s]){if(e.ignoreUnknown)return n("["+s+"]");throw Error('Unknown object type "'+s+'"')}this["_"+s](t)},_array:function(t,a){a=void 0!==a?a:!1!==e.unorderedArrays;var i=this;if(n("array:"+t.length+":"),!a||t.length<=1)return t.forEach(function(e){return i.dispatch(e)});var o=[],s=t.map(function(t){var n=new b,a=r.slice();return v(e,n,a).dispatch(t),o=o.concat(a.slice(r.length)),n.read().toString()});return r=r.concat(o),s.sort(),this._array(s,!1)},_date:function(e){return n("date:"+e.toJSON())},_symbol:function(e){return n("symbol:"+e.toString())},_error:function(e){return n("error:"+e.toString())},_boolean:function(e){return n("bool:"+e.toString())},_string:function(e){n("string:"+e.length+":"),n(e.toString())},_function:function(t){n("fn:"),y(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return n("number:"+e.toString())},_xml:function(e){return n("xml:"+e.toString())},_null:function(){return n("Null")},_undefined:function(){return n("Undefined")},_regexp:function(e){return n("regex:"+e.toString())},_uint8array:function(e){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return n("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return n("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return n("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return n("url:"+e.toString())},_map:function(t){n("map:");var r=Array.from(t);return this._array(r,!1!==e.unorderedSets)},_set:function(t){n("set:");var r=Array.from(t);return this._array(r,!1!==e.unorderedSets)},_file:function(e){return n("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return n("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return n("domwindow")},_process:function(){return n("process")},_timer:function(){return n("timer")},_pipe:function(){return n("pipe")},_tcp:function(){return n("tcp")},_udp:function(){return n("udp")},_tty:function(){return n("tty")},_statwatcher:function(){return n("statwatcher")},_securecontext:function(){return n("securecontext")},_connection:function(){return n("connection")},_zlib:function(){return n("zlib")},_context:function(){return n("context")},_nodescript:function(){return n("nodescript")},_httpparser:function(){return n("httpparser")},_dataview:function(){return n("dataview")},_signal:function(){return n("signal")},_fsevent:function(){return n("fsevent")},_tlswrap:function(){return n("tlswrap")}}}function b(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}r.writeToStream=function(e,t,r){return void 0===r&&(r=t,t={}),v(t=g(e,t),r).dispatch(e)}}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_5812b7fb.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(e,t,r){(function(e,t,n,a,i,o,s,l,u){!function(e){"use strict";var t="u">typeof Uint8Array?Uint8Array:Array;function r(e){var t=e.charCodeAt(0);return 43===t||45===t?62:47===t||95===t?63:t<48?-1:t<58?t-48+26+26:t<91?t-65:t<123?t-97+26:void 0}e.toByteArray=function(e){if(0<e.length%4)throw Error("Invalid string. Length must be a multiple of 4");var n,a,i=e.length,o="="===e.charAt(i-2)?2:+("="===e.charAt(i-1)),s=new t(3*e.length/4-o),l=0<o?e.length-4:e.length,u=0;function d(e){s[u++]=e}for(n=0;n<l;n+=4)d((0xff0000&(a=r(e.charAt(n))<<18|r(e.charAt(n+1))<<12|r(e.charAt(n+2))<<6|r(e.charAt(n+3))))>>16),d((65280&a)>>8),d(255&a);return 2==o?d(255&(a=r(e.charAt(n))<<2|r(e.charAt(n+1))>>4)):1==o&&(d((a=r(e.charAt(n))<<10|r(e.charAt(n+1))<<4|r(e.charAt(n+2))>>2)>>8&255),d(255&a)),s},e.fromByteArray=function(e){var t,r,n,a,i=e.length%3,o="";function s(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,n=e.length-i;t<n;t+=3)o+=s((a=r=(e[t]<<16)+(e[t+1]<<8)+e[t+2])>>18&63)+s(a>>12&63)+s(a>>6&63)+s(63&a);switch(i){case 1:o+=s((r=e[e.length-1])>>2),o+=s(r<<4&63),o+="==";break;case 2:o+=s((r=(e[e.length-2]<<8)+e[e.length-1])>>10),o+=s(r>>4&63),o+=s(r<<2&63),o+="="}return o}}(void 0===r?this.base64js={}:r)}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(e,t,r){(function(t,n,a,i,o,s,l,u,d){var c=e("base64-js"),h=e("ieee754");function a(e,t,r){if(!(this instanceof a))return new a(e,t,r);var n,i,o,s,l,u=typeof e;if("base64"===t&&"string"==u)for(e=(n=e).trim?n.trim():n.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==u)i=T(e);else if("string"==u)i=a.byteLength(e,t);else{if("object"!=u)throw Error("First argument needs to be a number, array or string.");i=T(e.length)}if(a._useTypedArrays?o=a._augment(new Uint8Array(i)):((o=this).length=i,o._isBuffer=!0),a._useTypedArrays&&"number"==typeof e.byteLength)o._set(e);else if(I(l=e)||a.isBuffer(l)||l&&"object"==typeof l&&"number"==typeof l.length)for(s=0;s<i;s++)a.isBuffer(e)?o[s]=e.readUInt8(s):o[s]=e[s];else if("string"==u)o.write(e,0,t);else if("number"==u&&!a._useTypedArrays&&!r)for(s=0;s<i;s++)o[s]=0;return o}function p(e,t,r,n){n||(V("boolean"==typeof r,"missing or invalid endian"),V(null!=t,"missing offset"),V(t+1<e.length,"Trying to read beyond buffer length"));var a,i=e.length;if(!(i<=t))return r?(a=e[t],t+1<i&&(a|=e[t+1]<<8)):(a=e[t]<<8,t+1<i&&(a|=e[t+1])),a}function m(e,t,r,n){n||(V("boolean"==typeof r,"missing or invalid endian"),V(null!=t,"missing offset"),V(t+3<e.length,"Trying to read beyond buffer length"));var a,i=e.length;if(!(i<=t))return r?(t+2<i&&(a=e[t+2]<<16),t+1<i&&(a|=e[t+1]<<8),a|=e[t],t+3<i&&(a+=e[t+3]<<24>>>0)):(t+1<i&&(a=e[t+1]<<16),t+2<i&&(a|=e[t+2]<<8),t+3<i&&(a|=e[t+3]),a+=e[t]<<24>>>0),a}function f(e,t,r,n){if(n||(V("boolean"==typeof r,"missing or invalid endian"),V(null!=t,"missing offset"),V(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var a=p(e,t,r,!0);return 32768&a?-1*(65535-a+1):a}}function g(e,t,r,n){if(n||(V("boolean"==typeof r,"missing or invalid endian"),V(null!=t,"missing offset"),V(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var a=m(e,t,r,!0);return 0x80000000&a?-1*(0xffffffff-a+1):a}}function y(e,t,r,n){return n||(V("boolean"==typeof r,"missing or invalid endian"),V(t+3<e.length,"Trying to read beyond buffer length")),h.read(e,t,r,23,4)}function v(e,t,r,n){return n||(V("boolean"==typeof r,"missing or invalid endian"),V(t+7<e.length,"Trying to read beyond buffer length")),h.read(e,t,r,52,8)}function b(e,t,r,n,a){a||(V(null!=t,"missing value"),V("boolean"==typeof n,"missing or invalid endian"),V(null!=r,"missing offset"),V(r+1<e.length,"trying to write beyond buffer length"),R(t,65535));var i=e.length;if(!(i<=r))for(var o=0,s=Math.min(i-r,2);o<s;o++)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function w(e,t,r,n,a){a||(V(null!=t,"missing value"),V("boolean"==typeof n,"missing or invalid endian"),V(null!=r,"missing offset"),V(r+3<e.length,"trying to write beyond buffer length"),R(t,0xffffffff));var i=e.length;if(!(i<=r))for(var o=0,s=Math.min(i-r,4);o<s;o++)e[r+o]=t>>>8*(n?o:3-o)&255}function x(e,t,r,n,a){a||(V(null!=t,"missing value"),V("boolean"==typeof n,"missing or invalid endian"),V(null!=r,"missing offset"),V(r+1<e.length,"Trying to write beyond buffer length"),L(t,32767,-32768)),e.length<=r||b(e,0<=t?t:65535+t+1,r,n,a)}function C(e,t,r,n,a){a||(V(null!=t,"missing value"),V("boolean"==typeof n,"missing or invalid endian"),V(null!=r,"missing offset"),V(r+3<e.length,"Trying to write beyond buffer length"),L(t,0x7fffffff,-0x80000000)),e.length<=r||w(e,0<=t?t:0xffffffff+t+1,r,n,a)}function k(e,t,r,n,a){a||(V(null!=t,"missing value"),V("boolean"==typeof n,"missing or invalid endian"),V(null!=r,"missing offset"),V(r+3<e.length,"Trying to write beyond buffer length"),N(t,34028234663852886e22,-34028234663852886e22)),e.length<=r||h.write(e,t,r,n,23,4)}function M(e,t,r,n,a){a||(V(null!=t,"missing value"),V("boolean"==typeof n,"missing or invalid endian"),V(null!=r,"missing offset"),V(r+7<e.length,"Trying to write beyond buffer length"),N(t,17976931348623157e292,-17976931348623157e292)),e.length<=r||h.write(e,t,r,n,52,8)}r.Buffer=a,r.SlowBuffer=a,r.INSPECT_MAX_BYTES=50,a.poolSize=8192,a._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.byteLength=function(e,t){var r;switch(e+="",t||"utf8"){case"hex":r=e.length/2;break;case"utf8":case"utf-8":r=_(e).length;break;case"ascii":case"binary":case"raw":r=e.length;break;case"base64":r=D(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=2*e.length;break;default:throw Error("Unknown encoding")}return r},a.concat=function(e,t){if(V(I(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new a(0);if(1===e.length)return e[0];if("number"!=typeof t)for(i=t=0;i<e.length;i++)t+=e[i].length;for(var r=new a(t),n=0,i=0;i<e.length;i++){var o=e[i];o.copy(r,n),n+=o.length}return r},a.prototype.write=function(e,t,r,n){isFinite(t)?isFinite(r)||(n=r,r=void 0):(u=n,n=t,t=r,r=u),t=Number(t)||0;var i,o,s,l,u,d,c,h,p,m,f=this.length-t;switch((!r||f<(r=Number(r)))&&(r=f),n=String(n||"utf8").toLowerCase()){case"hex":d=function(e,t,r,n){r=Number(r)||0;var i=e.length-r;(!n||i<(n=Number(n)))&&(n=i);var o=t.length;V(o%2==0,"Invalid hex string"),o/2<n&&(n=o/2);for(var s=0;s<n;s++){var l=parseInt(t.substr(2*s,2),16);V(!isNaN(l),"Invalid hex string"),e[r+s]=l}return a._charsWritten=2*s,s}(this,e,t,r);break;case"utf8":case"utf-8":p=t,m=r,d=a._charsWritten=O(_(e),this,p,m);break;case"ascii":case"binary":i=t,o=r,d=a._charsWritten=O(function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t}(e),this,i,o);break;case"base64":c=t,h=r,d=a._charsWritten=O(D(e),this,c,h);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":s=t,l=r,d=a._charsWritten=O(function(e){for(var t,r,n=[],a=0;a<e.length;a++)r=(t=e.charCodeAt(a))>>8,n.push(t%256),n.push(r);return n}(e),this,s,l);break;default:throw Error("Unknown encoding")}return d},a.prototype.toString=function(e,t,r){var n,a,i;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(r=void 0!==r?Number(r):r=this.length)===t)return"";switch(e){case"hex":n=function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||n<r)&&(r=n);for(var a="",i=t;i<r;i++)a+=P(e[i]);return a}(this,t,r);break;case"utf8":case"utf-8":n=function(e,t,r){var n="",a="";r=Math.min(e.length,r);for(var i=t;i<r;i++)e[i]<=127?(n+=A(a)+String.fromCharCode(e[i]),a=""):a+="%"+e[i].toString(16);return n+A(a)}(this,t,r);break;case"ascii":case"binary":n=function(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;a++)n+=String.fromCharCode(e[a]);return n}(this,t,r);break;case"base64":i=r,n=0===(a=t)&&i===this.length?c.fromByteArray(this):c.fromByteArray(this.slice(a,i));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=function(e,t,r){for(var n=e.slice(t,r),a="",i=0;i<n.length;i+=2)a+=String.fromCharCode(n[i]+256*n[i+1]);return a}(this,t,r);break;default:throw Error("Unknown encoding")}return n},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.copy=function(e,t,r,n){if(r=r||0,n||0===n||(n=this.length),t=t||0,n!==r&&0!==e.length&&0!==this.length){V(r<=n,"sourceEnd < sourceStart"),V(0<=t&&t<e.length,"targetStart out of bounds"),V(0<=r&&r<this.length,"sourceStart out of bounds"),V(0<=n&&n<=this.length,"sourceEnd out of bounds"),n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(i<100||!a._useTypedArrays)for(var o=0;o<i;o++)e[o+t]=this[o+r];else e._set(this.subarray(r,r+i),t)}},a.prototype.slice=function(e,t){var r=this.length;if(e=E(e,r,0),t=E(t,r,r),a._useTypedArrays)return a._augment(this.subarray(e,t));for(var n=t-e,i=new a(n,void 0,!0),o=0;o<n;o++)i[o]=this[o+e];return i},a.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},a.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},a.prototype.readUInt8=function(e,t){if(t||(V(null!=e,"missing offset"),V(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},a.prototype.readUInt16LE=function(e,t){return p(this,e,!0,t)},a.prototype.readUInt16BE=function(e,t){return p(this,e,!1,t)},a.prototype.readUInt32LE=function(e,t){return m(this,e,!0,t)},a.prototype.readUInt32BE=function(e,t){return m(this,e,!1,t)},a.prototype.readInt8=function(e,t){if(t||(V(null!=e,"missing offset"),V(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){return f(this,e,!0,t)},a.prototype.readInt16BE=function(e,t){return f(this,e,!1,t)},a.prototype.readInt32LE=function(e,t){return g(this,e,!0,t)},a.prototype.readInt32BE=function(e,t){return g(this,e,!1,t)},a.prototype.readFloatLE=function(e,t){return y(this,e,!0,t)},a.prototype.readFloatBE=function(e,t){return y(this,e,!1,t)},a.prototype.readDoubleLE=function(e,t){return v(this,e,!0,t)},a.prototype.readDoubleBE=function(e,t){return v(this,e,!1,t)},a.prototype.writeUInt8=function(e,t,r){r||(V(null!=e,"missing value"),V(null!=t,"missing offset"),V(t<this.length,"trying to write beyond buffer length"),R(e,255)),t>=this.length||(this[t]=e)},a.prototype.writeUInt16LE=function(e,t,r){b(this,e,t,!0,r)},a.prototype.writeUInt16BE=function(e,t,r){b(this,e,t,!1,r)},a.prototype.writeUInt32LE=function(e,t,r){w(this,e,t,!0,r)},a.prototype.writeUInt32BE=function(e,t,r){w(this,e,t,!1,r)},a.prototype.writeInt8=function(e,t,r){r||(V(null!=e,"missing value"),V(null!=t,"missing offset"),V(t<this.length,"Trying to write beyond buffer length"),L(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,r):this.writeUInt8(255+e+1,t,r))},a.prototype.writeInt16LE=function(e,t,r){x(this,e,t,!0,r)},a.prototype.writeInt16BE=function(e,t,r){x(this,e,t,!1,r)},a.prototype.writeInt32LE=function(e,t,r){C(this,e,t,!0,r)},a.prototype.writeInt32BE=function(e,t,r){C(this,e,t,!1,r)},a.prototype.writeFloatLE=function(e,t,r){k(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){k(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){M(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){M(this,e,t,!1,r)},a.prototype.fill=function(e,t,r){if(e=e||0,t=t||0,r=r||this.length,"string"==typeof e&&(e=e.charCodeAt(0)),V("number"==typeof e&&!isNaN(e),"value is not a number"),V(t<=r,"end < start"),r!==t&&0!==this.length){V(0<=t&&t<this.length,"start out of bounds"),V(0<=r&&r<=this.length,"end out of bounds");for(var n=t;n<r;n++)this[n]=e}},a.prototype.inspect=function(){for(var e=[],t=this.length,n=0;n<t;n++)if(e[n]=P(this[n]),n===r.INSPECT_MAX_BYTES){e[n+1]="...";break}return"<Buffer "+e.join(" ")+">"},a.prototype.toArrayBuffer=function(){if("u"<typeof Uint8Array)throw Error("Buffer.toArrayBuffer not supported in this browser");if(a._useTypedArrays)return new a(this).buffer;for(var e=new Uint8Array(this.length),t=0,r=e.length;t<r;t+=1)e[t]=this[t];return e.buffer};var S=a.prototype;function E(e,t,r){return"number"!=typeof e?r:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function T(e){return(e=~~Math.ceil(+e))<0?0:e}function I(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function P(e){return e<16?"0"+e.toString(16):e.toString(16)}function _(e){for(var t=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n<=127)t.push(e.charCodeAt(r));else{var a=r;55296<=n&&n<=57343&&r++;for(var i=encodeURIComponent(e.slice(a,r+1)).substr(1).split("%"),o=0;o<i.length;o++)t.push(parseInt(i[o],16))}}return t}function D(e){return c.toByteArray(e)}function O(e,t,r,n){for(var a=0;a<n&&!(a+r>=t.length||a>=e.length);a++)t[a+r]=e[a];return a}function A(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function R(e,t){V("number"==typeof e,"cannot write a non-number as a number"),V(0<=e,"specified a negative value for writing an unsigned value"),V(e<=t,"value is larger than maximum value for type"),V(Math.floor(e)===e,"value has a fractional component")}function L(e,t,r){V("number"==typeof e,"cannot write a non-number as a number"),V(e<=t,"value larger than maximum allowed value"),V(r<=e,"value smaller than minimum allowed value"),V(Math.floor(e)===e,"value has a fractional component")}function N(e,t,r){V("number"==typeof e,"cannot write a non-number as a number"),V(e<=t,"value larger than maximum allowed value"),V(r<=e,"value smaller than minimum allowed value")}function V(e,t){if(!e)throw Error(t||"Failed assertion")}a._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=S.get,e.set=S.set,e.write=S.write,e.toString=S.toString,e.toLocaleString=S.toString,e.toJSON=S.toJSON,e.copy=S.copy,e.slice=S.slice,e.readUInt8=S.readUInt8,e.readUInt16LE=S.readUInt16LE,e.readUInt16BE=S.readUInt16BE,e.readUInt32LE=S.readUInt32LE,e.readUInt32BE=S.readUInt32BE,e.readInt8=S.readInt8,e.readInt16LE=S.readInt16LE,e.readInt16BE=S.readInt16BE,e.readInt32LE=S.readInt32LE,e.readInt32BE=S.readInt32BE,e.readFloatLE=S.readFloatLE,e.readFloatBE=S.readFloatBE,e.readDoubleLE=S.readDoubleLE,e.readDoubleBE=S.readDoubleBE,e.writeUInt8=S.writeUInt8,e.writeUInt16LE=S.writeUInt16LE,e.writeUInt16BE=S.writeUInt16BE,e.writeUInt32LE=S.writeUInt32LE,e.writeUInt32BE=S.writeUInt32BE,e.writeInt8=S.writeInt8,e.writeInt16LE=S.writeInt16LE,e.writeInt16BE=S.writeInt16BE,e.writeInt32LE=S.writeInt32LE,e.writeInt32BE=S.writeInt32BE,e.writeFloatLE=S.writeFloatLE,e.writeFloatBE=S.writeFloatBE,e.writeDoubleLE=S.writeDoubleLE,e.writeDoubleBE=S.writeDoubleBE,e.fill=S.fill,e.inspect=S.inspect,e.toArrayBuffer=S.toArrayBuffer,e}}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(e,t,r){(function(r,n,a,i,o,s,l,u,d){var a=e("buffer").Buffer,c=new a(4);c.fill(0),t.exports={hash:function(e,t,r,n){return a.isBuffer(e)||(e=new a(e)),function(e,t,r){for(var n=new a(t),i=r?n.writeInt32BE:n.writeInt32LE,o=0;o<e.length;o++)i.call(n,e[o],4*o,!0);return n}(t(function(e,t){var r;e.length%4!=0&&(r=e.length+(4-e.length%4),e=a.concat([e,c],r));for(var n=[],i=t?e.readInt32BE:e.readInt32LE,o=0;o<e.length;o+=4)n.push(i.call(e,o));return n}(e,n),8*e.length),r,n)}}}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(e,t,r){(function(t,n,a,i,o,s,l,u,d){var a=e("buffer").Buffer,c=e("./sha"),h=e("./sha256"),p=e("./rng"),m={sha1:c,sha256:h,md5:e("./md5")},f=new a(64);function g(e,t){var r=m[e=e||"sha1"],n=[];return r||y("algorithm:",e,"is not yet supported"),{update:function(e){return a.isBuffer(e)||(e=new a(e)),n.push(e),e.length,this},digest:function(e){var i=a.concat(n),o=t?function(e,t,r){a.isBuffer(t)||(t=new a(t)),a.isBuffer(r)||(r=new a(r)),t.length>64?t=e(t):t.length<64&&(t=a.concat([t,f],64));for(var n=new a(64),i=new a(64),o=0;o<64;o++)n[o]=54^t[o],i[o]=92^t[o];var s=e(a.concat([n,r]));return e(a.concat([i,s]))}(r,t,i):r(i);return n=null,e?o.toString(e):o}}}function y(){var e=[].slice.call(arguments).join(" ");throw Error([e,"we accept pull requests\nhttp://github.com/dominictarr/crypto-browserify"].join("\n"))}f.fill(0),r.createHash=function(e){return g(e)},r.createHmac=g,r.randomBytes=function(e,t){if(!t||!t.call)return new a(p(e));try{t.call(this,void 0,new a(p(e)))}catch(e){t(e)}},function(e,t){for(var r in e)t(e[r],r)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(e){r[e]=function(){y("sorry,",e,"is not implemented yet")}})}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(e,t,r){(function(r,n,a,i,o,s,l,u,d){var c=e("./helpers");function h(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=0x67452301,n=-0x10325477,a=-0x67452302,i=0x10325476,o=0;o<e.length;o+=16){var s=r,l=n,u=a,d=i,r=m(r,n,a,i,e[o+0],7,-0x28955b88),i=m(i,r,n,a,e[o+1],12,-0x173848aa),a=m(a,i,r,n,e[o+2],17,0x242070db),n=m(n,a,i,r,e[o+3],22,-0x3e423112);r=m(r,n,a,i,e[o+4],7,-0xa83f051),i=m(i,r,n,a,e[o+5],12,0x4787c62a),a=m(a,i,r,n,e[o+6],17,-0x57cfb9ed),n=m(n,a,i,r,e[o+7],22,-0x2b96aff),r=m(r,n,a,i,e[o+8],7,0x698098d8),i=m(i,r,n,a,e[o+9],12,-0x74bb0851),a=m(a,i,r,n,e[o+10],17,-42063),n=m(n,a,i,r,e[o+11],22,-0x76a32842),r=m(r,n,a,i,e[o+12],7,0x6b901122),i=m(i,r,n,a,e[o+13],12,-0x2678e6d),a=m(a,i,r,n,e[o+14],17,-0x5986bc72),r=f(r,n=m(n,a,i,r,e[o+15],22,0x49b40821),a,i,e[o+1],5,-0x9e1da9e),i=f(i,r,n,a,e[o+6],9,-0x3fbf4cc0),a=f(a,i,r,n,e[o+11],14,0x265e5a51),n=f(n,a,i,r,e[o+0],20,-0x16493856),r=f(r,n,a,i,e[o+5],5,-0x29d0efa3),i=f(i,r,n,a,e[o+10],9,0x2441453),a=f(a,i,r,n,e[o+15],14,-0x275e197f),n=f(n,a,i,r,e[o+4],20,-0x182c0438),r=f(r,n,a,i,e[o+9],5,0x21e1cde6),i=f(i,r,n,a,e[o+14],9,-0x3cc8f82a),a=f(a,i,r,n,e[o+3],14,-0xb2af279),n=f(n,a,i,r,e[o+8],20,0x455a14ed),r=f(r,n,a,i,e[o+13],5,-0x561c16fb),i=f(i,r,n,a,e[o+2],9,-0x3105c08),a=f(a,i,r,n,e[o+7],14,0x676f02d9),r=g(r,n=f(n,a,i,r,e[o+12],20,-0x72d5b376),a,i,e[o+5],4,-378558),i=g(i,r,n,a,e[o+8],11,-0x788e097f),a=g(a,i,r,n,e[o+11],16,0x6d9d6122),n=g(n,a,i,r,e[o+14],23,-0x21ac7f4),r=g(r,n,a,i,e[o+1],4,-0x5b4115bc),i=g(i,r,n,a,e[o+4],11,0x4bdecfa9),a=g(a,i,r,n,e[o+7],16,-0x944b4a0),n=g(n,a,i,r,e[o+10],23,-0x41404390),r=g(r,n,a,i,e[o+13],4,0x289b7ec6),i=g(i,r,n,a,e[o+0],11,-0x155ed806),a=g(a,i,r,n,e[o+3],16,-0x2b10cf7b),n=g(n,a,i,r,e[o+6],23,0x4881d05),r=g(r,n,a,i,e[o+9],4,-0x262b2fc7),i=g(i,r,n,a,e[o+12],11,-0x1924661b),a=g(a,i,r,n,e[o+15],16,0x1fa27cf8),r=y(r,n=g(n,a,i,r,e[o+2],23,-0x3b53a99b),a,i,e[o+0],6,-0xbd6ddbc),i=y(i,r,n,a,e[o+7],10,0x432aff97),a=y(a,i,r,n,e[o+14],15,-0x546bdc59),n=y(n,a,i,r,e[o+5],21,-0x36c5fc7),r=y(r,n,a,i,e[o+12],6,0x655b59c3),i=y(i,r,n,a,e[o+3],10,-0x70f3336e),a=y(a,i,r,n,e[o+10],15,-1051523),n=y(n,a,i,r,e[o+1],21,-0x7a7ba22f),r=y(r,n,a,i,e[o+8],6,0x6fa87e4f),i=y(i,r,n,a,e[o+15],10,-0x1d31920),a=y(a,i,r,n,e[o+6],15,-0x5cfebcec),n=y(n,a,i,r,e[o+13],21,0x4e0811a1),r=y(r,n,a,i,e[o+4],6,-0x8ac817e),i=y(i,r,n,a,e[o+11],10,-0x42c50dcb),a=y(a,i,r,n,e[o+2],15,0x2ad7d2bb),n=y(n,a,i,r,e[o+9],21,-0x14792c6f),r=v(r,s),n=v(n,l),a=v(a,u),i=v(i,d)}return[r,n,a,i]}function p(e,t,r,n,a,i){var o;return v((o=v(v(t,e),v(n,i)))<<a|o>>>32-a,r)}function m(e,t,r,n,a,i,o){return p(t&r|~t&n,e,t,a,i,o)}function f(e,t,r,n,a,i,o){return p(t&n|r&~n,e,t,a,i,o)}function g(e,t,r,n,a,i,o){return p(t^r^n,e,t,a,i,o)}function y(e,t,r,n,a,i,o){return p(r^(t|~n),e,t,a,i,o)}function v(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}t.exports=function(e){return c.hash(e,h,16)}}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(e,t,r){(function(e,r,n,a,i,o,s,l,u){t.exports=function(e){for(var t,r=Array(e),n=0;n<e;n++)0==(3&n)&&(t=0x100000000*Math.random()),r[n]=t>>>((3&n)<<3)&255;return r}}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(e,t,r){(function(r,n,a,i,o,s,l,u,d){var c=e("./helpers");function h(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var r,n,a,i,o,s=Array(80),l=0x67452301,u=-0x10325477,d=-0x67452302,c=0x10325476,h=-0x3c2d1e10,f=0;f<e.length;f+=16){for(var g=l,y=u,v=d,b=c,w=h,x=0;x<80;x++){s[x]=x<16?e[f+x]:m(s[x-3]^s[x-8]^s[x-14]^s[x-16],1);var C=p(p(m(l,5),(a=u,i=d,o=c,(n=x)<20?a&i|~a&o:!(n<40)&&n<60?a&i|a&o|i&o:a^i^o)),p(p(h,s[x]),(r=x)<20?0x5a827999:r<40?0x6ed9eba1:r<60?-0x70e44324:-0x359d3e2a)),h=c,c=d,d=m(u,30),u=l,l=C}l=p(l,g),u=p(u,y),d=p(d,v),c=p(c,b),h=p(h,w)}return[l,u,d,c,h]}function p(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function m(e,t){return e<<t|e>>>32-t}t.exports=function(e){return c.hash(e,h,20,!0)}}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(e,t,r){(function(r,n,a,i,o,s,l,u,d){function c(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function h(e,t){return e>>>t|e<<32-t}function p(e,t){var r,n,a,i,o,s,l,u,d,p,m=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],f=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],g=Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var y,v,b,w,x,C,k,M,S=0;S<e.length;S+=16){r=f[0],n=f[1],a=f[2],i=f[3],o=f[4],s=f[5],l=f[6],u=f[7];for(var E=0;E<64;E++)g[E]=E<16?e[E+S]:c(c(c(h(M=g[E-2],17)^h(M,19)^M>>>10,g[E-7]),h(k=g[E-15],7)^h(k,18)^k>>>3),g[E-16]),d=c(c(c(c(u,h(C=o,6)^h(C,11)^h(C,25)),(x=o)&s^~x&l),m[E]),g[E]),p=c(h(w=r,2)^h(w,13)^h(w,22),(y=r)&(v=n)^y&(b=a)^v&b),u=l,l=s,s=o,o=c(i,d),i=a,a=n,n=r,r=c(d,p);f[0]=c(r,f[0]),f[1]=c(n,f[1]),f[2]=c(a,f[2]),f[3]=c(i,f[3]),f[4]=c(o,f[4]),f[5]=c(s,f[5]),f[6]=c(l,f[6]),f[7]=c(u,f[7])}return f}var m=e("./helpers");t.exports=function(e){return m.hash(e,p,32,!0)}}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(e,t,r){(function(e,r,n,a,i,o,s,l,u){function d(){}(e=t.exports={}).nextTick=function(){var e="u">typeof window&&window.setImmediate,t="u">typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var r=[];return window.addEventListener("message",function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<r.length&&r.shift()())},!0),function(e){r.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=d,e.addListener=d,e.once=d,e.off=d,e.removeListener=d,e.removeAllListeners=d,e.emit=d,e.binding=function(e){throw Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(e,t,r){(function(e,t,n,a,i,o,s,l,u){r.read=function(e,t,r,n,a){var i,o,s=8*a-n-1,l=(1<<s)-1,u=l>>1,d=-7,c=r?a-1:0,h=r?-1:1,p=e[t+c];for(c+=h,i=p&(1<<-d)-1,p>>=-d,d+=s;0<d;i=256*i+e[t+c],c+=h,d-=8);for(o=i&(1<<-d)-1,i>>=-d,d+=n;0<d;o=256*o+e[t+c],c+=h,d-=8);if(0===i)i=1-u;else{if(i===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),i-=u}return(p?-1:1)*o*Math.pow(2,i-n)},r.write=function(e,t,r,n,a,i){var o,s,l,u=8*i-a-1,d=(1<<u)-1,c=d>>1,h=5960464477539062e-23*(23===a),p=n?0:i-1,m=n?1:-1,f=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),2<=(t+=1<=o+c?h/l:h*Math.pow(2,1-c))*l&&(o++,l/=2),d<=o+c?(s=0,o=d):1<=o+c?(s=(t*l-1)*Math.pow(2,a),o+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,a),o=0));8<=a;e[r+p]=255&s,p+=m,s/=256,a-=8);for(o=o<<a|s,u+=a;0<u;e[r+p]=255&o,p+=m,o/=256,u-=8);e[r+p-m]|=128*f}}).call(this,e("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)},3882(e){function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=3882,e.exports=t},4883(e){"use strict";e.exports=t},1845(e){"use strict";e.exports=n},2111(e){"use strict";e.exports=a},7155(e){"use strict";e.exports=r},4164(t){"use strict";t.exports=e},2534(){},6550(){},1791(){},5530(e){!function(){"use strict";var t={}.hasOwnProperty;function r(){for(var e="",a=0;a<arguments.length;a++){var i=arguments[a];i&&(e=n(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var i in e)t.call(e,i)&&e[i]&&(a=n(a,i));return a}(i)))}return e}function n(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return r}):window.classNames=r}()},8242(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.builder=function(e,t){let r=d(u(e)?e:n.DefaultBuilderOptions),s=i.Guard.isNode(e)||(0,a.isArray)(e)?e:t;if(void 0===s)throw Error("Invalid arguments.");if((0,a.isArray)(s)){let e=[];for(let t=0;t<s.length;t++){let n=new o.XMLBuilderImpl(s[t]);n.set(r),e.push(n)}return e}{let e=new o.XMLBuilderImpl(s);return e.set(r),e}},t.create=l,t.fragment=function(e,t){let r=d(void 0===e||u(e)?e:n.DefaultBuilderOptions),a=u(e)?t:e,i=(0,s.createDocument)();c(i,r,!0);let l=new o.XMLBuilderImpl(i.createDocumentFragment());return void 0!==a&&l.ele(a),l},t.convert=function(e,t,r){let a,i,o;return u(e)&&void 0!==t?(a=e,i=t,o=r):(a=n.DefaultBuilderOptions,i=e,o=t||void 0),l(a,i).end(o)};let n=r(3890),a=r(3738),i=r(8723),o=r(5e3),s=r(4440);function l(e,t){let r=d(void 0===e||u(e)?e:n.DefaultBuilderOptions),a=u(e)?t:e,i=(0,s.createDocument)();c(i,r);let l=new o.XMLBuilderImpl(i);return void 0!==a&&l.ele(a),l}function u(e){if(!(0,a.isPlainObject)(e))return!1;for(let t in e)if(e.hasOwnProperty(t)&&!n.XMLBuilderOptionKeys.has(t))return!1;return!0}function d(e={}){let t=(0,a.applyDefaults)(e,n.DefaultBuilderOptions);if(0===t.convert.att.length||0===t.convert.ins.length||0===t.convert.text.length||0===t.convert.cdata.length||0===t.convert.comment.length)throw Error("JS object converter strings cannot be zero length.");return t}function c(e,t,r){e._xmlBuilderOptions=t,e._isFragment=r}},6891(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCB=function(e){return new n.XMLBuilderCBImpl(e)},t.fragmentCB=function(e){return new n.XMLBuilderCBImpl(e,!0)};let n=r(5e3)},6045(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLBuilderCBImpl=void 0;let n=r(3890),a=r(3738),i=r(8242),o=r(8792),s=r(360),l=r(7280),u=r(2351),d=r(8723),c=r(3684),h=r(5023),p=r(4330),m=r(8621);class f extends m.EventEmitter{static _VoidElementNames=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]);_options;_builderOptions;_writer;_fragment;_hasDeclaration=!1;_docTypeName="";_hasDocumentElement=!1;_currentElement;_currentElementSerialized=!1;_openTags=[];_prefixMap;_prefixIndex;_ended=!1;constructor(e,t=!1){super(),this._fragment=t,this._options=(0,a.applyDefaults)(e||{},n.DefaultXMLBuilderCBOptions),this._builderOptions={defaultNamespace:this._options.defaultNamespace,namespaceAlias:this._options.namespaceAlias},"json"===this._options.format?this._writer=new h.JSONCBWriter(this._options):"yaml"===this._options.format?this._writer=new p.YAMLCBWriter(this._options):this._writer=new c.XMLCBWriter(this._options),void 0!==this._options.data&&this.on("data",this._options.data),void 0!==this._options.end&&this.on("end",this._options.end),void 0!==this._options.error&&this.on("error",this._options.error),this._prefixMap=new l.NamespacePrefixMap,this._prefixMap.set("xml",s.namespace.XML),this._prefixIndex={value:1},this._push(this._writer.frontMatter())}ele(e,t,r){if((0,a.isObject)(e)||(0,a.isString)(e)&&(/^\s*</.test(e)||/^\s*[\{\[]/.test(e)||/^(\s*|(#.*)|(%.*))*---/.test(e))){let t=(0,i.fragment)().set(this._options);try{t.ele(e)}catch(e){return this.emit("error",e),this}for(let e of t.node.childNodes)this._fromNode(e);return this}if(this._serializeOpenTag(!0),!this._fragment&&this._hasDocumentElement&&0===this._writer.level)return this.emit("error",Error("Document cannot have multiple document element nodes.")),this;try{this._currentElement=(0,i.fragment)(this._builderOptions).ele(e,t,r)}catch(e){return this.emit("error",e),this}return this._fragment||this._hasDocumentElement||""===this._docTypeName||this._currentElement.node._qualifiedName===this._docTypeName?(this._currentElementSerialized=!1,this._fragment||(this._hasDocumentElement=!0)):this.emit("error",Error("Document element name does not match DocType declaration name.")),this}att(e,t,r){if(void 0===this._currentElement)return this.emit("error",Error("Cannot insert an attribute node as child of a document node.")),this;try{this._currentElement.att(e,t,r)}catch(e){this.emit("error",e)}return this}com(e){let t;this._serializeOpenTag(!0);try{t=(0,i.fragment)(this._builderOptions).com(e).first().node}catch(e){return this.emit("error",e),this}return this._options.wellFormed&&(!(0,o.xml_isLegalChar)(t.data)||-1!==t.data.indexOf("--")||t.data.endsWith("-"))?this.emit("error",Error("Comment data contains invalid characters (well-formed required).")):this._push(this._writer.comment(t.data)),this}txt(e){let t;if(!this._fragment&&void 0===this._currentElement)return this.emit("error",Error("Cannot insert a text node as child of a document node.")),this;this._serializeOpenTag(!0);try{t=(0,i.fragment)(this._builderOptions).txt(e).first().node}catch(e){return this.emit("error",e),this}if(this._options.wellFormed&&!(0,o.xml_isLegalChar)(t.data))return this.emit("error",Error("Text data contains invalid characters (well-formed required).")),this;let r=t.data.replace(/(?!&(lt|gt|amp|apos|quot);)&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");this._push(this._writer.text(r));let n=this._openTags[this._openTags.length-1];return n&&(n[n.length-1]=!0),this}ins(e,t=""){let r;this._serializeOpenTag(!0);try{r=(0,i.fragment)(this._builderOptions).ins(e,t).first().node}catch(e){return this.emit("error",e),this}return this._options.wellFormed&&(-1!==r.target.indexOf(":")||/^xml$/i.test(r.target))?this.emit("error",Error("Processing instruction target contains invalid characters (well-formed required).")):this._options.wellFormed&&!(0,o.xml_isLegalChar)(r.data)?this.emit("error",Error("Processing instruction data contains invalid characters (well-formed required).")):this._push(this._writer.instruction(r.target,r.data)),this}dat(e){let t;this._serializeOpenTag(!0);try{t=(0,i.fragment)(this._builderOptions).dat(e).first().node}catch(e){return this.emit("error",e),this}return this._push(this._writer.cdata(t.data)),this}dec(e={version:"1.0"}){return this._fragment?this.emit("error",Error("Cannot insert an XML declaration into a document fragment.")):this._hasDeclaration?this.emit("error",Error("XML declaration is already inserted.")):(this._push(this._writer.declaration(e.version||"1.0",e.encoding,e.standalone)),this._hasDeclaration=!0),this}dtd(e){let t;if(this._fragment)return this.emit("error",Error("Cannot insert a DocType declaration into a document fragment.")),this;if(""!==this._docTypeName)return this.emit("error",Error("DocType declaration is already inserted.")),this;if(this._hasDocumentElement)return this.emit("error",Error("Cannot insert DocType declaration after document element.")),this;try{t=(0,i.create)().dtd(e).first().node}catch(e){return this.emit("error",e),this}return this._options.wellFormed&&!(0,o.xml_isPubidChar)(t.publicId)?this.emit("error",Error("DocType public identifier does not match PubidChar construct (well-formed required).")):this._options.wellFormed&&(!(0,o.xml_isLegalChar)(t.systemId)||-1!==t.systemId.indexOf('"')&&-1!==t.systemId.indexOf("'"))?this.emit("error",Error("DocType system identifier contains invalid characters (well-formed required).")):(this._docTypeName=e.name,this._push(this._writer.docType(e.name,t.publicId,t.systemId))),this}import(e){let t=(0,i.fragment)().set(this._options);try{t.import(e)}catch(e){return this.emit("error",e),this}for(let e of t.node.childNodes)this._fromNode(e);return this}up(){return this._serializeOpenTag(!1),this._serializeCloseTag(),this}end(){for(this._serializeOpenTag(!1);this._openTags.length>0;)this._serializeCloseTag();return this._push(null),this}_serializeOpenTag(e){if(this._currentElementSerialized||void 0===this._currentElement)return;let t=this._currentElement.node;if(this._options.wellFormed&&(-1!==t.localName.indexOf(":")||!(0,o.xml_isName)(t.localName)))return void this.emit("error",Error("Node local name contains invalid characters (well-formed required)."));let r="",n=!1,a=this._prefixMap.copy(),i={},l=this._recordNamespaceInformation(t,a,i),u=0===this._openTags.length?null:this._openTags[this._openTags.length-1][1],d=t.namespaceURI;if(null===d&&(d=u),u===d)null!==l&&(n=!0),r=d===s.namespace.XML?"xml:"+t.localName:t.localName,this._writer.beginElement(r),this._push(this._writer.openTagBegin(r));else{let e=t.prefix,o=null;if((null!==e||d!==l)&&(o=a.get(e,d)),"xmlns"===e){if(this._options.wellFormed)return void this.emit("error",Error("An element cannot have the 'xmlns' prefix (well-formed required)."));o=e}null!==o?(r=o+":"+t.localName,null!==l&&l!==s.namespace.XML&&(u=l||null),this._writer.beginElement(r),this._push(this._writer.openTagBegin(r))):null!==e?(e in i&&(e=this._generatePrefix(d,a,this._prefixIndex)),a.set(e,d),r+=e+":"+t.localName,this._writer.beginElement(r),this._push(this._writer.openTagBegin(r)),this._push(this._writer.attribute("xmlns:"+e,this._serializeAttributeValue(d,this._options.wellFormed))),null!==l&&(u=l||null)):null===l||null!==l&&l!==d?(n=!0,r+=t.localName,u=d,this._writer.beginElement(r),this._push(this._writer.openTagBegin(r)),this._push(this._writer.attribute("xmlns",this._serializeAttributeValue(d,this._options.wellFormed)))):(r+=t.localName,u=d,this._writer.beginElement(r),this._push(this._writer.openTagBegin(r)))}this._serializeAttributes(t,a,this._prefixIndex,i,n,this._options.wellFormed);let c=d===s.namespace.HTML;c&&!e&&f._VoidElementNames.has(t.localName)?(this._push(this._writer.openTagEnd(r,!0,!0)),this._writer.endElement(r)):c||e?this._push(this._writer.openTagEnd(r,!1,!1)):(this._push(this._writer.openTagEnd(r,!0,!1)),this._writer.endElement(r)),this._currentElementSerialized=!0,this._openTags.push([r,u,this._prefixMap,e,void 0]),this._isPrefixMapModified(this._prefixMap,a)&&(this._prefixMap=a),this._writer.level++}_serializeCloseTag(){this._writer.level--;let e=this._openTags.pop();if(void 0===e)return void this.emit("error",Error("Last element is undefined."));let[t,r,n,a,i]=e;this._prefixMap=n,a&&(this._push(this._writer.closeTag(t,i)),this._writer.endElement(t))}_push(e){null===e?(this._ended=!0,this.emit("end")):this._ended?this.emit("error",Error("Cannot push to ended stream.")):0!==e.length&&(this._writer.hasData=!0,this.emit("data",e,this._writer.level))}_fromNode(e){if(d.Guard.isElementNode(e)){let t=e.prefix?e.prefix+":"+e.localName:e.localName;for(let r of(null!==e.namespaceURI?this.ele(e.namespaceURI,t):this.ele(t),e.attributes)){let e=r.prefix?r.prefix+":"+r.localName:r.localName;null!==r.namespaceURI?this.att(r.namespaceURI,e,r.value):this.att(e,r.value)}for(let t of e.childNodes)this._fromNode(t);this.up()}else d.Guard.isExclusiveTextNode(e)&&e.data?this.txt(e.data):d.Guard.isCommentNode(e)?this.com(e.data):d.Guard.isCDATASectionNode(e)?this.dat(e.data):d.Guard.isProcessingInstructionNode(e)&&this.ins(e.target,e.data)}_serializeAttributes(e,t,r,n,a,i){let l=i?new u.LocalNameSet:void 0;for(let u of e.attributes){if(!i&&!a&&null===u.namespaceURI){this._push(this._writer.attribute(u.localName,this._serializeAttributeValue(u.value,this._options.wellFormed)));continue}if(i&&l&&l.has(u.namespaceURI,u.localName))return void this.emit("error",Error("Element contains duplicate attributes (well-formed required)."));i&&l&&l.set(u.namespaceURI,u.localName);let e=u.namespaceURI,d=null;if(null!==e)if(d=t.get(u.prefix,e),e===s.namespace.XMLNS){if(u.value===s.namespace.XML||null===u.prefix&&a||null!==u.prefix&&(!(u.localName in n)||n[u.localName]!==u.value)&&t.has(u.localName,u.value))continue;if(i&&u.value===s.namespace.XMLNS)return void this.emit("error",Error("XMLNS namespace is reserved (well-formed required)."));if(i&&""===u.value)return void this.emit("error",Error("Namespace prefix declarations cannot be used to undeclare a namespace (well-formed required)."));"xmlns"===u.prefix&&(d="xmlns")}else null===d&&(d=null!==u.prefix&&(!t.hasPrefix(u.prefix)||t.has(u.prefix,e))?u.prefix:this._generatePrefix(e,t,r),this._push(this._writer.attribute("xmlns:"+d,this._serializeAttributeValue(e,this._options.wellFormed))));if(i&&(-1!==u.localName.indexOf(":")||!(0,o.xml_isName)(u.localName)||"xmlns"===u.localName&&null===e))return void this.emit("error",Error("Attribute local name contains invalid characters (well-formed required)."));this._push(this._writer.attribute((null!==d?d+":":"")+u.localName,this._serializeAttributeValue(u.value,this._options.wellFormed)))}}_serializeAttributeValue(e,t){return t&&null!==e&&!(0,o.xml_isLegalChar)(e)?(this.emit("error",Error("Invalid characters in attribute value.")),""):null===e?"":e.replace(/(?!&(lt|gt|amp|apos|quot);)&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}_recordNamespaceInformation(e,t,r){let n=null;for(let a of e.attributes){let e=a.namespaceURI,i=a.prefix;if(e===s.namespace.XMLNS)if(null===i){n=a.value;continue}else{let e=a.localName,n=a.value;if(n===s.namespace.XML||(""===n&&(n=null),t.has(e,n)))continue;t.set(e,n),r[e]=n||""}}return n}_generatePrefix(e,t,r){let n="ns"+r.value;return r.value++,t.set(n,e),n}_isPrefixMapModified(e,t){let r=e._items,n=t._items,a=e._nullItems,i=t._nullItems;for(let e in n){let t=r[e];if(void 0===t)return!0;let a=n[e];if(t.length!==a.length)return!0;for(let e=0;e<t.length;e++)if(t[e]!==a[e])return!0}if(a.length!==i.length)return!0;for(let e=0;e<a.length;e++)if(a[e]!==i[e])return!0;return!1}}t.XMLBuilderCBImpl=f},1720(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLBuilderImpl=void 0;let n=r(3890),a=r(3738),i=r(6655),o=r(3841),s=r(8723),l=r(8792),u=r(4440),d=r(360),c=r(4251);t.XMLBuilderImpl=class e{_domNode;constructor(e){this._domNode=e}get node(){return this._domNode}get options(){return this._options}set(e){return this._options=(0,a.applyDefaults)((0,a.applyDefaults)(this._options,e,!0),n.DefaultBuilderOptions),this}ele(t,r,n){let i,o,s;if((0,a.isObject)(t))return new c.ObjectReader(this._options).parse(this,t);if((0,a.isString)(t)&&null!==t&&/^\s*</.test(t))return new c.XMLReader(this._options).parse(this,t);if((0,a.isString)(t)&&null!==t&&/^\s*[\{\[]/.test(t))return new c.JSONReader(this._options).parse(this,t);if((0,a.isString)(t)&&null!==t&&/^(\s*|(#.*)|(%.*))*---/.test(t))return new c.YAMLReader(this._options).parse(this,t);if((null===t||(0,a.isString)(t))&&(0,a.isString)(r))[i,o,s]=[t,r,n];else if(null!==t)[i,o,s]=[void 0,t,(0,a.isObject)(r)?r:void 0];else throw Error("Element name cannot be null. "+this._debugInfo());if(s&&(s=(0,a.getValue)(s)),[i,o]=this._extractNamespace((0,u.sanitizeInput)(i,this._options.invalidCharReplacement),(0,u.sanitizeInput)(o,this._options.invalidCharReplacement),!0),void 0===i){let[e]=(0,l.namespace_extractQName)(o);i=this.node.lookupNamespaceURI(e)}let d=null!=i?this._doc.createElementNS(i,o):this._doc.createElement(o);this.node.appendChild(d);let h=new e(d),p=this._doc.doctype;if(d===this._doc.documentElement&&null!==p){let e=this._doc.implementation.createDocumentType(this._doc.documentElement.tagName,p.publicId,p.systemId);this._doc.replaceChild(e,p)}return s&&!(0,a.isEmpty)(s)&&h.att(s),h}remove(){let e=this.up();return e.node.removeChild(this.node),e}att(e,t,r){let n,i,o;if((0,a.isMap)(e)||(0,a.isObject)(e))return(0,a.forEachObject)(e,(e,t)=>this.att(e,t),this),this;if(null!=e&&(e=(0,a.getValue)(e+"")),null!=t&&(t=(0,a.getValue)(t+"")),null!=r&&(r=(0,a.getValue)(r+"")),(null===e||(0,a.isString)(e))&&(0,a.isString)(t)&&(null===r||(0,a.isString)(r)))[n,i,o]=[e,t,r];else if((0,a.isString)(e)&&(null==t||(0,a.isString)(t)))[n,i,o]=[void 0,e,t];else throw Error("Attribute name and value not specified. "+this._debugInfo());if(this._options.keepNullAttributes&&null==o)o="";else if(null==o)return this;if(!s.Guard.isElementNode(this.node))throw Error("An attribute can only be assigned to an element node.");let c=this.node;[n,i]=this._extractNamespace(n,i,!1),i=(0,u.sanitizeInput)(i,this._options.invalidCharReplacement),n=(0,u.sanitizeInput)(n,this._options.invalidCharReplacement),o=(0,u.sanitizeInput)(o,this._options.invalidCharReplacement);let[h,p]=(0,l.namespace_extractQName)(i),[m]=(0,l.namespace_extractQName)(c.prefix?c.prefix+":"+c.localName:c.localName),f=null;return"xmlns"===h?(n=d.namespace.XMLNS,null===c.namespaceURI&&m===p&&(f=o)):null===h&&"xmlns"===p&&null===m&&(n=d.namespace.XMLNS,f=o),null!==f&&(this._updateNamespace(f),c=this.node),void 0!==n?c.setAttributeNS(n,i,o):c.setAttribute(i,o),this}removeAtt(e,t){let r,n;if(!s.Guard.isElementNode(this.node))throw Error("An attribute can only be removed from an element node.");if(e=(0,a.getValue)(e),void 0!==t&&(t=(0,a.getValue)(t)),null!==e&&void 0===t)n=e;else if((null===e||(0,a.isString)(e))&&void 0!==t)r=e,n=t;else throw Error("Attribute namespace must be a string. "+this._debugInfo());return(0,a.isArray)(n)||(0,a.isSet)(n)?(0,a.forEachArray)(n,e=>void 0===r?this.removeAtt(e):this.removeAtt(r,e),this):void 0!==r?(n=(0,u.sanitizeInput)(n,this._options.invalidCharReplacement),r=(0,u.sanitizeInput)(r,this._options.invalidCharReplacement),this.node.removeAttributeNS(r,n)):(n=(0,u.sanitizeInput)(n,this._options.invalidCharReplacement),this.node.removeAttribute(n)),this}txt(e){if(null==e)if(!this._options.keepNullNodes)return this;else e="";let t=this._doc.createTextNode((0,u.sanitizeInput)(e,this._options.invalidCharReplacement));return this.node.appendChild(t),this}com(e){if(null==e)if(!this._options.keepNullNodes)return this;else e="";let t=this._doc.createComment((0,u.sanitizeInput)(e,this._options.invalidCharReplacement));return this.node.appendChild(t),this}dat(e){if(null==e)if(!this._options.keepNullNodes)return this;else e="";let t=this._doc.createCDATASection((0,u.sanitizeInput)(e,this._options.invalidCharReplacement));return this.node.appendChild(t),this}ins(e,t=""){if(null==t)if(!this._options.keepNullNodes)return this;else t="";if((0,a.isArray)(e)||(0,a.isSet)(e))(0,a.forEachArray)(e,e=>{let t=(e+="").indexOf(" "),r=-1===t?e:e.substr(0,t),n=-1===t?"":e.substr(t+1);this.ins(r,n)},this);else if((0,a.isMap)(e)||(0,a.isObject)(e))(0,a.forEachObject)(e,(e,t)=>this.ins(e,t),this);else{let r=this._doc.createProcessingInstruction((0,u.sanitizeInput)(e,this._options.invalidCharReplacement),(0,u.sanitizeInput)(t,this._options.invalidCharReplacement));this.node.appendChild(r)}return this}dec(e){return this._options.version=e.version||"1.0",this._options.encoding=e.encoding,this._options.standalone=e.standalone,this}dtd(e){let t=(0,u.sanitizeInput)(e&&e.name||(this._doc.documentElement?this._doc.documentElement.tagName:"ROOT"),this._options.invalidCharReplacement),r=(0,u.sanitizeInput)(e&&e.pubID||"",this._options.invalidCharReplacement),n=(0,u.sanitizeInput)(e&&e.sysID||"",this._options.invalidCharReplacement);if(null!==this._doc.documentElement&&t!==this._doc.documentElement.tagName)throw Error("DocType name does not match document element name.");let a=this._doc.implementation.createDocumentType(t,r,n);return null!==this._doc.doctype?this._doc.replaceChild(a,this._doc.doctype):this._doc.insertBefore(a,this._doc.documentElement),this}import(t){let r=this._domNode,n=this._doc,a=t.node,i=t=>{if(!t._namespace){let[n]=(0,l.namespace_extractQName)(t.prefix?t.prefix+":"+t.localName:t.localName),a=r.lookupNamespaceURI(n);new e(t)._updateNamespace(a)}};if(s.Guard.isDocumentNode(a)){let e=a.documentElement;if(null===e)throw Error("Imported document has no document element node. "+this._debugInfo());let t=n.importNode(e,!0);r.appendChild(t),i(t)}else if(s.Guard.isDocumentFragmentNode(a))for(let e of a.childNodes){let t=n.importNode(e,!0);r.appendChild(t),s.Guard.isElementNode(t)&&i(t)}else{let e=n.importNode(a,!0);r.appendChild(e),s.Guard.isElementNode(e)&&i(e)}return this}doc(){if(!this._doc._isFragment)return new e(this._doc);{let t=this.node;for(;t&&t.nodeType!==o.NodeType.DocumentFragment;)t=t.parentNode;if(null===t)throw Error("Node has no parent node while searching for document fragment ancestor. "+this._debugInfo());return new e(t)}}root(){let t=this._doc.documentElement;if(!t)throw Error("Document root element is null. "+this._debugInfo());return new e(t)}up(){let t=this._domNode.parentNode;if(!t)throw Error("Parent node is null. "+this._debugInfo());return new e(t)}prev(){let t=this._domNode.previousSibling;if(!t)throw Error("Previous sibling node is null. "+this._debugInfo());return new e(t)}next(){let t=this._domNode.nextSibling;if(!t)throw Error("Next sibling node is null. "+this._debugInfo());return new e(t)}first(){let t=this._domNode.firstChild;if(!t)throw Error("First child node is null. "+this._debugInfo());return new e(t)}last(){let t=this._domNode.lastChild;if(!t)throw Error("Last child node is null. "+this._debugInfo());return new e(t)}each(t,r=!1,n=!1,a){let i=this._getFirstDescendantNode(this._domNode,r,n);for(;i[0];){let r=this._getNextDescendantNode(this._domNode,i[0],n,i[1],i[2]);t.call(a,new e(i[0]),i[1],i[2]),i=r}return this}map(e,t=!1,r=!1,n){let a=[];return this.each((t,r,i)=>a.push(e.call(n,t,r,i)),t,r),a}reduce(e,t,r=!1,n=!1,a){let i=t;return this.each((t,r,n)=>i=e.call(a,i,t,r,n),r,n),i}find(t,r=!1,n=!1,a){let i=this._getFirstDescendantNode(this._domNode,r,n);for(;i[0];){let r=new e(i[0]);if(t.call(a,r,i[1],i[2]))return r;i=this._getNextDescendantNode(this._domNode,i[0],n,i[1],i[2])}}filter(e,t=!1,r=!1,n){let a=[];return this.each((t,r,i)=>{e.call(n,t,r,i)&&a.push(t)},t,r),a}every(t,r=!1,n=!1,a){let i=this._getFirstDescendantNode(this._domNode,r,n);for(;i[0];){let r=new e(i[0]);if(!t.call(a,r,i[1],i[2]))return!1;i=this._getNextDescendantNode(this._domNode,i[0],n,i[1],i[2])}return!0}some(t,r=!1,n=!1,a){let i=this._getFirstDescendantNode(this._domNode,r,n);for(;i[0];){let r=new e(i[0]);if(t.call(a,r,i[1],i[2]))return!0;i=this._getNextDescendantNode(this._domNode,i[0],n,i[1],i[2])}return!1}toArray(e=!1,t=!1){let r=[];return this.each(e=>r.push(e),e,t),r}toString(e){return void 0===(e=e||{}).format&&(e.format="xml"),this._serialize(e)}toObject(e){return void 0===(e=e||{}).format&&(e.format="object"),this._serialize(e)}end(e){return void 0===(e=e||{}).format&&(e.format="xml"),this.doc()._serialize(e)}_getFirstDescendantNode(e,t,r){return t?[this._domNode,0,0]:r?this._getNextDescendantNode(e,e,r,0,0):[this._domNode.firstChild,0,1]}_getNextDescendantNode(e,t,r,n,a){if(r){if(t.firstChild)return[t.firstChild,0,a+1];if(t===e)return[null,-1,-1];if(t.nextSibling)return[t.nextSibling,n+1,a];let r=t.parentNode;for(;r&&r!==e;){if(r.nextSibling)return[r.nextSibling,(0,l.tree_index)(r.nextSibling),a-1];r=r.parentNode,a--}}else if(e===t)return[t.firstChild,0,a+1];else return[t.nextSibling,n+1,a];return[null,-1,-1]}_serialize(e){if("xml"===e.format)return new i.XMLWriter(this._options,e).serialize(this.node);if("map"===e.format)return new i.MapWriter(this._options,e).serialize(this.node);if("object"===e.format)return new i.ObjectWriter(this._options,e).serialize(this.node);if("json"===e.format)return new i.JSONWriter(this._options,e).serialize(this.node);if("yaml"===e.format)return new i.YAMLWriter(this._options,e).serialize(this.node);else throw Error("Invalid writer format: "+e.format+". "+this._debugInfo())}_extractNamespace(e,t,r){let n=t.indexOf("@");if(n>0&&(void 0===e&&(e=t.slice(n+1)),t=t.slice(0,n)),void 0===e)e=r?this._options.defaultNamespace.ele:this._options.defaultNamespace.att;else if(null!==e&&"@"===e[0]){let t=e.slice(1);if(void 0===(e=this._options.namespaceAlias[t]))throw Error("Namespace alias `"+t+"` is not defined. "+this._debugInfo())}return[e,t]}_updateNamespace(t){let r=this._domNode;if(s.Guard.isElementNode(r)&&null!==t&&r.namespaceURI!==t){let[n,a]=(0,l.namespace_extractQName)(r.prefix?r.prefix+":"+r.localName:r.localName),i=(0,l.create_element)(this._doc,a,t,n);for(let e of r.attributes){let t=e.prefix?e.prefix+":"+e.localName:e.localName,[n]=(0,l.namespace_extractQName)(t),a=e.namespaceURI;null===a&&null!==n&&(a=r.lookupNamespaceURI(n)),null===a?i.setAttribute(t,e.value):i.setAttributeNS(a,t,e.value)}let o=r.parentNode;if(null===o)throw Error("Parent node is null."+this._debugInfo());for(let t of(o.replaceChild(i,r),this._domNode=i,r.childNodes)){let r=t.cloneNode(!0);if(i.appendChild(r),s.Guard.isElementNode(r)&&!r._namespace){let[t]=(0,l.namespace_extractQName)(r.prefix?r.prefix+":"+r.localName:r.localName),n=i.lookupNamespaceURI(t);new e(r)._updateNamespace(n)}}}}get _doc(){let e=this.node;if(s.Guard.isDocumentNode(e))return e;{let t=e.ownerDocument;if(!t)throw Error("Owner document is null. "+this._debugInfo());return t}}_debugInfo(e){let t=this.node,r=t.parentNode;e=e||t.nodeName;let n=r?r.nodeName:"";return n?"node: <"+e+">, parent: <"+n+">":"node: <"+e+">"}get _options(){let e=this._doc;if(void 0===e._xmlBuilderOptions)throw Error("Builder options is not set.");return e._xmlBuilderOptions}set _options(e){this._doc._xmlBuilderOptions=e}}},4440(e,t,r){"use strict";t.createDocument=function(){let e=new n.DOMImplementation().createDocument(null,"root",null);return e.documentElement&&e.removeChild(e.documentElement),e},t.sanitizeInput=function(e,t){if(null==e)return e;{if(void 0===t)return e+"";let r="";e+="";for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(9===a||10===a||13===a||a>=32&&a<=55295||a>=57344&&a<=65533)r+=e.charAt(n);else if(a>=55296&&a<=56319&&n<e.length-1){let o=e.charCodeAt(n+1);o>=56320&&o<=57343?(r+=String.fromCodePoint(a=(a-55296)*1024+o-56320+65536),n++):r+=(0,i.isString)(t)?t:t(e.charAt(n),n,e)}else r+=(0,i.isString)(t)?t:t(e.charAt(n),n,e)}return r}};let n=r(1362),a=r(5313),i=r(3738);a.dom.setFeatures(!1)},5e3(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fragmentCB=t.createCB=t.convert=t.fragment=t.create=t.builder=t.XMLBuilderCBImpl=t.XMLBuilderImpl=void 0;var n=r(1720);Object.defineProperty(t,"XMLBuilderImpl",{enumerable:!0,get:function(){return n.XMLBuilderImpl}});var a=r(6045);Object.defineProperty(t,"XMLBuilderCBImpl",{enumerable:!0,get:function(){return a.XMLBuilderCBImpl}});var i=r(8242);Object.defineProperty(t,"builder",{enumerable:!0,get:function(){return i.builder}}),Object.defineProperty(t,"create",{enumerable:!0,get:function(){return i.create}}),Object.defineProperty(t,"fragment",{enumerable:!0,get:function(){return i.fragment}}),Object.defineProperty(t,"convert",{enumerable:!0,get:function(){return i.convert}});var o=r(6891);Object.defineProperty(t,"createCB",{enumerable:!0,get:function(){return o.createCB}}),Object.defineProperty(t,"fragmentCB",{enumerable:!0,get:function(){return o.fragmentCB}})},5725(e,t){"use strict";t.nonEntityAmpersandRegex=void 0,t.nonEntityAmpersandRegex=/&(?![A-Za-z]+;|#\d+;)/g},5528(e,t,r){"use strict";t.vt=void 0;var n=r(5e3);Object.defineProperty(t,"vt",{enumerable:!0,get:function(){return n.create}})},3890(e,t){"use strict";t.DefaultXMLBuilderCBOptions=t.XMLBuilderOptionKeys=t.DefaultBuilderOptions=void 0,t.DefaultBuilderOptions={version:"1.0",encoding:void 0,standalone:void 0,keepNullNodes:!1,keepNullAttributes:!1,ignoreConverters:!1,skipWhitespaceOnlyText:!0,convert:{att:"@",ins:"?",text:"#",cdata:"$",comment:"!"},defaultNamespace:{ele:void 0,att:void 0},namespaceAlias:{html:"http://www.w3.org/1999/xhtml",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink"},invalidCharReplacement:void 0,parser:void 0},t.XMLBuilderOptionKeys=new Set(Object.keys(t.DefaultBuilderOptions)),t.DefaultXMLBuilderCBOptions={format:"xml",wellFormed:!1,prettyPrint:!1,indent:" ",newline:"\n",offset:0,width:0,allowEmptyTags:!1,spaceBeforeSlash:!1,keepNullNodes:!1,keepNullAttributes:!1,ignoreConverters:!1,convert:{att:"@",ins:"?",text:"#",cdata:"$",comment:"!"},defaultNamespace:{ele:void 0,att:void 0},namespaceAlias:{html:"http://www.w3.org/1999/xhtml",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink"}}},1737(e,t,r){"use strict";t.BaseReader=void 0;let n=r(4440);t.BaseReader=class e{_builderOptions;static _entityTable={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};constructor(e){this._builderOptions=e,e.parser&&Object.assign(this,e.parser)}_docType(e,t,r,n){return e.dtd({name:t,pubID:r,sysID:n})}_comment(e,t){return e.com(t)}_text(e,t){return e.txt(t)}_instruction(e,t,r){return e.ins(t,r)}_cdata(e,t){return e.dat(t)}_element(e,t,r){return void 0===t?e.ele(r):e.ele(t,r)}_attribute(e,t,r,n){return void 0===t?e.att(r,n):e.att(t,r,n)}_sanitize(e){return(0,n.sanitizeInput)(e,this._builderOptions.invalidCharReplacement)}_decodeText(t){return null==t?t:t.replace(/&(quot|amp|apos|lt|gt);/g,(t,r)=>e._entityTable[r]).replace(/&#(?:x([a-fA-F0-9]+)|([0-9]+));/g,(e,t,r)=>String.fromCodePoint(parseInt(t||r,t?16:10)))}_decodeAttributeValue(e){return this._decodeText(e)}parse(e,t){return this._parse(e,t)}docType(e,t,r,n){return this._docType(e,t,r,n)}comment(e,t){return this._comment(e,t)}text(e,t){return this._text(e,t)}instruction(e,t,r){return this._instruction(e,t,r)}cdata(e,t){return this._cdata(e,t)}element(e,t,r){return this._element(e,t,r)}attribute(e,t,r,n){return this._attribute(e,t,r,n)}sanitize(e){return this._sanitize(e)}}},9902(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONReader=void 0;let n=r(6367),a=r(1737);class i extends a.BaseReader{_parse(e,t){return new n.ObjectReader(this._builderOptions).parse(e,JSON.parse(t))}}t.JSONReader=i},6367(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectReader=void 0;let n=r(3738),a=r(1737);class i extends a.BaseReader{_parse(e,t){let r=this._builderOptions,a=null;return(0,n.isFunction)(t)?a=this.parse(e,t.call(this)):(0,n.isArray)(t)||(0,n.isSet)(t)?(0,n.forEachArray)(t,t=>a=this.parse(e,t),this):(0,n.isMap)(t)||(0,n.isObject)(t)?(0,n.forEachObject)(t,(t,i)=>{if((0,n.isFunction)(i)&&(i=i.call(this)),r.ignoreConverters||0!==t.indexOf(r.convert.att))if(r.ignoreConverters||0!==t.indexOf(r.convert.text))if(r.ignoreConverters||0!==t.indexOf(r.convert.cdata))if(r.ignoreConverters||0!==t.indexOf(r.convert.comment))if(r.ignoreConverters||0!==t.indexOf(r.convert.ins)){if(((0,n.isArray)(i)||(0,n.isSet)(i))&&(0,n.isEmpty)(i));else if(((0,n.isMap)(i)||(0,n.isObject)(i))&&(0,n.isEmpty)(i))a=this.element(e,void 0,this.sanitize(t))||a;else if(r.keepNullNodes||null!=i)if((0,n.isArray)(i)||(0,n.isSet)(i))(0,n.forEachArray)(i,r=>{let n={};n[t]=r,a=this.parse(e,n)},this);else if((0,n.isMap)(i)||(0,n.isObject)(i)){let r=this.element(e,void 0,this.sanitize(t));r&&(a=r,this.parse(r,i))}else if(null==i||(0,n.isString)(i)&&""===i)a=this.element(e,void 0,this.sanitize(t))||a;else{let r=this.element(e,void 0,this.sanitize(t));r&&(a=r,this.text(r,this._decodeText(this.sanitize(i?.toString()))))}}else if((0,n.isString)(i)){let t=i.indexOf(" "),r=-1===t?i:i.substr(0,t),n=-1===t?"":i.substr(t+1);a=this.instruction(e,this.sanitize(r),this.sanitize(n))||a}else(0,n.isArray)(i)||(0,n.isSet)(i)?(0,n.forEachArray)(i,t=>{let r=t.indexOf(" "),n=-1===r?t:t.substr(0,r),i=-1===r?"":t.substr(r+1);a=this.instruction(e,this.sanitize(n),this.sanitize(i))||a},this):(0,n.forEachObject)(i,(t,r)=>a=this.instruction(e,this.sanitize(t),this.sanitize(r))||a,this);else(0,n.isArray)(i)||(0,n.isSet)(i)?(0,n.forEachArray)(i,t=>a=this.comment(e,this.sanitize(t))||a,this):a=this.comment(e,this.sanitize(i?.toString()))||a;else(0,n.isArray)(i)||(0,n.isSet)(i)?(0,n.forEachArray)(i,t=>a=this.cdata(e,this.sanitize(t))||a,this):a=this.cdata(e,this.sanitize(i?.toString()))||a;else a=(0,n.isMap)(i)||(0,n.isObject)(i)?this.parse(e,i):this.text(e,this._decodeText(this.sanitize(i?.toString())))||a;else if(t===r.convert.att)if((0,n.isArray)(i)||(0,n.isSet)(i))throw Error("Invalid attribute: "+i.toString()+". "+e._debugInfo());else(0,n.forEachObject)(i,(t,r)=>{a=this.attribute(e,void 0,this.sanitize(t),this._decodeAttributeValue(this.sanitize(r)))||a});else a=this.attribute(e,void 0,this.sanitize(t.substring(r.convert.att.length)),this._decodeAttributeValue(this.sanitize(i?.toString())))||a},this):(r.keepNullNodes||null!=t)&&(a=this.text(e,this._decodeText(this.sanitize(t?.toString())))||a),a||e}}t.ObjectReader=i},7661(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLReader=void 0;let n=r(9460),a=r(2854),i=r(3841),o=r(360),s=r(8792),l=r(1737);class u extends l.BaseReader{_parse(e,t){let r=new n.XMLStringLexer(t,{skipWhitespaceOnlyText:this._builderOptions.skipWhitespaceOnlyText}),l=e,u=e,d=r.nextToken();for(;d.type!==a.TokenType.EOF;){switch(d.type){case a.TokenType.Declaration:let t=d,n=this.sanitize(t.version);if("1.0"!==n)throw Error("Invalid xml version: "+n);let c={version:n};t.encoding&&(c.encoding=this.sanitize(t.encoding)),t.standalone&&(c.standalone="yes"===this.sanitize(t.standalone)),u.set(c);break;case a.TokenType.DocType:let h=d;u=this.docType(u,this.sanitize(h.name),this.sanitize(h.pubId),this.sanitize(h.sysId))||u;break;case a.TokenType.CDATA:let p=d;u=this.cdata(u,this.sanitize(p.data))||u;break;case a.TokenType.Comment:let m=d;u=this.comment(u,this.sanitize(m.data))||u;break;case a.TokenType.PI:let f=d;u=this.instruction(u,this.sanitize(f.target),this.sanitize(f.data))||u;break;case a.TokenType.Text:if(u.node.nodeType===i.NodeType.Document)break;let g=d;u=this.text(u,this._decodeText(this.sanitize(g.data)))||u;break;case a.TokenType.Element:let y=d,v=this.sanitize(y.name),[b]=(0,s.namespace_extractQName)(v),w=u.node.lookupNamespaceURI(b),x={};for(let[e,t]of y.attributes)if(e=this.sanitize(e),t=this.sanitize(t),"xmlns"===e)w=t;else{let[r,n]=(0,s.namespace_extractQName)(e);"xmlns"===r&&(n===b&&(w=t),x[n]=t)}let C=null!==w?this.element(u,w,v):this.element(u,void 0,v);if(void 0===C)break;for(let[t,r]of(u.node===e.node&&(l=C),y.attributes)){t=this.sanitize(t),r=this.sanitize(r);let[e,n]=(0,s.namespace_extractQName)(t),a=null;"xmlns"===e||null===e&&"xmlns"===n?a=o.namespace.XMLNS:null!==(a=C.node.lookupNamespaceURI(e))&&C.node.isDefaultNamespace(a)?a=null:null===a&&null!==e&&(a=x[e]||null),null!==a?this.attribute(C,a,t,this._decodeAttributeValue(r)):this.attribute(C,void 0,t,this._decodeAttributeValue(r))}y.selfClosing||(u=C);break;case a.TokenType.ClosingTag:u.node.parentNode&&(u=u.up())}d=r.nextToken()}return l}}t.XMLReader=u},1263(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLReader=void 0;let n=r(6367),a=r(1737),i=r(5388);class o extends a.BaseReader{_parse(e,t){let r=(0,i.load)(t);if(void 0===r)throw Error("Unable to parse YAML document.");return new n.ObjectReader(this._builderOptions).parse(e,r)}}t.YAMLReader=o},4251(e,t,r){"use strict";t.YAMLReader=t.JSONReader=t.ObjectReader=t.XMLReader=void 0;var n=r(7661);Object.defineProperty(t,"XMLReader",{enumerable:!0,get:function(){return n.XMLReader}});var a=r(6367);Object.defineProperty(t,"ObjectReader",{enumerable:!0,get:function(){return a.ObjectReader}});var i=r(9902);Object.defineProperty(t,"JSONReader",{enumerable:!0,get:function(){return i.JSONReader}});var o=r(1263);Object.defineProperty(t,"YAMLReader",{enumerable:!0,get:function(){return o.YAMLReader}})},4976(e,t){"use strict";t.BaseCBWriter=void 0,t.BaseCBWriter=class{_builderOptions;_writerOptions;level=0;hasData;constructor(e){this._builderOptions=e,this._writerOptions=e}}},6185(e,t,r){"use strict";t.BaseWriter=void 0;let n=r(3841),a=r(2351),i=r(7280),o=r(360),s=r(8792),l=r(5725);class u{static _VoidElementNames=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]);_builderOptions;_writerOptions;constructor(e){this._builderOptions=e}declaration(e,t,r){}docType(e,t,r){}comment(e){}text(e){}instruction(e,t){}cdata(e){}openTagBegin(e){}openTagEnd(e,t,r){}closeTag(e){}attributes(e){for(let t of e)this.attribute(null===t[1]?t[2]:t[1]+":"+t[2],t[3])}attribute(e,t){}beginElement(e){}endElement(e){}level=0;currentNode;serializeNode(e,t){let r=void 0!==e._nodeDocument&&e._nodeDocument._hasNamespaces;if(this.level=0,this.currentNode=e,r){let r=new i.NamespacePrefixMap;r.set("xml",o.namespace.XML),this._serializeNodeNS(e,null,r,{value:1},t)}else this._serializeNode(e,t)}_serializeNodeNS(e,t,r,a,i){switch(this.currentNode=e,e.nodeType){case n.NodeType.Element:this._serializeElementNS(e,t,r,a,i);break;case n.NodeType.Document:this._serializeDocumentNS(e,t,r,a,i);break;case n.NodeType.Comment:this._serializeComment(e,i);break;case n.NodeType.Text:this._serializeText(e,i);break;case n.NodeType.DocumentFragment:this._serializeDocumentFragmentNS(e,t,r,a,i);break;case n.NodeType.DocumentType:this._serializeDocumentType(e,i);break;case n.NodeType.ProcessingInstruction:this._serializeProcessingInstruction(e,i);break;case n.NodeType.CData:this._serializeCData(e,i);break;default:throw Error(`Unknown node type: ${e.nodeType}`)}}_serializeNode(e,t){switch(this.currentNode=e,e.nodeType){case n.NodeType.Element:this._serializeElement(e,t);break;case n.NodeType.Document:this._serializeDocument(e,t);break;case n.NodeType.Comment:this._serializeComment(e,t);break;case n.NodeType.Text:this._serializeText(e,t);break;case n.NodeType.DocumentFragment:this._serializeDocumentFragment(e,t);break;case n.NodeType.DocumentType:this._serializeDocumentType(e,t);break;case n.NodeType.ProcessingInstruction:this._serializeProcessingInstruction(e,t);break;case n.NodeType.CData:this._serializeCData(e,t);break;default:throw Error(`Unknown node type: ${e.nodeType}`)}}_serializeElementNS(e,t,r,n,a){let i=[];if(a&&(-1!==e.localName.indexOf(":")||!(0,s.xml_isName)(e.localName)))throw Error("Node local name contains invalid characters (well-formed required).");let l="",d=!1,c=!1,h=r.copy(),p={},m=this._recordNamespaceInformation(e,h,p),f=t,g=e.namespaceURI;if(f===g)null!==m&&(c=!0),l=g===o.namespace.XML?"xml:"+e.localName:e.localName,this.beginElement(l),this.openTagBegin(l);else{let t=e.prefix,r=null;if((null!==t||g!==m)&&(r=h.get(t,g)),"xmlns"===t){if(a)throw Error("An element cannot have the 'xmlns' prefix (well-formed required).");r=t}null!==r?(l=r+":"+e.localName,null!==m&&m!==o.namespace.XML&&(f=m||null),this.beginElement(l),this.openTagBegin(l)):null!==t?(t in p&&(t=this._generatePrefix(g,h,n)),h.set(t,g),l+=t+":"+e.localName,this.beginElement(l),this.openTagBegin(l),i.push([null,"xmlns",t,this._serializeAttributeValue(g,a)]),null!==m&&(f=m||null)):null===m||null!==m&&m!==g?(c=!0,l+=e.localName,f=g,this.beginElement(l),this.openTagBegin(l),i.push([null,null,"xmlns",this._serializeAttributeValue(g,a)])):(l+=e.localName,f=g,this.beginElement(l),this.openTagBegin(l))}i.push(...this._serializeAttributesNS(e,h,n,p,c,a)),this.attributes(i);let y=g===o.namespace.HTML;if(y&&0===e.childNodes.length&&u._VoidElementNames.has(e.localName)?(this.openTagEnd(l,!0,!0),this.endElement(l),d=!0):y||0!==e.childNodes.length?this.openTagEnd(l,!1,!1):(this.openTagEnd(l,!0,!1),this.endElement(l),d=!0),!d){if(y&&"template"===e.localName);else for(let t of e.childNodes)this.level++,this._serializeNodeNS(t,f,h,n,a),this.level--;this.closeTag(l),this.endElement(l)}}_serializeElement(e,t){if(t&&(-1!==e.localName.indexOf(":")||!(0,s.xml_isName)(e.localName)))throw Error("Node local name contains invalid characters (well-formed required).");let r=!1,n=e.localName;this.beginElement(n),this.openTagBegin(n);let a=this._serializeAttributes(e,t);if(this.attributes(a),e.hasChildNodes()?this.openTagEnd(n,!1,!1):(this.openTagEnd(n,!0,!1),this.endElement(n),r=!0),!r){for(let r of e._children)this.level++,this._serializeNode(r,t),this.level--;this.closeTag(n),this.endElement(n)}}_serializeDocumentNS(e,t,r,n,a){if(a&&null===e.documentElement)throw Error("Missing document element (well-formed required).");for(let i of e.childNodes)this._serializeNodeNS(i,t,r,n,a)}_serializeDocument(e,t){if(t&&null===e.documentElement)throw Error("Missing document element (well-formed required).");for(let r of e._children)this._serializeNode(r,t)}_serializeComment(e,t){if(t&&(!(0,s.xml_isLegalChar)(e.data)||-1!==e.data.indexOf("--")||e.data.endsWith("-")))throw Error("Comment data contains invalid characters (well-formed required).");this.comment(e.data)}_serializeText(e,t){if(t&&!(0,s.xml_isLegalChar)(e.data))throw Error("Text data contains invalid characters (well-formed required).");let r=e.data.replace(l.nonEntityAmpersandRegex,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");this.text(r)}_serializeDocumentFragmentNS(e,t,r,n,a){for(let i of e.childNodes)this._serializeNodeNS(i,t,r,n,a)}_serializeDocumentFragment(e,t){for(let r of e._children)this._serializeNode(r,t)}_serializeDocumentType(e,t){if(t&&!(0,s.xml_isPubidChar)(e.publicId))throw Error("DocType public identifier does not match PubidChar construct (well-formed required).");if(t&&(!(0,s.xml_isLegalChar)(e.systemId)||-1!==e.systemId.indexOf('"')&&-1!==e.systemId.indexOf("'")))throw Error("DocType system identifier contains invalid characters (well-formed required).");this.docType(e.name,e.publicId,e.systemId)}_serializeProcessingInstruction(e,t){if(t&&(-1!==e.target.indexOf(":")||/^xml$/i.test(e.target)))throw Error("Processing instruction target contains invalid characters (well-formed required).");if(t&&(!(0,s.xml_isLegalChar)(e.data)||-1!==e.data.indexOf("?>")))throw Error("Processing instruction data contains invalid characters (well-formed required).");this.instruction(e.target,e.data)}_serializeCData(e,t){if(t&&-1!==e.data.indexOf("]]>"))throw Error("CDATA contains invalid characters (well-formed required).");this.cdata(e.data)}_serializeAttributesNS(e,t,r,n,i,l){let u=[],d=l?new a.LocalNameSet:void 0;for(let a of e.attributes){if(!l&&!i&&null===a.namespaceURI){u.push([null,null,a.localName,this._serializeAttributeValue(a.value,l)]);continue}if(l&&d&&d.has(a.namespaceURI,a.localName))throw Error("Element contains duplicate attributes (well-formed required).");l&&d&&d.set(a.namespaceURI,a.localName);let e=a.namespaceURI,c=null;if(null!==e)if(c=t.get(a.prefix,e),e===o.namespace.XMLNS){if(a.value===o.namespace.XML||null===a.prefix&&i||null!==a.prefix&&(!(a.localName in n)||n[a.localName]!==a.value)&&t.has(a.localName,a.value))continue;if(l&&a.value===o.namespace.XMLNS)throw Error("XMLNS namespace is reserved (well-formed required).");if(l&&""===a.value)throw Error("Namespace prefix declarations cannot be used to undeclare a namespace (well-formed required).");"xmlns"===a.prefix&&(c="xmlns")}else null===c&&(c=null!==a.prefix&&(!t.hasPrefix(a.prefix)||t.has(a.prefix,e))?a.prefix:this._generatePrefix(e,t,r),u.push([null,"xmlns",c,this._serializeAttributeValue(e,l)]));if(l&&(-1!==a.localName.indexOf(":")||!(0,s.xml_isName)(a.localName)||"xmlns"===a.localName&&null===e))throw Error("Attribute local name contains invalid characters (well-formed required).");u.push([e,c,a.localName,this._serializeAttributeValue(a.value,l)])}return u}_serializeAttributes(e,t){let r=[],n=t?{}:void 0;for(let a of e.attributes){if(!t){r.push([null,null,a.localName,this._serializeAttributeValue(a.value,t)]);continue}if(t&&n&&a.localName in n)throw Error("Element contains duplicate attributes (well-formed required).");if(t&&n&&(n[a.localName]=!0),t&&(-1!==a.localName.indexOf(":")||!(0,s.xml_isName)(a.localName)))throw Error("Attribute local name contains invalid characters (well-formed required).");r.push([null,null,a.localName,this._serializeAttributeValue(a.value,t)])}return r}_recordNamespaceInformation(e,t,r){let n=null;for(let a of e.attributes){let e=a.namespaceURI,i=a.prefix;if(e===o.namespace.XMLNS)if(null===i){n=a.value;continue}else{let e=a.localName,n=a.value;if(n===o.namespace.XML||(""===n&&(n=null),t.has(e,n)))continue;t.set(e,n),r[e]=n||""}}return n}_generatePrefix(e,t,r){let n="ns"+r.value.toString();return r.value++,t.set(n,e),n}_serializeAttributeValue(e,t){if(t&&null!==e&&!(0,s.xml_isLegalChar)(e))throw Error("Invalid characters in attribute value.");return null===e?"":e.replace(l.nonEntityAmpersandRegex,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}}t.BaseWriter=u},5023(e,t,r){"use strict";t.JSONCBWriter=void 0;let n=r(4976);class a extends n.BaseCBWriter{_hasChildren=[];_additionalLevel=0;constructor(e){super(e)}frontMatter(){return""}declaration(e,t,r){return""}docType(e,t,r){return""}comment(e){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.comment)+this._sep()+this._val(e)+this._sep()+"}"}text(e){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.text)+this._sep()+this._val(e)+this._sep()+"}"}instruction(e,t){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.ins)+this._sep()+this._val(t?e+" "+t:e)+this._sep()+"}"}cdata(e){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.cdata)+this._sep()+this._val(e)+this._sep()+"}"}attribute(e,t){return this._comma()+this._beginLine(1)+"{"+this._sep()+this._key(this._builderOptions.convert.att+e)+this._sep()+this._val(t)+this._sep()+"}"}openTagBegin(e){let t=this._comma()+this._beginLine()+"{"+this._sep()+this._key(e)+this._sep()+"{";return this._additionalLevel++,this.hasData=!0,t+=this._beginLine()+this._key(this._builderOptions.convert.text)+this._sep()+"[",this._hasChildren.push(!1),t}openTagEnd(e,t,r){if(!t)return"";{let e=this._sep()+"]";return this._additionalLevel--,e+=this._beginLine()+"}"+this._sep()+"}"}}closeTag(e){let t=this._beginLine()+"]";return this._additionalLevel--,t+=this._beginLine()+"}"+this._sep()+"}"}beginElement(e){}endElement(e){this._hasChildren.pop()}_beginLine(e=0){return this._writerOptions.prettyPrint?(this.hasData?this._writerOptions.newline:"")+this._indent(this._writerOptions.offset+this.level+e):""}_indent(e){return e+this._additionalLevel<=0?"":this._writerOptions.indent.repeat(e+this._additionalLevel)}_comma(){let e=this._hasChildren[this._hasChildren.length-1]?",":"";return this._hasChildren.length>0&&(this._hasChildren[this._hasChildren.length-1]=!0),e}_sep(){return this._writerOptions.prettyPrint?" ":""}_key(e){return'"'+e+'":'}_val(e){return JSON.stringify(e)}}t.JSONCBWriter=a},2650(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONWriter=void 0;let n=r(5731),a=r(3738),i=r(6185);class o extends i.BaseWriter{constructor(e,t){super(e),this._writerOptions=(0,a.applyDefaults)(t,{wellFormed:!1,prettyPrint:!1,indent:" ",newline:"\n",offset:0,group:!1,verbose:!1})}serialize(e){let t=(0,a.applyDefaults)(this._writerOptions,{format:"object",wellFormed:!1}),r=new n.ObjectWriter(this._builderOptions,t).serialize(e);return this._beginLine(this._writerOptions,0)+this._convertObject(r,this._writerOptions)}_convertObject(e,t,r=0){let n="",i=this._isLeafNode(e);if((0,a.isArray)(e)){n+="[";let a=e.length,i=0;for(let o of e)n+=this._endLine(t,r+1)+this._beginLine(t,r+1)+this._convertObject(o,t,r+1),i<a-1&&(n+=","),i++;n+=this._endLine(t,r)+this._beginLine(t,r),n+="]"}else if((0,a.isObject)(e)){n+="{";let o=(0,a.objectLength)(e),s=0;(0,a.forEachObject)(e,(e,a)=>{i&&t.prettyPrint?n+=" ":n+=this._endLine(t,r+1)+this._beginLine(t,r+1),n+=this._key(e),t.prettyPrint&&(n+=" "),n+=this._convertObject(a,t,r+1),s<o-1&&(n+=","),s++},this),i&&t.prettyPrint?n+=" ":n+=this._endLine(t,r)+this._beginLine(t,r),n+="}"}else n+=this._val(e);return n}_beginLine(e,t){if(e.prettyPrint){let r=e.offset+t+1;if(r>0)return Array(r).join(e.indent)}return""}_endLine(e,t){return e.prettyPrint?e.newline:""}_key(e){return'"'+e+'":'}_val(e){return JSON.stringify(e)}_isLeafNode(e){return 1>=this._descendantCount(e)}_descendantCount(e,t=0){return(0,a.isArray)(e)?(0,a.forEachArray)(e,e=>t+=this._descendantCount(e,t),this):(0,a.isObject)(e)?(0,a.forEachObject)(e,(e,r)=>t+=this._descendantCount(r,t),this):t++,t}}t.JSONWriter=o},2942(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MapWriter=void 0;let n=r(3738),a=r(5731),i=r(6185);class o extends i.BaseWriter{constructor(e,t){super(e),this._writerOptions=(0,n.applyDefaults)(t,{format:"map",wellFormed:!1,group:!1,verbose:!1})}serialize(e){let t=(0,n.applyDefaults)(this._writerOptions,{format:"object",wellFormed:!1,verbose:!1}),r=new a.ObjectWriter(this._builderOptions,t).serialize(e);return this._convertObject(r)}_convertObject(e){if((0,n.isArray)(e)){for(let t=0;t<e.length;t++)e[t]=this._convertObject(e[t]);return e}if(!(0,n.isObject)(e))return e;{let t=new Map;for(let r in e)t.set(r,this._convertObject(e[r]));return t}}}t.MapWriter=o},5731(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectWriter=void 0;let n=r(3738),a=r(3841),i=r(6185);class o extends i.BaseWriter{_currentList;_currentIndex;_listRegister;constructor(e,t){super(e),this._writerOptions=(0,n.applyDefaults)(t,{format:"object",wellFormed:!1,group:!1,verbose:!1})}serialize(e){return this._currentList=[],this._currentIndex=0,this._listRegister=[this._currentList],this.serializeNode(e,this._writerOptions.wellFormed),this._process(this._currentList,this._writerOptions)}_process(e,t){if(0===e.length)return{};let r={},i=!1,o=0,s=0,l=0,u=0;for(let t=0;t<e.length;t++){let n=Object.keys(e[t])[0];switch(n){case"@":continue;case"#":o++;break;case"!":s++;break;case"?":l++;break;case"$":u++;break;default:r[n]?i=!0:r[n]=!0}}let d=this._getAttrKey(),c=this._getNodeKey(a.NodeType.Text),h=this._getNodeKey(a.NodeType.Comment),p=this._getNodeKey(a.NodeType.ProcessingInstruction),m=this._getNodeKey(a.NodeType.CData);if(1===o&&1===e.length&&(0,n.isString)(e[0]["#"]))return e[0]["#"];if(i){let r={};for(let n=0;n<e.length;n++){let a=e[n];if("@"===Object.keys(a)[0]){let e=a["@"],n=Object.keys(e);if(t.group&&1!==n.length)r[d]=e;else for(let t in e)r[d+t]=e[t]}}let a=[];for(let r=0;r<e.length;r++){let i=e[r],o=Object.keys(i)[0];switch(o){case"@":break;case"#":a.push({[c]:i["#"]});break;case"!":a.push({[h]:i["!"]});break;case"?":a.push({[p]:i["?"]});break;case"$":a.push({[m]:i.$});break;default:if(0!==i[o].length&&(0,n.isArray)(i[o][0])){let e=[],r=i[o];for(let n=0;n<r.length;n++)e.push(this._process(r[n],t));a.push({[o]:e})}else t.verbose?a.push({[o]:[this._process(i[o],t)]}):a.push({[o]:this._process(i[o],t)})}}return r[c]=a,r}{let r=1,a=1,i=1,f=1,g={};for(let y=0;y<e.length;y++){let v=e[y],b=Object.keys(v)[0];switch(b){case"@":let w=v["@"],x=Object.keys(w);if(t.group&&1!==x.length)g[d]=w;else for(let e in w)g[d+e]=w[e];break;case"#":r=this._processSpecItem(v["#"],g,t.group,c,o,r);break;case"!":a=this._processSpecItem(v["!"],g,t.group,h,s,a);break;case"?":i=this._processSpecItem(v["?"],g,t.group,p,l,i);break;case"$":f=this._processSpecItem(v.$,g,t.group,m,u,f);break;default:if(0!==v[b].length&&(0,n.isArray)(v[b][0])){let e=[],r=v[b];for(let n=0;n<r.length;n++)e.push(this._process(r[n],t));g[b]=e}else t.verbose?g[b]=[this._process(v[b],t)]:g[b]=this._process(v[b],t)}}return g}}_processSpecItem(e,t,r,a,i,o){if(!r&&(0,n.isArray)(e)&&i+e.length>2)for(let r of e)t[a+(o++).toString()]=r;else t[i>1?a+(o++).toString():a]=e;return o}beginElement(e){let t=[];if(0===this._currentList.length)this._currentList.push({[e]:t});else{let r=this._currentList[this._currentList.length-1];this._isElementNode(r,e)?0!==r[e].length&&(0,n.isArray)(r[e][0])?r[e].push(t):r[e]=[r[e],t]:this._currentList.push({[e]:t})}this._currentIndex++,this._listRegister.length>this._currentIndex?this._listRegister[this._currentIndex]=t:this._listRegister.push(t),this._currentList=t}endElement(){this._currentList=this._listRegister[--this._currentIndex]}attribute(e,t){if(0===this._currentList.length)this._currentList.push({"@":{[e]:t}});else{let r=this._currentList[this._currentList.length-1];this._isAttrNode(r)?r["@"][e]=t:this._currentList.push({"@":{[e]:t}})}}comment(e){if(0===this._currentList.length)this._currentList.push({"!":e});else{let t=this._currentList[this._currentList.length-1];this._isCommentNode(t)?(0,n.isArray)(t["!"])?t["!"].push(e):t["!"]=[t["!"],e]:this._currentList.push({"!":e})}}text(e){if(0===this._currentList.length)this._currentList.push({"#":e});else{let t=this._currentList[this._currentList.length-1];this._isTextNode(t)?(0,n.isArray)(t["#"])?t["#"].push(e):t["#"]=[t["#"],e]:this._currentList.push({"#":e})}}instruction(e,t){let r=""===t?e:e+" "+t;if(0===this._currentList.length)this._currentList.push({"?":r});else{let e=this._currentList[this._currentList.length-1];this._isInstructionNode(e)?(0,n.isArray)(e["?"])?e["?"].push(r):e["?"]=[e["?"],r]:this._currentList.push({"?":r})}}cdata(e){if(0===this._currentList.length)this._currentList.push({$:e});else{let t=this._currentList[this._currentList.length-1];this._isCDATANode(t)?(0,n.isArray)(t.$)?t.$.push(e):t.$=[t.$,e]:this._currentList.push({$:e})}}_isAttrNode(e){return"@"in e}_isTextNode(e){return"#"in e}_isCommentNode(e){return"!"in e}_isInstructionNode(e){return"?"in e}_isCDATANode(e){return"$"in e}_isElementNode(e,t){return t in e}_getAttrKey(){return this._builderOptions.convert.att}_getNodeKey(e){switch(e){case a.NodeType.Comment:return this._builderOptions.convert.comment;case a.NodeType.Text:return this._builderOptions.convert.text;case a.NodeType.ProcessingInstruction:return this._builderOptions.convert.ins;case a.NodeType.CData:return this._builderOptions.convert.cdata;default:throw Error("Invalid node type.")}}}t.ObjectWriter=o},3684(e,t,r){"use strict";t.XMLCBWriter=void 0;let n=r(4976);class a extends n.BaseCBWriter{_lineLength=0;constructor(e){super(e)}frontMatter(){return""}declaration(e,t,r){let n=this._beginLine()+"<?xml";return n+=' version="'+e+'"',void 0!==t&&(n+=' encoding="'+t+'"'),void 0!==r&&(n+=' standalone="'+(r?"yes":"no")+'"'),n+="?>"}docType(e,t,r){let n=this._beginLine();return t&&r?n+="<!DOCTYPE "+e+' PUBLIC "'+t+'" "'+r+'">':t?n+="<!DOCTYPE "+e+' PUBLIC "'+t+'">':r?n+="<!DOCTYPE "+e+' SYSTEM "'+r+'">':n+="<!DOCTYPE "+e+">",n}comment(e){return this._beginLine()+"\x3c!--"+e+"--\x3e"}text(e){return e}instruction(e,t){return t?this._beginLine()+"<?"+e+" "+t+"?>":this._beginLine()+"<?"+e+"?>"}cdata(e){return this._beginLine()+"<![CDATA["+e+"]]>"}openTagBegin(e){return this._lineLength+=1+e.length,this._beginLine()+"<"+e}openTagEnd(e,t,r){return r?" />":t?this._writerOptions.allowEmptyTags?"></"+e+">":this._writerOptions.spaceBeforeSlash?" />":"/>":">"}closeTag(e,t){return(t?"":this._beginLine())+"</"+e+">"}attribute(e,t){let r=e+'="'+t+'"';return this._writerOptions.prettyPrint&&this._writerOptions.width>0&&this._lineLength+1+r.length>this._writerOptions.width?(r=this._beginLine()+this._indent(1)+r,this._lineLength=r.length,r):(this._lineLength+=1+r.length," "+r)}beginElement(e){}endElement(e){}_beginLine(){if(!this._writerOptions.prettyPrint)return"";{let e=(this.hasData?this._writerOptions.newline:"")+this._indent(this._writerOptions.offset+this.level);return this._lineLength=e.length,e}}_indent(e){return e<=0?"":this._writerOptions.indent.repeat(e)}}t.XMLCBWriter=a},3757(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLWriter=void 0;let n=r(3738),a=r(3841),i=r(6185),o=r(8723);class s extends i.BaseWriter{_refs;_indentation={};_lengthToLastNewline=0;constructor(e,t){super(e),this._writerOptions=(0,n.applyDefaults)(t,{wellFormed:!1,headless:!1,prettyPrint:!1,indent:" ",newline:"\n",offset:0,width:0,allowEmptyTags:!1,indentTextOnlyNodes:!1,spaceBeforeSlash:!1})}serialize(e){return this._refs={suppressPretty:!1,emptyNode:!1,markup:""},e.nodeType!==a.NodeType.Document||this._writerOptions.headless||this.declaration(this._builderOptions.version,this._builderOptions.encoding,this._builderOptions.standalone),this.serializeNode(e,this._writerOptions.wellFormed),this._writerOptions.prettyPrint&&this._refs.markup.slice(-this._writerOptions.newline.length)===this._writerOptions.newline&&(this._refs.markup=this._refs.markup.slice(0,-this._writerOptions.newline.length)),this._refs.markup}declaration(e,t,r){this._beginLine(),this._refs.markup+='<?xml version="'+e+'"',void 0!==t&&(this._refs.markup+=' encoding="'+t+'"'),void 0!==r&&(this._refs.markup+=' standalone="'+(r?"yes":"no")+'"'),this._refs.markup+="?>",this._endLine()}docType(e,t,r){this._beginLine(),t&&r?this._refs.markup+="<!DOCTYPE "+e+' PUBLIC "'+t+'" "'+r+'">':t?this._refs.markup+="<!DOCTYPE "+e+' PUBLIC "'+t+'">':r?this._refs.markup+="<!DOCTYPE "+e+' SYSTEM "'+r+'">':this._refs.markup+="<!DOCTYPE "+e+">",this._endLine()}openTagBegin(e){this._beginLine(),this._refs.markup+="<"+e}openTagEnd(e,t,r){if(this._refs.suppressPretty=!1,this._refs.emptyNode=!1,this._writerOptions.prettyPrint&&!t&&!r){let e=!0,t=!0,r=this.currentNode.firstChild,n=0,a=0;for(;r;){if(o.Guard.isExclusiveTextNode(r))a++;else if(o.Guard.isCDATASectionNode(r))n++;else{e=!1,t=!1;break}""!==r.data&&(t=!1),r=r.nextSibling}this._refs.suppressPretty=!this._writerOptions.indentTextOnlyNodes&&e&&(n<=1&&0===a||0===n),this._refs.emptyNode=t}(r||t||this._refs.emptyNode)&&this._writerOptions.allowEmptyTags?this._refs.markup+="></"+e+">":this._refs.markup+=r?" />":t||this._refs.emptyNode?this._writerOptions.spaceBeforeSlash?" />":"/>":">",this._endLine()}closeTag(e){this._refs.emptyNode||(this._beginLine(),this._refs.markup+="</"+e+">"),this._refs.suppressPretty=!1,this._refs.emptyNode=!1,this._endLine()}attribute(e,t){let r=e+'="'+t+'"';this._writerOptions.prettyPrint&&this._writerOptions.width>0&&this._refs.markup.length-this._lengthToLastNewline+1+r.length>this._writerOptions.width?(this._endLine(),this._beginLine(),this._refs.markup+=this._indent(1)+r):this._refs.markup+=" "+r}text(e){""!==e&&(this._beginLine(),this._refs.markup+=e,this._endLine())}cdata(e){""!==e&&(this._beginLine(),this._refs.markup+="<![CDATA["+e+"]]>",this._endLine())}comment(e){this._beginLine(),this._refs.markup+="\x3c!--"+e+"--\x3e",this._endLine()}instruction(e,t){this._beginLine(),this._refs.markup+="<?"+(""===t?e:e+" "+t)+"?>",this._endLine()}_beginLine(){this._writerOptions.prettyPrint&&!this._refs.suppressPretty&&(this._refs.markup+=this._indent(this._writerOptions.offset+this.level))}_endLine(){this._writerOptions.prettyPrint&&!this._refs.suppressPretty&&(this._refs.markup+=this._writerOptions.newline,this._lengthToLastNewline=this._refs.markup.length)}_indent(e){if(e<=0)return"";{if(void 0!==this._indentation[e])return this._indentation[e];let t=this._writerOptions.indent.repeat(e);return this._indentation[e]=t,t}}}t.XMLWriter=s},4330(e,t,r){"use strict";t.YAMLCBWriter=void 0;let n=r(4976);class a extends n.BaseCBWriter{_rootWritten=!1;_additionalLevel=0;constructor(e){if(super(e),e.indent.length<2)throw Error("YAML indententation string must be at least two characters long.");if(e.offset<0)throw Error("YAML offset should be zero or a positive number.")}frontMatter(){return this._beginLine()+"---"}declaration(e,t,r){return""}docType(e,t,r){return""}comment(e){return this._beginLine()+this._key(this._builderOptions.convert.comment)+" "+this._val(e)}text(e){return this._beginLine()+this._key(this._builderOptions.convert.text)+" "+this._val(e)}instruction(e,t){return this._beginLine()+this._key(this._builderOptions.convert.ins)+" "+this._val(t?e+" "+t:e)}cdata(e){return this._beginLine()+this._key(this._builderOptions.convert.cdata)+" "+this._val(e)}attribute(e,t){this._additionalLevel++;let r=this._beginLine()+this._key(this._builderOptions.convert.att+e)+" "+this._val(t);return this._additionalLevel--,r}openTagBegin(e){let t=this._beginLine()+this._key(e);return this._rootWritten||(this._rootWritten=!0),this.hasData=!0,this._additionalLevel++,t+=this._beginLine(!0)+this._key(this._builderOptions.convert.text)}openTagEnd(e,t,r){return t?" "+this._val(""):""}closeTag(e){return this._additionalLevel--,""}beginElement(e){}endElement(e){}_beginLine(e=!1){return(this.hasData?this._writerOptions.newline:"")+this._indent(this._writerOptions.offset+this.level,e)}_indent(e,t){if(e+this._additionalLevel<=0)return"";{let r=this._writerOptions.indent.repeat(e+this._additionalLevel);return!t&&this._rootWritten?r.substr(0,r.length-2)+"-"+r.substr(-1,1):r}}_key(e){return'"'+e+'":'}_val(e){return JSON.stringify(e)}}t.YAMLCBWriter=a},1723(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLWriter=void 0;let n=r(5731),a=r(3738),i=r(6185);class o extends i.BaseWriter{constructor(e,t){if(super(e),this._writerOptions=(0,a.applyDefaults)(t,{wellFormed:!1,indent:" ",newline:"\n",offset:0,group:!1,verbose:!1}),this._writerOptions.indent.length<2)throw Error("YAML indententation string must be at least two characters long.");if(this._writerOptions.offset<0)throw Error("YAML offset should be zero or a positive number.")}serialize(e){let t=(0,a.applyDefaults)(this._writerOptions,{format:"object",wellFormed:!1}),r=new n.ObjectWriter(this._builderOptions,t).serialize(e),i=this._beginLine(this._writerOptions,0)+"---"+this._endLine(this._writerOptions)+this._convertObject(r,this._writerOptions,0);return i.slice(-this._writerOptions.newline.length)===this._writerOptions.newline&&(i=i.slice(0,-this._writerOptions.newline.length)),i}_convertObject(e,t,r,n=!1){let i="";if((0,a.isArray)(e))for(let n of e)i+=this._beginLine(t,r,!0),(0,a.isObject)(n)?(0,a.isEmpty)(n)?i+='""'+this._endLine(t):i+=this._convertObject(n,t,r,!0):i+=this._val(n)+this._endLine(t);else(0,a.forEachObject)(e,(e,o)=>{n?(i+=this._key(e),n=!1):i+=this._beginLine(t,r)+this._key(e),(0,a.isObject)(o)||(0,a.isArray)(o)?(0,a.isEmpty)(o)?i+=' ""'+this._endLine(t):i+=this._endLine(t)+this._convertObject(o,t,r+1):i+=" "+this._val(o)+this._endLine(t)},this);return i}_beginLine(e,t,r=!1){let n=Array(e.offset+t+1).join(e.indent);return r?n.substr(0,n.length-2)+"-"+n.substr(-1,1):n}_endLine(e){return e.newline}_key(e){return'"'+e+'":'}_val(e){return JSON.stringify(e)}}t.YAMLWriter=o},6655(e,t,r){"use strict";t.YAMLWriter=t.JSONWriter=t.ObjectWriter=t.XMLWriter=t.MapWriter=void 0;var n=r(2942);Object.defineProperty(t,"MapWriter",{enumerable:!0,get:function(){return n.MapWriter}});var a=r(3757);Object.defineProperty(t,"XMLWriter",{enumerable:!0,get:function(){return a.XMLWriter}});var i=r(5731);Object.defineProperty(t,"ObjectWriter",{enumerable:!0,get:function(){return i.ObjectWriter}});var o=r(2650);Object.defineProperty(t,"JSONWriter",{enumerable:!0,get:function(){return o.JSONWriter}});var s=r(1723);Object.defineProperty(t,"YAMLWriter",{enumerable:!0,get:function(){return s.YAMLWriter}})}},l={};function u(e){var t=l[e];if(void 0!==t)return t.exports;var r=l[e]={exports:{}};return s[e].call(r.exports,r,r.exports,u),r.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,u.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var r=Object.create(null);u.r(r);var n={};i=i||[null,o({}),o([]),o(o)];for(var a=2&t&&e;("object"==typeof a||"function"==typeof a)&&!~i.indexOf(a);a=o(a))Object.getOwnPropertyNames(a).forEach(t=>{n[t]=()=>e[t]});return n.default=()=>e,u.d(r,n),r},u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),u.nc=void 0,u.p="/";var d={};return(()=>{"use strict";let e,t,r,n,a,i,o,s,l,c,h,p,m,f,g,y,v,b,w,x,C,k,M,S,E,T;u.r(d),u.d(d,{Button:()=>eC2,ButtonEnums:()=>en,ContextMenu:()=>eC3,EmptyStudies:()=>ev5,ICONS:()=>ev3,Icon:()=>ev9,InputDateRange:()=>ebn,InputFilterText:()=>eC4,InputGroup:()=>ex8,InputLabelWrapper:()=>ebt,InputMultiSelect:()=>ex3,InputText:()=>ebh,LegacyButton:()=>eCp,LegacyButtonGroup:()=>eCx,Select:()=>ex2,StudyListExpandedRow:()=>eCA,StudyListFilter:()=>eCL,StudyListPagination:()=>eCV,StudyListTable:()=>eCW,StudyListTableRow:()=>eCB,Table:()=>eCk,TableBody:()=>eCT,TableCell:()=>eCD,TableHead:()=>eCS,TableRow:()=>eCP,Types:()=>W,Typography:()=>eX,addIcon:()=>ev4,getIcon:()=>ev8});var I,P,_,D,O,A,R,L,N,V,F,B,j,W={};u.r(W),u.d(W,{PatientInfoVisibility:()=>es,StringArray:()=>eu,StringNumber:()=>el,ThumbnailType:()=>eo});var U={};u.r(U),u.d(U,{Button:()=>yU,CaptionLabel:()=>yz,Chevron:()=>yH,Day:()=>yG,DayButton:()=>yq,Dropdown:()=>y$,DropdownNav:()=>yK,Footer:()=>yY,Month:()=>yZ,MonthCaption:()=>yX,MonthGrid:()=>yJ,Months:()=>yQ,MonthsDropdown:()=>y2,Nav:()=>y5,NextMonthButton:()=>y3,Option:()=>y4,PreviousMonthButton:()=>y8,Root:()=>y6,Select:()=>y9,Week:()=>y7,WeekNumber:()=>vr,WeekNumberHeader:()=>vn,Weekday:()=>ve,Weekdays:()=>vt,Weeks:()=>va,YearsDropdown:()=>vi});var z={};u.r(z),u.d(z,{formatCaption:()=>vf,formatDay:()=>vy,formatMonthCaption:()=>vg,formatMonthDropdown:()=>vv,formatWeekNumber:()=>vw,formatWeekNumberHeader:()=>vx,formatWeekdayName:()=>vb,formatYearCaption:()=>vk,formatYearDropdown:()=>vC});var H={};u.r(H),u.d(H,{labelCaption:()=>vT,labelDay:()=>vS,labelDayButton:()=>vM,labelGrid:()=>vE,labelGridcell:()=>vI,labelMonthDropdown:()=>vP,labelNav:()=>v_,labelNext:()=>vD,labelPrevious:()=>vO,labelWeekNumber:()=>vR,labelWeekNumberHeader:()=>vL,labelWeekday:()=>vA,labelYearDropdown:()=>vN});var G={};u.r(G),u.d(G,{add:()=>bn,addBusinessDays:()=>bo,addDays:()=>v6,addHours:()=>bl,addISOWeekYears:()=>bb,addMilliseconds:()=>bs,addMinutes:()=>bw,addMonths:()=>br,addQuarters:()=>bx,addSeconds:()=>bC,addWeeks:()=>bk,addYears:()=>bM,areIntervalsOverlapping:()=>bS,clamp:()=>bI,closestIndexTo:()=>bP,closestTo:()=>b_,compareAsc:()=>bD,compareDesc:()=>bO,constructFrom:()=>v5,constructNow:()=>bA,daysToWeeks:()=>bR,differenceInBusinessDays:()=>bF,differenceInCalendarDays:()=>bg,differenceInCalendarISOWeekYears:()=>bB,differenceInCalendarISOWeeks:()=>bj,differenceInCalendarMonths:()=>bW,differenceInCalendarQuarters:()=>bz,differenceInCalendarWeeks:()=>bH,differenceInCalendarYears:()=>bG,differenceInDays:()=>bq,differenceInHours:()=>bY,differenceInISOWeekYears:()=>bX,differenceInMilliseconds:()=>bJ,differenceInMinutes:()=>bQ,differenceInMonths:()=>b5,differenceInQuarters:()=>b3,differenceInSeconds:()=>b4,differenceInWeeks:()=>b8,differenceInYears:()=>b6,eachDayOfInterval:()=>b7,eachHourOfInterval:()=>we,eachMinuteOfInterval:()=>wt,eachMonthOfInterval:()=>wr,eachQuarterOfInterval:()=>wa,eachWeekOfInterval:()=>wi,eachWeekendOfInterval:()=>wo,eachWeekendOfMonth:()=>wl,eachWeekendOfYear:()=>wc,eachYearOfInterval:()=>wh,endOfDay:()=>b0,endOfDecade:()=>wp,endOfHour:()=>wm,endOfISOWeek:()=>wg,endOfISOWeekYear:()=>wy,endOfMinute:()=>wv,endOfMonth:()=>b1,endOfQuarter:()=>wb,endOfSecond:()=>ww,endOfToday:()=>wx,endOfTomorrow:()=>wC,endOfWeek:()=>wf,endOfYear:()=>wu,endOfYesterday:()=>wk,format:()=>w1,formatDate:()=>w1,formatDistance:()=>w2,formatDistanceStrict:()=>w5,formatDistanceToNow:()=>w3,formatDistanceToNowStrict:()=>w4,formatDuration:()=>w6,formatISO:()=>w9,formatISO9075:()=>w7,formatISODuration:()=>xe,formatRFC3339:()=>xt,formatRFC7231:()=>xa,formatRelative:()=>xi,formatters:()=>wB,fromUnixTime:()=>xo,getDate:()=>xs,getDay:()=>xl,getDayOfYear:()=>wO,getDaysInMonth:()=>xu,getDaysInYear:()=>xc,getDecade:()=>xh,getDefaultOptions:()=>xp,getHours:()=>xm,getISODay:()=>xf,getISOWeek:()=>wA,getISOWeekYear:()=>bh,getISOWeeksInYear:()=>xg,getMilliseconds:()=>xy,getMinutes:()=>xv,getMonth:()=>xb,getOverlappingDaysInIntervals:()=>xw,getQuarter:()=>bU,getSeconds:()=>xx,getTime:()=>xC,getUnixTime:()=>xk,getWeek:()=>wN,getWeekOfMonth:()=>xM,getWeekYear:()=>wR,getWeeksInMonth:()=>xE,getYear:()=>xT,hoursToMilliseconds:()=>xI,hoursToMinutes:()=>xP,hoursToSeconds:()=>x_,interval:()=>xD,intervalToDuration:()=>xO,intlFormat:()=>xA,intlFormatDistance:()=>xR,isAfter:()=>xL,isBefore:()=>xN,isDate:()=>bN,isEqual:()=>xV,isExists:()=>xF,isFirstDayOfMonth:()=>xB,isFriday:()=>ba,isFuture:()=>xj,isLastDayOfMonth:()=>b2,isLeapYear:()=>xd,isMatch:()=>CT,isMonday:()=>CI,isPast:()=>CP,isSameDay:()=>bL,isSameHour:()=>CD,isSameISOWeek:()=>CA,isSameISOWeekYear:()=>CR,isSameMinute:()=>CN,isSameMonth:()=>CV,isSameQuarter:()=>CF,isSameSecond:()=>Cj,isSameWeek:()=>CO,isSameYear:()=>CW,isSaturday:()=>CU,isSunday:()=>Cz,isThisHour:()=>CH,isThisISOWeek:()=>CG,isThisMinute:()=>Cq,isThisMonth:()=>C$,isThisQuarter:()=>CK,isThisSecond:()=>CY,isThisWeek:()=>CZ,isThisYear:()=>CX,isThursday:()=>CJ,isToday:()=>CQ,isTomorrow:()=>C0,isTuesday:()=>C1,isValid:()=>bV,isWednesday:()=>C2,isWeekend:()=>bi,isWithinInterval:()=>C5,isYesterday:()=>C4,lastDayOfDecade:()=>C8,lastDayOfISOWeek:()=>C9,lastDayOfISOWeekYear:()=>C7,lastDayOfMonth:()=>xS,lastDayOfQuarter:()=>ke,lastDayOfWeek:()=>C6,lastDayOfYear:()=>kt,lightFormat:()=>ko,lightFormatters:()=>wF,longFormatters:()=>wG,max:()=>bE,milliseconds:()=>ks,millisecondsToHours:()=>kl,millisecondsToMinutes:()=>ku,millisecondsToSeconds:()=>kd,min:()=>bT,minutesToHours:()=>kc,minutesToMilliseconds:()=>kh,minutesToSeconds:()=>kp,monthsToQuarters:()=>km,monthsToYears:()=>kf,newDate:()=>kg,nextDay:()=>ky,nextFriday:()=>kv,nextMonday:()=>kb,nextSaturday:()=>kw,nextSunday:()=>kx,nextThursday:()=>kC,nextTuesday:()=>kk,nextWednesday:()=>kM,parse:()=>CE,parseISO:()=>kS,parseJSON:()=>kN,parsers:()=>Cb,previousDay:()=>kV,previousFriday:()=>kF,previousMonday:()=>kB,previousSaturday:()=>kj,previousSunday:()=>kW,previousThursday:()=>kU,previousTuesday:()=>kz,previousWednesday:()=>kH,quartersToMonths:()=>kG,quartersToYears:()=>kq,roundToNearestHours:()=>k$,roundToNearestMinutes:()=>kK,secondsToHours:()=>kY,secondsToMilliseconds:()=>kZ,secondsToMinutes:()=>kX,set:()=>kQ,setDate:()=>k0,setDay:()=>Cy,setDayOfYear:()=>k1,setDefaultOptions:()=>k2,setHours:()=>k5,setISODay:()=>Cv,setISOWeek:()=>Cm,setISOWeekYear:()=>bv,setMilliseconds:()=>k3,setMinutes:()=>k4,setMonth:()=>kJ,setQuarter:()=>k8,setSeconds:()=>k6,setWeek:()=>Cp,setWeekYear:()=>k9,setYear:()=>k7,startOfDay:()=>bf,startOfDecade:()=>Me,startOfHour:()=>C_,startOfISOWeek:()=>bc,startOfISOWeekYear:()=>by,startOfMinute:()=>CL,startOfMonth:()=>ws,startOfQuarter:()=>wn,startOfSecond:()=>CB,startOfToday:()=>Mt,startOfTomorrow:()=>Mr,startOfWeek:()=>bd,startOfWeekYear:()=>wL,startOfYear:()=>wd,startOfYesterday:()=>Mn,sub:()=>Mi,subBusinessDays:()=>Mo,subDays:()=>C3,subHours:()=>Ms,subISOWeekYears:()=>bZ,subMilliseconds:()=>Ml,subMinutes:()=>Mu,subMonths:()=>Ma,subQuarters:()=>Md,subSeconds:()=>Mc,subWeeks:()=>Mh,subYears:()=>Mp,toDate:()=>v3,transpose:()=>xW,weeksToDays:()=>Mm,yearsToDays:()=>Mf,yearsToMonths:()=>Mg,yearsToQuarters:()=>My});var q={};u.r(q),u.d(q,{filterAdditionalFindings:()=>Lj,filterAnd:()=>Lz,filterAny:()=>LN,filterMeasurementsBySeriesUID:()=>LO,filterMeasurementsByStudyUID:()=>LA,filterNone:()=>LV,filterNot:()=>function e(...t){if(1!==t.length)return Lz(...t.map(t=>e(t)));let[r]=t;return LU(r)?function(e){return!this[r](e)}:e=>!r(e)},filterOr:()=>LF,filterPlanarMeasurement:()=>LR,filterTool:()=>LL,filterUnless:()=>LW});var $={};u.r($),u.d($,{C:()=>N9});var K={};u.r(K),u.d(K,{Zi:()=>Vi,IU:()=>Vh,_z:()=>Vc,Jt:()=>Vp,YA:()=>Vu,Y2:()=>Vm,FE:()=>Vd,hC:()=>Vo,SD:()=>Vl,iw:()=>Vs,Hw:()=>Vg,Qy:()=>Vf});var Y={};u.r(Y),u.d(Y,{RZ:()=>VP,uu:()=>VE,gE:()=>VM,HL:()=>VO,UX:()=>V_,tZ:()=>VL,pp:()=>VR,U5:()=>VA,_E:()=>VI,Rm:()=>RS.log,Um:()=>VS,UA:()=>VT,bM:()=>VD});var Z={};u.r(Z),u.d(Z,{VD:()=>VU,ZX:()=>VG,Hf:()=>Vq,lJ:()=>VW,Cc:()=>Vz,nw:()=>Fv,FM:()=>V$,YF:()=>VB,AR:()=>VV,Qy:()=>V0,Le:()=>VN});var X={};u.r(X),u.d(X,{s:()=>eyH});var J={};u.r(J),u.d(J,{sV:()=>NH,dC:()=>N0,FU:()=>Fx,VO:()=>NK,WA:()=>N1,nb:()=>FC,KY:()=>NQ,YB:()=>FS,FJ:()=>Fk,Yw:()=>NG,yX:()=>N2,QO:()=>X,Dt:()=>Fw,NV:()=>Nq});var Q={};u.r(Q),u.d(Q,{p8:()=>FP,T0:()=>F_,Cf:()=>FI,E3:()=>FD});var ee={};u.r(ee),u.d(ee,{addProvider:()=>HR,get:()=>HB,getMetaData:()=>HV,getNormalized:()=>Hj,getTyped:()=>HF,removeAllProviders:()=>HN,removeProvider:()=>HL,toLowerCamelTag:()=>HU,toUpperCamelTag:()=>HW});var et={};u.r(et),u.d(et,{ZX:()=>ehM,Cc:()=>ehI,Hl:()=>Bh});var er={};u.r(er),u.d(er,{FILE:()=>eh4,HTML:()=>eh9,TEXT:()=>eh6,URL:()=>eh8});var en={};u.r(en),u.d(en,{orientation:()=>eCH,size:()=>eCz,type:()=>eCU});var ea=u(7598),ei=u.n(ea);let eo=ei().oneOf(["thumbnail","thumbnailTracked","thumbnailNoImage"]),es=((egT={}).VISIBLE="visible",egT.VISIBLE_COLLAPSED="visibleCollapsed",egT.DISABLED="disabled",egT.VISIBLE_READONLY="visibleReadOnly",egT),el=ei().oneOfType([ei().string,ei().number]),eu=ei().oneOfType([ei().string,ei().array]);var ed=u(4883),ec=u.t(ed,2),eh=u.n(ed),ep=u(5530),em=u.n(ep);function ef(e){return(ef="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eg(e){var t=function(e,t){if("object"!=ef(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ef(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ef(t)?t:t+""}function ey(){if(console&&console.warn){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}u(9741),Object.create(null);var ev={};function eb(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&ev[t[0]]||("string"==typeof t[0]&&(ev[t[0]]=new Date),ey.apply(void 0,t))}var ew=function(e,t){return function(){e.isInitialized?t():e.on("initialized",function r(){setTimeout(function(){e.off("initialized",r)},0),t()})}};function ex(e,t,r){e.loadNamespaces(t,ew(e,r))}function eC(e,t,r,n){"string"==typeof r&&(r=[r]),r.forEach(function(t){0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,ew(e,n))}var ek=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,eM={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},eS=function(e){return eM[e]},eE={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(ek,eS)}},eT=(0,ed.createContext)(),eI=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.usedNamespaces={}}return e=[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach(function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,eg(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();function eP(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function e_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eD(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?e_(Object(r),!0).forEach(function(t){var n,a;n=t,a=r[t],(n=eg(n))in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var eO=function(e,t){var r=(0,ed.useRef)();return(0,ed.useEffect)(function(){r.current=t?r.current:e},[e,t]),r.current};function eA(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.i18n,a=(0,ed.useContext)(eT)||{},i=a.i18n,o=a.defaultNS,s=n||i||eyg;if(s&&!s.reportNamespaces&&(s.reportNamespaces=new eI),!s){eb("You will need to pass in an i18next instance by using initReactI18next");var l=function(e,t){return"string"==typeof t?t:t&&"object"===ef(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},u=[l,{},!1];return u.t=l,u.i18n={},u.ready=!1,u}s.options.react&&void 0!==s.options.react.wait&&eb("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var d=eD(eD(eD({},eE),s.options.react),r),c=d.useSuspense,h=d.keyPrefix,p=e||o||s.options&&s.options.defaultNS;p="string"==typeof p?[p]:p||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(p);var m=(s.isInitialized||s.initializedStoreOnce)&&p.every(function(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0===t.options.ignoreJSONStructure?function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],a=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var o=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return -1===n||2===n};return(!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!o(t.isLanguageChangingTo,e))&&!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(n,e)&&(!a||o(i,e)))}(e,t,r):t.hasLoadedNamespace(e,{lng:r.lng,precheck:function(t,n){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):(eb("i18n.languages were undefined or empty",t.languages),!0)}(e,s,d)});function f(){return s.getFixedT(r.lng||null,"fallback"===d.nsMode?p:p[0],h)}var g=function(e){if(Array.isArray(e))return e}(t=(0,ed.useState)(f))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,a,i,o=[],s=!0,l=!1;try{a=(t=t.call(e)).next,!1;for(;!(s=(r=a.call(t)).done)&&(o.push(r.value),2!==o.length);s=!0);}catch(e){l=!0,n=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw n}}return o}}(t)||function(e){if(e){if("string"==typeof e)return eP(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?eP(e,2):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=g[0],v=g[1],b=p.join();r.lng&&(b="".concat(r.lng).concat(b));var w=eO(b),x=(0,ed.useRef)(!0);(0,ed.useEffect)(function(){var e=d.bindI18n,t=d.bindI18nStore;function n(){x.current&&v(f)}return x.current=!0,m||c||(r.lng?eC(s,r.lng,p,function(){x.current&&v(f)}):ex(s,p,function(){x.current&&v(f)})),m&&w&&w!==b&&x.current&&v(f),e&&s&&s.on(e,n),t&&s&&s.store.on(t,n),function(){x.current=!1,e&&s&&e.split(" ").forEach(function(e){return s.off(e,n)}),t&&s&&t.split(" ").forEach(function(e){return s.store.off(e,n)})}},[s,b]);var C=(0,ed.useRef)(!0);(0,ed.useEffect)(function(){x.current&&!C.current&&v(f),C.current=!1},[s,h]);var k=[y,s,m];if(k.t=y,k.i18n=s,k.ready=m,m||!m&&!c)return k;throw new Promise(function(e){r.lng?eC(s,r.lng,p,function(){return e()}):ex(s,p,function(){return e()})})}function eR(){return(eR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let eL={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle:"h6",body:"p"},eN="inherit",eV="initial",eF="initial",eB=!1,ej=!1,eW=!1,eU="body",ez={h1:"text-6xl",h2:"text-5xl",h3:"text-4xl",h4:"text-3xl",h5:"text-2xl",h6:"text-[20px]",subtitle:"text-lg",body:"text-base",caption:"text-xs",button:"text-sm uppercase",overline:"text-xs uppercase",srOnly:"absolute h-0 w-0 hidden",inherit:""},eH={initial:"text-white",inherit:"text-inherit",primary:"text-primary-main",primaryActive:"text-primary-active",primaryLight:"text-primary-light",secondary:"text-common-light",error:"text-red-600"},eG={inherit:"",left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"},eq={initial:"",block:"block",inline:"inline"},e$={true:"mb-3",false:""},eK={true:"mb-3",false:""},eY={true:"truncate",false:""},eZ=({align:e=eN,color:t=eV,display:r=eF,gutterBottom:n=eB,noWrap:a=ej,paragraph:i=eW,variant:o=eU,component:s,className:l,...u})=>{let d=s||(i?"p":eL[o])||"span";return eh().createElement(d,eR({className:em()("m-0 leading-tight",ez[o],eH[t],eG[e],e$[n],eK[i],eY[a],eq[r],l)},u))};eZ.propTypes={component:ei().elementType,paragraph:ei().bool,display:ei().oneOf(["initial","block","inline"]),variant:ei().oneOf(["h1","h2","h3","h4","h5","h6","subtitle","body","caption","button","overline","srOnly","inherit"]),color:ei().oneOf(["initial","inherit","primary","primaryActive","secondary","error","primaryLight"]),className:ei().string,children:ei().node,align:ei().oneOf(["inherit","left","center","right","justify"]),gutterBottom:ei().bool,noWrap:ei().bool};let eX=eZ,eJ=function e(t,r=2){if(Array.isArray(t))return t.map(t=>e(t,r)).join(", ");if(null==t||""===t)return"NaN";let n=Math.abs(t=Number(t));if(n<1e-4)return`${t}`;let a=n>=100?r-2:n>=10?r-1:n>=1?r:n>=.1?r+1:n>=.01?r+2:n>=.001?r+3:r+4;return t.toFixed(a)};function eQ(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=function e(t){var r,n,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}(e))&&(n&&(n+=" "),n+=t);return n}let e0=(e,t)=>{if(0===e.length)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),a=n?e0(e.slice(1),n):void 0;if(a)return a;if(0===t.validators.length)return;let i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},e1=/^\[(.+)\]$/,e2=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:e5(t,e)).classGroupId=r;return}"function"==typeof e?e3(e)?e2(e(n),t,r,n):t.validators.push({validator:e,classGroupId:r}):Object.entries(e).forEach(([e,a])=>{e2(a,e5(t,e),r,n)})})},e5=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},e3=e=>e.isThemeGetter,e4=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,e8=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},e6=/\s+/;function e9(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=e7(e))&&(n&&(n+=" "),n+=t);return n}let e7=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=e7(e[n]))&&(r&&(r+=" "),r+=t);return r},te=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},tt=/^\[(?:([a-z-]+):)?(.+)\]$/i,tr=/^\d+\/\d+$/,tn=new Set(["px","full","screen"]),ta=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ti=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,to=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ts=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,tu=e=>tc(e)||tn.has(e)||tr.test(e),td=e=>tM(e,"length",tS),tc=e=>!!e&&!Number.isNaN(Number(e)),th=e=>tM(e,"number",tc),tp=e=>!!e&&Number.isInteger(Number(e)),tm=e=>e.endsWith("%")&&tc(e.slice(0,-1)),tf=e=>tt.test(e),tg=e=>ta.test(e),ty=new Set(["length","size","percentage"]),tv=e=>tM(e,ty,tE),tb=e=>tM(e,"position",tE),tw=new Set(["image","url"]),tx=e=>tM(e,tw,tI),tC=e=>tM(e,"",tT),tk=()=>!0,tM=(e,t,r)=>{let n=tt.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},tS=e=>ti.test(e)&&!to.test(e),tE=()=>!1,tT=e=>ts.test(e),tI=e=>tl.test(e),tP=function(e){let t,r,n,a=function(o){let s;return r=(t={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map,a=(a,i)=>{r.set(a,i),++t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(a(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):a(e,t)}}})((s=[].reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{separator:t,experimentalParseClassName:r}=e,n=1===t.length,a=t[0],i=t.length,o=e=>{let r,o=[],s=0,l=0;for(let u=0;u<e.length;u++){let d=e[u];if(0===s){if(d===a&&(n||e.slice(u,u+i)===t)){o.push(e.slice(l,u)),l=u+i;continue}if("/"===d){r=u;continue}}"["===d?s++:"]"===d&&s--}let u=0===o.length?e:e.substring(l),d=u.startsWith("!"),c=d?u.substring(1):u;return{modifiers:o,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:r&&r>l?r-l:void 0}};return r?e=>r({className:e,parseClassName:o}):o})(s),...(e=>{let t=(e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return e4(Object.entries(e.classGroups),r).forEach(([e,r])=>{e2(r,n,e,t)}),n})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{let r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),e0(r,t)||(e=>{if(e1.test(e)){let t=e1.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}})(e)},getConflictingClassGroupIds:(e,t)=>{let a=r[e]||[];return t&&n[e]?[...a,...n[e]]:a}}})(s)}).cache.get,n=t.cache.set,a=i,i(o)};function i(e){let a=r(e);if(a)return a;let i=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,i=[],o=e.trim().split(e6),s="";for(let e=o.length-1;e>=0;e-=1){let t=o[e],{modifiers:l,hasImportantModifier:u,baseClassName:d,maybePostfixModifierPosition:c}=r(t),h=!!c,p=n(h?d.substring(0,c):d);if(!p){if(!h||!(p=n(d))){s=t+(s.length>0?" "+s:s);continue}h=!1}let m=e8(l).join(":"),f=u?m+"!":m,g=f+p;if(i.includes(g))continue;i.push(g);let y=a(p,h);for(let e=0;e<y.length;++e){let t=y[e];i.push(f+t)}s=t+(s.length>0?" "+s:s)}return s})(e,t);return n(e,i),i}return function(){return a(e9.apply(null,arguments))}}(()=>{let e=te("colors"),t=te("spacing"),r=te("blur"),n=te("brightness"),a=te("borderColor"),i=te("borderRadius"),o=te("borderSpacing"),s=te("borderWidth"),l=te("contrast"),u=te("grayscale"),d=te("hueRotate"),c=te("invert"),h=te("gap"),p=te("gradientColorStops"),m=te("gradientColorStopPositions"),f=te("inset"),g=te("margin"),y=te("opacity"),v=te("padding"),b=te("saturate"),w=te("scale"),x=te("sepia"),C=te("skew"),k=te("space"),M=te("translate"),S=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto",tf,t],I=()=>[tf,t],P=()=>["",tu,td],_=()=>["auto",tc,tf],D=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],A=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",tf],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[tc,tf];return{cacheSize:500,separator:":",theme:{colors:[tk],spacing:[tu,td],blur:["none","",tg,tf],brightness:V(),borderColor:[e],borderRadius:["none","","full",tg,tf],borderSpacing:I(),borderWidth:P(),contrast:V(),grayscale:L(),hueRotate:V(),invert:L(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[tm,td],inset:T(),margin:T(),opacity:V(),padding:I(),saturate:V(),scale:V(),sepia:L(),skew:V(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",tf]}],container:["container"],columns:[{columns:[tg]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...D(),tf]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",tp,tf]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",tf]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",tp,tf]}],"grid-cols":[{"grid-cols":[tk]}],"col-start-end":[{col:["auto",{span:["full",tp,tf]},tf]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[tk]}],"row-start-end":[{row:["auto",{span:[tp,tf]},tf]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",tf]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",tf]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",tf,t]}],"min-w":[{"min-w":[tf,t,"min","max","fit"]}],"max-w":[{"max-w":[tf,t,"none","full","min","max","fit","prose",{screen:[tg]},tg]}],h:[{h:[tf,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[tf,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[tf,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[tf,t,"auto","min","max","fit"]}],"font-size":[{text:["base",tg,td]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",th]}],"font-family":[{font:[tk]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",tf]}],"line-clamp":[{"line-clamp":["none",tc,th]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",tu,tf]}],"list-image":[{"list-image":["none",tf]}],"list-style-type":[{list:["none","disc","decimal",tf]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",tu,td]}],"underline-offset":[{"underline-offset":["auto",tu,tf]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tf]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",tf]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...D(),tb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",tv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tx]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:O()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[tu,tf]}],"outline-w":[{outline:[tu,td]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[tu,td]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",tg,tC]}],"shadow-color":[{shadow:[tk]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...A(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":A()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",tg,tf]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",tf]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",tf]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",tf]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[tp,tf]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",tf]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",tf]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",tf]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[tu,td,th]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function t_(...e){return tP(eQ(e))}var tD=u(4867),tO=u.n(tD);function tA(e){return(tA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tR(e){var t=function(e,t){if("object"!=tA(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=tA(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tA(t)?t:t+""}function tL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),n.forEach(function(t){var n,a;n=t,a=r[t],(n=tR(n))in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a})}return e}function tN(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function tV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tR(n.key),n)}}function tF(e,t,r){return t&&tV(e.prototype,t),r&&tV(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function tB(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tj(e,t){if(t&&("object"==tA(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return tB(e)}function tW(e){return(tW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tU(e,t){return(tU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tz(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tU(e,t)}function tH(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function tG(e,t){if(e){if("string"==typeof e)return tH(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tH(e,t):void 0}}function tq(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}(e,t)||tG(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var t$={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,function(e){if(Array.isArray(e))return tH(e)}(t)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||tG(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}},tK=new(function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};tN(this,e),this.init(t,r)}return tF(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||t$,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,r,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,tL({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),tY=function(){function e(){tN(this,e),this.observers={}}return tF(e,[{key:"on",value:function(e,t){var r=this;return e.split(" ").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(r))})}}]),e}();function tZ(){var e,t,r=new Promise(function(r,n){e=r,t=n});return r.resolve=e,r.reject=t,r}function tX(e){return null==e?"":""+e}function tJ(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function a(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(a())return{};var o=n(i.shift());!e[o]&&r&&(e[o]=new r),e=e[o]}return a()?{}:{obj:e,k:n(i.shift())}}function tQ(e,t,r){var n=tJ(e,t,Object);n.obj[n.k]=r}function t0(e,t){var r=tJ(e,t),n=r.obj,a=r.k;if(n)return n[a]}function t1(e,t,r){var n=t0(e,r);return void 0!==n?n:t0(t,r)}function t2(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var t5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function t3(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return t5[e]}):e}var t4=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return tN(this,t),r=tj(this,tW(t).call(this)),tY.call(tB(r)),r.data=e||{},r.options=n,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r}return tz(t,e),tF(t,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=[e,t];return r&&"string"!=typeof r&&(i=i.concat(r)),r&&"string"==typeof r&&(i=i.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(i=e.split(".")),t0(this.data,i)}},{key:"addResource",value:function(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var o=[e,t];r&&(o=o.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(o=e.split("."),n=t,t=o[1]),this.addNamespaces(t),tQ(this.data,o,n),a.silent||this.emit("added",e,t,r,n)}},{key:"addResources",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var a in r)("string"==typeof r[a]||"[object Array]"===Object.prototype.toString.apply(r[a]))&&this.addResource(e,t,a,r[a],{silent:!0});n.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,n,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),n=r,r=t,t=o[1]),this.addNamespaces(t);var s=t0(this.data,o)||{};n?function e(t,r,n){for(var a in r)a in t?"string"==typeof t[a]||t[a]instanceof String||"string"==typeof r[a]||r[a]instanceof String?n&&(t[a]=r[a]):e(t[a],r[a],n):t[a]=r[a];return t}(s,r,a):s=tL({},s,r),tQ(this.data,o,s),i.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?tL({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(tY),t8={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,a){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,r,n,a))}),t}},t6=function(e){function t(e){var r,n,a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return tN(this,t),a=tj(this,tW(t).call(this)),tY.call(tB(a)),r=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n=tB(a),r.forEach(function(t){e[t]&&(n[t]=e[t])}),a.options=i,void 0===a.options.keySeparator&&(a.options.keySeparator="."),a.logger=tK.create("translator"),a}return tz(t,e),tF(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS;if(r&&e.indexOf(r)>-1){var i=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(i[0])>-1)&&(a=i.shift()),e=i.join(n)}return"string"==typeof a&&(a=[a]),{key:e,namespaces:a}}},{key:"translate",value:function(e,t){var r=this;if("object"!==tA(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],t),i=a.key,o=a.namespaces,s=o[o.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase())return u?s+(t.nsSeparator||this.options.nsSeparator)+i:i;var d=this.resolve(e,t),c=d&&d.res,h=d&&d.usedKey||i,p=d&&d.exactUsedKey||i,m=Object.prototype.toString.apply(c),f=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,y="string"!=typeof c&&"boolean"!=typeof c&&"number"!=typeof c;if(g&&c&&y&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(m)&&("string"!=typeof f||"[object Array]"!==m)){if(!t.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,c,t):"key '".concat(i," (").concat(this.language,")' returned an object instead of string.");if(n){var v="[object Array]"===m,b=v?[]:{},w=v?p:h;for(var x in c)if(Object.prototype.hasOwnProperty.call(c,x)){var C="".concat(w).concat(n).concat(x);b[x]=this.translate(C,tL({},t,{joinArrays:!1,ns:o})),b[x]===C&&(b[x]=c[x])}c=b}}else if(g&&"string"==typeof f&&"[object Array]"===m)(c=c.join(f))&&(c=this.extendTranslation(c,e,t));else{var k=!1,M=!1;if(!this.isValidLookup(c)&&void 0!==t.defaultValue){if(k=!0,void 0!==t.count){var S=this.pluralResolver.getSuffix(l,t.count);c=t["defaultValue".concat(S)]}c||(c=t.defaultValue)}this.isValidLookup(c)||(M=!0,c=i);var E=t.defaultValue&&t.defaultValue!==c&&this.options.updateMissing;if(M||k||E){this.logger.log(E?"updateKey":"missingKey",l,s,i,E?t.defaultValue:c);var T=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&I&&I[0])for(var P=0;P<I.length;P++)T.push(I[P]);else"all"===this.options.saveMissingTo?T=this.languageUtils.toResolveHierarchy(t.lng||this.language):T.push(t.lng||this.language);var _=function(e,n){r.options.missingKeyHandler?r.options.missingKeyHandler(e,s,n,E?t.defaultValue:c,E,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,s,n,E?t.defaultValue:c,E,t),r.emit("missingKey",e,s,n,c)};if(this.options.saveMissing){var D=void 0!==t.count&&"string"!=typeof t.count;this.options.saveMissingPlurals&&D?T.forEach(function(e){r.pluralResolver.getPluralFormsOfKey(e,i).forEach(function(t){return _([e],t)})}):_(T,i)}}c=this.extendTranslation(c,e,t,d),M&&c===i&&this.options.appendNamespaceToMissingKey&&(c="".concat(s,":").concat(i)),M&&this.options.parseMissingKeyHandler&&(c=this.options.parseMissingKeyHandler(c))}return c}},{key:"extendTranslation",value:function(e,t,r,n){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(tL({},r,{interpolation:tL({},this.options.interpolation,r.interpolation)}));var i=r.replace&&"string"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(i=tL({},this.options.interpolation.defaultVariables,i)),e=this.interpolator.interpolate(e,i,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return a.translate.apply(a,arguments)},r)),r.interpolation&&this.interpolator.reset()}var o=r.postProcess||this.options.postProcess,s="string"==typeof o?[o]:o;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=t8.handle(s,e,t,this.options&&this.options.postProcessPassResolved?tL({i18nResolved:n},r):r,this)),e}},{key:"resolve",value:function(e){var t,r,n,a,i,o=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!o.isValidLookup(t)){var l=o.extractFromKey(e,s),u=l.key;r=u;var d=l.namespaces;o.options.fallbackNS&&(d=d.concat(o.options.fallbackNS));var c=void 0!==s.count&&"string"!=typeof s.count,h=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,p=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);d.forEach(function(e){o.isValidLookup(t)||(i=e,o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(i)&&o.logger.warn('key "'.concat(r,'" for namespace "').concat(i,"\" won't get resolved as namespace was not yet loaded"),"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"),p.forEach(function(r){if(!o.isValidLookup(t)){a=r;var i,l,d=u,p=[d];for(o.i18nFormat&&o.i18nFormat.addLookupKeys?o.i18nFormat.addLookupKeys(p,u,r,e,s):(c&&(i=o.pluralResolver.getSuffix(r,s.count)),c&&h&&p.push(d+i),h&&p.push(d+="".concat(o.options.contextSeparator).concat(s.context)),c&&p.push(d+=i));l=p.pop();)o.isValidLookup(t)||(n=l,t=o.getResource(r,e,l,s))}}))})}}),{res:t,usedKey:r,exactUsedKey:n,usedLng:a,usedNS:i}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),t}(tY);function t9(e){return e.charAt(0).toUpperCase()+e.slice(1)}var t7=function(){function e(t){tN(this,e),this.options=t,this.whitelist=this.options.whitelist||!1,this.logger=tK.create("languageUtils")}return tF(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=t9(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=t9(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=t9(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitWhitelist)&&(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(e)>-1}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),a=[],i=function(e){e&&(r.isWhitelisted(e)?a.push(e):r.logger.warn("rejecting non-whitelisted language code: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach(function(e){0>a.indexOf(e)&&i(r.formatLanguageCode(e))}),a}}]),e}(),re=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he"],nr:[1,2,20,21],fc:22}],rt={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&e%10!=1))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1===e?0:2===e?1:(e<0||e>10)&&e%10==0?2:3)}},rr=function(){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};tN(this,e),this.languageUtils=t,this.options=n,this.logger=tK.create("pluralResolver"),this.rules=(r={},re.forEach(function(e){e.lngs.forEach(function(t){r[t]={numbers:e.nr,plurals:rt[e.fc]}})}),r)}return tF(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var r=this,n=[],a=this.getRule(e);return a&&a.numbers.forEach(function(a){var i=r.getSuffix(e,a);n.push("".concat(t).concat(i))}),n}},{key:"getSuffix",value:function(e,t){var r=this,n=this.getRule(e);if(n){var a=n.noAbs?n.plurals(t):n.plurals(Math.abs(t)),i=n.numbers[a];this.options.simplifyPluralSuffix&&2===n.numbers.length&&1===n.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return r.options.prepend&&i.toString()?r.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON?o():this.options.simplifyPluralSuffix&&2===n.numbers.length&&1===n.numbers[0]?o():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),rn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tN(this,e),this.logger=tK.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return tF(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:t3,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?t2(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?t2(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?t2(t.nestingPrefix):t.nestingPrefixEscaped||t2("$t("),this.nestingSuffix=t.nestingSuffix?t2(t.nestingSuffix):t.nestingSuffixEscaped||t2(")"),this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,n){var a,i,o,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(0>e.indexOf(s.formatSeparator))return t1(t,l,e);var n=e.split(s.formatSeparator),a=n.shift().trim(),i=n.join(s.formatSeparator).trim();return s.format(t1(t,l,a),i,r)};this.resetRegExp();var c=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler;for(o=0;a=this.regexpUnescape.exec(e);){if(void 0===(i=d(a[1].trim())))if("function"==typeof c){var h=c(e,a,n);i="string"==typeof h?h:""}else this.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(e)),i="";else"string"==typeof i||this.useRawValueToEscape||(i=tX(i));if(e=e.replace(a[0],u(i)),this.regexpUnescape.lastIndex=0,++o>=this.maxReplaces)break}for(o=0;a=this.regexp.exec(e);){if(void 0===(i=d(a[1].trim())))if("function"==typeof c){var p=c(e,a,n);i="string"==typeof p?p:""}else this.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(e)),i="";else"string"==typeof i||this.useRawValueToEscape||(i=tX(i));if(i=u(this.escapeValue?this.escape(i):i),e=e.replace(a[0],i),this.regexp.lastIndex=0,++o>=this.maxReplaces)break}return e}},{key:"nest",value:function(e,t){var r,n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=tL({},a);function o(e,t){if(0>e.indexOf(","))return e;var r=e.split(",");e=r.shift();var n=r.join(",");n=(n=this.interpolate(n,i)).replace(/'/g,'"');try{i=JSON.parse(n),t&&(i=tL({},t,i))}catch(t){this.logger.error("failed parsing options string in nesting for key ".concat(e),t)}return delete i.defaultValue,e}for(i.applyPostProcessor=!1,delete i.defaultValue;r=this.nestingRegexp.exec(e);){if((n=t(o.call(this,r[1].trim(),i),i))&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=tX(n)),n||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),n=""),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}]),e}(),ra=function(e){function t(e,r,n){var a,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return tN(this,t),a=tj(this,tW(t).call(this)),tY.call(tB(a)),a.backend=e,a.store=r,a.services=n,a.languageUtils=n.languageUtils,a.options=i,a.logger=tK.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(n,i.backend,i),a}return tz(t,e),tF(t,[{key:"queueLoad",value:function(e,t,r,n){var a=this,i=[],o=[],s=[],l=[];return e.forEach(function(e){var n=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!r.reload&&a.store.hasResourceBundle(e,t)?a.state[s]=2:a.state[s]<0||(1===a.state[s]?0>o.indexOf(s)&&o.push(s):(a.state[s]=1,n=!1,0>o.indexOf(s)&&o.push(s),0>i.indexOf(s)&&i.push(s),0>l.indexOf(t)&&l.push(t)))}),n||s.push(e)}),(i.length||o.length)&&this.queue.push({pending:o,loaded:{},errors:[],callback:n}),{toLoad:i,pending:o,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,r){var n=tq(e.split("|"),2),a=n[0],i=n[1];t&&this.emit("failedLoading",a,i,t),r&&this.store.addResourceBundle(a,i,r),this.state[e]=t?-1:2;var o={};this.queue.forEach(function(r){n=r.loaded,(l=(s=tJ(n,[a],Object)).obj)[u=s.k]=l[u]||[],l[u].push(i);for(var n,s,l,u,d=r.pending,c=d.indexOf(e);-1!==c;)d.splice(c,1),c=d.indexOf(e);t&&r.errors.push(t),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach(function(e){o[e]||(o[e]=[]),r.loaded[e].length&&r.loaded[e].forEach(function(t){0>o[e].indexOf(t)&&o[e].push(t)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,r){var n=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,o=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[r](e,t,function(s,l){s&&l&&a<5?setTimeout(function(){n.read.call(n,e,t,r,a+1,2*i,o)},i):o(s,l)}):o(null,{})}},{key:"prepareLoading",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,n,a);if(!i.toLoad.length)return i.pending.length||a(),null;i.toLoad.forEach(function(e){r.loadOne(e)})}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=tq(e.split("|"),2),a=n[0],i=n[1];this.read(a,i,"read",null,null,function(n,o){n&&t.logger.warn("".concat(r,"loading namespace ").concat(i," for language ").concat(a," failed"),n),!n&&o&&t.logger.log("".concat(r,"loaded namespace ").concat(i," for language ").concat(a),o),t.loaded(e,n,o)})}},{key:"saveMissing",value:function(e,t,r,n,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(r,'" for namespace "').concat(t,'" as the namespace was not yet loaded'),"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):(this.backend&&this.backend.create&&this.backend.create(e,t,r,n,null,tL({},i,{isUpdate:a})),e&&e[0]&&this.store.addResource(e[0],t,r,n))}}]),t}(tY);function ri(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&0>e.whitelist.indexOf("cimode")&&(e.whitelist=e.whitelist.concat(["cimode"])),e}function ro(){}let rs=new(function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(tN(this,t),e=tj(this,tW(t).call(this)),tY.call(tB(e)),e.options=ri(r),e.services={},e.logger=tK,e.modules={external:[]},n&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,n),tj(e,tB(e));setTimeout(function(){e.init(r,n)},0)}return e}return tz(t,e),tF(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function n(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(r=t,t={}),this.options=tL({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===tA(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===tA(e[2])||"object"===tA(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",maxReplaces:1e3}},this.options,ri(t)),this.format=this.options.interpolation.format,r||(r=ro),!this.options.isClone){this.modules.logger?tK.init(n(this.modules.logger),this.options):tK.init(null,this.options);var a=new t7(this.options);this.store=new t4(this.options.resources,this.options);var i=this.services;i.logger=tK,i.resourceStore=this.store,i.languageUtils=a,i.pluralResolver=new rr(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new rn(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new ra(n(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];e.emit.apply(e,[t].concat(n))}),this.modules.languageDetector&&(i.languageDetector=n(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=n(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new t6(this.services,this.options),this.translator.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];e.emit.apply(e,[t].concat(n))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}["getResource","addResource","addResources","addResourceBundle","removeResourceBundle","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}});var o=tZ(),s=function(){e.changeLanguage(e.options.lng,function(t,n){e.isInitialized=!0,e.logger.log("initialized",e.options),e.emit("initialized",e.options),o.resolve(n),r(t,n)})};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),o}},{key:"loadResources",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ro;if(!this.options.resources||this.options.partialBundledLanguages){if(this.language&&"cimode"===this.language.toLowerCase())return t();var r=[],n=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach(function(e){0>r.indexOf(e)&&r.push(e)})};this.language?n(this.language):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return n(e)}),this.options.preload&&this.options.preload.forEach(function(e){return n(e)}),this.services.backendConnector.load(r,this.options.ns,t)}else t(null)}},{key:"reloadResources",value:function(e,t,r){var n=tZ();return e||(e=this.languages),t||(t=this.options.ns),r||(r=ro),this.services.backendConnector.reload(e,t,function(e){n.resolve(),r(e)}),n}},{key:"use",value:function(e){return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&t8.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var r=this,n=tZ();this.emit("languageChanging",e);var a=function(e,a){r.translator.changeLanguage(a),a&&(r.emit("languageChanged",a),r.logger.log("languageChanged",a)),n.resolve(function(){return r.t.apply(r,arguments)}),t&&t(e,function(){return r.t.apply(r,arguments)})},i=function(e){e&&(r.language=e,r.languages=r.services.languageUtils.toResolveHierarchy(e),r.translator.language||r.translator.changeLanguage(e),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(e)),r.loadResources(function(t){a(t,e)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t){var r=this,n=function e(t,n){var a;if("object"!==tA(n)){for(var i=arguments.length,o=Array(i>2?i-2:0),s=2;s<i;s++)o[s-2]=arguments[s];a=r.options.overloadTranslationOptionHandler([t,n].concat(o))}else a=tL({},n);return a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,r.t(t,a)};return"string"==typeof e?n.lng=e:n.lngs=e,n.ns=t,n}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this;if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],n=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var i=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return -1===n||2===n};return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||i(r,e)&&(!n||i(a,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,n=tZ();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>r.options.ns.indexOf(e)&&r.options.ns.push(e)}),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=tZ();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],a=e.filter(function(e){return 0>n.indexOf(e)});return a.length?(this.options.preload=n.concat(a),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(e,r)}},{key:"cloneInstance",value:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ro,a=tL({},this.options,r,{isClone:!0}),i=new t(a);return["store","services","language"].forEach(function(t){i[t]=e[t]}),i.translator=new t6(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];i.emit.apply(i,[e].concat(r))}),i.init(a,n),i.translator.options=i.options,i}}]),t}(tY));function rl(e,t){let r=e&&tO()(e,["YYYYMMDD","YYYY.MM.DD"],!0),n=t&&tO()(t,["HH","HHmm","HHmmss","HHmmss.SSS"],!0);if(r&&r.isValid()){let e=r.clone();return n&&n.isValid()&&e.set({hour:n.hour(),minute:n.minute(),second:n.second(),millisecond:n.millisecond()}),e.toDate().getTime()}return 0}let ru=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,rd=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return eQ(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;let o=ru(t)||ru(n);return a[e][o]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return eQ(e,o,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...s}[t]):({...i,...s})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)};function rc(){return(rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let rh=rd("inline-flex items-center rounded-xl border px-1 py-0.5 text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary/25 text-primary shadow hover:bg-primary/35",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function rp({className:e,variant:t,...r}){return ed.createElement("div",rc({className:t_(rh({variant:t}),e)},r))}function rm(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function rf(...e){return t=>{let r=!1,n=e.map(e=>{let n=rm(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():rm(e[t],null)}}}}function rg(...e){return ed.useCallback(rf(...e),e)}var ry=u(6870);function rv(e){var t;let r,n=(t=e,(r=ed.forwardRef((e,t)=>{let{children:r,...n}=e;if(ed.isValidElement(r)){var a;let e,i,o=(a=r,(i=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(i=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),s=function(e,t){let r={...t};for(let n in t){let a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...e)=>{let t=i(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...i}:"className"===n&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==ed.Fragment&&(s.ref=t?rf(t,o):o),ed.cloneElement(r,s)}return ed.Children.count(r)>1?ed.Children.only(null):null})).displayName=`${t}.SlotClone`,r),a=ed.forwardRef((e,t)=>{let{children:r,...a}=e,i=ed.Children.toArray(r),o=i.find(rx);if(o){let e=o.props.children,r=i.map(t=>t!==o?t:ed.Children.count(e)>1?ed.Children.only(null):ed.isValidElement(e)?e.props.children:null);return(0,ry.jsx)(n,{...a,ref:t,children:ed.isValidElement(e)?ed.cloneElement(e,void 0,r):null})}return(0,ry.jsx)(n,{...a,ref:t,children:r})});return a.displayName=`${e}.Slot`,a}var rb=rv("Slot"),rw=Symbol("radix.slottable");function rx(e){return ed.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===rw}function rC(){return(rC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let rk=rd("inline-flex items-center justify-center whitespace-nowrap rounded text-base font-normal leading-tight transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary/85 text-primary-foreground hover:bg-primary/100",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-primary/25 bg-background hover:bg-primary/25 text-primary hover:text-primary",secondary:"bg-secondary/85 text-secondary-foreground hover:bg-secondary/100",ghost:"font-normal text-primary hover:bg-primary/25",link:"font-normal text-primary underline-offset-4 hover:underline"},size:{default:"h-7 px-2 py-2",sm:"h-6 rounded px-2",lg:"h-9 rounded px-2",icon:"h-6 w-6"}},defaultVariants:{variant:"default",size:"default"}}),rM=ed.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,dataCY:a,...i},o)=>{let s=a||`${i.name}-btn`;return ed.createElement(n?rb:"button",rC({"data-cy":s,className:t_(rk({variant:t,size:r}),e),ref:o},i))});rM.displayName="Button";var rS=u(1845),rE=u.n(rS);function rT(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}var rI=["color"],rP=(0,ed.forwardRef)(function(e,t){var r=e.color,n=rT(e,rI);return(0,ed.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,ed.createElement)("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),r_=["color"],rD=(0,ed.forwardRef)(function(e,t){var r=e.color,n=rT(e,r_);return(0,ed.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,ed.createElement)("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),rO=["color"],rA=(0,ed.forwardRef)(function(e,t){var r=e.color,n=rT(e,rO);return(0,ed.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,ed.createElement)("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),rR=["color"],rL=(0,ed.forwardRef)(function(e,t){var r=e.color,n=rT(e,rR);return(0,ed.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,ed.createElement)("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),rN=["color"],rV=(0,ed.forwardRef)(function(e,t){var r=e.color,n=rT(e,rN);return(0,ed.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,ed.createElement)("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),rF=["color"],rB=(0,ed.forwardRef)(function(e,t){var r=e.color,n=rT(e,rF);return(0,ed.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,ed.createElement)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),rj=["color"],rW=(0,ed.forwardRef)(function(e,t){var r=e.color,n=rT(e,rj);return(0,ed.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,ed.createElement)("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:void 0===r?"currentColor":r}))}),rU=["color"],rz=(0,ed.forwardRef)(function(e,t){var r=e.color,n=rT(e,rU);return(0,ed.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,ed.createElement)("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),rH=/[\\\/_+.#"@\[\(\{&]/,rG=/[\\\/_+.#"@\[\(\{&]/g,rq=/[\s-]/,r$=/[\s-]/g;function rK(e){return e.toLowerCase().replace(r$," ")}function rY(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function rZ(e,t=[]){let r=[],n=()=>{let t=r.map(e=>ed.createContext(e));return function(r){let n=r?.[e]||t;return ed.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let a=ed.createContext(n),i=r.length;r=[...r,n];let o=t=>{let{scope:r,children:n,...o}=t,s=r?.[e]?.[i]||a,l=ed.useMemo(()=>o,Object.values(o));return(0,ry.jsx)(s.Provider,{value:l,children:n})};return o.displayName=t+"Provider",[o,function(r,o){let s=o?.[e]?.[i]||a,l=ed.useContext(s);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let a=r(e)[`__scope${n}`];return{...t,...a}},{});return ed.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}var rX=globalThis?.document?ed.useLayoutEffect:()=>{},rJ=ec[" useId ".trim().toString()]||(()=>void 0),rQ=0;function r0(e){let[t,r]=ed.useState(rJ());return rX(()=>{e||r(e=>e??String(rQ++))},[e]),e||(t?`radix-${t}`:"")}ec[" useEffectEvent ".trim().toString()],ec[" useInsertionEffect ".trim().toString()];var r1=ec[" useInsertionEffect ".trim().toString()]||rX;function r2({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[a,i,o]=function({defaultProp:e,onChange:t}){let[r,n]=ed.useState(e),a=ed.useRef(r),i=ed.useRef(t);return r1(()=>{i.current=t},[t]),ed.useEffect(()=>{a.current!==r&&(i.current?.(r),a.current=r)},[r,a]),[r,n,i]}({defaultProp:t,onChange:r}),s=void 0!==e,l=s?e:a;{let t=ed.useRef(void 0!==e);ed.useEffect(()=>{let e=t.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,n])}return[l,ed.useCallback(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&o.current?.(r)}else i(t)},[s,e,i,o])]}Symbol("RADIX:SYNC_STATE");var r5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=rv(`Primitive.${t}`),n=ed.forwardRef((e,n)=>{let{asChild:a,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,ry.jsx)(a?r:t,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function r3(e,t){e&&rS.flushSync(()=>e.dispatchEvent(t))}function r4(e){let t=ed.useRef(e);return ed.useEffect(()=>{t.current=e}),ed.useMemo(()=>(...e)=>t.current?.(...e),[])}var r8="dismissableLayer.update",r6=ed.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),r9=ed.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:s,...l}=e,u=ed.useContext(r6),[d,c]=ed.useState(null),h=d?.ownerDocument??globalThis?.document,[,p]=ed.useState({}),m=rg(t,e=>c(e)),f=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=f.indexOf(g),v=d?f.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,w=v>=y,x=function(e,t=globalThis?.document){let r=r4(e),n=ed.useRef(!1),a=ed.useRef(()=>{});return ed.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){ne("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...u.branches].some(e=>e.contains(t));w&&!r&&(a?.(e),o?.(e),e.defaultPrevented||s?.())},h),C=function(e,t=globalThis?.document){let r=r4(e),n=ed.useRef(!1);return ed.useEffect(()=>{let e=e=>{e.target&&!n.current&&ne("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;![...u.branches].some(e=>e.contains(t))&&(i?.(e),o?.(e),e.defaultPrevented||s?.())},h);return!function(e,t=globalThis?.document){let r=r4(e);ed.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{v===u.layers.size-1&&(n?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},h),ed.useEffect(()=>{if(d)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(eyy=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),r7(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=eyy)}},[d,h,r,u]),ed.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),r7())},[d,u]),ed.useEffect(()=>{let e=()=>p({});return document.addEventListener(r8,e),()=>document.removeEventListener(r8,e)},[]),(0,ry.jsx)(r5.div,{...l,ref:m,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:rY(e.onFocusCapture,C.onFocusCapture),onBlurCapture:rY(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:rY(e.onPointerDownCapture,x.onPointerDownCapture)})});function r7(){let e=new CustomEvent(r8);document.dispatchEvent(e)}function ne(e,t,r,{discrete:n}){let a=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?r3(a,i):a.dispatchEvent(i)}r9.displayName="DismissableLayer",ed.forwardRef((e,t)=>{let r=ed.useContext(r6),n=ed.useRef(null),a=rg(t,n);return ed.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,ry.jsx)(r5.div,{...e,ref:a})}).displayName="DismissableLayerBranch";var nt="focusScope.autoFocusOnMount",nr="focusScope.autoFocusOnUnmount",nn={bubbles:!1,cancelable:!0},na=ed.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=e,[s,l]=ed.useState(null),u=r4(a),d=r4(i),c=ed.useRef(null),h=rg(t,e=>l(e)),p=ed.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;ed.useEffect(()=>{if(n){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?c.current=t:ns(c.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||ns(c.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ns(s)});return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,s,p.paused]),ed.useEffect(()=>{if(s){nl.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(nt,nn);s.addEventListener(nt,u),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(ns(n,{select:t}),document.activeElement!==r)return}(ni(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&ns(s))}return()=>{s.removeEventListener(nt,u),setTimeout(()=>{let t=new CustomEvent(nr,nn);s.addEventListener(nr,d),s.dispatchEvent(t),t.defaultPrevented||ns(e??document.body,{select:!0}),s.removeEventListener(nr,d),nl.remove(p)},0)}}},[s,u,d,p]);let m=ed.useCallback(e=>{if(!r&&!n||p.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){var i;let t,n=e.currentTarget,[o,s]=[no(t=ni(i=n),i),no(t.reverse(),i)];o&&s?e.shiftKey||a!==s?e.shiftKey&&a===o&&(e.preventDefault(),r&&ns(s,{select:!0})):(e.preventDefault(),r&&ns(o,{select:!0})):a===n&&e.preventDefault()}},[r,n,p.paused]);return(0,ry.jsx)(r5.div,{tabIndex:-1,...o,ref:h,onKeyDown:m})});function ni(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function no(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function ns(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}na.displayName="FocusScope";var nl=(M=[],{add(e){let t=M[0];e!==t&&t?.pause(),(M=nu(M,e)).unshift(e)},remove(e){M=nu(M,e),M[0]?.resume()}});function nu(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var nd=ed.forwardRef((e,t)=>{let{container:r,...n}=e,[a,i]=ed.useState(!1);rX(()=>i(!0),[]);let o=r||a&&globalThis?.document?.body;return o?rS.createPortal((0,ry.jsx)(r5.div,{...n,ref:t}),o):null});nd.displayName="Portal";var nc=e=>{var t;let r,n,{present:a,children:i}=e,o=function(e){var t,r;let[n,a]=ed.useState(),i=ed.useRef(null),o=ed.useRef(e),s=ed.useRef("none"),[l,u]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},ed.useReducer((e,t)=>r[e][t]??e,t));return ed.useEffect(()=>{let e=nh(i.current);s.current="mounted"===l?e:"none"},[l]),rX(()=>{let t=i.current,r=o.current;if(r!==e){let n=s.current,a=nh(t);e?u("MOUNT"):"none"===a||t?.display==="none"?u("UNMOUNT"):r&&n!==a?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),rX(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,r=r=>{let a=nh(i.current).includes(r.animationName);if(r.target===n&&a&&(u("ANIMATION_END"),!o.current)){let r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},a=e=>{e.target===n&&(s.current=nh(i.current))};return n.addEventListener("animationstart",a),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",a),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:ed.useCallback(e=>{i.current=e?getComputedStyle(e):null,a(e)},[])}}(a),s="function"==typeof i?i({present:o.isPresent}):ed.Children.only(i),l=rg(o.ref,(t=s,(n=(r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof i||o.isPresent?ed.cloneElement(s,{ref:l}):null};function nh(e){return e?.animationName||"none"}nc.displayName="Presence";var np=0;function nm(){ed.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??nf()),document.body.insertAdjacentElement("beforeend",e[1]??nf()),np++,()=>{1===np&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),np--}},[])}function nf(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ng=function(){return(ng=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function ny(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}var nv="right-scroll-bar-position",nb="width-before-scroll-bar";function nw(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var nx="u">typeof window?ed.useLayoutEffect:ed.useEffect,nC=new WeakMap;new WeakMap,new WeakMap;var nk=function(e){var t=e.sideCar,r=ny(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return ed.createElement(n,ng({},r))};nk.isSideCarExport=!0;var nM=(void 0===egI&&(egI={}),(void 0===egP&&(egP=function(e){return e}),eg_=[],egD=!1,egO={read:function(){if(egD)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return eg_.length?eg_[eg_.length-1]:null},useMedium:function(e){var t=egP(e,egD);return eg_.push(t),function(){eg_=eg_.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(egD=!0;eg_.length;){var t=eg_;eg_=[],t.forEach(e)}eg_={push:function(t){return e(t)},filter:function(){return eg_}}},assignMedium:function(e){egD=!0;var t=[];if(eg_.length){var r=eg_;eg_=[],r.forEach(e),t=eg_}var n=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(n)};a(),eg_={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),eg_}}}}).options=ng({async:!0,ssr:!1},egI),egO),nS=function(){},nE=ed.forwardRef(function(e,t){var r,n,a,i,o=ed.useRef(null),s=ed.useState({onScrollCapture:nS,onWheelCapture:nS,onTouchMoveCapture:nS}),l=s[0],u=s[1],d=e.forwardProps,c=e.children,h=e.className,p=e.removeScrollBar,m=e.enabled,f=e.shards,g=e.sideCar,y=e.noRelative,v=e.noIsolation,b=e.inert,w=e.allowPinchZoom,x=e.as,C=e.gapMode,k=ny(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=(r=[o,t],n=function(e){return r.forEach(function(t){return nw(t,e)})},(a=(0,ed.useState)(function(){return{value:null,callback:n,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=n,i=a.facade,nx(function(){var e=nC.get(i);if(e){var t=new Set(e),n=new Set(r),a=i.current;t.forEach(function(e){n.has(e)||nw(e,null)}),n.forEach(function(e){t.has(e)||nw(e,a)})}nC.set(i,r)},[r]),i),S=ng(ng({},k),l);return ed.createElement(ed.Fragment,null,m&&ed.createElement(g,{sideCar:nM,removeScrollBar:p,shards:f,noRelative:y,noIsolation:v,inert:b,setCallbacks:u,allowPinchZoom:!!w,lockRef:o,gapMode:C}),d?ed.cloneElement(ed.Children.only(c),ng(ng({},S),{ref:M})):ed.createElement(void 0===x?"div":x,ng({},S,{className:h,ref:M}),c))});nE.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},nE.classNames={fullWidth:nb,zeroRight:nv};var nT=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=eyv||u.nc;return t&&e.setAttribute("nonce",t),e}())){var n,a;(n=t).styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nI=function(){var e=nT();return function(t,r){ed.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},nP=function(){var e=nI();return function(t){return e(t.styles,t.dynamic),null}},n_={left:0,top:0,right:0,gap:0},nD=function(e){return parseInt(e||"",10)||0},nO=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[nD(r),nD(n),nD(a)]},nA=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return n_;var t=nO(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},nR=nP(),nL="data-scroll-locked",nN=function(e,t,r,n){var a=e.left,i=e.top,o=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body[").concat(nL,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(nv," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(nb," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(nv," .").concat(nv," {\n right: 0 ").concat(n,";\n }\n \n .").concat(nb," .").concat(nb," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(nL,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},nV=function(){var e=parseInt(document.body.getAttribute(nL)||"0",10);return isFinite(e)?e:0},nF=function(){ed.useEffect(function(){return document.body.setAttribute(nL,(nV()+1).toString()),function(){var e=nV()-1;e<=0?document.body.removeAttribute(nL):document.body.setAttribute(nL,e.toString())}},[])},nB=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;nF();var i=ed.useMemo(function(){return nA(a)},[a]);return ed.createElement(nR,{styles:nN(i,!t,a,r?"":"!important")})},nj=!1;if("u">typeof window)try{var nW=Object.defineProperty({},"passive",{get:function(){return nj=!0,!0}});window.addEventListener("test",nW,nW),window.removeEventListener("test",nW,nW)}catch(e){nj=!1}var nU=!!nj&&{passive:!1},nz=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},nH=function(e,t){var r=t.ownerDocument,n=t;do{if("u">typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),nG(e,n)){var a=nq(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},nG=function(e,t){return"v"===e?nz(t,"overflowY"):nz(t,"overflowX")},nq=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},n$=function(e,t,r,n,a){var i,o=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),s=o*n,l=r.target,u=t.contains(l),d=!1,c=s>0,h=0,p=0;do{if(!l)break;var m=nq(e,l),f=m[0],g=m[1]-m[2]-o*f;(f||g)&&nG(e,l)&&(h+=g,p+=f);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return c&&(a&&1>Math.abs(h)||!a&&s>h)?d=!0:!c&&(a&&1>Math.abs(p)||!a&&-s>p)&&(d=!0),d},nK=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nY=function(e){return[e.deltaX,e.deltaY]},nZ=function(e){return e&&"current"in e?e.current:e},nX=0,nJ=[];let nQ=(egA=function(e){var t=ed.useRef([]),r=ed.useRef([0,0]),n=ed.useRef(),a=ed.useState(nX++)[0],i=ed.useState(nP)[0],o=ed.useRef(e);ed.useEffect(function(){o.current=e},[e]),ed.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,a=0,i=t.length;a<i;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(nZ),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=ed.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var a,i=nK(e),s=r.current,l="deltaX"in e?e.deltaX:s[0]-i[0],u="deltaY"in e?e.deltaY:s[1]-i[1],d=e.target,c=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===c&&"range"===d.type)return!1;var h=window.getSelection(),p=h&&h.anchorNode;if(p&&(p===d||p.contains(d)))return!1;var m=nH(c,d);if(!m)return!0;if(m?a=c:(a="v"===c?"h":"v",m=nH(c,d)),!m)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=a),!a)return!0;var f=n.current||a;return n$(f,t,e,"h"===f?l:u,!0)},[]),l=ed.useCallback(function(e){if(nJ.length&&nJ[nJ.length-1]===i){var r="deltaY"in e?nY(e):nK(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var a=(o.current.shards||[]).map(nZ).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?s(e,a[0]):!o.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=ed.useCallback(function(e,r,n,a){var i={name:e,delta:r,target:n,should:a,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=ed.useCallback(function(e){r.current=nK(e),n.current=void 0},[]),c=ed.useCallback(function(t){u(t.type,nY(t),t.target,s(t,e.lockRef.current))},[]),h=ed.useCallback(function(t){u(t.type,nK(t),t.target,s(t,e.lockRef.current))},[]);ed.useEffect(function(){return nJ.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:h}),document.addEventListener("wheel",l,nU),document.addEventListener("touchmove",l,nU),document.addEventListener("touchstart",d,nU),function(){nJ=nJ.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,nU),document.removeEventListener("touchmove",l,nU),document.removeEventListener("touchstart",d,nU)}},[]);var p=e.removeScrollBar,m=e.inert;return ed.createElement(ed.Fragment,null,m?ed.createElement(i,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,p?ed.createElement(nB,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},nM.useMedium(egA),nk);var n0=ed.forwardRef(function(e,t){return ed.createElement(nE,ng({},e,{ref:t,sideCar:nQ}))});n0.classNames=nE.classNames;var n1=new WeakMap,n2=new WeakMap,n5={},n3=0,n4=function(e){return e&&(e.host||n4(e.parentNode))},n8=function(e,t,r,n){var a=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=n4(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});n5[r]||(n5[r]=new WeakMap);var i=n5[r],o=[],s=new Set,l=new Set(a),u=function(e){!e||s.has(e)||(s.add(e),u(e.parentNode))};a.forEach(u);var d=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))d(e);else try{var t=e.getAttribute(n),a=null!==t&&"false"!==t,l=(n1.get(e)||0)+1,u=(i.get(e)||0)+1;n1.set(e,l),i.set(e,u),o.push(e),1===l&&a&&n2.set(e,!0),1===u&&e.setAttribute(r,"true"),a||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return d(t),s.clear(),n3++,function(){o.forEach(function(e){var t=n1.get(e)-1,a=i.get(e)-1;n1.set(e,t),i.set(e,a),t||(n2.has(e)||e.removeAttribute(n),n2.delete(e)),a||e.removeAttribute(r)}),--n3||(n1=new WeakMap,n1=new WeakMap,n2=new WeakMap,n5={})}},n6=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),n8(n,a,r,"aria-hidden")):function(){return null}},n9="Dialog",[n7,ae]=rZ(n9),[at,ar]=n7(n9),an=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:i,modal:o=!0}=e,s=ed.useRef(null),l=ed.useRef(null),[u,d]=r2({prop:n,defaultProp:a??!1,onChange:i,caller:n9});return(0,ry.jsx)(at,{scope:t,triggerRef:s,contentRef:l,contentId:r0(),titleId:r0(),descriptionId:r0(),open:u,onOpenChange:d,onOpenToggle:ed.useCallback(()=>d(e=>!e),[d]),modal:o,children:r})};an.displayName=n9;var aa="DialogTrigger";ed.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=ar(aa,r),i=rg(t,a.triggerRef);return(0,ry.jsx)(r5.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":aM(a.open),...n,ref:i,onClick:rY(e.onClick,a.onOpenToggle)})}).displayName=aa;var ai="DialogPortal",[ao,as]=n7(ai,{forceMount:void 0}),al=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:a}=e,i=ar(ai,t);return(0,ry.jsx)(ao,{scope:t,forceMount:r,children:ed.Children.map(n,e=>(0,ry.jsx)(nc,{present:r||i.open,children:(0,ry.jsx)(nd,{asChild:!0,container:a,children:e})}))})};al.displayName=ai;var au="DialogOverlay",ad=ed.forwardRef((e,t)=>{let r=as(au,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,i=ar(au,e.__scopeDialog);return i.modal?(0,ry.jsx)(nc,{present:n||i.open,children:(0,ry.jsx)(ah,{...a,ref:t})}):null});ad.displayName=au;var ac=rv("DialogOverlay.RemoveScroll"),ah=ed.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=ar(au,r);return(0,ry.jsx)(n0,{as:ac,allowPinchZoom:!0,shards:[a.contentRef],children:(0,ry.jsx)(r5.div,{"data-state":aM(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),ap="DialogContent",am=ed.forwardRef((e,t)=>{let r=as(ap,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,i=ar(ap,e.__scopeDialog);return(0,ry.jsx)(nc,{present:n||i.open,children:i.modal?(0,ry.jsx)(af,{...a,ref:t}):(0,ry.jsx)(ag,{...a,ref:t})})});am.displayName=ap;var af=ed.forwardRef((e,t)=>{let r=ar(ap,e.__scopeDialog),n=ed.useRef(null),a=rg(t,r.contentRef,n);return ed.useEffect(()=>{let e=n.current;if(e)return n6(e)},[]),(0,ry.jsx)(ay,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:rY(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:rY(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:rY(e.onFocusOutside,e=>e.preventDefault())})}),ag=ed.forwardRef((e,t)=>{let r=ar(ap,e.__scopeDialog),n=ed.useRef(!1),a=ed.useRef(!1);return(0,ry.jsx)(ay,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let i=t.target;r.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),ay=ed.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:i,...o}=e,s=ar(ap,r),l=ed.useRef(null),u=rg(t,l);return nm(),(0,ry.jsxs)(ry.Fragment,{children:[(0,ry.jsx)(na,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:i,children:(0,ry.jsx)(r9,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":aM(s.open),...o,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),(0,ry.jsxs)(ry.Fragment,{children:[(0,ry.jsx)(aI,{titleId:s.titleId}),(0,ry.jsx)(aP,{contentRef:l,descriptionId:s.descriptionId})]})]})}),av="DialogTitle",ab=ed.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=ar(av,r);return(0,ry.jsx)(r5.h2,{id:a.titleId,...n,ref:t})});ab.displayName=av;var aw="DialogDescription",ax=ed.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=ar(aw,r);return(0,ry.jsx)(r5.p,{id:a.descriptionId,...n,ref:t})});ax.displayName=aw;var aC="DialogClose",ak=ed.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=ar(aC,r);return(0,ry.jsx)(r5.button,{type:"button",...n,ref:t,onClick:rY(e.onClick,()=>a.onOpenChange(!1))})});function aM(e){return e?"open":"closed"}ak.displayName=aC;var aS="DialogTitleWarning",[aE,aT]=(egR={contentName:ap,titleName:av,docsSlug:"dialog"},x=ed.createContext(egR),(C=e=>{let{children:t,...r}=e,n=ed.useMemo(()=>r,Object.values(r));return(0,ry.jsx)(x.Provider,{value:n,children:t})}).displayName=aS+"Provider",[C,function(e){let t=ed.useContext(x);if(t)return t;if(void 0!==egR)return egR;throw Error(`\`${e}\` must be used within \`${aS}\``)}]),aI=({titleId:e})=>{let t=aT(aS),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
2
 
3
3
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
4
 
@@ -1834,7 +1834,7 @@ fn main(
1834
1834
  flex-direction:column;
1835
1835
  flex:0 1 auto;
1836
1836
  min-width:0;
1837
- `,this.dom.appendChild(this.metricsColumn),this.dom.appendChild(this.bindingsColumn)}isMemoryAvailable(){return void 0!==performance.memory}addPanel(e,t){((e===ey8.RENDER_MODES?this.bindingsColumn:this.metricsColumn)??this.dom).appendChild(t.dom),this.panels.set(e,t)}startLoop(){let e=()=>{this.update(),this.animationFrameId=requestAnimationFrame(e)};this.animationFrameId=requestAnimationFrame(e)}stopLoop(){null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}updateStats(){this.frameCount++;let e=performance.now(),t=e-this.startTime,r=this.panels.get(ey8.MS);if(r&&r.update(t,200),e>=this.lastUpdateTime+1e3){let t=1e3*this.frameCount/(e-this.lastUpdateTime),r=this.panels.get(ey8.FPS);r&&r.update(t,300),this.lastUpdateTime=e,this.frameCount=0,this.updateMemoryPanel(),this.updateRenderModesPanel()}return e}updateRenderModesPanel(){let e=this.panels.get(ey8.RENDER_MODES);if(!(e instanceof ehc))return;let t=[];for(let e of FR())if(e&&!e.hasBeenDestroyed)for(let r of e.getViewports()){let n=r._debug?.renderModes;t.push({renderingEngineId:e.id,viewportId:r.id,viewportType:r.type,bindings:this.getViewportBindingDebugEntries(r,n??{})})}e.setContent(t)}getViewportBindingDebugEntries(e,t){let r=e.getActors?.()??[],n=e.getSourceDataId?.(),a=Object.entries(t);return a.length?a.map(([t,a])=>{var i,o;let s=ehb(e,t,n),l="source"===s?e.getDefaultActor?.():(i=r,o=t,i.find(e=>e.uid===o||e.representationUID===o||e.referencedId===o));return{actorUID:l?.uid,dataId:t,referencedId:l?.referencedId,renderMode:a,role:s,...ehw(l)}}):r.map(t=>{let r=t.representationUID??t.uid??"";return{actorUID:t.uid,dataId:r,referencedId:t.referencedId,renderMode:"-",role:ehb(e,r,n),...ehw(t)}})}updateMemoryPanel(){let e=this.panels.get(ey8.MEMORY);if(!e)return;let t=performance;if(t.memory){let r=t.memory.usedJSHeapSize/1048576,n=t.memory.jsHeapSizeLimit/1048576;e.update(r,n)}}attachDragHandlers(){this.dom?.addEventListener("pointerdown",this.handlePointerDown)}detachDragHandlers(){this.dom?.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}onPointerDown(e){if(!this.dom||0!==e.button)return;this.dragPointerId=e.pointerId;let t=this.dom.getBoundingClientRect();this.dragOffsetX=e.clientX-t.left,this.dragOffsetY=e.clientY-t.top,this.setPosition(t.left,t.top),window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp),e.preventDefault()}onPointerMove(e){this.dragPointerId===e.pointerId&&this.dom&&this.setPosition(e.clientX-this.dragOffsetX,e.clientY-this.dragOffsetY)}onPointerUp(e){if(this.dragPointerId!==e.pointerId||!this.dom)return;this.dragPointerId=null,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp);let t=this.dom.getBoundingClientRect();this.savePosition(t.left,t.top)}setPosition(e,t){if(!this.dom)return;let r=this.clampToViewport(e,t);this.dom.style.left=`${r.left}px`,this.dom.style.top=`${r.top}px`,this.dom.style.right="auto",this.dom.style.bottom="auto"}clampToViewport(e,t){if(!this.dom)return{left:e,top:t};let r=this.dom.offsetWidth,n=this.dom.offsetHeight;return{left:Math.min(Math.max(0,e),Math.max(0,window.innerWidth-r)),top:Math.min(Math.max(0,t),Math.max(0,window.innerHeight-n))}}restorePosition(){let e=this.readSavedPosition();e&&this.setPosition(e.left,e.top)}readSavedPosition(){try{let e=window.localStorage.getItem(ehu);if(!e)return null;let t=JSON.parse(e);if("number"!=typeof t?.left||"number"!=typeof t?.top||!Number.isFinite(t.left)||!Number.isFinite(t.top))return null;return{left:t.left,top:t.top}}catch{return null}}savePosition(e,t){try{window.localStorage.setItem(ehu,JSON.stringify({left:e,top:t}))}catch{}}}function ehb(e,t,r){let n=e.getDisplaySetRole?.(t);return"source"===n||"overlay"===n?n:r&&t===r?"source":"data"}function ehw(e){let t=e?.actor?.getMapper?.()?.getInputData?.();if(!t)return{};try{let e=t.getPointData?.()?.getScalars?.();if(e?.getDataType){let t=e.getNumberOfComponents?.()??1,r=t>1?e.getRange?.(0):e.getRange?.();return{scalarType:e.getDataType(),scalarRange:ehx(r),numberOfComponents:t}}let r=t.getScalarData?.();if(r?.constructor?.name){let e=Number.isFinite(t.minPixelValue)&&Number.isFinite(t.maxPixelValue)?[t.minPixelValue,t.maxPixelValue]:void 0;return{scalarType:r.constructor.name,scalarRange:ehx(e)}}}catch{}return{}}function ehx(e){if(e&&!(e.length<2)&&Number.isFinite(e[0])&&Number.isFinite(e[1]))return[e[0],e[1]]}ehv.instance=null;let ehC=ehv.getInstance();class ehk{constructor(e){throw this._needsRender=new Set,this._animationFrameSet=!1,this._animationFrameHandle=null,this.renderFrameOfReference=e=>{let t=this._getViewportsAsArray().map(t=>{if(t.getFrameOfReferenceUID()===e)return t.id});this.renderViewports(t)},this.id=e||F2(),this.useCPURendering=BI(),(e=>{FO[e.id]=e})(this),Error("@cornerstonejs/core is not initialized, run init() first")}enableElement(e){let t=this._normalizeViewportInputEntry(e);this._throwIfDestroyed();let{element:r,viewportId:n}=t;if(!r)throw Error("No element provided");this.getViewport(n)&&this.disableElement(n);let{type:a}=t;eho(a)?this.addCustomViewport(t):this.enableVTKjsDrivenViewport(t);let i=GK(r),{background:o}=t.defaultOptions;this.fillCanvasWithBackgroundColor(i,o)}disableElement(e){this._throwIfDestroyed();let t=this.getViewport(e);t?(this._resetViewport(t),!eho(t.type)&&this.offscreenMultiRenderWindow&&this.offscreenMultiRenderWindow.removeRenderer(e),this._removeViewport(e),t.isDisabled=!0,this._needsRender.delete(e),this.getViewports().length||this._clearAnimationFrame()):console.warn(`viewport ${e} does not exist`)}disableViewport(e){this.disableElement(e)}setViewports(e){let t=this._normalizeViewportInputEntries(e);this._throwIfDestroyed(),this._reset();let r=[],n=[];t.forEach(e=>{eho(e.type)?n.push(e):r.push(e)}),this.setVtkjsDrivenViewports(r),this.setCustomViewports(n),t.forEach(e=>{let t=GK(e.element),{background:r}=e.defaultOptions;this.fillCanvasWithBackgroundColor(t,r)})}resize(e=!0,t=!0){this._throwIfDestroyed();let r=this._getViewportsAsArray(),n=[],a=[];r.forEach(e=>{ehs(e)?a.push(e):n.push(e)}),n.length&&this._resizeVTKViewports(n,t,e),a.length&&this._resizeUsingCustomResizeHandler(a,t,e)}getViewport(e){return this._viewports?.get(e)}getViewports(){return this._throwIfDestroyed(),this._getViewportsAsArray()}render(){let e=this.getViewports().map(e=>e.id);this._setViewportsToBeRenderedNextFrame(e)}renderViewports(e){this._setViewportsToBeRenderedNextFrame(e)}renderViewport(e){this._setViewportsToBeRenderedNextFrame([e])}destroy(){let e;if(this.hasBeenDestroyed)return;ehC.cleanup();let t=this._getViewportsAsArray();this._reset(),this.offscreenMultiRenderWindow&&(t.forEach(e=>{this.offscreenMultiRenderWindow&&!ehs(e)&&this.offscreenMultiRenderWindow.getRenderer(e.id)&&this.offscreenMultiRenderWindow.removeRenderer(e.id)}),this.offscreenMultiRenderWindow.delete(),delete this.offscreenMultiRenderWindow),e=this.id,delete FO[e],this.hasBeenDestroyed=!0}fillCanvasWithBackgroundColor(e,t){let r=e.getContext("2d");r.fillStyle=t?Array.isArray(t)?`rgb(${t.map(e=>Math.round(255*e)).join(",")})`:t:"black",r.fillRect(0,0,e.width,e.height)}_normalizeViewportInputEntry(e){let t=e.type,{type:r}=e,{defaultOptions:n}=e;if(BP()){let e=ehk.NEXT_TYPE_REMAP[r];e&&(r=e)}let a=n;return a&&0!==Object.keys(a).length||(a={background:[0,0,0],orientation:null,displayArea:null},t===Nq.ORTHOGRAPHIC&&(a={...a,orientation:NQ.AXIAL})),{...e,requestedType:t!==r||BP()?t:void 0,type:r,defaultOptions:a}}_normalizeViewportInputEntries(e){let t=[];return e.forEach(e=>{t.push(this._normalizeViewportInputEntry(e))}),t}_resizeUsingCustomResizeHandler(e,t=!0,r=!0){e.forEach(e=>{e.resizeForRenderingEngine({keepCamera:t})}),r&&this.render()}_removeViewport(e){this.getViewport(e)?this._viewports.delete(e):console.warn(`viewport ${e} does not exist`)}addCustomViewport(e){let{element:t,viewportId:r,type:n,defaultOptions:a}=e;t.tabIndex=-1;let i=GK(t),{clientWidth:o,clientHeight:s}=i;(i.width!==o||i.height!==s)&&(i.width=o,i.height=s);let l={id:r,renderingEngineId:this.id,element:t,type:n,canvas:i,sx:0,sy:0,sWidth:o,sHeight:s,defaultOptions:a||{}},u=new(ehi(e))(l);u.requestedType=n,this._viewports.set(r,u);let d={element:t,viewportId:r,renderingEngineId:this.id};Bh(Bc,NH.ELEMENT_ENABLED,d)}getRenderer(e){return this.offscreenMultiRenderWindow.getRenderer(e)}getOffscreenMultiRenderWindow(e){if(!this.offscreenMultiRenderWindow)throw Error("Offscreen multi render window is not available.");return this.offscreenMultiRenderWindow}setCustomViewports(e){e.forEach(e=>{this.addCustomViewport(e)})}_getViewportsAsArray(){return Array.from(this._viewports.values())}_setViewportsToBeRenderedNextFrame(e){e.forEach(e=>{this._needsRender.add(e);let t=this._viewports.get(e);t&&(t.viewportStatus=Fw.NEEDS_RENDER)}),this._render()}_render(){this._needsRender.size>0&&!this._animationFrameSet&&(this._animationFrameHandle=window.requestAnimationFrame(this._renderFlaggedViewports),this._animationFrameSet=!0)}_resetViewport(e){let t=this.id,{element:r,canvas:n,id:a}=e;e.removeWidgets(),Bh(Bc,NH.ELEMENT_DISABLED,{element:r,viewportId:a,renderingEngineId:t}),e.destroy?.(),r.removeAttribute("data-viewport-uid"),r.removeAttribute("data-rendering-engine-uid"),n.getContext("2d").clearRect(0,0,n.width,n.height)}_clearAnimationFrame(){window.cancelAnimationFrame(this._animationFrameHandle),this._needsRender.clear(),this._animationFrameSet=!1,this._animationFrameHandle=null}_reset(){this._getViewportsAsArray().forEach(e=>{this._resetViewport(e)}),this._clearAnimationFrame(),this._viewports=new Map}_throwIfDestroyed(){if(this.hasBeenDestroyed)throw Error("this.destroy() has been manually called to free up memory, can not longer use this instance. Instead make a new one.")}}ehk.NEXT_TYPE_REMAP={[Nq.STACK]:Nq.PLANAR_NEXT,[Nq.ORTHOGRAPHIC]:Nq.PLANAR_NEXT,[Nq.VIDEO]:Nq.VIDEO_NEXT,[Nq.WHOLE_SLIDE]:Nq.WHOLE_SLIDE_NEXT,[Nq.ECG]:Nq.ECG_NEXT,[Nq.VOLUME_3D]:Nq.VOLUME_3D_NEXT},(eyh=ey6||(ey6={}))[eyh.None=0]="None",eyh[eyh.Capture=1]="Capture",eyh[eyh.Bubble=2]="Bubble",Symbol("LastRuntimeId");let ehM=VG;function ehS(e){return Array.isArray(e)?e:[e]}new class{constructor(e="Tools",t=50){this.position=-1,this.redoAvailable=0,this.undoAvailable=0,this.ring=[],this.isRecordingGrouped=!1,this.label=e,this._size=t}get size(){return this._size}set size(e){this.ring=Array(e),this._size=e,this.position=-1,this.redoAvailable=0,this.undoAvailable=0}get canUndo(){return this.undoAvailable>0}get canRedo(){return this.redoAvailable>0}undo(e=1){for(;e>0&&this.undoAvailable>0;){for(let e of ehS(this.ring[this.position]).reverse())e.restoreMemo(!0),this.dispatchHistoryEvent({item:e,isUndo:!0});e--,this.redoAvailable++,this.undoAvailable--,this.position=(this.position-1+this.size)%this.size}}undoIf(e){return!!(this.undoAvailable>0&&e(this.ring[this.position]))&&(this.undo(),!0)}dispatchHistoryEvent({item:e,isUndo:t}){e.id&&Bc.dispatchEvent(new CustomEvent(t?"CORNERSTONE_TOOLS_HISTORY_UNDO":"CORNERSTONE_TOOLS_HISTORY_REDO",{detail:{isUndo:t,id:e.id,operationType:e.operationType||"annotation",memo:e}}))}redo(e=1){for(;e>0&&this.redoAvailable>0;){let t=(this.position+1)%this.size;for(let e of ehS(this.ring[t]).reverse())e.restoreMemo(!1),this.dispatchHistoryEvent({item:e,isUndo:!1});e--,this.position=t,this.undoAvailable++,this.redoAvailable--}}initializeGroupItem(){this.redoAvailable=0,this.undoAvailable<this._size&&this.undoAvailable++,this.position=(this.position+1)%this._size,this.ring[this.position]=[]}startGroupRecording(){this.isRecordingGrouped=!0,this.initializeGroupItem()}rollbackUnusedGroupItem(){this.ring[this.position]=void 0,this.position=(this.position-1)%this._size,this.undoAvailable--}endGroupRecording(){this.isRecordingGrouped=!1;let e=this.ring[this.position];Array.isArray(e)&&0===e.length&&this.rollbackUnusedGroupItem()}pushGrouped(e){let t=this.ring[this.position];if(Array.isArray(t))return t.push(e),e;throw Error("Last item should be an array for grouped memos.")}push(e){if(!e)return;let t=e.restoreMemo?e:e.createMemo?.();if(t)return this.isRecordingGrouped?this.pushGrouped(t):(this.redoAvailable=0,this.undoAvailable<this._size&&this.undoAvailable++,this.position=(this.position+1)%this._size,this.ring[this.position]=t,t)}};let ehE={},ehT={add:(e,t)=>{let[r,n]=e,a=`${r}_${n}`;ehE[a]||(ehE[a]={}),ehE[a]=t},get:(e,t,r)=>{if("spatialRegistrationModule"!==e)return;let n=`${t}_${r}`;if(ehE[n])return ehE[n];let a=`${r}_${t}`;if(ehE[a])return Lv.mat4.invert(Lv.mat4.create(),ehE[a])}};HR(ehT.get.bind(ehT));let{Cc:ehI,VD:ehP,lJ:eh_}=Z,ehD=new F5("imageRetrievalPool");ehD.setMaxSimultaneousRequests(NG.Interaction,200),ehD.setMaxSimultaneousRequests(NG.Thumbnail,200),ehD.setMaxSimultaneousRequests(NG.Prefetch,200),ehD.grabDelay=0;let ehO=Symbol("DefaultSettings"),ehA=Symbol("RuntimeSettings"),ehR=Symbol("ObjectSettingsMap"),ehL=Symbol("Dictionary");class ehN{constructor(e){const t=Object.create(e instanceof ehN&&ehL in e?e[ehL]:null);Object.seal(Object.defineProperty(this,ehL,{value:t}))}set(e,t){return ehF(this[ehL],e,t,null)}get(e){var t;return t=this[ehL],t[e]}unset(e){return function(e,t){if(t.endsWith(".")){let r=0,n=t.slice(0,-1),a=0===n.length;for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(a||i.startsWith(t)||i===n)&&(delete e[i],++r);return r>0}return delete e[t]}(this[ehL],e+"")}forEach(e){ehV(this[ehL],e)}extend(){return new ehN(this)}import(e){ehB(e)&&Object.keys(e).forEach(t=>{ehF(this[ehL],t,e[t],null)})}dump(){let e={};return ehV(this[ehL],(t,r)=>{void 0!==r&&function e(t,r,n){let a=r.indexOf(".");if(a>=0){let i=r.slice(0,a),o=t[i];if("object"!=typeof o||null===o){let e=o;o={},void 0!==e&&(o[""]=e),t[i]=o}e(o,r.slice(a+1,r.length),n)}else t[r]=n}(e,t,r)}),e}static assert(e){return e instanceof ehN?e:ehN.getRuntimeSettings()}static getDefaultSettings(e=null){let t=ehN[ehO];if(t instanceof ehN||(t=new ehN,ehN[ehO]=t),e){let r={};return t.forEach(n=>{n.startsWith(e)&&(r[n.split(`${e}.`)[1]]=t.get(n))}),r}return t}static getRuntimeSettings(){let e=ehN[ehA];return e instanceof ehN||(e=new ehN(ehN.getDefaultSettings()),ehN[ehA]=e),e}static getObjectSettings(e,t){let r=null;if(e instanceof ehN)r=e;else if("object"==typeof e&&null!==e){let n=ehN[ehR];n instanceof WeakMap||(n=new WeakMap,ehN[ehR]=n),(r=n.get(e))instanceof ehN||(r=new ehN(ehN.assert(ehN.getObjectSettings(t))),n.set(e,r))}return r}static extendRuntimeSettings(){return ehN.getRuntimeSettings().extend()}}function ehV(e,t){for(let r in e)t(r,e[r])}function ehF(e,t,r,n){if(function(e){let t,r,n;if("string"!=typeof e||(t=e.length-1)<0)return!1;for(n=-1;(r=e.indexOf(".",n+1))>=0;){if(r-n<2||r===t)return!1;n=r}return!0}(t)){if(ehB(r)){let i;var a=n instanceof WeakSet?n:new WeakSet;if(a.has(r))return ehF(e,t,null,a);for(let n in a.add(r),i=0,r)Object.prototype.hasOwnProperty.call(r,n)&&!ehF(e,0===n.length?t:`${t}.${n}`,r[n],a)&&++i;return a.delete(r),0===i}return e[t]=r,!0}return!1}function ehB(e){if("object"==typeof e&&null!==e){let t=Object.getPrototypeOf(e);if(t===Object.prototype||null===t)return!0}return!1}function ehj(e,t,r){let{PaletteColorLookupTableUID:n}=e;if(void 0!==e[t]||void 0!==n)return function(e,t){let r=t[0]||65536,n=t[2];if(!e)return;let a=e=>{let t=e.buffer||e,a=t.byteLength===2*r||n>8?new Uint16Array(t):new Uint8Array(t),i=[];for(let e=0;e<r;e++)i[e]=a[e];return i};if(e.palette)return e.palette;if(e.InlineBinary)try{let t=Uint8Array.from(atob(e.InlineBinary),e=>e.charCodeAt(0));return e.palette=a(t)}catch(t){console.log("Couldn't decode",e.InlineBinary,t);return}let i=Array.isArray(e)?e[0]:e;return i instanceof ArrayBuffer?e.palette=a(i):e.retrieveBulkData?e.retrieveBulkData().then(t=>e.palette=a(t)):void console.error(`No data found for ${e} palette`)}(e[t],e[r])}function ehW(e,t,r){if(e[r])return e[r];let n=Object.create(e);return Object.defineProperty(e,r,{value:n,writable:!1,enumerable:!1}),t&&[...t?Object.values(t).filter(Boolean).map(e=>e[0]).filter(e=>"object"==typeof e):[]].forEach(e=>{e.SOPInstanceUID||Object.entries(e).forEach(([e,t])=>{n[e]=t})}),n}ehN.getDefaultSettings().set("useCursors",!0);let{ZX:ehU,Cc:ehz}=et,{nw:ehH}=Z,ehG=new class{constructor(){this.imageURIToUIDs=new Map,this.customMetadata=new Map}addImageIdToUIDs(e,t){if(!e)throw Error("MetadataProvider::Empty imageId");let r=Lw(e);this.imageURIToUIDs.set(r,t)}addCustomMetadata(e,t,r){let n=Lw(e);this.customMetadata.has(t)||this.customMetadata.set(t,{}),this.customMetadata.get(t)[n]=r}_getInstance(e){if(!e)throw Error("MetadataProvider::Empty imageId");let t=this.getUIDsFromImageID(e);if(!t)return;let{StudyInstanceUID:r,SeriesInstanceUID:n,SOPInstanceUID:a,frameNumber:i}=t,o=RV.getInstance(r,n,a);if(!o)return;let s=i&&((e,t)=>{let{PerFrameFunctionalGroupsSequence:r,SharedFunctionalGroupsSequence:n,NumberOfFrames:a,ImageType:i}=t;if(a<2)return t;t.ImageType=Array.isArray(i)&&i||"string"==typeof i&&i.split("\\")||i;let o=Number.parseInt(e||1),s=t.DetectorInformationSequence&&(!t.ImagePositionPatient||!t.ImageOrientationPatient);if(r&&n||s||a>1){!t.ImageOrientationPatient&&t.DetectorInformationSequence&&(t.ImageOrientationPatient=t.DetectorInformationSequence[0].ImageOrientationPatient);let e=t.ImagePositionPatient;if(!t.ImagePositionPatient&&t.DetectorInformationSequence){let r=t.DetectorInformationSequence[0].ImagePositionPatient,n=t.ImageOrientationPatient;r=r?.map(e=>Number(e)),n=n?.map(e=>Number(e));let a=Number(t.SpacingBetweenSlices);if(n&&a){let t=Lv.vec3.fromValues(n[0],n[1],n[2]),i=Lv.vec3.fromValues(n[3],n[4],n[5]),s=Lv.vec3.cross(Lv.vec3.create(),t,i),l=Lv.vec3.scaleAndAdd(Lv.vec3.create(),r,s,a*(o-1));e=[l[0],l[1],l[2]]}}t._parentInstance||Object.defineProperty(t,"_parentInstance",{value:{...t},enumerable:!1,writable:!1,configurable:!1});let a=ehW(t._parentInstance,n?.[0],"_shared"),i=ehW(a,r?.[o-1],o);return i.ImagePositionPatient=e??i.ImagePositionPatient??[0,0,o],Object.defineProperty(i,"frameNumber",{value:o,writable:!0,enumerable:!1,configurable:!0}),i}if(t.GridFrameOffsetVector){t._parentInstance||Object.defineProperty(t,"_parentInstance",{value:{...t},enumerable:!1,writable:!1,configurable:!1});let e=ehW(t._parentInstance,n?.[0],"_shared"),a=ehW(e,r?.[o-1],o),i=a.ImagePositionPatient?.map(Number),s=a.ImageOrientationPatient?.map(Number),l=Number(t.GridFrameOffsetVector[o-1]);if(i&&s&&!Number.isNaN(l)){let e=Lv.vec3.fromValues(s[0],s[1],s[2]),t=Lv.vec3.fromValues(s[3],s[4],s[5]),r=Lv.vec3.cross(Lv.vec3.create(),e,t),n=Lv.vec3.scaleAndAdd(Lv.vec3.create(),Lv.vec3.fromValues(...i),r,l);a.ImagePositionPatient=[n[0],n[1],n[2]]}return Object.defineProperty(a,"frameNumber",{value:o,writable:!0,enumerable:!1,configurable:!0}),a}return t})(i,o)||o;return s&&Object.defineProperty(s,"imageId",{value:e,writable:!0,enumerable:!1,configurable:!0}),s}get(e,t,r={fallback:!1}){if(Array.isArray(t))return;let n=this._getInstance(t);if(e===ehK)return n;if(this.customMetadata.has(e)){let r=this.customMetadata.get(e),n=Lw(t);if(r[n])return r[n]}return this.getTagFromInstance(e,n,r)}getTag(e,t,r){return this.get(e,t,r)}getInstance(e){return this.get(ehK,e)}getTagFromInstance(e,t,r={fallback:!1}){if(t)return t[e]?t[e]:this._getCornerstoneDICOMImageLoaderTag(e,t)}addHandler(e,t){eh$[e]=t}_getCornerstoneDICOMImageLoaderTag(e,t){let r=eh$[e]?.(t);if(r)return r;switch(e){case ehq.GENERAL_SERIES_MODULE:r={modality:t.Modality,seriesInstanceUID:t.SeriesInstanceUID,seriesNumber:Ly(t.SeriesNumber),studyInstanceUID:t.StudyInstanceUID,seriesDescription:t.SeriesDescription,seriesDate:t.SeriesDate,seriesTime:t.SeriesTime};break;case ehq.PATIENT_STUDY_MODULE:r={patientAge:t.PatientAge,patientSize:t.PatientSize,patientWeight:t.PatientWeight};break;case ehq.PATIENT_DEMOGRAPHIC_MODULE:r={patientSex:t.PatientSex};break;case ehq.IMAGE_PIXEL_MODULE:r={samplesPerPixel:Ly(t.SamplesPerPixel),photometricInterpretation:t.PhotometricInterpretation,rows:Ly(t.Rows),columns:Ly(t.Columns),bitsAllocated:Ly(t.BitsAllocated),bitsStored:Ly(t.BitsStored),highBit:Ly(t.HighBit),pixelRepresentation:Ly(t.PixelRepresentation),planarConfiguration:Ly(t.PlanarConfiguration),pixelAspectRatio:Ly(t.PixelAspectRatio),smallestPixelValue:Ly(t.SmallestPixelValue),largestPixelValue:Ly(t.LargestPixelValue),redPaletteColorLookupTableDescriptor:Ly(t.RedPaletteColorLookupTableDescriptor),greenPaletteColorLookupTableDescriptor:Ly(t.GreenPaletteColorLookupTableDescriptor),bluePaletteColorLookupTableDescriptor:Ly(t.BluePaletteColorLookupTableDescriptor),redPaletteColorLookupTableData:ehj(t,"RedPaletteColorLookupTableData","RedPaletteColorLookupTableDescriptor"),greenPaletteColorLookupTableData:ehj(t,"GreenPaletteColorLookupTableData","GreenPaletteColorLookupTableDescriptor"),bluePaletteColorLookupTableData:ehj(t,"BluePaletteColorLookupTableData","BluePaletteColorLookupTableDescriptor")};break;case ehq.VOI_LUT_MODULE:let{WindowCenter:n,WindowWidth:a,VOILUTFunction:i}=t;if(null==n||null==a)return;let o=Array.isArray(n)?n:[n],s=Array.isArray(a)?a:[a];r={windowCenter:Ly(o),windowWidth:Ly(s),voiLUTFunction:i};break;case ehq.MODALITY_LUT_MODULE:let{RescaleIntercept:l,RescaleSlope:u}=t;if(null==l||null==u)return;r={rescaleIntercept:Ly(t.RescaleIntercept),rescaleSlope:Ly(t.RescaleSlope),rescaleType:t.RescaleType};break;case ehq.SOP_COMMON_MODULE:r={sopClassUID:t.SOPClassUID,sopInstanceUID:t.SOPInstanceUID};break;case ehq.PET_IMAGE_MODULE:r={frameReferenceTime:t.FrameReferenceTime,actualFrameDuration:t.ActualFrameDuration};break;case ehq.PET_ISOTOPE_MODULE:let{RadiopharmaceuticalInformationSequence:d}=t;if(d){let{RadiopharmaceuticalStartTime:e,RadionuclideTotalDose:t,RadionuclideHalfLife:n}=Array.isArray(d)?d[0]:d;r={radiopharmaceuticalInfo:{radiopharmaceuticalStartTime:Nz().parseTM(e),radionuclideTotalDose:t,radionuclideHalfLife:n}}}break;case ehq.OVERLAY_PLANE_MODULE:let c=[];for(let e=0;e<=30;e+=2){let r=`60${e.toString(16)}`;3===r.length&&(r=`600${e.toString(16)}`);let n=t[`${r}3000`];if(!n)continue;let a=`${r}0010`,i=`${r}0011`,o=`${r}0040`,s=`${r}0050`,l=`${r}0022`,u=`${r}1500`,d=`${r}1301`,h=`${r}1302`,p=`${r}1303`,m=t[s],f=0;f=t[a]instanceof Array?new Uint16Array(t[a][0])[0]:t[a];let g=0;g=t[i]instanceof Array?new Uint16Array(t[i][0])[0]:t[i];let y=0,v=0;if(1===m.length){let e=new Int16Array(m[0]);y=e[0],v=e[1]}else y=m[0],v=m[1];let b={rows:f,columns:g,type:t[o],x:y,y:v,pixelData:n,description:t[l],label:t[u],roiArea:t[d],roiMean:t[h],roiStandardDeviation:t[p]};c.push(b)}r={overlays:c};break;case ehq.PATIENT_MODULE:r={patientName:t.PatientName,patientId:t.PatientID,patientSex:t.PatientSex,patientBirthDate:t.PatientBirthDate,issuerOfPatientId:t.IssuerOfPatientID,otherPatientIDsSequence:t.OtherPatientIDsSequence};break;case ehq.GENERAL_IMAGE_MODULE:r={sopInstanceUID:t.SOPInstanceUID,instanceNumber:Ly(t.InstanceNumber),lossyImageCompression:t.LossyImageCompression,lossyImageCompressionRatio:t.LossyImageCompressionRatio,lossyImageCompressionMethod:t.LossyImageCompressionMethod};break;case ehq.GENERAL_STUDY_MODULE:r={studyDescription:t.StudyDescription,studyInstanceUID:t.StudyInstanceUID,studyDate:t.StudyDate,studyTime:t.StudyTime,accessionNumber:t.AccessionNumber,studyId:t.StudyID};break;case ehq.CINE_MODULE:r={frameTime:t.FrameTime,numberOfFrames:t.NumberOfFrames?Number(t.NumberOfFrames):1};break;case ehq.PET_SERIES_MODULE:r={correctedImage:t.CorrectedImage,units:t.Units,decayCorrection:t.DecayCorrection};break;case ehq.CALIBRATION_MODULE:r={sequenceOfUltrasoundRegions:t.SequenceOfUltrasoundRegions?.map(e=>({regionSpatialFormat:e.RegionSpatialFormat,regionDataType:e.RegionDataType,regionFlags:e.RegionFlags,regionLocationMinX0:e.RegionLocationMinX0,regionLocationMinY0:e.RegionLocationMinY0,regionLocationMaxX1:e.RegionLocationMaxX1,regionLocationMaxY1:e.RegionLocationMaxY1,referencePixelX0:e.ReferencePixelX0,referencePixelY0:e.ReferencePixelY0,referencePixelPhysicalValueX:e.ReferencePixelPhysicalValueX,referencePixelPhysicalValueY:e.ReferencePixelPhysicalValueY,physicalUnitsXDirection:e.PhysicalUnitsXDirection,physicalUnitsYDirection:e.PhysicalUnitsYDirection,physicalDeltaX:e.PhysicalDeltaX,physicalDeltaY:e.PhysicalDeltaY}))};break;case"temporalPositionIdentifier":r={temporalPositionIdentifier:t.TemporalPositionIdentifier};break;default:return}return r}getUIDsFromImageID(e){if(e.startsWith("wadors:")){let t=e.split("/studies/")[1].split("/");return{StudyInstanceUID:t[0],SeriesInstanceUID:t[2],SOPInstanceUID:t[4],frameNumber:t[6]}}if(e.includes("?requestType=WADO")){let t=Lu.parse(e),r=t.frameNumber||t.frame;return{StudyInstanceUID:t.studyUID,SeriesInstanceUID:t.seriesUID,SOPInstanceUID:t.objectUID,frameNumber:r}}let t=Lw(e),r=this.imageURIToUIDs.get(t);if(!r)return;let n=ehH(e)?.framesString||r.frameNumber||"1";return{...r,frameNumber:n}}};RV.setMetaDataProvider(ehG);let ehq={GENERAL_SERIES_MODULE:"generalSeriesModule",PATIENT_STUDY_MODULE:"patientStudyModule",IMAGE_PIXEL_MODULE:"imagePixelModule",VOI_LUT_MODULE:"voiLutModule",MODALITY_LUT_MODULE:"modalityLutModule",SOP_COMMON_MODULE:"sopCommonModule",PET_IMAGE_MODULE:"petImageModule",PET_ISOTOPE_MODULE:"petIsotopeModule",PET_SERIES_MODULE:"petSeriesModule",OVERLAY_PLANE_MODULE:"overlayPlaneModule",PATIENT_DEMOGRAPHIC_MODULE:"patientDemographicModule",PATIENT_MODULE:"patientModule",GENERAL_IMAGE_MODULE:"generalImageModule",GENERAL_STUDY_MODULE:"generalStudyModule",CINE_MODULE:"cineModule",CALIBRATION_MODULE:"calibrationModule"},eh$={frameModule:e=>{let{frameNumber:t=1,numberOfFrames:r=1,SOPClassUID:n,SOPInstanceUID:a,SeriesInstanceUID:i,StudyInstanceUID:o}=e;return{frameNumber:t,numberOfFrames:r,sopClassUID:n,sopInstanceUID:a,seriesInstanceUID:i,studyInstanceUID:o}},imagePlaneModule:e=>{let t,r,n,a,i,{ImageOrientationPatient:o,ImagePositionPatient:s}=e,{PixelSpacing:l,type:u}=ehz(e)||{},d=!1,c=!1,h=!1;l?([t,r]=l,ehM.get("calibratedPixelSpacing",e.imageId)||ehU.add(e.imageId,{rowPixelSpacing:parseFloat(l[0]),columnPixelSpacing:parseFloat(l[1]),type:u})):(t=r=1,d=!0),o?(n=Ly(o.slice(0,3)),a=Ly(o.slice(3,6)),i=Ly(o)):(n=[1,0,0],a=[0,1,0],i=[1,0,0,0,1,0],d=!0,c=!0,h=!0);let p=Ly(s)||[0,0,0];return s||(d=!0),{frameOfReferenceUID:e.FrameOfReferenceUID,rows:Ly(e.Rows),columns:Ly(e.Columns),spacingBetweenSlices:Ly(e.SpacingBetweenSlices),imageOrientationPatient:i,rowCosines:n,isDefaultValueSetForRowCosine:c,columnCosines:a,isDefaultValueSetForColumnCosine:h,imagePositionPatient:p,sliceThickness:Ly(e.SliceThickness),sliceLocation:Ly(e.SliceLocation),pixelSpacing:Ly(l||1),rowPixelSpacing:t?Ly(t):null,columnPixelSpacing:r?Ly(r):null,usingDefaultValues:d}}},ehK="instance";u(6642),{...Lh,defaults:{hotkeyBindings:NB}};let ehY={activeViewportId:null,layout:{numRows:0,numCols:0,layoutType:"grid"},isHangingProtocolLayout:!1,viewports:new Map(Object.entries({default:{viewportId:"default",displaySetInstanceUIDs:[],isReady:!1,viewportOptions:{viewportId:"default"},displaySetSelectors:[],displaySetOptions:[{}],x:0,y:0,width:100,height:100,viewportLabel:null}}))};function ehZ(){return(ehZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}ei().any,ei().instanceOf(R6).isRequired,(0,ed.createContext)(null).Consumer;let ehX=(e,t,r)=>{if(!e)return;let n=e.getBoundingClientRect();n.bottom>window.innerHeight&&(t.y=t.y-n.height),n.right>window.innerWidth&&(t.x=t.x-n.width),r(t)};function ehJ(e){var t=null;return function(){return null==t&&(t=e()),t}}(0,ed.forwardRef)(({id:e,isOpen:t,title:r,content:n,contentProps:a,isDraggable:i,shouldCloseOnEsc:o=!1,shouldCloseOnOverlayClick:s=!1,showOverlay:l=!0,defaultPosition:u,onClose:d,unstyled:c,containerClassName:h},p)=>{let[m,f]=(0,ed.useState)(u),[g,y]=(0,ed.useState)(null);(0,ed.useImperativeHandle)(p,()=>({updatePosition:e=>{ehX(g,e,f)}}),[]),(0,ed.useEffect)(()=>{f(u)},[u]);let[v,b]=(0,ed.useState)(u?"invisible":"visible"),w=(0,ed.useCallback)(e=>{e&&(y(e),ehX(e,u,f),b("visible"))},[u]);return eh().createElement(ie,{open:t,modal:!1,onOpenChange:t=>{t||d(e)},isDraggable:i,shouldCloseOnEsc:o,shouldCloseOnOverlayClick:s,showOverlay:l},eh().createElement(ir,{ref:w,className:t_(c?"p-0":"",h,v),unstyled:c,style:{...m?{position:"fixed",left:`${m.x}px`,top:`${m.y}px`,transform:"translate(0, 0)",margin:0,animation:"none",transition:"none"}:{}}},!c&&eh().createElement(ia,null,r&&eh().createElement(ii,null,r)),eh().createElement(n,ehZ({},a,{hide:()=>d(e)}))))}).displayName="ManagedDialog",ei().oneOfType([ei().arrayOf(ei().node),ei().node]).isRequired,ei().shape({setServiceImplementation:ei().func}),(0,ed.createContext)({user:null,enabled:!1}).Consumer,ei().any,ei().shape({setServiceImplementation:ei().func}).isRequired;var ehQ=function(){var e;function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.entered=[],this.isNodeInDocument=e}return e=[{key:"enter",value:function(e){var t,r,n,a,i,o=this,s=this.entered.length;return this.entered=(t=this.entered.filter(function(t){return o.isNodeInDocument(t)&&(!t.contains||t.contains(e))}),r=[e],n=new Set,a=function(e){return n.add(e)},t.forEach(a),r.forEach(a),i=[],n.forEach(function(e){return i.push(e)}),i),0===s&&this.entered.length>0}},{key:"leave",value:function(e){var t,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),t.filter(function(t){return t!==e})),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}(),eh0=ehJ(function(){return/firefox/i.test(navigator.userAgent)}),eh1=ehJ(function(){return!!window.safari}),eh2=function(){var e;function t(e,r){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var n,a,i,o=e.length,s=[],l=0;l<o;l++)s.push(l);s.sort(function(t,r){return e[t]<e[r]?-1:1});for(var u=[],d=[],c=[],h=0;h<o-1;h++)n=e[h+1]-e[h],a=r[h+1]-r[h],d.push(n),u.push(a),c.push(a/n);for(var p=[c[0]],m=0;m<d.length-1;m++){var f=c[m],g=c[m+1];if(f*g<=0)p.push(0);else{n=d[m];var y=d[m+1],v=n+y;p.push(3*v/((v+y)/f+(v+n)/g))}}p.push(c[c.length-1]);for(var b=[],w=[],x=0;x<p.length-1;x++){i=c[x];var C=p[x],k=1/d[x],M=C+p[x+1]-i-i;b.push((i-C-M)*k),w.push(M*k*k)}this.xs=e,this.ys=r,this.c1s=p,this.c2s=b,this.c3s=w}return e=[{key:"interpolate",value:function(e){var t,r=this.xs,n=this.ys,a=this.c1s,i=this.c2s,o=this.c3s,s=r.length-1;if(e===r[s])return n[s];for(var l=0,u=o.length-1;l<=u;){var d=r[t=Math.floor(.5*(l+u))];if(d<e)l=t+1;else{if(!(d>e))return n[t];u=t-1}}var c=e-r[s=Math.max(0,u)],h=c*c;return n[s]+a[s]*c+i[s]*h+o[s]*c*h}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();function eh5(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var r=t.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}function eh3(e){return{x:e.clientX,y:e.clientY}}var eh4="__NATIVE_FILE__",eh8="__NATIVE_URL__",eh6="__NATIVE_TEXT__",eh9="__NATIVE_HTML__";function eh7(e,t,r){var n=t.reduce(function(t,r){return t||e.getData(r)},"");return null!=n?n:r}function epe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ept=(epe(ey9={},eh4,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),epe(ey9,eh9,{exposeProperties:{html:function(e,t){return eh7(e,t,"")}},matchesTypes:["Html","text/html"]}),epe(ey9,eh8,{exposeProperties:{urls:function(e,t){return eh7(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),epe(ey9,eh6,{exposeProperties:{text:function(e,t){return eh7(e,t,"")}},matchesTypes:["Text","text/plain"]}),ey9),epr=function(){var e;function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.config=e,this.item={},this.initializeExposedProperties()}return e=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach(function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var r={};Object.keys(this.config.exposeProperties).forEach(function(n){r[n]={value:t.config.exposeProperties[n](e,t.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,r)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();function epn(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(ept).filter(function(e){return ept[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}var epa=function(){var e;function t(e,r){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.ownerDocument=null,this.globalContext=e,this.optionsArgs=r}return e=[{key:"window",get:function(){return this.globalContext?this.globalContext:"u">typeof window?window:void 0}},{key:"document",get:function(){var e;return null!=(e=this.globalContext)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var e;return(null==(e=this.optionsArgs)?void 0:e.rootElement)||this.window}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();function epi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function epo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?epi(Object(r),!0).forEach(function(t){var n,a,i;n=e,a=t,i=r[t],a in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):epi(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eps(){return(eps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function epl(){return(epl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}"u">typeof window&&("ontouchstart"in window||navigator.maxTouchPoints),ei().any,[...[JSON.parse('{"name":"orchid","label":"Tonal: Orchid","cssVars":{"dark":{"highlight":"292 75% 62%","neutral":"270 18% 55%","neutral-light":"275 35% 75%","neutral-dark":"268 20% 24%","background":"270 45% 6%","foreground":"280 15% 96%","card":"268 40% 10%","card-foreground":"280 15% 96%","popover":"264 48% 13%","popover-foreground":"280 15% 96%","primary":"270 85% 65%","primary-foreground":"0 0% 98%","secondary":"268 45% 32%","secondary-foreground":"275 45% 88%","muted":"268 40% 10%","muted-foreground":"272 30% 60%","accent":"268 50% 20%","accent-foreground":"280 15% 96%","destructive":"0 65% 40%","destructive-foreground":"0 0% 98%","border":"268 30% 18%","input":"268 40% 25%","ring":"270 80% 60%"}}}'),JSON.parse('{"name":"arctic","label":"Tonal: Arctic","cssVars":{"dark":{"highlight":"173 81% 52%","neutral":"185 20% 55%","neutral-light":"180 40% 78%","neutral-dark":"190 18% 22%","background":"0 0% 0%","foreground":"180 10% 97%","card":"203 39% 9%","card-foreground":"180 10% 97%","popover":"202 54% 11%","popover-foreground":"180 10% 97%","primary":"175 85% 42%","primary-foreground":"185 50% 8%","secondary":"180 45% 28%","secondary-foreground":"175 50% 88%","muted":"203 39% 9%","muted-foreground":"185 30% 60%","accent":"185 55% 18%","accent-foreground":"180 10% 97%","destructive":"0 65% 35%","destructive-foreground":"0 0% 98%","border":"190 25% 17%","input":"223 40% 24%","ring":"175 85% 42%"}}}'),JSON.parse('{"name":"verdant","label":"Tonal: Verdant","cssVars":{"dark":{"highlight":"152 79% 52%","neutral":"150 15% 52%","neutral-light":"145 30% 72%","neutral-dark":"155 18% 24%","background":"155 40% 5%","foreground":"140 15% 95%","card":"152 35% 9%","card-foreground":"140 15% 95%","popover":"167 65% 10%","popover-foreground":"140 15% 95%","primary":"152 75% 40%","primary-foreground":"155 50% 8%","secondary":"150 40% 26%","secondary-foreground":"145 40% 85%","muted":"152 35% 9%","muted-foreground":"148 25% 55%","accent":"150 45% 16%","accent-foreground":"140 15% 95%","destructive":"0 65% 38%","destructive-foreground":"0 0% 98%","border":"150 25% 16%","input":"150 35% 22%","ring":"152 75% 40%"}}}'),JSON.parse('{"name":"midnight","label":"Neutral: Midnight","cssVars":{"dark":{"highlight":"188 90% 58%","neutral":"213 22% 59%","neutral-light":"214 69% 81%","neutral-dark":"214 16% 21%","background":"240 15% 3%","foreground":"0 0% 99%","card":"240 12% 8%","card-foreground":"0 0% 99%","popover":"225 45% 13%","popover-foreground":"0 0% 99%","primary":"210 100% 62%","primary-foreground":"0 0% 99%","secondary":"215 55% 32%","secondary-foreground":"200 60% 88%","muted":"240 12% 8%","muted-foreground":"210 40% 70%","accent":"220 65% 20%","accent-foreground":"0 0% 99%","destructive":"0 70% 35%","destructive-foreground":"0 0% 99%","border":"240 10% 18%","input":"225 35% 24%","ring":"210 100% 62%"}}}'),JSON.parse('{"name":"slate","label":"Neutral: Slate","cssVars":{"dark":{"highlight":"217 97% 52%","neutral":"0 0% 55%","neutral-light":"0 0% 75%","neutral-dark":"0 0% 25%","background":"0 0% 0%","foreground":"0 0% 96%","card":"0 0% 7%","card-foreground":"0 0% 96%","popover":"0 0% 9%","popover-foreground":"0 0% 96%","primary":"230 75% 55%","primary-foreground":"0 0% 98%","secondary":"0 0% 25%","secondary-foreground":"0 0% 85%","muted":"0 0% 7%","muted-foreground":"0 0% 60%","accent":"0 0% 18%","accent-foreground":"0 0% 96%","destructive":"0 65% 40%","destructive-foreground":"0 0% 98%","border":"0 0% 18%","input":"0 0% 22%","ring":"215 75% 55%"}}}'),JSON.parse('{"name":"deep","label":"Neutral: Deep","cssVars":{"dark":{"highlight":"184 53% 54%","neutral":"215 15% 50%","neutral-light":"210 20% 68%","neutral-dark":"220 18% 22%","background":"0 0% 0%","foreground":"215 15% 82%","card":"218 25% 5%","card-foreground":"215 15% 82%","popover":"215 30% 8%","popover-foreground":"215 15% 82%","primary":"200 43% 48%","primary-foreground":"210 20% 92%","secondary":"218 30% 18%","secondary-foreground":"215 25% 75%","muted":"214 28% 5%","muted-foreground":"215 18% 48%","accent":"216 32% 12%","accent-foreground":"215 15% 82%","destructive":"0 50% 35%","destructive-foreground":"0 15% 90%","border":"218 22% 10%","input":"216 28% 15%","ring":"215 45% 42%"}}}')].map(e=>e.name)],ei().string,ei().node,ei().bool,ed.forwardRef(({className:e,...t},r)=>ed.createElement("div",eps({ref:r,className:t_("bg-card text-card-foreground border-input rounded-lg border shadow",e)},t))).displayName="Card",ed.forwardRef(({className:e,...t},r)=>ed.createElement("div",eps({ref:r,className:t_("flex flex-col space-y-1.5 p-6",e)},t))).displayName="CardHeader",ed.forwardRef(({className:e,...t},r)=>ed.createElement("h3",eps({ref:r,className:t_("font-semibold leading-none tracking-tight",e)},t))).displayName="CardTitle",ed.forwardRef(({className:e,...t},r)=>ed.createElement("p",eps({ref:r,className:t_("text-muted-foreground text-base",e)},t))).displayName="CardDescription",ed.forwardRef(({className:e,...t},r)=>ed.createElement("div",eps({ref:r,className:t_("p-6 pt-0",e)},t))).displayName="CardContent",ed.forwardRef(({className:e,...t},r)=>ed.createElement("div",eps({ref:r,className:t_("flex items-center p-6 pt-0",e)},t))).displayName="CardFooter";let epu=ed.forwardRef(({className:e,containerClassName:t,noScroll:r=!1,...n},a)=>ed.createElement("div",{className:t_("relative w-full",!r&&"overflow-auto",t)},ed.createElement("table",epl({ref:a,className:t_("caption-bottom text-muted-foreground w-full text-base",e)},n))));epu.displayName="Table";let epd=ed.forwardRef(({className:e,...t},r)=>ed.createElement("thead",epl({ref:r,className:t_("border-input/50 [&_tr]:border-b",e)},t)));epd.displayName="TableHeader";let epc=ed.forwardRef(({className:e,...t},r)=>ed.createElement("tbody",epl({ref:r,className:t_("[&_tr:last-child]:border-0",e)},t)));epc.displayName="TableBody",ed.forwardRef(({className:e,...t},r)=>ed.createElement("tfoot",epl({ref:r,className:t_("bg-muted border-input/50 border-t [&>tr]:last:border-b-0",e)},t))).displayName="TableFooter";let eph=ed.forwardRef(({className:e,...t},r)=>ed.createElement("tr",epl({ref:r,className:t_("hover:bg-muted text-muted-foreground hover:text-highlight hover:[&>td]:text-highlight hover:[&>th]:text-highlight","data-[state=selected]:bg-popover data-[state=selected]:hover:bg-popover","data-[state=selected]:text-foreground data-[state=selected]:[&>td]:text-foreground data-[state=selected]:[&>th]:text-foreground","data-[state=selected]:hover:text-foreground data-[state=selected]:hover:[&>td]:text-foreground data-[state=selected]:hover:[&>th]:text-foreground","border-input/50 border-b transition-colors",e)},t)));eph.displayName="TableRow";let epp=ed.forwardRef(({className:e,...t},r)=>ed.createElement("th",epl({ref:r,className:t_("text-muted-foreground h-10 px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e)},t)));epp.displayName="TableHead";let epm=ed.forwardRef(({className:e,...t},r)=>ed.createElement("td",epl({ref:r,className:t_("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e)},t)));epm.displayName="TableCell",ed.forwardRef(({className:e,...t},r)=>ed.createElement("caption",epl({ref:r,className:t_("text-muted-foreground mt-4 text-base",e)},t))).displayName="TableCaption",ei().string,ei().func.isRequired,ei().array,ei().node;ei().string,ei().string,ei().string,ei().string,ei().string,ei().string,ei().string,ei().string,ei().bool,ei().object,ei().func.isRequired,ei().func,ei().shape({label:ei().string.isRequired,studyDate:ei().string.isRequired,seriesDescription:ei().string.isRequired,patientInformation:ei().shape({patientName:ei().string,patientSex:ei().string,patientAge:ei().string,MRN:ei().string,thickness:ei().string,thicknessUnits:ei().string,spacing:ei().string,scanner:ei().string})}).isRequired,ei().func.isRequired;ei().func.isRequired,ei().string,ei().node.isRequired,ei().string,ei().bool.isRequired,ei().string.isRequired,ei().func.isRequired,ei().func.isRequired,ei().func,ei().object;let epf=((eyp={})[eyp.topLeft=0]="topLeft",eyp[eyp.topRight=1]="topRight",eyp[eyp.bottomLeft=2]="bottomLeft",eyp[eyp.bottomRight=3]="bottomRight",eyp[eyp.topMiddle=4]="topMiddle",eyp[eyp.bottomMiddle=5]="bottomMiddle",eyp[eyp.leftMiddle=6]="leftMiddle",eyp[eyp.rightMiddle=7]="rightMiddle",eyp),epg="pointer-events-auto flex items-center";epf.topLeft,em()(epg,"absolute top-[4px] left-[0px] pl-[4px]"),epf.topRight,em()(epg,"absolute top-[4px] right-viewport-scrollbar"),epf.bottomLeft,em()(epg,"absolute bottom-[3px] left-[0px] pl-[4px]"),epf.bottomRight,em()(epg,"absolute bottom-[3px] right-viewport-scrollbar"),epf.topMiddle,em()(epg,"absolute top-[25px] left-1/2 -translate-x-1/2"),epf.bottomMiddle,em()(epg,"absolute bottom-[3px] left-1/2 -translate-x-1/2"),epf.leftMiddle,em()(epg,"absolute left-[20px] top-[calc(50%+2px)] -translate-y-1/2 pl-[4px]"),epf.rightMiddle,em()(epg,"absolute top-1/2 -translate-y-1/2 right-viewport-scrollbar");function epy(){return(epy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}ei().node,ei().node,ei().node,ei().node,ei().string,ei().string,ei().number.isRequired,ei().number.isRequired,ei().string,ei().arrayOf(ei().node).isRequired,eh().forwardRef(({className:e,children:t,...r},n)=>eh().createElement("div",epy({ref:n,className:t_("flex items-center",e)},r),t)).displayName="ToolButtonList",eh().forwardRef(({className:e,children:t,tooltip:r,disabledText:n,disabled:a,...i},o)=>{let s=r||n,l=eh().createElement("div",epy({ref:o,className:t_("flex items-center",e)},i),t);return s?eh().createElement(Ip,null,eh().createElement(If,{asChild:!0},eh().createElement("span",null,l)),eh().createElement(IP,{side:"bottom"},r&&eh().createElement("div",null,r),n&&a&&eh().createElement("div",{className:"text-muted-foreground"},n))):l}).displayName="ToolButtonListDefault",eh().forwardRef(({children:e,className:t,...r},n)=>eh().createElement(_1,r,eh().createElement(_5,{asChild:!0},eh().createElement(rM,{variant:"ghost",size:"icon",className:t_("text-foreground/80 hover:bg-background hover:text-highlight border-primary","inline-flex h-10 w-5 items-center justify-center","!rounded-tr-lg !rounded-br-lg !rounded-tl-none !rounded-bl-none","bg-transparent",t)},eh().createElement(hO.ByName,{name:"chevron-down",className:"text-primary h-5 w-5"}))),eh().createElement(Do,{ref:n,side:"bottom",align:"start",alignOffset:-40},e))).displayName="ToolButtonListDropDown",eh().forwardRef(({className:e,children:t,icon:r,disabledText:n,tooltip:a,disabled:i,...o},s)=>{let l=a||("string"==typeof t?t:void 0),u=eh().createElement(Ds,epy({ref:s,className:t_("flex items-center space-x-2",e),disabled:i},o),r&&eh().createElement(hO.ByName,{name:r||"MissingIcon",className:"h-6 w-6"}),t);return i?eh().createElement(Ip,null,eh().createElement(If,{asChild:!0},eh().createElement("span",null,u)),eh().createElement(IP,{side:"bottom"},l&&eh().createElement("div",null,l),n&&i&&eh().createElement("div",{className:"text-muted-foreground"},n))):u}).displayName="ToolButtonListItem",eh().forwardRef(({className:e,...t},r)=>eh().createElement("div",epy({ref:r,className:t_("bg-primary h-5 w-px self-center",e)},t))).displayName="ToolButtonListDivider";let epv=(0,ed.createContext)(void 0),epb=()=>{let e=(0,ed.useContext)(epv);if(void 0===e)throw Error("useLayoutSelector must be used within a LayoutSelector component");return e},epw=({onSelectionChange:e,onSelection:t=e=>{},onSelectionPreset:r=e=>{},children:n,open:a,onOpenChange:i,tooltipDisabled:o})=>{let[s,l]=(0,ed.useState)(!1),u=void 0!==a,d=u?a:s,c=u?i:l,h=(0,ed.useCallback)(r=>{t(r),e&&e(r,!1),c(!1)},[t,e,c]),p=(0,ed.useCallback)(t=>{r(t),e&&e(t,!0),c(!1)},[r,e,c]);return eh().createElement(epv.Provider,{value:{isOpen:d,setIsOpen:c,onSelection:h,onSelectionPreset:p}},eh().createElement(hB,{open:d,onOpenChange:c},n))};function epx(e,t){return"function"==typeof e?e(t):e}function epC(e,t){return r=>{t.setState(t=>({...t,[e]:epx(r,t[e])}))}}function epk(e){return e instanceof Function}function epM(e,t,r){let n,a=[];return i=>{let o,s;r.key&&r.debug&&(o=Date.now());let l=e(i);if(!(l.length!==a.length||l.some((e,t)=>a[t]!==e)))return n;if(a=l,r.key&&r.debug&&(s=Date.now()),n=t(...l),null==r||null==r.onChange||r.onChange(n),r.key&&r.debug&&null!=r&&r.debug()){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-s)*100)/100,n=t/16,a=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${a(t,5)} /${a(e,5)} ms`,`
1837
+ `,this.dom.appendChild(this.metricsColumn),this.dom.appendChild(this.bindingsColumn)}isMemoryAvailable(){return void 0!==performance.memory}addPanel(e,t){((e===ey8.RENDER_MODES?this.bindingsColumn:this.metricsColumn)??this.dom).appendChild(t.dom),this.panels.set(e,t)}startLoop(){let e=()=>{this.update(),this.animationFrameId=requestAnimationFrame(e)};this.animationFrameId=requestAnimationFrame(e)}stopLoop(){null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}updateStats(){this.frameCount++;let e=performance.now(),t=e-this.startTime,r=this.panels.get(ey8.MS);if(r&&r.update(t,200),e>=this.lastUpdateTime+1e3){let t=1e3*this.frameCount/(e-this.lastUpdateTime),r=this.panels.get(ey8.FPS);r&&r.update(t,300),this.lastUpdateTime=e,this.frameCount=0,this.updateMemoryPanel(),this.updateRenderModesPanel()}return e}updateRenderModesPanel(){let e=this.panels.get(ey8.RENDER_MODES);if(!(e instanceof ehc))return;let t=[];for(let e of FR())if(e&&!e.hasBeenDestroyed)for(let r of e.getViewports()){let n=r._debug?.renderModes;t.push({renderingEngineId:e.id,viewportId:r.id,viewportType:r.type,bindings:this.getViewportBindingDebugEntries(r,n??{})})}e.setContent(t)}getViewportBindingDebugEntries(e,t){let r=e.getActors?.()??[],n=e.getSourceDataId?.(),a=Object.entries(t);return a.length?a.map(([t,a])=>{var i,o;let s=ehb(e,t,n),l="source"===s?e.getDefaultActor?.():(i=r,o=t,i.find(e=>e.uid===o||e.representationUID===o||e.referencedId===o));return{actorUID:l?.uid,dataId:t,referencedId:l?.referencedId,renderMode:a,role:s,...ehw(l)}}):r.map(t=>{let r=t.representationUID??t.uid??"";return{actorUID:t.uid,dataId:r,referencedId:t.referencedId,renderMode:"-",role:ehb(e,r,n),...ehw(t)}})}updateMemoryPanel(){let e=this.panels.get(ey8.MEMORY);if(!e)return;let t=performance;if(t.memory){let r=t.memory.usedJSHeapSize/1048576,n=t.memory.jsHeapSizeLimit/1048576;e.update(r,n)}}attachDragHandlers(){this.dom?.addEventListener("pointerdown",this.handlePointerDown)}detachDragHandlers(){this.dom?.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}onPointerDown(e){if(!this.dom||0!==e.button)return;this.dragPointerId=e.pointerId;let t=this.dom.getBoundingClientRect();this.dragOffsetX=e.clientX-t.left,this.dragOffsetY=e.clientY-t.top,this.setPosition(t.left,t.top),window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp),e.preventDefault()}onPointerMove(e){this.dragPointerId===e.pointerId&&this.dom&&this.setPosition(e.clientX-this.dragOffsetX,e.clientY-this.dragOffsetY)}onPointerUp(e){if(this.dragPointerId!==e.pointerId||!this.dom)return;this.dragPointerId=null,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp);let t=this.dom.getBoundingClientRect();this.savePosition(t.left,t.top)}setPosition(e,t){if(!this.dom)return;let r=this.clampToViewport(e,t);this.dom.style.left=`${r.left}px`,this.dom.style.top=`${r.top}px`,this.dom.style.right="auto",this.dom.style.bottom="auto"}clampToViewport(e,t){if(!this.dom)return{left:e,top:t};let r=this.dom.offsetWidth,n=this.dom.offsetHeight;return{left:Math.min(Math.max(0,e),Math.max(0,window.innerWidth-r)),top:Math.min(Math.max(0,t),Math.max(0,window.innerHeight-n))}}restorePosition(){let e=this.readSavedPosition();e&&this.setPosition(e.left,e.top)}readSavedPosition(){try{let e=window.localStorage.getItem(ehu);if(!e)return null;let t=JSON.parse(e);if("number"!=typeof t?.left||"number"!=typeof t?.top||!Number.isFinite(t.left)||!Number.isFinite(t.top))return null;return{left:t.left,top:t.top}}catch{return null}}savePosition(e,t){try{window.localStorage.setItem(ehu,JSON.stringify({left:e,top:t}))}catch{}}}function ehb(e,t,r){let n=e.getDisplaySetRole?.(t);return"source"===n||"overlay"===n?n:r&&t===r?"source":"data"}function ehw(e){let t=e?.actor?.getMapper?.()?.getInputData?.();if(!t)return{};try{let e=t.getPointData?.()?.getScalars?.();if(e?.getDataType){let t=e.getNumberOfComponents?.()??1,r=t>1?e.getRange?.(0):e.getRange?.();return{scalarType:e.getDataType(),scalarRange:ehx(r),numberOfComponents:t}}let r=t.getScalarData?.();if(r?.constructor?.name){let e=Number.isFinite(t.minPixelValue)&&Number.isFinite(t.maxPixelValue)?[t.minPixelValue,t.maxPixelValue]:void 0;return{scalarType:r.constructor.name,scalarRange:ehx(e)}}}catch{}return{}}function ehx(e){if(e&&!(e.length<2)&&Number.isFinite(e[0])&&Number.isFinite(e[1]))return[e[0],e[1]]}ehv.instance=null;let ehC=ehv.getInstance();class ehk{constructor(e){throw this._needsRender=new Set,this._animationFrameSet=!1,this._animationFrameHandle=null,this.renderFrameOfReference=e=>{let t=this._getViewportsAsArray().map(t=>{if(t.getFrameOfReferenceUID()===e)return t.id});this.renderViewports(t)},this.id=e||F2(),this.useCPURendering=BI(),(e=>{FO[e.id]=e})(this),Error("@cornerstonejs/core is not initialized, run init() first")}enableElement(e){let t=this._normalizeViewportInputEntry(e);this._throwIfDestroyed();let{element:r,viewportId:n}=t;if(!r)throw Error("No element provided");this.getViewport(n)&&this.disableElement(n);let{type:a}=t;eho(a)?this.addCustomViewport(t):this.enableVTKjsDrivenViewport(t);let i=GK(r),{background:o}=t.defaultOptions;this.fillCanvasWithBackgroundColor(i,o)}disableElement(e){this._throwIfDestroyed();let t=this.getViewport(e);t?(this._resetViewport(t),!eho(t.type)&&this.offscreenMultiRenderWindow&&this.offscreenMultiRenderWindow.removeRenderer(e),this._removeViewport(e),t.isDisabled=!0,this._needsRender.delete(e),this.getViewports().length||this._clearAnimationFrame()):console.warn(`viewport ${e} does not exist`)}disableViewport(e){this.disableElement(e)}setViewports(e){let t=this._normalizeViewportInputEntries(e);this._throwIfDestroyed(),this._reset();let r=[],n=[];t.forEach(e=>{eho(e.type)?n.push(e):r.push(e)}),this.setVtkjsDrivenViewports(r),this.setCustomViewports(n),t.forEach(e=>{let t=GK(e.element),{background:r}=e.defaultOptions;this.fillCanvasWithBackgroundColor(t,r)})}resize(e=!0,t=!0){this._throwIfDestroyed();let r=this._getViewportsAsArray(),n=[],a=[];r.forEach(e=>{ehs(e)?a.push(e):n.push(e)}),n.length&&this._resizeVTKViewports(n,t,e),a.length&&this._resizeUsingCustomResizeHandler(a,t,e)}getViewport(e){return this._viewports?.get(e)}getViewports(){return this._throwIfDestroyed(),this._getViewportsAsArray()}render(){let e=this.getViewports().map(e=>e.id);this._setViewportsToBeRenderedNextFrame(e)}renderViewports(e){this._setViewportsToBeRenderedNextFrame(e)}renderViewport(e){this._setViewportsToBeRenderedNextFrame([e])}destroy(){let e;if(this.hasBeenDestroyed)return;ehC.cleanup();let t=this._getViewportsAsArray();this._reset(),this.offscreenMultiRenderWindow&&(t.forEach(e=>{this.offscreenMultiRenderWindow&&!ehs(e)&&this.offscreenMultiRenderWindow.getRenderer(e.id)&&this.offscreenMultiRenderWindow.removeRenderer(e.id)}),this.offscreenMultiRenderWindow.delete(),delete this.offscreenMultiRenderWindow),e=this.id,delete FO[e],this.hasBeenDestroyed=!0}fillCanvasWithBackgroundColor(e,t){let r=e.getContext("2d");r.fillStyle=t?Array.isArray(t)?`rgb(${t.map(e=>Math.round(255*e)).join(",")})`:t:"black",r.fillRect(0,0,e.width,e.height)}_normalizeViewportInputEntry(e){let t=e.type,{type:r}=e,{defaultOptions:n}=e;if(BP()){let e=ehk.NEXT_TYPE_REMAP[r];e&&(r=e)}let a=n;return a&&0!==Object.keys(a).length||(a={background:[0,0,0],orientation:null,displayArea:null},t===Nq.ORTHOGRAPHIC&&(a={...a,orientation:NQ.AXIAL})),{...e,requestedType:t!==r||BP()?t:void 0,type:r,defaultOptions:a}}_normalizeViewportInputEntries(e){let t=[];return e.forEach(e=>{t.push(this._normalizeViewportInputEntry(e))}),t}_resizeUsingCustomResizeHandler(e,t=!0,r=!0){e.forEach(e=>{e.resizeForRenderingEngine({keepCamera:t})}),r&&this.render()}_removeViewport(e){this.getViewport(e)?this._viewports.delete(e):console.warn(`viewport ${e} does not exist`)}addCustomViewport(e){let{element:t,viewportId:r,type:n,defaultOptions:a}=e;t.tabIndex=-1;let i=GK(t),{clientWidth:o,clientHeight:s}=i;(i.width!==o||i.height!==s)&&(i.width=o,i.height=s);let l={id:r,renderingEngineId:this.id,element:t,type:n,canvas:i,sx:0,sy:0,sWidth:o,sHeight:s,defaultOptions:a||{}},u=new(ehi(e))(l);u.requestedType=n,this._viewports.set(r,u);let d={element:t,viewportId:r,renderingEngineId:this.id};Bh(Bc,NH.ELEMENT_ENABLED,d)}getRenderer(e){return this.offscreenMultiRenderWindow.getRenderer(e)}getOffscreenMultiRenderWindow(e){if(!this.offscreenMultiRenderWindow)throw Error("Offscreen multi render window is not available.");return this.offscreenMultiRenderWindow}setCustomViewports(e){e.forEach(e=>{this.addCustomViewport(e)})}_getViewportsAsArray(){return Array.from(this._viewports.values())}_setViewportsToBeRenderedNextFrame(e){e.forEach(e=>{this._needsRender.add(e);let t=this._viewports.get(e);t&&(t.viewportStatus=Fw.NEEDS_RENDER)}),this._render()}_render(){this._needsRender.size>0&&!this._animationFrameSet&&(this._animationFrameHandle=window.requestAnimationFrame(this._renderFlaggedViewports),this._animationFrameSet=!0)}_resetViewport(e){let t=this.id,{element:r,canvas:n,id:a}=e;e.removeWidgets(),Bh(Bc,NH.ELEMENT_DISABLED,{element:r,viewportId:a,renderingEngineId:t}),e.destroy?.(),r.removeAttribute("data-viewport-uid"),r.removeAttribute("data-rendering-engine-uid"),n.getContext("2d").clearRect(0,0,n.width,n.height)}_clearAnimationFrame(){window.cancelAnimationFrame(this._animationFrameHandle),this._needsRender.clear(),this._animationFrameSet=!1,this._animationFrameHandle=null}_reset(){this._getViewportsAsArray().forEach(e=>{this._resetViewport(e)}),this._clearAnimationFrame(),this._viewports=new Map}_throwIfDestroyed(){if(this.hasBeenDestroyed)throw Error("this.destroy() has been manually called to free up memory, can not longer use this instance. Instead make a new one.")}}ehk.NEXT_TYPE_REMAP={[Nq.STACK]:Nq.PLANAR_NEXT,[Nq.ORTHOGRAPHIC]:Nq.PLANAR_NEXT,[Nq.VIDEO]:Nq.VIDEO_NEXT,[Nq.WHOLE_SLIDE]:Nq.WHOLE_SLIDE_NEXT,[Nq.ECG]:Nq.ECG_NEXT,[Nq.VOLUME_3D]:Nq.VOLUME_3D_NEXT},(eyh=ey6||(ey6={}))[eyh.None=0]="None",eyh[eyh.Capture=1]="Capture",eyh[eyh.Bubble=2]="Bubble",Symbol("LastRuntimeId");let ehM=VG;function ehS(e){return Array.isArray(e)?e:[e]}new class{constructor(e="Tools",t=50){this.position=-1,this.redoAvailable=0,this.undoAvailable=0,this.ring=[],this.isRecordingGrouped=!1,this.label=e,this._size=t}get size(){return this._size}set size(e){this.ring=Array(e),this._size=e,this.position=-1,this.redoAvailable=0,this.undoAvailable=0}get canUndo(){return this.undoAvailable>0}get canRedo(){return this.redoAvailable>0}undo(e=1){for(;e>0&&this.undoAvailable>0;){for(let e of ehS(this.ring[this.position]).reverse())e.restoreMemo(!0),this.dispatchHistoryEvent({item:e,isUndo:!0});e--,this.redoAvailable++,this.undoAvailable--,this.position=(this.position-1+this.size)%this.size}}undoIf(e){return!!(this.undoAvailable>0&&e(this.ring[this.position]))&&(this.undo(),!0)}dispatchHistoryEvent({item:e,isUndo:t}){e.id&&Bc.dispatchEvent(new CustomEvent(t?"CORNERSTONE_TOOLS_HISTORY_UNDO":"CORNERSTONE_TOOLS_HISTORY_REDO",{detail:{isUndo:t,id:e.id,operationType:e.operationType||"annotation",memo:e}}))}redo(e=1){for(;e>0&&this.redoAvailable>0;){let t=(this.position+1)%this.size;for(let e of ehS(this.ring[t]).reverse())e.restoreMemo(!1),this.dispatchHistoryEvent({item:e,isUndo:!1});e--,this.position=t,this.undoAvailable++,this.redoAvailable--}}initializeGroupItem(){this.redoAvailable=0,this.undoAvailable<this._size&&this.undoAvailable++,this.position=(this.position+1)%this._size,this.ring[this.position]=[]}startGroupRecording(){this.isRecordingGrouped=!0,this.initializeGroupItem()}rollbackUnusedGroupItem(){this.ring[this.position]=void 0,this.position=(this.position-1)%this._size,this.undoAvailable--}endGroupRecording(){this.isRecordingGrouped=!1;let e=this.ring[this.position];Array.isArray(e)&&0===e.length&&this.rollbackUnusedGroupItem()}pushGrouped(e){let t=this.ring[this.position];if(Array.isArray(t))return t.push(e),e;throw Error("Last item should be an array for grouped memos.")}push(e){if(!e)return;let t=e.restoreMemo?e:e.createMemo?.();if(t)return this.isRecordingGrouped?this.pushGrouped(t):(this.redoAvailable=0,this.undoAvailable<this._size&&this.undoAvailable++,this.position=(this.position+1)%this._size,this.ring[this.position]=t,t)}replaceCurrentMemo(e,t){if(!e||0===this.undoAvailable)return!1;let r=this.ring[this.position],n=ehS(r).findIndex(t);if(-1===n)return!1;let a=e.restoreMemo?e:e.createMemo?.();return!!a&&(Array.isArray(r)?r[n]=a:this.ring[this.position]=a,!0)}};let ehE={},ehT={add:(e,t)=>{let[r,n]=e,a=`${r}_${n}`;ehE[a]||(ehE[a]={}),ehE[a]=t},get:(e,t,r)=>{if("spatialRegistrationModule"!==e)return;let n=`${t}_${r}`;if(ehE[n])return ehE[n];let a=`${r}_${t}`;if(ehE[a])return Lv.mat4.invert(Lv.mat4.create(),ehE[a])}};HR(ehT.get.bind(ehT));let{Cc:ehI,VD:ehP,lJ:eh_}=Z,ehD=new F5("imageRetrievalPool");ehD.setMaxSimultaneousRequests(NG.Interaction,200),ehD.setMaxSimultaneousRequests(NG.Thumbnail,200),ehD.setMaxSimultaneousRequests(NG.Prefetch,200),ehD.grabDelay=0;let ehO=Symbol("DefaultSettings"),ehA=Symbol("RuntimeSettings"),ehR=Symbol("ObjectSettingsMap"),ehL=Symbol("Dictionary");class ehN{constructor(e){const t=Object.create(e instanceof ehN&&ehL in e?e[ehL]:null);Object.seal(Object.defineProperty(this,ehL,{value:t}))}set(e,t){return ehF(this[ehL],e,t,null)}get(e){var t;return t=this[ehL],t[e]}unset(e){return function(e,t){if(t.endsWith(".")){let r=0,n=t.slice(0,-1),a=0===n.length;for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(a||i.startsWith(t)||i===n)&&(delete e[i],++r);return r>0}return delete e[t]}(this[ehL],e+"")}forEach(e){ehV(this[ehL],e)}extend(){return new ehN(this)}import(e){ehB(e)&&Object.keys(e).forEach(t=>{ehF(this[ehL],t,e[t],null)})}dump(){let e={};return ehV(this[ehL],(t,r)=>{void 0!==r&&function e(t,r,n){let a=r.indexOf(".");if(a>=0){let i=r.slice(0,a),o=t[i];if("object"!=typeof o||null===o){let e=o;o={},void 0!==e&&(o[""]=e),t[i]=o}e(o,r.slice(a+1,r.length),n)}else t[r]=n}(e,t,r)}),e}static assert(e){return e instanceof ehN?e:ehN.getRuntimeSettings()}static getDefaultSettings(e=null){let t=ehN[ehO];if(t instanceof ehN||(t=new ehN,ehN[ehO]=t),e){let r={};return t.forEach(n=>{n.startsWith(e)&&(r[n.split(`${e}.`)[1]]=t.get(n))}),r}return t}static getRuntimeSettings(){let e=ehN[ehA];return e instanceof ehN||(e=new ehN(ehN.getDefaultSettings()),ehN[ehA]=e),e}static getObjectSettings(e,t){let r=null;if(e instanceof ehN)r=e;else if("object"==typeof e&&null!==e){let n=ehN[ehR];n instanceof WeakMap||(n=new WeakMap,ehN[ehR]=n),(r=n.get(e))instanceof ehN||(r=new ehN(ehN.assert(ehN.getObjectSettings(t))),n.set(e,r))}return r}static extendRuntimeSettings(){return ehN.getRuntimeSettings().extend()}}function ehV(e,t){for(let r in e)t(r,e[r])}function ehF(e,t,r,n){if(function(e){let t,r,n;if("string"!=typeof e||(t=e.length-1)<0)return!1;for(n=-1;(r=e.indexOf(".",n+1))>=0;){if(r-n<2||r===t)return!1;n=r}return!0}(t)){if(ehB(r)){let i;var a=n instanceof WeakSet?n:new WeakSet;if(a.has(r))return ehF(e,t,null,a);for(let n in a.add(r),i=0,r)Object.prototype.hasOwnProperty.call(r,n)&&!ehF(e,0===n.length?t:`${t}.${n}`,r[n],a)&&++i;return a.delete(r),0===i}return e[t]=r,!0}return!1}function ehB(e){if("object"==typeof e&&null!==e){let t=Object.getPrototypeOf(e);if(t===Object.prototype||null===t)return!0}return!1}function ehj(e,t,r){let{PaletteColorLookupTableUID:n}=e;if(void 0!==e[t]||void 0!==n)return function(e,t){let r=t[0]||65536,n=t[2];if(!e)return;let a=e=>{let t=e.buffer||e,a=t.byteLength===2*r||n>8?new Uint16Array(t):new Uint8Array(t),i=[];for(let e=0;e<r;e++)i[e]=a[e];return i};if(e.palette)return e.palette;if(e.InlineBinary)try{let t=Uint8Array.from(atob(e.InlineBinary),e=>e.charCodeAt(0));return e.palette=a(t)}catch(t){console.log("Couldn't decode",e.InlineBinary,t);return}let i=Array.isArray(e)?e[0]:e;return i instanceof ArrayBuffer?e.palette=a(i):e.retrieveBulkData?e.retrieveBulkData().then(t=>e.palette=a(t)):void console.error(`No data found for ${e} palette`)}(e[t],e[r])}function ehW(e,t,r){if(e[r])return e[r];let n=Object.create(e);return Object.defineProperty(e,r,{value:n,writable:!1,enumerable:!1}),t&&[...t?Object.values(t).filter(Boolean).map(e=>e[0]).filter(e=>"object"==typeof e):[]].forEach(e=>{e.SOPInstanceUID||Object.entries(e).forEach(([e,t])=>{n[e]=t})}),n}ehN.getDefaultSettings().set("useCursors",!0);let{ZX:ehU,Cc:ehz}=et,{nw:ehH}=Z,ehG=new class{constructor(){this.imageURIToUIDs=new Map,this.customMetadata=new Map}addImageIdToUIDs(e,t){if(!e)throw Error("MetadataProvider::Empty imageId");let r=Lw(e);this.imageURIToUIDs.set(r,t)}addCustomMetadata(e,t,r){let n=Lw(e);this.customMetadata.has(t)||this.customMetadata.set(t,{}),this.customMetadata.get(t)[n]=r}_getInstance(e){if(!e)throw Error("MetadataProvider::Empty imageId");let t=this.getUIDsFromImageID(e);if(!t)return;let{StudyInstanceUID:r,SeriesInstanceUID:n,SOPInstanceUID:a,frameNumber:i}=t,o=RV.getInstance(r,n,a);if(!o)return;let s=i&&((e,t)=>{let{PerFrameFunctionalGroupsSequence:r,SharedFunctionalGroupsSequence:n,NumberOfFrames:a,ImageType:i}=t;if(a<2)return t;t.ImageType=Array.isArray(i)&&i||"string"==typeof i&&i.split("\\")||i;let o=Number.parseInt(e||1),s=t.DetectorInformationSequence&&(!t.ImagePositionPatient||!t.ImageOrientationPatient);if(r&&n||s||a>1){!t.ImageOrientationPatient&&t.DetectorInformationSequence&&(t.ImageOrientationPatient=t.DetectorInformationSequence[0].ImageOrientationPatient);let e=t.ImagePositionPatient;if(!t.ImagePositionPatient&&t.DetectorInformationSequence){let r=t.DetectorInformationSequence[0].ImagePositionPatient,n=t.ImageOrientationPatient;r=r?.map(e=>Number(e)),n=n?.map(e=>Number(e));let a=Number(t.SpacingBetweenSlices);if(n&&a){let t=Lv.vec3.fromValues(n[0],n[1],n[2]),i=Lv.vec3.fromValues(n[3],n[4],n[5]),s=Lv.vec3.cross(Lv.vec3.create(),t,i),l=Lv.vec3.scaleAndAdd(Lv.vec3.create(),r,s,a*(o-1));e=[l[0],l[1],l[2]]}}t._parentInstance||Object.defineProperty(t,"_parentInstance",{value:{...t},enumerable:!1,writable:!1,configurable:!1});let a=ehW(t._parentInstance,n?.[0],"_shared"),i=ehW(a,r?.[o-1],o);return i.ImagePositionPatient=e??i.ImagePositionPatient??[0,0,o],Object.defineProperty(i,"frameNumber",{value:o,writable:!0,enumerable:!1,configurable:!0}),i}if(t.GridFrameOffsetVector){t._parentInstance||Object.defineProperty(t,"_parentInstance",{value:{...t},enumerable:!1,writable:!1,configurable:!1});let e=ehW(t._parentInstance,n?.[0],"_shared"),a=ehW(e,r?.[o-1],o),i=a.ImagePositionPatient?.map(Number),s=a.ImageOrientationPatient?.map(Number),l=Number(t.GridFrameOffsetVector[o-1]);if(i&&s&&!Number.isNaN(l)){let e=Lv.vec3.fromValues(s[0],s[1],s[2]),t=Lv.vec3.fromValues(s[3],s[4],s[5]),r=Lv.vec3.cross(Lv.vec3.create(),e,t),n=Lv.vec3.scaleAndAdd(Lv.vec3.create(),Lv.vec3.fromValues(...i),r,l);a.ImagePositionPatient=[n[0],n[1],n[2]]}return Object.defineProperty(a,"frameNumber",{value:o,writable:!0,enumerable:!1,configurable:!0}),a}return t})(i,o)||o;return s&&Object.defineProperty(s,"imageId",{value:e,writable:!0,enumerable:!1,configurable:!0}),s}get(e,t,r={fallback:!1}){if(Array.isArray(t))return;let n=this._getInstance(t);if(e===ehK)return n;if(this.customMetadata.has(e)){let r=this.customMetadata.get(e),n=Lw(t);if(r[n])return r[n]}return this.getTagFromInstance(e,n,r)}getTag(e,t,r){return this.get(e,t,r)}getInstance(e){return this.get(ehK,e)}getTagFromInstance(e,t,r={fallback:!1}){if(t)return t[e]?t[e]:this._getCornerstoneDICOMImageLoaderTag(e,t)}addHandler(e,t){eh$[e]=t}_getCornerstoneDICOMImageLoaderTag(e,t){let r=eh$[e]?.(t);if(r)return r;switch(e){case ehq.GENERAL_SERIES_MODULE:r={modality:t.Modality,seriesInstanceUID:t.SeriesInstanceUID,seriesNumber:Ly(t.SeriesNumber),studyInstanceUID:t.StudyInstanceUID,seriesDescription:t.SeriesDescription,seriesDate:t.SeriesDate,seriesTime:t.SeriesTime};break;case ehq.PATIENT_STUDY_MODULE:r={patientAge:t.PatientAge,patientSize:t.PatientSize,patientWeight:t.PatientWeight};break;case ehq.PATIENT_DEMOGRAPHIC_MODULE:r={patientSex:t.PatientSex};break;case ehq.IMAGE_PIXEL_MODULE:r={samplesPerPixel:Ly(t.SamplesPerPixel),photometricInterpretation:t.PhotometricInterpretation,rows:Ly(t.Rows),columns:Ly(t.Columns),bitsAllocated:Ly(t.BitsAllocated),bitsStored:Ly(t.BitsStored),highBit:Ly(t.HighBit),pixelRepresentation:Ly(t.PixelRepresentation),planarConfiguration:Ly(t.PlanarConfiguration),pixelAspectRatio:Ly(t.PixelAspectRatio),smallestPixelValue:Ly(t.SmallestPixelValue),largestPixelValue:Ly(t.LargestPixelValue),redPaletteColorLookupTableDescriptor:Ly(t.RedPaletteColorLookupTableDescriptor),greenPaletteColorLookupTableDescriptor:Ly(t.GreenPaletteColorLookupTableDescriptor),bluePaletteColorLookupTableDescriptor:Ly(t.BluePaletteColorLookupTableDescriptor),redPaletteColorLookupTableData:ehj(t,"RedPaletteColorLookupTableData","RedPaletteColorLookupTableDescriptor"),greenPaletteColorLookupTableData:ehj(t,"GreenPaletteColorLookupTableData","GreenPaletteColorLookupTableDescriptor"),bluePaletteColorLookupTableData:ehj(t,"BluePaletteColorLookupTableData","BluePaletteColorLookupTableDescriptor")};break;case ehq.VOI_LUT_MODULE:let{WindowCenter:n,WindowWidth:a,VOILUTFunction:i}=t;if(null==n||null==a)return;let o=Array.isArray(n)?n:[n],s=Array.isArray(a)?a:[a];r={windowCenter:Ly(o),windowWidth:Ly(s),voiLUTFunction:i};break;case ehq.MODALITY_LUT_MODULE:let{RescaleIntercept:l,RescaleSlope:u}=t;if(null==l||null==u)return;r={rescaleIntercept:Ly(t.RescaleIntercept),rescaleSlope:Ly(t.RescaleSlope),rescaleType:t.RescaleType};break;case ehq.SOP_COMMON_MODULE:r={sopClassUID:t.SOPClassUID,sopInstanceUID:t.SOPInstanceUID};break;case ehq.PET_IMAGE_MODULE:r={frameReferenceTime:t.FrameReferenceTime,actualFrameDuration:t.ActualFrameDuration};break;case ehq.PET_ISOTOPE_MODULE:let{RadiopharmaceuticalInformationSequence:d}=t;if(d){let{RadiopharmaceuticalStartTime:e,RadionuclideTotalDose:t,RadionuclideHalfLife:n}=Array.isArray(d)?d[0]:d;r={radiopharmaceuticalInfo:{radiopharmaceuticalStartTime:Nz().parseTM(e),radionuclideTotalDose:t,radionuclideHalfLife:n}}}break;case ehq.OVERLAY_PLANE_MODULE:let c=[];for(let e=0;e<=30;e+=2){let r=`60${e.toString(16)}`;3===r.length&&(r=`600${e.toString(16)}`);let n=t[`${r}3000`];if(!n)continue;let a=`${r}0010`,i=`${r}0011`,o=`${r}0040`,s=`${r}0050`,l=`${r}0022`,u=`${r}1500`,d=`${r}1301`,h=`${r}1302`,p=`${r}1303`,m=t[s],f=0;f=t[a]instanceof Array?new Uint16Array(t[a][0])[0]:t[a];let g=0;g=t[i]instanceof Array?new Uint16Array(t[i][0])[0]:t[i];let y=0,v=0;if(1===m.length){let e=new Int16Array(m[0]);y=e[0],v=e[1]}else y=m[0],v=m[1];let b={rows:f,columns:g,type:t[o],x:y,y:v,pixelData:n,description:t[l],label:t[u],roiArea:t[d],roiMean:t[h],roiStandardDeviation:t[p]};c.push(b)}r={overlays:c};break;case ehq.PATIENT_MODULE:r={patientName:t.PatientName,patientId:t.PatientID,patientSex:t.PatientSex,patientBirthDate:t.PatientBirthDate,issuerOfPatientId:t.IssuerOfPatientID,otherPatientIDsSequence:t.OtherPatientIDsSequence};break;case ehq.GENERAL_IMAGE_MODULE:r={sopInstanceUID:t.SOPInstanceUID,instanceNumber:Ly(t.InstanceNumber),lossyImageCompression:t.LossyImageCompression,lossyImageCompressionRatio:t.LossyImageCompressionRatio,lossyImageCompressionMethod:t.LossyImageCompressionMethod};break;case ehq.GENERAL_STUDY_MODULE:r={studyDescription:t.StudyDescription,studyInstanceUID:t.StudyInstanceUID,studyDate:t.StudyDate,studyTime:t.StudyTime,accessionNumber:t.AccessionNumber,studyId:t.StudyID};break;case ehq.CINE_MODULE:r={frameTime:t.FrameTime,numberOfFrames:t.NumberOfFrames?Number(t.NumberOfFrames):1};break;case ehq.PET_SERIES_MODULE:r={correctedImage:t.CorrectedImage,units:t.Units,decayCorrection:t.DecayCorrection};break;case ehq.CALIBRATION_MODULE:r={sequenceOfUltrasoundRegions:t.SequenceOfUltrasoundRegions?.map(e=>({regionSpatialFormat:e.RegionSpatialFormat,regionDataType:e.RegionDataType,regionFlags:e.RegionFlags,regionLocationMinX0:e.RegionLocationMinX0,regionLocationMinY0:e.RegionLocationMinY0,regionLocationMaxX1:e.RegionLocationMaxX1,regionLocationMaxY1:e.RegionLocationMaxY1,referencePixelX0:e.ReferencePixelX0,referencePixelY0:e.ReferencePixelY0,referencePixelPhysicalValueX:e.ReferencePixelPhysicalValueX,referencePixelPhysicalValueY:e.ReferencePixelPhysicalValueY,physicalUnitsXDirection:e.PhysicalUnitsXDirection,physicalUnitsYDirection:e.PhysicalUnitsYDirection,physicalDeltaX:e.PhysicalDeltaX,physicalDeltaY:e.PhysicalDeltaY}))};break;case"temporalPositionIdentifier":r={temporalPositionIdentifier:t.TemporalPositionIdentifier};break;default:return}return r}getUIDsFromImageID(e){if(e.startsWith("wadors:")){let t=e.split("/studies/")[1].split("/");return{StudyInstanceUID:t[0],SeriesInstanceUID:t[2],SOPInstanceUID:t[4],frameNumber:t[6]}}if(e.includes("?requestType=WADO")){let t=Lu.parse(e),r=t.frameNumber||t.frame;return{StudyInstanceUID:t.studyUID,SeriesInstanceUID:t.seriesUID,SOPInstanceUID:t.objectUID,frameNumber:r}}let t=Lw(e),r=this.imageURIToUIDs.get(t);if(!r)return;let n=ehH(e)?.framesString||r.frameNumber||"1";return{...r,frameNumber:n}}};RV.setMetaDataProvider(ehG);let ehq={GENERAL_SERIES_MODULE:"generalSeriesModule",PATIENT_STUDY_MODULE:"patientStudyModule",IMAGE_PIXEL_MODULE:"imagePixelModule",VOI_LUT_MODULE:"voiLutModule",MODALITY_LUT_MODULE:"modalityLutModule",SOP_COMMON_MODULE:"sopCommonModule",PET_IMAGE_MODULE:"petImageModule",PET_ISOTOPE_MODULE:"petIsotopeModule",PET_SERIES_MODULE:"petSeriesModule",OVERLAY_PLANE_MODULE:"overlayPlaneModule",PATIENT_DEMOGRAPHIC_MODULE:"patientDemographicModule",PATIENT_MODULE:"patientModule",GENERAL_IMAGE_MODULE:"generalImageModule",GENERAL_STUDY_MODULE:"generalStudyModule",CINE_MODULE:"cineModule",CALIBRATION_MODULE:"calibrationModule"},eh$={frameModule:e=>{let{frameNumber:t=1,numberOfFrames:r=1,SOPClassUID:n,SOPInstanceUID:a,SeriesInstanceUID:i,StudyInstanceUID:o}=e;return{frameNumber:t,numberOfFrames:r,sopClassUID:n,sopInstanceUID:a,seriesInstanceUID:i,studyInstanceUID:o}},imagePlaneModule:e=>{let t,r,n,a,i,{ImageOrientationPatient:o,ImagePositionPatient:s}=e,{PixelSpacing:l,type:u}=ehz(e)||{},d=!1,c=!1,h=!1;l?([t,r]=l,ehM.get("calibratedPixelSpacing",e.imageId)||ehU.add(e.imageId,{rowPixelSpacing:parseFloat(l[0]),columnPixelSpacing:parseFloat(l[1]),type:u})):(t=r=1,d=!0),o?(n=Ly(o.slice(0,3)),a=Ly(o.slice(3,6)),i=Ly(o)):(n=[1,0,0],a=[0,1,0],i=[1,0,0,0,1,0],d=!0,c=!0,h=!0);let p=Ly(s)||[0,0,0];return s||(d=!0),{frameOfReferenceUID:e.FrameOfReferenceUID,rows:Ly(e.Rows),columns:Ly(e.Columns),spacingBetweenSlices:Ly(e.SpacingBetweenSlices),imageOrientationPatient:i,rowCosines:n,isDefaultValueSetForRowCosine:c,columnCosines:a,isDefaultValueSetForColumnCosine:h,imagePositionPatient:p,sliceThickness:Ly(e.SliceThickness),sliceLocation:Ly(e.SliceLocation),pixelSpacing:Ly(l||1),rowPixelSpacing:t?Ly(t):null,columnPixelSpacing:r?Ly(r):null,usingDefaultValues:d}}},ehK="instance";u(6642),{...Lh,defaults:{hotkeyBindings:NB}};let ehY={activeViewportId:null,layout:{numRows:0,numCols:0,layoutType:"grid"},isHangingProtocolLayout:!1,viewports:new Map(Object.entries({default:{viewportId:"default",displaySetInstanceUIDs:[],isReady:!1,viewportOptions:{viewportId:"default"},displaySetSelectors:[],displaySetOptions:[{}],x:0,y:0,width:100,height:100,viewportLabel:null}}))};function ehZ(){return(ehZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}ei().any,ei().instanceOf(R6).isRequired,(0,ed.createContext)(null).Consumer;let ehX=(e,t,r)=>{if(!e)return;let n=e.getBoundingClientRect();n.bottom>window.innerHeight&&(t.y=t.y-n.height),n.right>window.innerWidth&&(t.x=t.x-n.width),r(t)};function ehJ(e){var t=null;return function(){return null==t&&(t=e()),t}}(0,ed.forwardRef)(({id:e,isOpen:t,title:r,content:n,contentProps:a,isDraggable:i,shouldCloseOnEsc:o=!1,shouldCloseOnOverlayClick:s=!1,showOverlay:l=!0,defaultPosition:u,onClose:d,unstyled:c,containerClassName:h},p)=>{let[m,f]=(0,ed.useState)(u),[g,y]=(0,ed.useState)(null);(0,ed.useImperativeHandle)(p,()=>({updatePosition:e=>{ehX(g,e,f)}}),[]),(0,ed.useEffect)(()=>{f(u)},[u]);let[v,b]=(0,ed.useState)(u?"invisible":"visible"),w=(0,ed.useCallback)(e=>{e&&(y(e),ehX(e,u,f),b("visible"))},[u]);return eh().createElement(ie,{open:t,modal:!1,onOpenChange:t=>{t||d(e)},isDraggable:i,shouldCloseOnEsc:o,shouldCloseOnOverlayClick:s,showOverlay:l},eh().createElement(ir,{ref:w,className:t_(c?"p-0":"",h,v),unstyled:c,style:{...m?{position:"fixed",left:`${m.x}px`,top:`${m.y}px`,transform:"translate(0, 0)",margin:0,animation:"none",transition:"none"}:{}}},!c&&eh().createElement(ia,null,r&&eh().createElement(ii,null,r)),eh().createElement(n,ehZ({},a,{hide:()=>d(e)}))))}).displayName="ManagedDialog",ei().oneOfType([ei().arrayOf(ei().node),ei().node]).isRequired,ei().shape({setServiceImplementation:ei().func}),(0,ed.createContext)({user:null,enabled:!1}).Consumer,ei().any,ei().shape({setServiceImplementation:ei().func}).isRequired;var ehQ=function(){var e;function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.entered=[],this.isNodeInDocument=e}return e=[{key:"enter",value:function(e){var t,r,n,a,i,o=this,s=this.entered.length;return this.entered=(t=this.entered.filter(function(t){return o.isNodeInDocument(t)&&(!t.contains||t.contains(e))}),r=[e],n=new Set,a=function(e){return n.add(e)},t.forEach(a),r.forEach(a),i=[],n.forEach(function(e){return i.push(e)}),i),0===s&&this.entered.length>0}},{key:"leave",value:function(e){var t,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),t.filter(function(t){return t!==e})),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}(),eh0=ehJ(function(){return/firefox/i.test(navigator.userAgent)}),eh1=ehJ(function(){return!!window.safari}),eh2=function(){var e;function t(e,r){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var n,a,i,o=e.length,s=[],l=0;l<o;l++)s.push(l);s.sort(function(t,r){return e[t]<e[r]?-1:1});for(var u=[],d=[],c=[],h=0;h<o-1;h++)n=e[h+1]-e[h],a=r[h+1]-r[h],d.push(n),u.push(a),c.push(a/n);for(var p=[c[0]],m=0;m<d.length-1;m++){var f=c[m],g=c[m+1];if(f*g<=0)p.push(0);else{n=d[m];var y=d[m+1],v=n+y;p.push(3*v/((v+y)/f+(v+n)/g))}}p.push(c[c.length-1]);for(var b=[],w=[],x=0;x<p.length-1;x++){i=c[x];var C=p[x],k=1/d[x],M=C+p[x+1]-i-i;b.push((i-C-M)*k),w.push(M*k*k)}this.xs=e,this.ys=r,this.c1s=p,this.c2s=b,this.c3s=w}return e=[{key:"interpolate",value:function(e){var t,r=this.xs,n=this.ys,a=this.c1s,i=this.c2s,o=this.c3s,s=r.length-1;if(e===r[s])return n[s];for(var l=0,u=o.length-1;l<=u;){var d=r[t=Math.floor(.5*(l+u))];if(d<e)l=t+1;else{if(!(d>e))return n[t];u=t-1}}var c=e-r[s=Math.max(0,u)],h=c*c;return n[s]+a[s]*c+i[s]*h+o[s]*c*h}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();function eh5(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var r=t.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}function eh3(e){return{x:e.clientX,y:e.clientY}}var eh4="__NATIVE_FILE__",eh8="__NATIVE_URL__",eh6="__NATIVE_TEXT__",eh9="__NATIVE_HTML__";function eh7(e,t,r){var n=t.reduce(function(t,r){return t||e.getData(r)},"");return null!=n?n:r}function epe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ept=(epe(ey9={},eh4,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),epe(ey9,eh9,{exposeProperties:{html:function(e,t){return eh7(e,t,"")}},matchesTypes:["Html","text/html"]}),epe(ey9,eh8,{exposeProperties:{urls:function(e,t){return eh7(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),epe(ey9,eh6,{exposeProperties:{text:function(e,t){return eh7(e,t,"")}},matchesTypes:["Text","text/plain"]}),ey9),epr=function(){var e;function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.config=e,this.item={},this.initializeExposedProperties()}return e=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach(function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var r={};Object.keys(this.config.exposeProperties).forEach(function(n){r[n]={value:t.config.exposeProperties[n](e,t.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,r)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();function epn(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(ept).filter(function(e){return ept[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}var epa=function(){var e;function t(e,r){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.ownerDocument=null,this.globalContext=e,this.optionsArgs=r}return e=[{key:"window",get:function(){return this.globalContext?this.globalContext:"u">typeof window?window:void 0}},{key:"document",get:function(){var e;return null!=(e=this.globalContext)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var e;return(null==(e=this.optionsArgs)?void 0:e.rootElement)||this.window}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();function epi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function epo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?epi(Object(r),!0).forEach(function(t){var n,a,i;n=e,a=t,i=r[t],a in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):epi(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eps(){return(eps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function epl(){return(epl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}"u">typeof window&&("ontouchstart"in window||navigator.maxTouchPoints),ei().any,[...[JSON.parse('{"name":"orchid","label":"Tonal: Orchid","cssVars":{"dark":{"highlight":"292 75% 62%","neutral":"270 18% 55%","neutral-light":"275 35% 75%","neutral-dark":"268 20% 24%","background":"270 45% 6%","foreground":"280 15% 96%","card":"268 40% 10%","card-foreground":"280 15% 96%","popover":"264 48% 13%","popover-foreground":"280 15% 96%","primary":"270 85% 65%","primary-foreground":"0 0% 98%","secondary":"268 45% 32%","secondary-foreground":"275 45% 88%","muted":"268 40% 10%","muted-foreground":"272 30% 60%","accent":"268 50% 20%","accent-foreground":"280 15% 96%","destructive":"0 65% 40%","destructive-foreground":"0 0% 98%","border":"268 30% 18%","input":"268 40% 25%","ring":"270 80% 60%"}}}'),JSON.parse('{"name":"arctic","label":"Tonal: Arctic","cssVars":{"dark":{"highlight":"173 81% 52%","neutral":"185 20% 55%","neutral-light":"180 40% 78%","neutral-dark":"190 18% 22%","background":"0 0% 0%","foreground":"180 10% 97%","card":"203 39% 9%","card-foreground":"180 10% 97%","popover":"202 54% 11%","popover-foreground":"180 10% 97%","primary":"175 85% 42%","primary-foreground":"185 50% 8%","secondary":"180 45% 28%","secondary-foreground":"175 50% 88%","muted":"203 39% 9%","muted-foreground":"185 30% 60%","accent":"185 55% 18%","accent-foreground":"180 10% 97%","destructive":"0 65% 35%","destructive-foreground":"0 0% 98%","border":"190 25% 17%","input":"223 40% 24%","ring":"175 85% 42%"}}}'),JSON.parse('{"name":"verdant","label":"Tonal: Verdant","cssVars":{"dark":{"highlight":"152 79% 52%","neutral":"150 15% 52%","neutral-light":"145 30% 72%","neutral-dark":"155 18% 24%","background":"155 40% 5%","foreground":"140 15% 95%","card":"152 35% 9%","card-foreground":"140 15% 95%","popover":"167 65% 10%","popover-foreground":"140 15% 95%","primary":"152 75% 40%","primary-foreground":"155 50% 8%","secondary":"150 40% 26%","secondary-foreground":"145 40% 85%","muted":"152 35% 9%","muted-foreground":"148 25% 55%","accent":"150 45% 16%","accent-foreground":"140 15% 95%","destructive":"0 65% 38%","destructive-foreground":"0 0% 98%","border":"150 25% 16%","input":"150 35% 22%","ring":"152 75% 40%"}}}'),JSON.parse('{"name":"midnight","label":"Neutral: Midnight","cssVars":{"dark":{"highlight":"188 90% 58%","neutral":"213 22% 59%","neutral-light":"214 69% 81%","neutral-dark":"214 16% 21%","background":"240 15% 3%","foreground":"0 0% 99%","card":"240 12% 8%","card-foreground":"0 0% 99%","popover":"225 45% 13%","popover-foreground":"0 0% 99%","primary":"210 100% 62%","primary-foreground":"0 0% 99%","secondary":"215 55% 32%","secondary-foreground":"200 60% 88%","muted":"240 12% 8%","muted-foreground":"210 40% 70%","accent":"220 65% 20%","accent-foreground":"0 0% 99%","destructive":"0 70% 35%","destructive-foreground":"0 0% 99%","border":"240 10% 18%","input":"225 35% 24%","ring":"210 100% 62%"}}}'),JSON.parse('{"name":"slate","label":"Neutral: Slate","cssVars":{"dark":{"highlight":"217 97% 52%","neutral":"0 0% 55%","neutral-light":"0 0% 75%","neutral-dark":"0 0% 25%","background":"0 0% 0%","foreground":"0 0% 96%","card":"0 0% 7%","card-foreground":"0 0% 96%","popover":"0 0% 9%","popover-foreground":"0 0% 96%","primary":"230 75% 55%","primary-foreground":"0 0% 98%","secondary":"0 0% 25%","secondary-foreground":"0 0% 85%","muted":"0 0% 7%","muted-foreground":"0 0% 60%","accent":"0 0% 18%","accent-foreground":"0 0% 96%","destructive":"0 65% 40%","destructive-foreground":"0 0% 98%","border":"0 0% 18%","input":"0 0% 22%","ring":"215 75% 55%"}}}'),JSON.parse('{"name":"deep","label":"Neutral: Deep","cssVars":{"dark":{"highlight":"184 53% 54%","neutral":"215 15% 50%","neutral-light":"210 20% 68%","neutral-dark":"220 18% 22%","background":"0 0% 0%","foreground":"215 15% 82%","card":"218 25% 5%","card-foreground":"215 15% 82%","popover":"215 30% 8%","popover-foreground":"215 15% 82%","primary":"200 43% 48%","primary-foreground":"210 20% 92%","secondary":"218 30% 18%","secondary-foreground":"215 25% 75%","muted":"214 28% 5%","muted-foreground":"215 18% 48%","accent":"216 32% 12%","accent-foreground":"215 15% 82%","destructive":"0 50% 35%","destructive-foreground":"0 15% 90%","border":"218 22% 10%","input":"216 28% 15%","ring":"215 45% 42%"}}}')].map(e=>e.name)],ei().string,ei().node,ei().bool,ed.forwardRef(({className:e,...t},r)=>ed.createElement("div",eps({ref:r,className:t_("bg-card text-card-foreground border-input rounded-lg border shadow",e)},t))).displayName="Card",ed.forwardRef(({className:e,...t},r)=>ed.createElement("div",eps({ref:r,className:t_("flex flex-col space-y-1.5 p-6",e)},t))).displayName="CardHeader",ed.forwardRef(({className:e,...t},r)=>ed.createElement("h3",eps({ref:r,className:t_("font-semibold leading-none tracking-tight",e)},t))).displayName="CardTitle",ed.forwardRef(({className:e,...t},r)=>ed.createElement("p",eps({ref:r,className:t_("text-muted-foreground text-base",e)},t))).displayName="CardDescription",ed.forwardRef(({className:e,...t},r)=>ed.createElement("div",eps({ref:r,className:t_("p-6 pt-0",e)},t))).displayName="CardContent",ed.forwardRef(({className:e,...t},r)=>ed.createElement("div",eps({ref:r,className:t_("flex items-center p-6 pt-0",e)},t))).displayName="CardFooter";let epu=ed.forwardRef(({className:e,containerClassName:t,noScroll:r=!1,...n},a)=>ed.createElement("div",{className:t_("relative w-full",!r&&"overflow-auto",t)},ed.createElement("table",epl({ref:a,className:t_("caption-bottom text-muted-foreground w-full text-base",e)},n))));epu.displayName="Table";let epd=ed.forwardRef(({className:e,...t},r)=>ed.createElement("thead",epl({ref:r,className:t_("border-input/50 [&_tr]:border-b",e)},t)));epd.displayName="TableHeader";let epc=ed.forwardRef(({className:e,...t},r)=>ed.createElement("tbody",epl({ref:r,className:t_("[&_tr:last-child]:border-0",e)},t)));epc.displayName="TableBody",ed.forwardRef(({className:e,...t},r)=>ed.createElement("tfoot",epl({ref:r,className:t_("bg-muted border-input/50 border-t [&>tr]:last:border-b-0",e)},t))).displayName="TableFooter";let eph=ed.forwardRef(({className:e,...t},r)=>ed.createElement("tr",epl({ref:r,className:t_("hover:bg-muted text-muted-foreground hover:text-highlight hover:[&>td]:text-highlight hover:[&>th]:text-highlight","data-[state=selected]:bg-popover data-[state=selected]:hover:bg-popover","data-[state=selected]:text-foreground data-[state=selected]:[&>td]:text-foreground data-[state=selected]:[&>th]:text-foreground","data-[state=selected]:hover:text-foreground data-[state=selected]:hover:[&>td]:text-foreground data-[state=selected]:hover:[&>th]:text-foreground","border-input/50 border-b transition-colors",e)},t)));eph.displayName="TableRow";let epp=ed.forwardRef(({className:e,...t},r)=>ed.createElement("th",epl({ref:r,className:t_("text-muted-foreground h-10 px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e)},t)));epp.displayName="TableHead";let epm=ed.forwardRef(({className:e,...t},r)=>ed.createElement("td",epl({ref:r,className:t_("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e)},t)));epm.displayName="TableCell",ed.forwardRef(({className:e,...t},r)=>ed.createElement("caption",epl({ref:r,className:t_("text-muted-foreground mt-4 text-base",e)},t))).displayName="TableCaption",ei().string,ei().func.isRequired,ei().array,ei().node;ei().string,ei().string,ei().string,ei().string,ei().string,ei().string,ei().string,ei().string,ei().bool,ei().object,ei().func.isRequired,ei().func,ei().shape({label:ei().string.isRequired,studyDate:ei().string.isRequired,seriesDescription:ei().string.isRequired,patientInformation:ei().shape({patientName:ei().string,patientSex:ei().string,patientAge:ei().string,MRN:ei().string,thickness:ei().string,thicknessUnits:ei().string,spacing:ei().string,scanner:ei().string})}).isRequired,ei().func.isRequired;ei().func.isRequired,ei().string,ei().node.isRequired,ei().string,ei().bool.isRequired,ei().string.isRequired,ei().func.isRequired,ei().func.isRequired,ei().func,ei().object;let epf=((eyp={})[eyp.topLeft=0]="topLeft",eyp[eyp.topRight=1]="topRight",eyp[eyp.bottomLeft=2]="bottomLeft",eyp[eyp.bottomRight=3]="bottomRight",eyp[eyp.topMiddle=4]="topMiddle",eyp[eyp.bottomMiddle=5]="bottomMiddle",eyp[eyp.leftMiddle=6]="leftMiddle",eyp[eyp.rightMiddle=7]="rightMiddle",eyp),epg="pointer-events-auto flex items-center";epf.topLeft,em()(epg,"absolute top-[4px] left-[0px] pl-[4px]"),epf.topRight,em()(epg,"absolute top-[4px] right-viewport-scrollbar"),epf.bottomLeft,em()(epg,"absolute bottom-[3px] left-[0px] pl-[4px]"),epf.bottomRight,em()(epg,"absolute bottom-[3px] right-viewport-scrollbar"),epf.topMiddle,em()(epg,"absolute top-[25px] left-1/2 -translate-x-1/2"),epf.bottomMiddle,em()(epg,"absolute bottom-[3px] left-1/2 -translate-x-1/2"),epf.leftMiddle,em()(epg,"absolute left-[20px] top-[calc(50%+2px)] -translate-y-1/2 pl-[4px]"),epf.rightMiddle,em()(epg,"absolute top-1/2 -translate-y-1/2 right-viewport-scrollbar");function epy(){return(epy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}ei().node,ei().node,ei().node,ei().node,ei().string,ei().string,ei().number.isRequired,ei().number.isRequired,ei().string,ei().arrayOf(ei().node).isRequired,eh().forwardRef(({className:e,children:t,...r},n)=>eh().createElement("div",epy({ref:n,className:t_("flex items-center",e)},r),t)).displayName="ToolButtonList",eh().forwardRef(({className:e,children:t,tooltip:r,disabledText:n,disabled:a,...i},o)=>{let s=r||n,l=eh().createElement("div",epy({ref:o,className:t_("flex items-center",e)},i),t);return s?eh().createElement(Ip,null,eh().createElement(If,{asChild:!0},eh().createElement("span",null,l)),eh().createElement(IP,{side:"bottom"},r&&eh().createElement("div",null,r),n&&a&&eh().createElement("div",{className:"text-muted-foreground"},n))):l}).displayName="ToolButtonListDefault",eh().forwardRef(({children:e,className:t,...r},n)=>eh().createElement(_1,r,eh().createElement(_5,{asChild:!0},eh().createElement(rM,{variant:"ghost",size:"icon",className:t_("text-foreground/80 hover:bg-background hover:text-highlight border-primary","inline-flex h-10 w-5 items-center justify-center","!rounded-tr-lg !rounded-br-lg !rounded-tl-none !rounded-bl-none","bg-transparent",t)},eh().createElement(hO.ByName,{name:"chevron-down",className:"text-primary h-5 w-5"}))),eh().createElement(Do,{ref:n,side:"bottom",align:"start",alignOffset:-40},e))).displayName="ToolButtonListDropDown",eh().forwardRef(({className:e,children:t,icon:r,disabledText:n,tooltip:a,disabled:i,...o},s)=>{let l=a||("string"==typeof t?t:void 0),u=eh().createElement(Ds,epy({ref:s,className:t_("flex items-center space-x-2",e),disabled:i},o),r&&eh().createElement(hO.ByName,{name:r||"MissingIcon",className:"h-6 w-6"}),t);return i?eh().createElement(Ip,null,eh().createElement(If,{asChild:!0},eh().createElement("span",null,u)),eh().createElement(IP,{side:"bottom"},l&&eh().createElement("div",null,l),n&&i&&eh().createElement("div",{className:"text-muted-foreground"},n))):u}).displayName="ToolButtonListItem",eh().forwardRef(({className:e,...t},r)=>eh().createElement("div",epy({ref:r,className:t_("bg-primary h-5 w-px self-center",e)},t))).displayName="ToolButtonListDivider";let epv=(0,ed.createContext)(void 0),epb=()=>{let e=(0,ed.useContext)(epv);if(void 0===e)throw Error("useLayoutSelector must be used within a LayoutSelector component");return e},epw=({onSelectionChange:e,onSelection:t=e=>{},onSelectionPreset:r=e=>{},children:n,open:a,onOpenChange:i,tooltipDisabled:o})=>{let[s,l]=(0,ed.useState)(!1),u=void 0!==a,d=u?a:s,c=u?i:l,h=(0,ed.useCallback)(r=>{t(r),e&&e(r,!1),c(!1)},[t,e,c]),p=(0,ed.useCallback)(t=>{r(t),e&&e(t,!0),c(!1)},[r,e,c]);return eh().createElement(epv.Provider,{value:{isOpen:d,setIsOpen:c,onSelection:h,onSelectionPreset:p}},eh().createElement(hB,{open:d,onOpenChange:c},n))};function epx(e,t){return"function"==typeof e?e(t):e}function epC(e,t){return r=>{t.setState(t=>({...t,[e]:epx(r,t[e])}))}}function epk(e){return e instanceof Function}function epM(e,t,r){let n,a=[];return i=>{let o,s;r.key&&r.debug&&(o=Date.now());let l=e(i);if(!(l.length!==a.length||l.some((e,t)=>a[t]!==e)))return n;if(a=l,r.key&&r.debug&&(s=Date.now()),n=t(...l),null==r||null==r.onChange||r.onChange(n),r.key&&r.debug&&null!=r&&r.debug()){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-s)*100)/100,n=t/16,a=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${a(t,5)} /${a(e,5)} ms`,`
1838
1838
  font-size: .6rem;
1839
1839
  font-weight: bold;
1840
1840
  color: hsl(${Math.max(0,Math.min(120-120*n,120))}deg 100% 31%);`,null==r?void 0:r.key)}return n}}function epS(e,t,r,n){return{debug:()=>{var r;return null!=(r=null==e?void 0:e.debugAll)?r:e[t]},key:!1,onChange:n}}epw.Trigger=({children:e,className:t,tooltip:r="Change layout",disabled:n=!1,disabledText:a})=>{let{isOpen:i}=epb(),o=r||n&&a,s=eh().createElement(rM,{className:t_("inline-flex h-10 w-10 items-center justify-center !rounded-lg",n?"text-foreground/80 hover:bg-muted hover:text-highlight cursor-not-allowed opacity-40":i?"bg-background text-foreground/80":"text-foreground/80 hover:bg-background hover:text-highlight bg-transparent",t),variant:"ghost",size:"icon","aria-label":r,disabled:n},eh().createElement(hO.ByName,{name:"tool-layout",className:"h-7 w-7"}));return e?eh().createElement(hU,{asChild:!0,className:t},e):!i&&o?eh().createElement(Ip,null,eh().createElement(If,{asChild:!0},eh().createElement(hU,{asChild:!0},eh().createElement("span",{"data-cy":"layout-button"},s))),eh().createElement(IP,{side:"bottom"},r&&eh().createElement("div",null,r),n&&a&&eh().createElement("div",{className:"text-muted-foreground"},a))):eh().createElement(hU,{asChild:!0},eh().createElement("span",{"data-cy":"layout-button"},s))},epw.Content=({children:e,className:t,align:r="center",sideOffset:n=8})=>eh().createElement(h2,{align:r,sideOffset:n,className:t_("w-auto rounded-lg border-none p-0 shadow-lg",t)},eh().createElement("div",{className:"flex"},e)),epw.PresetSection=({children:e,title:t,className:r})=>eh().createElement("div",{className:t_("flex flex-col gap-2",r)},eh().createElement("div",{className:"text-muted-foreground text-xs"},t),eh().Children.count(e)>0&&eh().createElement("div",{className:t_("common"===t.toLowerCase()?"flex gap-2":"flex flex-col gap-0")},e)),epw.Preset=({title:e,icon:t,commandOptions:r,disabled:n=!1,className:a,isPreset:i=!1,iconSize:o})=>{let{onSelection:s,onSelectionPreset:l}=epb();return eh().createElement("div",{className:t_("group cursor-pointer rounded transition","hover:bg-accent flex items-center gap-2 p-1.5",n&&"pointer-events-none opacity-50",a),onClick:()=>{n||(i?l(r):s(r))},"data-cy":e},eh().createElement("div",{className:"flex-shrink-0"},eh().createElement(hO.ByName,{name:t,className:t_("group-hover:text-primary",o)})),e&&eh().createElement("div",{className:"text-foreground text-base"},e))},epw.GridSelector=({rows:e=3,columns:t=4,className:r})=>{let[n,a]=(0,ed.useState)(void 0),{onSelection:i}=epb(),o=void 0!==n?n%t:-1,s=void 0!==n?Math.floor(n/t):-1;return eh().createElement("div",{className:t_(r),style:{display:"grid",gridTemplateColumns:`repeat(${t}, 20px)`,gridTemplateRows:`repeat(${e}, 20px)`,gap:"2px"}},Array.from(Array(e*t).keys()).map(e=>eh().createElement("div",{key:e,className:t_("cursor-pointer",(e=>{if(void 0===n)return!1;let r=Math.floor(e/t);return e%t<=o&&r<=s})(e)?"bg-primary":"bg-accent"),"data-cy":`Layout-${e%t}-${Math.floor(e/t)}`,onClick:()=>{i({numRows:Math.floor(e/t)+1,numCols:e%t+1})},onMouseEnter:()=>a(e),onMouseLeave:()=>a(void 0)})))},epw.Divider=({className:e})=>eh().createElement("div",{className:t_("h-px bg-background",e)}),epw.HelpText=({children:e,className:t})=>eh().createElement("p",{className:t_("text-muted-foreground text-xs leading-tight",t)},e),epw.propTypes={onSelectionChange:ea.func,onSelection:ea.func,onSelectionPreset:ea.func,children:ea.node.isRequired,open:ea.bool,onOpenChange:ea.func,tooltipDisabled:ea.bool};let epE="debugHeaders";function epT(e,t,r){var n;let a={id:null!=(n=r.id)?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=r=>{r.subHeaders&&r.subHeaders.length&&r.subHeaders.map(t),e.push(r)};return t(a),e},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(a,e)}),a}function epI(e,t,r,n){var a,i;let o=0,s=function(e,t){void 0===t&&(t=1),o=Math.max(o,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var r;null!=(r=e.columns)&&r.length&&s(e.columns,t+1)},0)};s(e);let l=[],u=(e,t)=>{let a={depth:t,id:[n,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{let o,s=[...i].reverse()[0],l=e.column.depth===a.depth,u=!1;if(l&&e.column.parent?o=e.column.parent:(o=e.column,u=!0),s&&(null==s?void 0:s.column)===o)s.subHeaders.push(e);else{let a=epT(r,o,{id:[n,t,o.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:u,placeholderId:u?`${i.filter(e=>e.column===o).length}`:void 0,depth:t,index:i.length});a.subHeaders.push(e),i.push(a)}a.headers.push(e),e.headerGroup=a}),l.push(a),t>0&&u(i,t-1)};u(t.map((e,t)=>epT(r,e,{depth:o,index:t})),o-1),l.reverse();let d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,r=0,n=[0];return e.subHeaders&&e.subHeaders.length?(n=[],d(e.subHeaders).forEach(e=>{let{colSpan:r,rowSpan:a}=e;t+=r,n.push(a)})):t=1,r+=Math.min(...n),e.colSpan=t,e.rowSpan=r,{colSpan:t,rowSpan:r}});return d(null!=(a=null==(i=l[0])?void 0:i.headers)?a:[]),l}let epP=(e,t,r,n,a,i,o)=>{let s={id:t,index:n,original:r,depth:a,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];let r=e.getColumn(t);if(null!=r&&r.accessorFn)return s._valuesCache[t]=r.accessorFn(s.original,n),s._valuesCache[t]},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];let r=e.getColumn(t);if(null!=r&&r.accessorFn)return r.columnDef.getUniqueValues?s._uniqueValuesCache[t]=r.columnDef.getUniqueValues(s.original,n):s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]},renderValue:t=>{var r;return null!=(r=s.getValue(t))?r:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>{var e,t;let r,n;return e=s.subRows,t=e=>e.subRows,r=[],(n=e=>{e.forEach(e=>{r.push(e);let a=t(e);null!=a&&a.length&&n(a)})})(e),r},getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){let r=t.getParentRow();if(!r)break;e.push(r),t=r}return e.reverse()},getAllCells:epM(()=>[e.getAllLeafColumns()],t=>t.map(t=>{var r;let n;return r=t.id,n={id:`${s.id}_${t.id}`,row:s,column:t,getValue:()=>s.getValue(r),renderValue:()=>{var t;return null!=(t=n.getValue())?t:e.options.renderFallbackValue},getContext:epM(()=>[e,t,s,n],(e,t,r,n)=>({table:e,column:t,row:r,cell:n,getValue:n.getValue,renderValue:n.renderValue}),epS(e.options,"debugCells","cell.getContext"))},e._features.forEach(r=>{null==r.createCell||r.createCell(n,t,s,e)},{}),n}),epS(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:epM(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),epS(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;t<e._features.length;t++){let r=e._features[t];null==r||null==r.createRow||r.createRow(s,e)}return s},ep_=(e,t,r)=>{var n,a;let i=null==r||null==(n=r.toString())?void 0:n.toLowerCase();return!!(null==(a=e.getValue(t))||null==(a=a.toString())||null==(a=a.toLowerCase())?void 0:a.includes(i))};ep_.autoRemove=e=>epj(e);let epD=(e,t,r)=>{var n;return!!(null==(n=e.getValue(t))||null==(n=n.toString())?void 0:n.includes(r))};epD.autoRemove=e=>epj(e);let epO=(e,t,r)=>{var n;return(null==(n=e.getValue(t))||null==(n=n.toString())?void 0:n.toLowerCase())===(null==r?void 0:r.toLowerCase())};epO.autoRemove=e=>epj(e);let epA=(e,t,r)=>{var n;return null==(n=e.getValue(t))?void 0:n.includes(r)};epA.autoRemove=e=>epj(e);let epR=(e,t,r)=>!r.some(r=>{var n;return!(null!=(n=e.getValue(t))&&n.includes(r))});epR.autoRemove=e=>epj(e)||!(null!=e&&e.length);let epL=(e,t,r)=>r.some(r=>{var n;return null==(n=e.getValue(t))?void 0:n.includes(r)});epL.autoRemove=e=>epj(e)||!(null!=e&&e.length);let epN=(e,t,r)=>e.getValue(t)===r;epN.autoRemove=e=>epj(e);let epV=(e,t,r)=>e.getValue(t)==r;epV.autoRemove=e=>epj(e);let epF=(e,t,r)=>{let[n,a]=r,i=e.getValue(t);return i>=n&&i<=a};epF.resolveFilterValue=e=>{let[t,r]=e,n="number"!=typeof t?parseFloat(t):t,a="number"!=typeof r?parseFloat(r):r,i=null===t||Number.isNaN(n)?-1/0:n,o=null===r||Number.isNaN(a)?1/0:a;if(i>o){let e=i;i=o,o=e}return[i,o]},epF.autoRemove=e=>epj(e)||epj(e[0])&&epj(e[1]);let epB={includesString:ep_,includesStringSensitive:epD,equalsString:epO,arrIncludes:epA,arrIncludesAll:epR,arrIncludesSome:epL,equals:epN,weakEquals:epV,inNumberRange:epF};function epj(e){return null==e||""===e}function epW(e,t,r){return!!e&&!!e.autoRemove&&e.autoRemove(t,r)||void 0===t||"string"==typeof t&&!t}let epU={sum:(e,t,r)=>r.reduce((t,r)=>{let n=r.getValue(e);return t+("number"==typeof n?n:0)},0),min:(e,t,r)=>{let n;return r.forEach(t=>{let r=t.getValue(e);null!=r&&(n>r||void 0===n&&r>=r)&&(n=r)}),n},max:(e,t,r)=>{let n;return r.forEach(t=>{let r=t.getValue(e);null!=r&&(n<r||void 0===n&&r>=r)&&(n=r)}),n},extent:(e,t,r)=>{let n,a;return r.forEach(t=>{let r=t.getValue(e);null!=r&&(void 0===n?r>=r&&(n=a=r):(n>r&&(n=r),a<r&&(a=r)))}),[n,a]},mean:(e,t)=>{let r=0,n=0;if(t.forEach(t=>{let a=t.getValue(e);null!=a&&(a*=1)>=a&&(++r,n+=a)}),r)return n/r},median:(e,t)=>{if(!t.length)return;let r=t.map(t=>t.getValue(e));if(!(Array.isArray(r)&&r.every(e=>"number"==typeof e)))return;if(1===r.length)return r[0];let n=Math.floor(r.length/2),a=r.sort((e,t)=>e-t);return r.length%2!=0?a[n]:(a[n-1]+a[n])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},epz=()=>({left:[],right:[]}),epH={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},epG=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),epq=null;function ep$(e){return"touchstart"===e.type}function epK(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}let epY=()=>({pageIndex:0,pageSize:10}),epZ=()=>({top:[],bottom:[]}),epX=(e,t,r,n,a)=>{var i;let o=a.getRow(t,!0);r?(o.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),o.getCanSelect()&&(e[t]=!0)):delete e[t],n&&null!=(i=o.subRows)&&i.length&&o.getCanSelectSubRows()&&o.subRows.forEach(t=>epX(e,t.id,r,n,a))};function epJ(e,t){let r=e.getState().rowSelection,n=[],a={},i=function(e,t){return e.map(e=>{var t;let o=epQ(e,r);if(o&&(n.push(e),a[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),o)return e}).filter(Boolean)};return{rows:i(t.rows),flatRows:n,rowsById:a}}function epQ(e,t){var r;return null!=(r=t[e.id])&&r}function ep0(e,t,r){var n;if(!(null!=(n=e.subRows)&&n.length))return!1;let a=!0,i=!1;return e.subRows.forEach(e=>{if((!i||a)&&(e.getCanSelect()&&(epQ(e,t)?i=!0:a=!1),e.subRows&&e.subRows.length)){let r=ep0(e,t);"all"===r?i=!0:("some"===r&&(i=!0),a=!1)}}),a?"all":!!i&&"some"}let ep1=/([0-9]+)/gm;function ep2(e,t){return e===t?0:e>t?1:-1}function ep5(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function ep3(e,t){let r=e.split(ep1).filter(Boolean),n=t.split(ep1).filter(Boolean);for(;r.length&&n.length;){let e=r.shift(),t=n.shift(),a=parseInt(e,10),i=parseInt(t,10),o=[a,i].sort();if(isNaN(o[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(o[1]))return isNaN(a)?-1:1;if(a>i)return 1;if(i>a)return -1}return r.length-n.length}let ep4={alphanumeric:(e,t,r)=>ep3(ep5(e.getValue(r)).toLowerCase(),ep5(t.getValue(r)).toLowerCase()),alphanumericCaseSensitive:(e,t,r)=>ep3(ep5(e.getValue(r)),ep5(t.getValue(r))),text:(e,t,r)=>ep2(ep5(e.getValue(r)).toLowerCase(),ep5(t.getValue(r)).toLowerCase()),textCaseSensitive:(e,t,r)=>ep2(ep5(e.getValue(r)),ep5(t.getValue(r))),datetime:(e,t,r)=>{let n=e.getValue(r),a=t.getValue(r);return n>a?1:n<a?-1:0},basic:(e,t,r)=>ep2(e.getValue(r),t.getValue(r))},ep8=[{createTable:e=>{e.getHeaderGroups=epM(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,a)=>{var i,o;let s=null!=(i=null==n?void 0:n.map(e=>r.find(t=>t.id===e)).filter(Boolean))?i:[],l=null!=(o=null==a?void 0:a.map(e=>r.find(t=>t.id===e)).filter(Boolean))?o:[];return epI(t,[...s,...r.filter(e=>!(null!=n&&n.includes(e.id))&&!(null!=a&&a.includes(e.id))),...l],e)},epS(e.options,epE,"getHeaderGroups")),e.getCenterHeaderGroups=epM(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,a)=>epI(t,r=r.filter(e=>!(null!=n&&n.includes(e.id))&&!(null!=a&&a.includes(e.id))),e,"center"),epS(e.options,epE,"getCenterHeaderGroups")),e.getLeftHeaderGroups=epM(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var a;return epI(t,null!=(a=null==n?void 0:n.map(e=>r.find(t=>t.id===e)).filter(Boolean))?a:[],e,"left")},epS(e.options,epE,"getLeftHeaderGroups")),e.getRightHeaderGroups=epM(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var a;return epI(t,null!=(a=null==n?void 0:n.map(e=>r.find(t=>t.id===e)).filter(Boolean))?a:[],e,"right")},epS(e.options,epE,"getRightHeaderGroups")),e.getFooterGroups=epM(()=>[e.getHeaderGroups()],e=>[...e].reverse(),epS(e.options,epE,"getFooterGroups")),e.getLeftFooterGroups=epM(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),epS(e.options,epE,"getLeftFooterGroups")),e.getCenterFooterGroups=epM(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),epS(e.options,epE,"getCenterFooterGroups")),e.getRightFooterGroups=epM(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),epS(e.options,epE,"getRightFooterGroups")),e.getFlatHeaders=epM(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),epS(e.options,epE,"getFlatHeaders")),e.getLeftFlatHeaders=epM(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),epS(e.options,epE,"getLeftFlatHeaders")),e.getCenterFlatHeaders=epM(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),epS(e.options,epE,"getCenterFlatHeaders")),e.getRightFlatHeaders=epM(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),epS(e.options,epE,"getRightFlatHeaders")),e.getCenterLeafHeaders=epM(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),epS(e.options,epE,"getCenterLeafHeaders")),e.getLeftLeafHeaders=epM(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),epS(e.options,epE,"getLeftLeafHeaders")),e.getRightLeafHeaders=epM(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),epS(e.options,epE,"getRightLeafHeaders")),e.getLeafHeaders=epM(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,r)=>{var n,a,i,o,s,l;return[...null!=(n=null==(a=e[0])?void 0:a.headers)?n:[],...null!=(i=null==(o=t[0])?void 0:o.headers)?i:[],...null!=(s=null==(l=r[0])?void 0:l.headers)?s:[]].map(e=>e.getLeafHeaders()).flat()},epS(e.options,epE,"getLeafHeaders"))}},{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:epC("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=r=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=r?r:!e.getIsVisible()}))},e.getIsVisible=()=>{var r,n;let a=e.columns;return null==(r=a.length?a.some(e=>e.getIsVisible()):null==(n=t.getState().columnVisibility)?void 0:n[e.id])||r},e.getCanHide=()=>{var r,n;return(null==(r=e.columnDef.enableHiding)||r)&&(null==(n=t.options.enableHiding)||n)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=epM(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),epS(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=epM(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,r)=>[...e,...t,...r],epS(t.options,"debugRows","getVisibleCells"))},createTable:e=>{let t=(t,r)=>epM(()=>[r(),r().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),epS(e.options,"debugColumns",t));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var r;e.setColumnVisibility(t?{}:null!=(r=e.initialState.columnVisibility)?r:{})},e.toggleAllColumnsVisible=t=>{var r;t=null!=(r=t)?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,r)=>({...e,[r.id]:t||!(null!=r.getCanHide&&r.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var r;e.toggleAllColumnsVisible(null==(r=t.target)?void 0:r.checked)}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:epC("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=epM(e=>[epK(t,e)],t=>t.findIndex(t=>t.id===e.id),epS(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=r=>{var n;return(null==(n=epK(t,r)[0])?void 0:n.id)===e.id},e.getIsLastColumn=r=>{var n;let a=epK(t,r);return(null==(n=a[a.length-1])?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var r;e.setColumnOrder(t?[]:null!=(r=e.initialState.columnOrder)?r:[])},e._getOrderColumnsFn=epM(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,r)=>n=>{let a=[];if(null!=e&&e.length){let t=[...e],r=[...n];for(;r.length&&t.length;){let e=t.shift(),n=r.findIndex(t=>t.id===e);n>-1&&a.push(r.splice(n,1)[0])}a=[...a,...r]}else a=n;var i=a;if(!(null!=t&&t.length)||!r)return i;let o=i.filter(e=>!t.includes(e.id));return"remove"===r?o:[...t.map(e=>i.find(t=>t.id===e)).filter(Boolean),...o]},epS(e.options,"debugTable","_getOrderColumnsFn"))}},{getInitialState:e=>({columnPinning:epz(),...e}),getDefaultOptions:e=>({onColumnPinningChange:epC("columnPinning",e)}),createColumn:(e,t)=>{e.pin=r=>{let n=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,a,i,o,s,l;return"right"===r?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=n&&n.includes(e))),right:[...(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=n&&n.includes(e))),...n]}:"left"===r?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter(e=>!(null!=n&&n.includes(e))),...n],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=n&&n.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=n&&n.includes(e))),right:(null!=(a=null==e?void 0:e.right)?a:[]).filter(e=>!(null!=n&&n.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var r,n,a;return(null==(r=e.columnDef.enablePinning)||r)&&(null==(n=null!=(a=t.options.enableColumnPinning)?a:t.options.enablePinning)||n)}),e.getIsPinned=()=>{let r=e.getLeafColumns().map(e=>e.id),{left:n,right:a}=t.getState().columnPinning,i=r.some(e=>null==n?void 0:n.includes(e)),o=r.some(e=>null==a?void 0:a.includes(e));return i?"left":!!o&&"right"},e.getPinnedIndex=()=>{var r,n;let a=e.getIsPinned();return a?null!=(r=null==(n=t.getState().columnPinning)||null==(n=n[a])?void 0:n.indexOf(e.id))?r:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=epM(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,r)=>{let n=[...null!=t?t:[],...null!=r?r:[]];return e.filter(e=>!n.includes(e.column.id))},epS(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=epM(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),epS(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=epM(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),epS(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var r,n;return e.setColumnPinning(t?epz():null!=(r=null==(n=e.initialState)?void 0:n.columnPinning)?r:epz())},e.getIsSomeColumnsPinned=t=>{var r,n,a;let i=e.getState().columnPinning;return t?!!(null==(r=i[t])?void 0:r.length):!!((null==(n=i.left)?void 0:n.length)||(null==(a=i.right)?void 0:a.length))},e.getLeftLeafColumns=epM(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),epS(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=epM(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),epS(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=epM(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,r)=>{let n=[...null!=t?t:[],...null!=r?r:[]];return e.filter(e=>!n.includes(e.id))},epS(e.options,"debugColumns","getCenterLeafColumns"))}},{createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:epC("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let r=t.getCoreRowModel().flatRows[0],n=null==r?void 0:r.getValue(e.id);return"string"==typeof n?epB.includesString:"number"==typeof n?epB.inNumberRange:"boolean"==typeof n||null!==n&&"object"==typeof n?epB.equals:Array.isArray(n)?epB.arrIncludes:epB.weakEquals},e.getFilterFn=()=>{var r,n;return epk(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(r=null==(n=t.options.filterFns)?void 0:n[e.columnDef.filterFn])?r:epB[e.columnDef.filterFn]},e.getCanFilter=()=>{var r,n,a;return(null==(r=e.columnDef.enableColumnFilter)||r)&&(null==(n=t.options.enableColumnFilters)||n)&&(null==(a=t.options.enableFilters)||a)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var r;return null==(r=t.getState().columnFilters)||null==(r=r.find(t=>t.id===e.id))?void 0:r.value},e.getFilterIndex=()=>{var r,n;return null!=(r=null==(n=t.getState().columnFilters)?void 0:n.findIndex(t=>t.id===e.id))?r:-1},e.setFilterValue=r=>{t.setColumnFilters(t=>{var n,a;let i=e.getFilterFn(),o=null==t?void 0:t.find(t=>t.id===e.id),s=epx(r,o?o.value:void 0);if(epW(i,s,e))return null!=(n=null==t?void 0:t.filter(t=>t.id!==e.id))?n:[];let l={id:e.id,value:s};return o?null!=(a=null==t?void 0:t.map(t=>t.id===e.id?l:t))?a:[]:null!=t&&t.length?[...t,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let r=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var n;return null==(n=epx(t,e))?void 0:n.filter(e=>{let t=r.find(t=>t.id===e.id);return!(t&&epW(t.getFilterFn(),e.value,t))&&!0})})},e.resetColumnFilters=t=>{var r,n;e.setColumnFilters(t?[]:null!=(r=null==(n=e.initialState)?void 0:n.columnFilters)?r:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel()}},{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:epC("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r;let n=null==(r=e.getCoreRowModel().flatRows[0])||null==(r=r._getAllCellsByColumnId()[t.id])?void 0:r.getValue();return"string"==typeof n||"number"==typeof n}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var r,n,a,i;return(null==(r=e.columnDef.enableGlobalFilter)||r)&&(null==(n=t.options.enableGlobalFilter)||n)&&(null==(a=t.options.enableFilters)||a)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>epB.includesString,e.getGlobalFilterFn=()=>{var t,r;let{globalFilterFn:n}=e.options;return epk(n)?n:"auto"===n?e.getGlobalAutoFilterFn():null!=(t=null==(r=e.options.filterFns)?void 0:r[n])?t:epB[n]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:epC("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let r=t.getFilteredRowModel().flatRows.slice(10),n=!1;for(let t of r){let r=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(r))return ep4.datetime;if("string"==typeof r&&(n=!0,r.split(ep1).length>1))return ep4.alphanumeric}return n?ep4.text:ep4.basic},e.getAutoSortDir=()=>{let r=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==r?void 0:r.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var r,n;if(!e)throw Error();return epk(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(r=null==(n=t.options.sortingFns)?void 0:n[e.columnDef.sortingFn])?r:ep4[e.columnDef.sortingFn]},e.toggleSorting=(r,n)=>{let a=e.getNextSortingOrder(),i=null!=r;t.setSorting(o=>{let s,l=null==o?void 0:o.find(t=>t.id===e.id),u=null==o?void 0:o.findIndex(t=>t.id===e.id),d=[],c=i?r:"desc"===a;if("toggle"!=(s=null!=o&&o.length&&e.getCanMultiSort()&&n?l?"toggle":"add":null!=o&&o.length&&u!==o.length-1?"replace":l?"toggle":"replace")||i||a||(s="remove"),"add"===s){var h;(d=[...o,{id:e.id,desc:c}]).splice(0,d.length-(null!=(h=t.options.maxMultiSortColCount)?h:Number.MAX_SAFE_INTEGER))}else d="toggle"===s?o.map(t=>t.id===e.id?{...t,desc:c}:t):"remove"===s?o.filter(t=>t.id!==e.id):[{id:e.id,desc:c}];return d})},e.getFirstSortDir=()=>{var r,n;return(null!=(r=null!=(n=e.columnDef.sortDescFirst)?n:t.options.sortDescFirst)?r:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=r=>{var n,a;let i=e.getFirstSortDir(),o=e.getIsSorted();return o?(o===i||null!=(n=t.options.enableSortingRemoval)&&!n||!!r&&null!=(a=t.options.enableMultiRemove)&&!a)&&("desc"===o?"asc":"desc"):i},e.getCanSort=()=>{var r,n;return(null==(r=e.columnDef.enableSorting)||r)&&(null==(n=t.options.enableSorting)||n)&&!!e.accessorFn},e.getCanMultiSort=()=>{var r,n;return null!=(r=null!=(n=e.columnDef.enableMultiSort)?n:t.options.enableMultiSort)?r:!!e.accessorFn},e.getIsSorted=()=>{var r;let n=null==(r=t.getState().sorting)?void 0:r.find(t=>t.id===e.id);return!!n&&(n.desc?"desc":"asc")},e.getSortIndex=()=>{var r,n;return null!=(r=null==(n=t.getState().sorting)?void 0:n.findIndex(t=>t.id===e.id))?r:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let r=e.getCanSort();return n=>{r&&(null==n.persist||n.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(n))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var r,n;e.setSorting(t?[]:null!=(r=null==(n=e.initialState)?void 0:n.sorting)?r:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return null!=(t=null==(r=e.getValue())||null==r.toString?void 0:r.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:epC("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var r,n;return(null==(r=e.columnDef.enableGrouping)||r)&&(null==(n=t.options.enableGrouping)||n)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var r;return null==(r=t.getState().grouping)?void 0:r.includes(e.id)},e.getGroupedIndex=()=>{var r;return null==(r=t.getState().grouping)?void 0:r.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let r=t.getCoreRowModel().flatRows[0],n=null==r?void 0:r.getValue(e.id);return"number"==typeof n?epU.sum:"[object Date]"===Object.prototype.toString.call(n)?epU.extent:void 0},e.getAggregationFn=()=>{var r,n;if(!e)throw Error();return epk(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(r=null==(n=t.options.aggregationFns)?void 0:n[e.columnDef.aggregationFn])?r:epU[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var r,n;e.setGrouping(t?[]:null!=(r=null==(n=e.initialState)?void 0:n.grouping)?r:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=r=>{if(e._groupingValuesCache.hasOwnProperty(r))return e._groupingValuesCache[r];let n=t.getColumn(r);return null!=n&&n.columnDef.getGroupingValue?(e._groupingValuesCache[r]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[r]):e.getValue(r)},e._groupingValuesCache={}},createCell:(e,t,r,n)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===r.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=r.subRows)&&t.length)}}},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:epC("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;e._autoResetExpanded=()=>{var n,a;if(!t)return void e._queue(()=>{t=!0});if(null!=(n=null!=(a=e.options.autoResetAll)?a:e.options.autoResetExpanded)?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var r,n;e.setExpanded(t?{}:null!=(r=null==(n=e.initialState)?void 0:n.expanded)?r:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{let r=e.split(".");t=Math.max(t,r.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()},createRow:(e,t)=>{e.toggleExpanded=r=>{t.setExpanded(n=>{var a;let i=!0===n||!!(null!=n&&n[e.id]),o={};if(!0===n?Object.keys(t.getRowModel().rowsById).forEach(e=>{o[e]=!0}):o=n,r=null!=(a=r)?a:!i,!i&&r)return{...o,[e.id]:!0};if(i&&!r){let{[e.id]:t,...r}=o;return r}return n})},e.getIsExpanded=()=>{var r;let n=t.getState().expanded;return!!(null!=(r=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?r:!0===n||(null==n?void 0:n[e.id]))},e.getCanExpand=()=>{var r,n,a;return null!=(r=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?r:(null==(n=t.options.enableExpanding)||n)&&!!(null!=(a=e.subRows)&&a.length)},e.getIsAllParentsExpanded=()=>{let r=!0,n=e;for(;r&&n.parentId;)r=(n=t.getRow(n.parentId,!0)).getIsExpanded();return r},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{...epY(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:epC("pagination",e)}),createTable:e=>{let t=!1,r=!1;e._autoResetPageIndex=()=>{var n,a;if(!t)return void e._queue(()=>{t=!0});if(null!=(n=null!=(a=e.options.autoResetAll)?a:e.options.autoResetPageIndex)?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>epx(t,e)),e.resetPagination=t=>{var r;e.setPagination(t?epY():null!=(r=e.initialState.pagination)?r:epY())},e.setPageIndex=t=>{e.setPagination(r=>{let n=epx(t,r.pageIndex);return n=Math.max(0,Math.min(n,void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1)),{...r,pageIndex:n}})},e.resetPageIndex=t=>{var r,n;e.setPageIndex(t?0:null!=(r=null==(n=e.initialState)||null==(n=n.pagination)?void 0:n.pageIndex)?r:0)},e.resetPageSize=t=>{var r,n;e.setPageSize(t?10:null!=(r=null==(n=e.initialState)||null==(n=n.pagination)?void 0:n.pageSize)?r:10)},e.setPageSize=t=>{e.setPagination(e=>{let r=Math.max(1,epx(t,e.pageSize)),n=Math.floor(e.pageSize*e.pageIndex/r);return{...e,pageIndex:n,pageSize:r}})},e.setPageCount=t=>e.setPagination(r=>{var n;let a=epx(t,null!=(n=e.options.pageCount)?n:-1);return"number"==typeof a&&(a=Math.max(-1,a)),{...r,pageCount:a}}),e.getPageOptions=epM(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},epS(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,r=e.getPageCount();return -1===r||0!==r&&t<r-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:epZ(),...e}),getDefaultOptions:e=>({onRowPinningChange:epC("rowPinning",e)}),createRow:(e,t)=>{e.pin=(r,n,a)=>{let i=n?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],o=new Set([...a?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],e.id,...i]);t.setRowPinning(e=>{var t,n,a,i,s,l;return"bottom"===r?{top:(null!=(a=null==e?void 0:e.top)?a:[]).filter(e=>!(null!=o&&o.has(e))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter(e=>!(null!=o&&o.has(e))),...Array.from(o)]}:"top"===r?{top:[...(null!=(s=null==e?void 0:e.top)?s:[]).filter(e=>!(null!=o&&o.has(e))),...Array.from(o)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter(e=>!(null!=o&&o.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=o&&o.has(e))),bottom:(null!=(n=null==e?void 0:e.bottom)?n:[]).filter(e=>!(null!=o&&o.has(e)))}})},e.getCanPin=()=>{var r;let{enableRowPinning:n,enablePinning:a}=t.options;return"function"==typeof n?n(e):null==(r=null!=n?n:a)||r},e.getIsPinned=()=>{let r=[e.id],{top:n,bottom:a}=t.getState().rowPinning,i=r.some(e=>null==n?void 0:n.includes(e)),o=r.some(e=>null==a?void 0:a.includes(e));return i?"top":!!o&&"bottom"},e.getPinnedIndex=()=>{var r,n;let a=e.getIsPinned();if(!a)return -1;let i=null==(r="top"===a?t.getTopRows():t.getBottomRows())?void 0:r.map(e=>{let{id:t}=e;return t});return null!=(n=null==i?void 0:i.indexOf(e.id))?n:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var r,n;return e.setRowPinning(t?epZ():null!=(r=null==(n=e.initialState)?void 0:n.rowPinning)?r:epZ())},e.getIsSomeRowsPinned=t=>{var r,n,a;let i=e.getState().rowPinning;return t?!!(null==(r=i[t])?void 0:r.length):!!((null==(n=i.top)?void 0:n.length)||(null==(a=i.bottom)?void 0:a.length))},e._getPinnedRows=(t,r,n)=>{var a;return(null==(a=e.options.keepPinnedRows)||a?(null!=r?r:[]).map(t=>{let r=e.getRow(t,!0);return r.getIsAllParentsExpanded()?r:null}):(null!=r?r:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:n}))},e.getTopRows=epM(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,r)=>e._getPinnedRows(t,r,"top"),epS(e.options,"debugRows","getTopRows")),e.getBottomRows=epM(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,r)=>e._getPinnedRows(t,r,"bottom"),epS(e.options,"debugRows","getBottomRows")),e.getCenterRows=epM(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,r)=>{let n=new Set([...null!=t?t:[],...null!=r?r:[]]);return e.filter(e=>!n.has(e.id))},epS(e.options,"debugRows","getCenterRows"))}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:epC("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var r;return e.setRowSelection(t?{}:null!=(r=e.initialState.rowSelection)?r:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(r=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let n={...r},a=e.getPreGroupedRowModel().flatRows;return t?a.forEach(e=>{e.getCanSelect()&&(n[e.id]=!0)}):a.forEach(e=>{delete n[e.id]}),n})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(r=>{let n=void 0!==t?t:!e.getIsAllPageRowsSelected(),a={...r};return e.getRowModel().rows.forEach(t=>{epX(a,t.id,n,!0,e)}),a}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=epM(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?epJ(e,r):{rows:[],flatRows:[],rowsById:{}},epS(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=epM(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?epJ(e,r):{rows:[],flatRows:[],rowsById:{}},epS(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=epM(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?epJ(e,r):{rows:[],flatRows:[],rowsById:{}},epS(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState(),n=!!(t.length&&Object.keys(r).length);return n&&t.some(e=>e.getCanSelect()&&!r[e.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:r}=e.getState(),n=!!t.length;return n&&t.some(e=>!r[e.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var t;let r=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return r>0&&r<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(r,n)=>{let a=e.getIsSelected();t.setRowSelection(i=>{var o;if(r=void 0!==r?r:!a,e.getCanSelect()&&a===r)return i;let s={...i};return epX(s,e.id,r,null==(o=null==n?void 0:n.selectChildren)||o,t),s})},e.getIsSelected=()=>{let{rowSelection:r}=t.getState();return epQ(e,r)},e.getIsSomeSelected=()=>{let{rowSelection:r}=t.getState();return"some"===ep0(e,r)},e.getIsAllSubRowsSelected=()=>{let{rowSelection:r}=t.getState();return"all"===ep0(e,r)},e.getCanSelect=()=>{var r;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(r=t.options.enableRowSelection)||r},e.getCanSelectSubRows=()=>{var r;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(r=t.options.enableSubRowSelection)||r},e.getCanMultiSelect=()=>{var r;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(r=t.options.enableMultiRowSelection)||r},e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return r=>{var n;t&&e.toggleSelected(null==(n=r.target)?void 0:n.checked)}}}},{getDefaultColumnDef:()=>epH,getInitialState:e=>({columnSizing:{},columnSizingInfo:epG(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:epC("columnSizing",e),onColumnSizingInfoChange:epC("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var r,n,a;let i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(r=e.columnDef.minSize)?r:epH.minSize,null!=(n=null!=i?i:e.columnDef.size)?n:epH.size),null!=(a=e.columnDef.maxSize)?a:epH.maxSize)},e.getStart=epM(e=>[e,epK(t,e),t.getState().columnSizing],(t,r)=>r.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),epS(t.options,"debugColumns","getStart")),e.getAfter=epM(e=>[e,epK(t,e),t.getState().columnSizing],(t,r)=>r.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),epS(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:r,...n}=t;return n})},e.getCanResize=()=>{var r,n;return(null==(r=e.columnDef.enableResizing)||r)&&(null==(n=t.options.enableColumnResizing)||n)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,r=e=>{if(e.subHeaders.length)e.subHeaders.forEach(r);else{var n;t+=null!=(n=e.column.getSize())?n:0}};return r(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=r=>{let n=t.getColumn(e.column.id),a=null==n?void 0:n.getCanResize();return i=>{if(!n||!a||(null==i.persist||i.persist(),ep$(i)&&i.touches&&i.touches.length>1))return;let o=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[n.id,n.getSize()]],l=ep$(i)?Math.round(i.touches[0].clientX):i.clientX,u={},d=(e,r)=>{"number"==typeof r&&(t.setColumnSizingInfo(e=>{var n,a;let i="rtl"===t.options.columnResizeDirection?-1:1,o=(r-(null!=(n=null==e?void 0:e.startOffset)?n:0))*i,s=Math.max(o/(null!=(a=null==e?void 0:e.startSize)?a:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,r]=e;u[t]=Math.round(100*Math.max(r+r*s,0))/100}),{...e,deltaOffset:o,deltaPercentage:s}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...u})))},c=e=>{d("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=r||("u">typeof document?document:null),p={moveHandler:e=>d("move",e.clientX),upHandler:e=>{null==h||h.removeEventListener("mousemove",p.moveHandler),null==h||h.removeEventListener("mouseup",p.upHandler),c(e.clientX)}},m={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d("move",e.touches[0].clientX),!1),upHandler:e=>{var t;null==h||h.removeEventListener("touchmove",m.moveHandler),null==h||h.removeEventListener("touchend",m.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(null==(t=e.touches[0])?void 0:t.clientX)}},f=!!function(){if("boolean"==typeof epq)return epq;let e=!1;try{let t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return epq=e}()&&{passive:!1};ep$(i)?(null==h||h.addEventListener("touchmove",m.moveHandler,f),null==h||h.addEventListener("touchend",m.upHandler,f)):(null==h||h.addEventListener("mousemove",p.moveHandler,f),null==h||h.addEventListener("mouseup",p.upHandler,f)),t.setColumnSizingInfo(e=>({...e,startOffset:l,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var r;e.setColumnSizing(t?{}:null!=(r=e.initialState.columnSizing)?r:{})},e.resetHeaderSizeInfo=t=>{var r;e.setColumnSizingInfo(t?epG():null!=(r=e.initialState.columnSizingInfo)?r:epG())},e.getTotalSize=()=>{var t,r;return null!=(t=null==(r=e.getHeaderGroups()[0])?void 0:r.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,r;return null!=(t=null==(r=e.getLeftHeaderGroups()[0])?void 0:r.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,r;return null!=(t=null==(r=e.getCenterHeaderGroups()[0])?void 0:r.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,r;return null!=(t=null==(r=e.getRightHeaderGroups()[0])?void 0:r.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}}];function ep6(e,t){var r,n,a;let i;return e?"function"==typeof(n=r=e)&&(i=Object.getPrototypeOf(n)).prototype&&i.prototype.isReactComponent||"function"==typeof r||"object"==typeof(a=r)&&"symbol"==typeof a.$$typeof&&["react.memo","react.forward_ref"].includes(a.$$typeof.description)?ed.createElement(e,t):e:null}let ep9=(0,ed.createContext)(null);function ep7(){let e=(0,ed.useContext)(ep9);if(!e)throw Error("useDataTable must be used within a <DataTable> provider");return e}let eme=(0,ed.createContext)(null);function emt(){let e=(0,ed.useContext)(eme);if(!e)throw Error("useResponsiveColumns/useUnfitColumnIds must be used within a <ResponsiveColumnsProvider>");return e}function emr({children:e}){let[t,r]=(0,ed.useState)(()=>new Set),n=(0,ed.useMemo)(()=>({unfitColumnIds:t,setUnfitColumnIds:r}),[t]);return eh().createElement(eme.Provider,{value:n},e)}let emn=ed.createContext(null),ema=Symbol("ActionOverlayCell.Value"),emi=Symbol("ActionOverlayCell.Overlay");function emo({cell:e,children:t}){let r=e.row.getIsSelected(),n=e.column.columnDef.meta??void 0,a=n?.align??"right",i=null,o=null;return ed.Children.forEach(t,e=>{if(ed.isValidElement(e)){let t=e.type?._type;t===ema?i=e:t===emi&&(o=e)}}),ed.createElement(emn.Provider,{value:{isActive:r,computedAlign:"left"===a?"start":"center"===a?"center":"end",cell:e}},ed.createElement("div",{className:"relative"},i,o))}function ems({children:e}){let t=ed.useContext(emn);if(!t)throw Error("ActionOverlayCell.Value must be used within ActionOverlayCell");let{isActive:r,computedAlign:n}=t;return ed.createElement("div",{className:`transition-opacity ${"end"===n?"text-right":"center"===n?"text-center":""} ${r?"invisible opacity-0":"group-hover:invisible group-hover:opacity-0 group-hover:text-transparent"}`},e)}function eml({children:e}){let t=ed.useContext(emn);if(!t)throw Error("ActionOverlayCell.Overlay must be used within ActionOverlayCell");let{isActive:r,computedAlign:n,cell:a}=t;return ed.createElement("div",{className:`absolute z-10 flex items-center ${"center"===n?"inset-y-0 inset-x-0 justify-center px-2":"start"===n?"inset-y-0 left-0 px-2":"inset-y-0 right-0 px-2"} ${r?"bg-popover opacity-100":"opacity-0 group-hover:bg-muted group-hover:opacity-100"}`,onMouseDown:e=>{e.stopPropagation(),a.row.getIsSelected()||a.row.toggleSelected(!0)},onPointerDown:e=>{e.stopPropagation(),a.row.getIsSelected()||a.row.toggleSelected(!0)}},e)}function emu({excludeColumnIds:e=[],renderFilterCell:t}){let{table:r}=ep7(),n=r.getVisibleLeafColumns();return ed.createElement(eph,{"data-filter-row":!0,className:"hover:bg-transparent"},n.map(n=>{let a=n.id,i=r.getColumn(a)?.getFilterValue(),o=e=>r.getColumn(a)?.setFilterValue(e);if(e?.includes(a))return ed.createElement(epm,{key:a});let s=t?.({columnId:a,value:i,setValue:o});return s?ed.createElement(epm,{key:a},s):ed.createElement(epm,{key:a},ed.createElement(M_,{value:i??"",onChange:e=>o(e.target.value),className:"h-7 w-full"}))}))}function emd(){return(emd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function emc(){let{table:e}=ep7();return eh().createElement(epd,null,e.getHeaderGroups().map(e=>eh().createElement(eph,{key:e.id},e.headers.map(e=>{let t=e.column.columnDef.meta??void 0,r=t?.headerClassName??"",n=e.column.getIsSorted();return eh().createElement(epp,{key:e.id,className:t_("bg-muted",r),"aria-sort":"asc"===n?"ascending":"desc"===n?"descending":"none"},e.isPlaceholder?null:ep6(e.column.columnDef.header,e.getContext()))}))))}function emh({rowProps:e,emptyMessage:t,isLoading:r,loadingComponent:n}){let{t:a}=eA("DataTable"),i=t??a("No results."),{table:o}=ep7(),s="function"==typeof o.getPaginationRowModel?o.getPaginationRowModel().rows:o.getRowModel().rows;return s.length?eh().createElement(eh().Fragment,null,s.map(t=>{let r=e?.render?.(t);return r||eh().createElement(eph,emd({key:t.id,"data-state":t.getIsSelected()?"selected":void 0,className:e?.className?"function"==typeof e.className?e.className(t):e.className:""},e?.onClick&&{onClick:()=>e.onClick(t)},e?.onDoubleClick&&{onDoubleClick:()=>e.onDoubleClick(t)},{"aria-selected":t.getIsSelected()}),t.getVisibleCells().map(e=>{let t=e.column.columnDef.meta?.cellClassName??"";return eh().createElement(epm,{key:e.id,className:t},ep6(e.column.columnDef.cell,e.getContext()))}))})):r&&n?eh().createElement(eph,{className:"hover:bg-transparent hover:text-inherit hover:[&>td]:text-inherit hover:[&>th]:text-inherit"},eh().createElement(epm,{colSpan:o.getAllLeafColumns().length},eh().createElement("div",{className:"flex h-full w-full items-center justify-center"},n))):eh().createElement(eph,{className:"hover:bg-transparent hover:text-inherit hover:[&>td]:text-inherit hover:[&>th]:text-inherit"},eh().createElement(epm,{colSpan:o.getAllLeafColumns().length,className:"!pt-10 text-center align-text-top"},i))}ems._type=ema,eml._type=emi,emo.Value=ems,emo.Overlay=eml;let emp=Object.assign(function({data:e,columns:t,getRowId:r,initialVisibility:n={},sorting:a=[],pagination:i={pageIndex:0,pageSize:50},filters:o=[],onSortingChange:s,onPaginationChange:l,onFiltersChange:u,manualFiltering:d=!1,enforceSingleSelection:c=!0,onSelectionChange:h,children:p}){let[m,f]=(0,ed.useState)(n),[g,y]=(0,ed.useState)({}),v=function(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=ed.useState(()=>({current:function(e){var t,r;let n=[...ep8,...null!=(t=e._features)?t:[]],a={_features:n},i=a._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(a)),{}),o={...null!=(r=e.initialState)?r:{}};a._features.forEach(e=>{var t;o=null!=(t=null==e.getInitialState?void 0:e.getInitialState(o))?t:o});let s=[],l=!1,u={_features:n,options:{...i,...e},initialState:o,_queue:e=>{s.push(e),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{a.setState(a.initialState)},setOptions:e=>{var t;t=epx(e,a.options),a.options=a.options.mergeOptions?a.options.mergeOptions(i,t):{...i,...t}},getState:()=>a.options.state,setState:e=>{null==a.options.onStateChange||a.options.onStateChange(e)},_getRowId:(e,t,r)=>{var n;return null!=(n=null==a.options.getRowId?void 0:a.options.getRowId(e,t,r))?n:`${r?[r.id,t].join("."):t}`},getCoreRowModel:()=>(a._getCoreRowModel||(a._getCoreRowModel=a.options.getCoreRowModel(a)),a._getCoreRowModel()),getRowModel:()=>a.getPaginationRowModel(),getRow:(e,t)=>{let r=(t?a.getPrePaginationRowModel():a.getRowModel()).rowsById[e];if(!r&&!(r=a.getCoreRowModel().rowsById[e]))throw Error();return r},_getDefaultColumnDef:epM(()=>[a.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,r;return null!=(t=null==(r=e.renderValue())||null==r.toString?void 0:r.toString())?t:null},...a._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},epS(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>a.options.columns,getAllColumns:epM(()=>[a._getColumnDefs()],e=>{let t=function(e,r,n){return void 0===n&&(n=0),e.map(e=>{let i=function(e,t,r,n){var a,i;let o,s={...e._getDefaultColumnDef(),...t},l=s.accessorKey,u=null!=(a=null!=(i=s.id)?i:l?"function"==typeof String.prototype.replaceAll?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)?a:"string"==typeof s.header?s.header:void 0;if(s.accessorFn?o=s.accessorFn:l&&(o=l.includes(".")?e=>{let t=e;for(let e of l.split(".")){var r;t=null==(r=t)?void 0:r[e]}return t}:e=>e[s.accessorKey]),!u)throw Error();let d={id:`${String(u)}`,accessorFn:o,parent:n,depth:r,columnDef:s,columns:[],getFlatColumns:epM(()=>[!0],()=>{var e;return[d,...null==(e=d.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},epS(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:epM(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=d.columns)&&t.length?e(d.columns.flatMap(e=>e.getLeafColumns())):[d]},epS(e.options,"debugColumns","column.getLeafColumns"))};for(let t of e._features)null==t.createColumn||t.createColumn(d,e);return d}(a,e,n,r);return i.columns=e.columns?t(e.columns,i,n+1):[],i})};return t(e)},epS(e,"debugColumns","getAllColumns")),getAllFlatColumns:epM(()=>[a.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),epS(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:epM(()=>[a.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),epS(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:epM(()=>[a.getAllColumns(),a._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),epS(e,"debugColumns","getAllLeafColumns")),getColumn:e=>a._getAllFlatColumnsById()[e]};Object.assign(a,u);for(let e=0;e<a._features.length;e++){let t=a._features[e];null==t||null==t.createTable||t.createTable(a)}return a}(t)})),[n,a]=ed.useState(()=>r.current.initialState);return r.current.setOptions(t=>({...t,...e,state:{...n,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}})),r.current}({data:e,columns:t,state:{sorting:a,columnVisibility:m,rowSelection:g,columnFilters:o,pagination:i},onSortingChange:s,onColumnVisibilityChange:f,onRowSelectionChange:y,onColumnFiltersChange:u,onPaginationChange:l,getCoreRowModel:e=>epM(()=>[e.options.data],t=>{let r={rows:[],flatRows:[],rowsById:{}},n=function(t,a,i){void 0===a&&(a=0);let o=[];for(let l=0;l<t.length;l++){let u=epP(e,e._getRowId(t[l],l,i),t[l],l,a,void 0,null==i?void 0:i.id);if(r.flatRows.push(u),r.rowsById[u.id]=u,o.push(u),e.options.getSubRows){var s;u.originalSubRows=e.options.getSubRows(t[l],l),null!=(s=u.originalSubRows)&&s.length&&(u.subRows=n(u.originalSubRows,a+1,u))}}return o};return r.rows=n(t),r},epS(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex())),getSortedRowModel:e=>epM(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(null!=t&&t.length))return r;let n=e.getState().sorting,a=[],i=n.filter(t=>{var r;return null==(r=e.getColumn(t.id))?void 0:r.getCanSort()}),o={};i.forEach(t=>{let r=e.getColumn(t.id);r&&(o[t.id]={sortUndefined:r.columnDef.sortUndefined,invertSorting:r.columnDef.invertSorting,sortingFn:r.getSortingFn()})});let s=e=>{let t=e.map(e=>({...e}));return t.sort((e,t)=>{for(let n=0;n<i.length;n+=1){var r;let a=i[n],s=o[a.id],l=s.sortUndefined,u=null!=(r=null==a?void 0:a.desc)&&r,d=0;if(l){let r=e.getValue(a.id),n=t.getValue(a.id),i=void 0===r,o=void 0===n;if(i||o){if("first"===l)return i?-1:1;if("last"===l)return i?1:-1;d=i&&o?0:i?l:-l}}if(0===d&&(d=s.sortingFn(e,t,a.id)),0!==d)return u&&(d*=-1),s.invertSorting&&(d*=-1),d}return e.index-t.index}),t.forEach(e=>{var t;a.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=s(e.subRows))}),t};return{rows:s(r.rows),flatRows:a,rowsById:r.rowsById}},epS(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex())),getFilteredRowModel:d?void 0:e=>epM(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,r,n)=>{var a,i,o,s,l,u,d,c,h,p;let m,f,g,y,v,b,w,x,C,k;if(!t.rows.length||!(null!=r&&r.length)&&!n){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}let M=[],S=[];(null!=r?r:[]).forEach(t=>{var r;let n=e.getColumn(t.id);if(!n)return;let a=n.getFilterFn();a&&M.push({id:t.id,filterFn:a,resolvedValue:null!=(r=null==a.resolveFilterValue?void 0:a.resolveFilterValue(t.value))?r:t.value})});let E=(null!=r?r:[]).map(e=>e.id),T=e.getGlobalFilterFn(),I=e.getAllLeafColumns().filter(e=>e.getCanGlobalFilter());n&&T&&I.length&&(E.push("__global__"),I.forEach(e=>{var t;S.push({id:e.id,filterFn:T,resolvedValue:null!=(t=null==T.resolveFilterValue?void 0:T.resolveFilterValue(n))?t:n})}));for(let e=0;e<t.flatRows.length;e++){let r=t.flatRows[e];if(r.columnFilters={},M.length)for(let e=0;e<M.length;e++){let t=(m=M[e]).id;r.columnFilters[t]=m.filterFn(r,t,m.resolvedValue,e=>{r.columnFiltersMeta[t]=e})}if(S.length){for(let e=0;e<S.length;e++){let t=(f=S[e]).id;if(f.filterFn(r,t,f.resolvedValue,e=>{r.columnFiltersMeta[t]=e})){r.columnFilters.__global__=!0;break}}!0!==r.columnFilters.__global__&&(r.columnFilters.__global__=!1)}}return a=t.rows,i=e=>{for(let t=0;t<E.length;t++)if(!1===e.columnFilters[E[t]])return!1;return!0},e.options.filterFromLeafRows?(o=a,s=i,g=[],y={},v=null!=(u=(l=e).options.maxLeafRowFilterDepth)?u:100,{rows:(b=function(e,t){void 0===t&&(t=0);let r=[];for(let a=0;a<e.length;a++){var n;let i=e[a],o=epP(l,i.id,i.original,i.index,i.depth,void 0,i.parentId);if(o.columnFilters=i.columnFilters,null!=(n=i.subRows)&&n.length&&t<v){if(o.subRows=b(i.subRows,t+1),s(i=o)&&!o.subRows.length||s(i)||o.subRows.length){r.push(i),y[i.id]=i,g.push(i);continue}}else s(i=o)&&(r.push(i),y[i.id]=i,g.push(i))}return r})(o),flatRows:g,rowsById:y}):(d=a,c=i,w=[],x={},C=null!=(p=(h=e).options.maxLeafRowFilterDepth)?p:100,{rows:(k=function(e,t){void 0===t&&(t=0);let r=[];for(let a=0;a<e.length;a++){let i=e[a];if(c(i)){var n;if(null!=(n=i.subRows)&&n.length&&t<C){let e=epP(h,i.id,i.original,i.index,i.depth,void 0,i.parentId);e.subRows=k(i.subRows,t+1),i=e}r.push(i),w.push(i),x[i.id]=i}}return r})(d),flatRows:w,rowsById:x})},epS(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex())),getPaginationRowModel:e=>epM(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,r)=>{let n;if(!r.rows.length)return r;let{pageSize:a,pageIndex:i}=t,{rows:o,flatRows:s,rowsById:l}=r,u=a*i;if(o=o.slice(u,u+a),e.options.paginateExpandedRows)n={rows:o,flatRows:s,rowsById:l};else{var d;let e,t;d={rows:o,flatRows:s,rowsById:l},e=[],t=r=>{var n;e.push(r),null!=(n=r.subRows)&&n.length&&r.getIsExpanded()&&r.subRows.forEach(t)},d.rows.forEach(t),n={rows:e,flatRows:d.flatRows,rowsById:d.rowsById}}n.flatRows=[];let c=e=>{n.flatRows.push(e),e.subRows.length&&e.subRows.forEach(c)};return n.rows.forEach(c),n},epS(e.options,"debugTable","getPaginationRowModel")),manualFiltering:d,enableRowSelection:!0,enableMultiRowSelection:!c,getRowId:r,autoResetPageIndex:!1}),b=(0,ed.useRef)(o),w=(0,ed.useRef)(a),x=(0,ed.useRef)(i);return(0,ed.useEffect)(()=>{let e=o!==b.current,t=a!==w.current,r=i!==x.current;b.current=o,w.current=a,x.current=i,(e||t)&&!r&&l&&l(e=>({...e,pageIndex:0}))},[o,a,i,l]),(0,ed.useEffect)(()=>{let e=Object.keys(g);if(0===e.length)return;let t=new Set(v.getPaginationRowModel().rows.map(e=>e.id));e.every(e=>t.has(e))||y(e=>{let r={};for(let n of Object.keys(e))t.has(n)&&(r[n]=e[n]);return r})},[o,a,i,e,v,g]),(0,ed.useEffect)(()=>{h&&h(v.getSelectedRowModel().rows.map(e=>e.original))},[g,h,v]),eh().createElement(ep9.Provider,{value:{table:v}},eh().createElement(emr,null,p))},{Toolbar:function({children:e}){return ed.createElement("div",{className:"relative flex items-center justify-center py-4"},e)},Title:function({children:e}){return ed.createElement("div",{className:"text-primary text-[20px] font-medium"},e)},Pagination:function(){let{table:e}=ep7(),{pageIndex:t,pageSize:r}=e.getState().pagination??{pageIndex:0,pageSize:50},n=e.getFilteredRowModel().rows.length,a=Math.min(n,(t+1)*r),i=e.getCanPreviousPage(),o=e.getCanNextPage();return ed.createElement("div",{className:"mr-2 flex items-center gap-0.5"},ed.createElement(_1,null,ed.createElement(_5,{asChild:!0},ed.createElement(rM,{variant:"ghost",size:"sm",className:"text-primary/80 px-2 text-sm leading-tight","aria-label":"Rows per page"},`${0===n?0:t*r+1}-${a} of ${n}`)),ed.createElement(Do,{align:"start"},[25,50,100].map(t=>ed.createElement(Ds,{key:t,onSelect:r=>{r.preventDefault(),e.setPageSize(t)},className:"flex items-center gap-[2px]"},ed.createElement(hO.Checked,{className:`h-6 w-6 ${r===t?"":"invisible"}`}),t," per page")))),ed.createElement(rM,{variant:"ghost",size:"icon","aria-label":"Previous page",onClick:()=>e.previousPage(),disabled:!i,className:"ml-1"},ed.createElement(hO.ChevronLeft,{className:"h-3 w-3"})),ed.createElement(rM,{variant:"ghost",size:"icon","aria-label":"Next page",onClick:()=>e.nextPage(),disabled:!o},ed.createElement(hO.ChevronRight,{className:"h-3 w-3"})))},ViewOptions:function({buttonText:e="View"}){let{t}=eA("DataTable"),{table:r}=ep7(),n=emt().unfitColumnIds,a=r.getAllColumns().filter(e=>e.getCanHide());return ed.createElement(_1,null,ed.createElement(_5,{asChild:!0},ed.createElement(rM,{variant:"ghost",size:"sm",className:"gap-1 text-sm"},e,ed.createElement(hO.ChevronDown,{className:"h-2 w-2"}))),ed.createElement(Do,{align:"end"},a.map(e=>{let r=e.columnDef.meta??void 0,a=r?.label??e.id,i=!e.getIsVisible()&&n.has(e.id),o=ed.createElement(Dl,{checked:e.getIsVisible(),disabled:i,onCheckedChange:t=>e.toggleVisibility(!!t),className:"capitalize"},a);return i?ed.createElement(Ip,{key:e.id},ed.createElement(If,{asChild:!0},ed.createElement("span",null,o)),ed.createElement(IP,{side:"left"},t("Not enough room to display this column"))):ed.createElement(ed.Fragment,{key:e.id},o)})))},Table:function({children:e,className:t,tableClassName:r}){let{table:n}=ep7(),a=(0,ed.useRef)(null);!function(e,t){let{setUnfitColumnIds:r}=emt(),n=(0,ed.useRef)({}),a=(0,ed.useRef)(new Set),i=(0,ed.useRef)(new Set),o=e.getAllLeafColumns(),s=(0,ed.useMemo)(()=>o.map(e=>{let t=e.columnDef.meta??void 0,r="number"==typeof t?.minWidth?t.minWidth:0,n=!1!==e.columnDef.enableHiding,a="number"==typeof t?.priority;return{id:e.id,minWidth:r,priority:a?t.priority:0,alwaysVisible:!n||!a}}),[o]),l=(0,ed.useMemo)(()=>s.filter(e=>!e.alwaysVisible).sort((e,t)=>t.priority-e.priority||e.minWidth-t.minWidth),[s]),u=(0,ed.useRef)(!0),d=(0,ed.useCallback)(t=>{if(0===l.length)return;if(u.current)n.current={...e.getState().columnVisibility},u.current=!1;else{let t=e.getState().columnVisibility,r=n.current;for(let e of l){let n=!1!==t[e.id];n!==(!1!==r[e.id])&&(n?a.current.delete(e.id):a.current.add(e.id))}}let o=t;for(let e of s)e.alwaysVisible&&(o-=e.minWidth);let d=n.current,{hiddenIds:c,unfitIds:h}=function(e,t,r,n){let a=new Set,i=new Set,o=0,s=!1;for(let l of e){let e=12*!!n(l.id),u=!s&&o+l.minWidth+e<=t;if(r(l.id)){a.add(l.id),u||i.add(l.id);continue}if(!u){a.add(l.id),i.add(l.id),s=!0;continue}o+=l.minWidth}return{hiddenIds:a,unfitIds:i}}(l,o,e=>a.current.has(e),e=>!1===d[e]),p={};for(let e of l)p[e.id]=!c.has(e.id);let m=e.getState().columnVisibility,f=!1;for(let e of Object.keys(p))if(!1!==m[e]!=(!1!==p[e])){f=!0;break}n.current=p,f&&e.setColumnVisibility(e=>({...e,...p}));let g=i.current;i.current=h,!function(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}(g,h)&&r(h)},[e,s,l,r]);(0,ed.useEffect)(()=>{let e=t.current;if(!e||0===l.length)return;d(e.clientWidth);let r=new ResizeObserver(e=>{for(let t of e)d(t.contentRect.width)});return r.observe(e),()=>r.disconnect()},[d,t,l]);let c=(0,ed.useRef)(!1),h=e.getState().columnVisibility;(0,ed.useEffect)(()=>{if(!c.current){c.current=!0;return}let e=t.current;e&&0!==l.length&&d(e.clientWidth)},[h,d,t,l])}(n,a);let i=0===("function"==typeof n.getPaginationRowModel?n.getPaginationRowModel().rows:n.getRowModel().rows).length,o=(0,ed.useCallback)(()=>eh().createElement("colgroup",null,n.getVisibleLeafColumns().map(e=>{let t=e.columnDef.meta??void 0,r=t?.minWidth;return r?eh().createElement("col",{key:e.id,style:{width:"number"==typeof r?`${r}px`:r}}):eh().createElement("col",{key:e.id})})),[n]),s=null,l=null,u=null;return ed.Children.forEach(e,e=>{(0,ed.isValidElement)(e)&&(e.type===emc&&(s=e),e.type===emu&&(l=e),e.type===emh&&(u=e))}),eh().createElement("div",{ref:a,className:t_("border-input/50 min-h-0 flex-1 rounded-md border",t)},eh().createElement("div",{className:"flex h-full flex-col"},eh().createElement("div",{className:"border-input/50 shrink-0 border-b"},eh().createElement(epu,{className:t_("table-fixed",r),containerClassName:"overflow-x-hidden",noScroll:!0},o(),s,eh().createElement(epc,null,l))),eh().createElement("div",{className:"min-h-0 flex-1"},eh().createElement(EU,{className:t_("h-full",i&&"[&>div>div]:!h-full")},eh().createElement(epu,{className:t_("h-full table-fixed",r),containerClassName:"h-full",noScroll:!0},o(),eh().createElement(epc,null,u))))))},Header:emc,FilterRow:emu,Body:emh,ColumnHeader:function({column:e}){let t=e.columnDef.meta??void 0,r=t?.headerContent??t?.label??e.id,n=t?.align??"left",a=e.getCanSort(),i=e.getIsSorted(),o="asc"===i?hO.SortingNewAscending:"desc"===i?hO.SortingNewDescending:hO.SortingNew,s=t?.label??e.id;return ed.createElement("div",{className:`flex w-full items-center gap-1 ${"right"===n?"justify-end":"center"===n?"justify-center":"justify-start"}`},"string"==typeof r?ed.createElement("span",null,r):r,a&&ed.createElement(rM,{variant:"ghost",size:"sm",onClick:()=>e.toggleSorting("asc"===i),"aria-label":`Sort ${s}`,className:"px-1"},ed.createElement(o,{className:"h-4 w-2.5","aria-hidden":"true"})))},ActionOverlayCell:emo});try{window.__reactRouterVersion="6"}catch(e){}ed.startTransition,rS.flushSync,ed.useId,"u">typeof window&&void 0!==window.document&&window.document.createElement,(eym=ey7||(ey7={})).UseScrollRestoration="useScrollRestoration",eym.UseSubmit="useSubmit",eym.UseSubmitFetcher="useSubmitFetcher",eym.UseFetcher="useFetcher",eym.useViewTransitionState="useViewTransitionState",(eyf=eve||(eve={})).UseFetcher="useFetcher",eyf.UseFetchers="useFetchers",eyf.UseScrollRestoration="useScrollRestoration";let emm=ed.createContext(void 0);function emf({loadedModes:e,dataPath:t,preserveQueryParameters:r,children:n}){let a=function(){let{isDataRoute:e}=ed.useContext(AM);return e?function(){let e,t,r,n,{router:a}=(AT.UseNavigateStable,(e=ed.useContext(Ax))||Af(!1),e),i=(AI.UseNavigateStable,(n=((t=ed.useContext(AM))||Af(!1),r=t).matches[r.matches.length-1]).route.id||Af(!1),n.route.id),o=ed.useRef(!1);return AE(()=>{o.current=!0}),ed.useCallback(function(e,t){void 0===t&&(t={}),o.current&&("number"==typeof e?a.navigate(e):a.navigate(e,Aw({fromRouteId:i},t)))},[a,i])}():function(){var e,t;let r;AS()||Af(!1);let n=ed.useContext(Ax),{basename:a,future:i,navigator:o}=ed.useContext(AC),{matches:s}=ed.useContext(AM),{pathname:l}=(AS()||Af(!1),ed.useContext(Ak).location),u=JSON.stringify((e=s,t=i.v7_relativeSplatPath,r=e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0),t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase))),d=ed.useRef(!1);return AE(()=>{d.current=!0}),ed.useCallback(function(e,t){if(void 0===t&&(t={}),!d.current)return;if("number"==typeof e)return void o.go(e);let r=function(e,t,r,n){let a,i;void 0===n&&(n=!1),"string"==typeof e?a=Ag(e):(Af(!(a=Am({},e)).pathname||!a.pathname.includes("?"),Ab("?","pathname","search",a)),Af(!a.pathname||!a.pathname.includes("#"),Ab("#","pathname","hash",a)),Af(!a.search||!a.search.includes("#"),Ab("#","search","hash",a)));let o=""===e||""===a.pathname,s=o?"/":a.pathname;if(null==s)i=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t){let r,n,a;void 0===t&&(t="/");let{pathname:i,search:o="",hash:s=""}="string"==typeof e?Ag(e):e;if(i){let e;if(e=i,Ay.test(e))r=i;else{if(i.includes("//")){var l="Pathnames cannot have embedded double slashes - normalizing "+i+" -> "+(i=i.replace(/\/\/+/g,"/"));"u">typeof console&&console.warn(l);try{throw Error(l)}catch(e){}}r=i.startsWith("/")?Av(i.substring(1),"/"):Av(i,t)}}else r=t;return{pathname:r,search:(n=o)&&"?"!==n?n.startsWith("?")?n:"?"+n:"",hash:(a=s)&&"#"!==a?a.startsWith("#")?a:"#"+a:""}}(a,i),u=s&&"/"!==s&&s.endsWith("/"),d=(o||"."===s)&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}(e,JSON.parse(u),l,"path"===t.relative);null==n&&"/"!==a&&(r.pathname="/"===r.pathname?a:[a,r.pathname].join("/").replace(/\/\/+/g,"/")),(t.replace?o.replace:o.push)(r,t.state,t)},[a,o,u,l,n])}()}(),[i,o]=function(e){let t="studyList.defaultWorkflow",[r,n]=ed.useState(null);return ed.useEffect(()=>{try{if("u">typeof window){let r=window.localStorage.getItem(t);null!=r&&(!e||e.includes(r)?n(r):n(null))}}catch{}},[e]),[r,ed.useCallback(r=>{n(r);try{"u">typeof window&&(null==r?window.localStorage.removeItem(t):(!e||e.includes(r))&&window.localStorage.setItem(t,r))}catch{}},[e])]}(ed.useMemo(()=>e.filter(e=>!e.hide&&e.displayName).map(e=>e.id),[e])),s=i??void 0,l=ed.useCallback(e=>{o(e??null)},[o]),u=ed.useMemo(()=>{let n=[];for(let i of e){if(i.hide||!i.displayName)continue;let e=i.id===s,o={get id(){return i.id},get displayName(){return i.displayName},launchWithStudy:e=>{if(!e.studyInstanceUid)return void console.warn("Cannot launch workflow: study has no studyInstanceUid");let n=new URLSearchParams;n.append("StudyInstanceUIDs",e.studyInstanceUid),r(n),a(`${i.routeName}${t||""}?${n.toString()}`)},isApplicableToStudy:e=>{if(!i.isValidMode)return!0;let t=String(e.modalities??"").replaceAll("/","\\");return!0===i.isValidMode({modalities:t,study:e}).valid},get isDefault(){return e}};n.push(o)}return n},[e,s,t,a,r]),d=ed.useCallback(e=>u.filter(t=>t.isApplicableToStudy(e)),[u]),c=ed.useCallback(e=>d(e).find(e=>e.isDefault),[d]),h=ed.useMemo(()=>({workflows:u,getWorkflowsForStudy:d,getDefaultWorkflowForStudy:c,defaultWorkflowId:s,setDefaultWorkflowId:l}),[u,d,c,s,l]);return ed.createElement(emm.Provider,{value:h},n)}function emg(){let e=ed.useContext(emm);if(!e)throw Error("useWorkflows must be used within <WorkflowsProvider>");return e}function emy({studyRow:e,align:t="end"}){let[r,n]=ed.useState(!1),{getWorkflowsForStudy:a}=emg(),i=a(e);return ed.createElement(_1,{open:r,onOpenChange:n},ed.createElement(Iu,{delayDuration:200},ed.createElement(Ip,null,ed.createElement(If,{asChild:!0},ed.createElement(_5,{asChild:!0},ed.createElement(rM,{size:"icon",variant:"ghost","aria-expanded":r,"aria-haspopup":"menu","aria-label":"Action Menu",className:"bg-primary/20 text-primary hover:bg-primary/30 mt-1 h-6 w-6 transition-opacity"},ed.createElement(hO.More,{className:"h-6 w-6"})))),ed.createElement(IP,{side:"bottom"},"Action Menu"))),ed.createElement(Do,{align:t,onClick:e=>e.stopPropagation()},ed.createElement("div",{className:"text-muted-foreground border-input my-1.5 mx-1 border-b py-1 pl-1 pr-4 text-sm"},"Launch Workflow:"),i.map(t=>ed.createElement(Ds,{key:t.id,onSelect:r=>{r.preventDefault(),t.launchWithStudy(e)},className:t.isDefault?"font-semibold":void 0,"aria-current":t.isDefault?"true":void 0},t.isDefault?"✓ ":null,t.displayName))))}function emv({cell:e}){let t=e.row.original;return ed.createElement(emp.ActionOverlayCell,{cell:e},ed.createElement(emp.ActionOverlayCell.Overlay,null,ed.createElement("div",{onClick:e=>e.stopPropagation()},ed.createElement(emy,{studyRow:t}))))}function emb(e){return String(e??"").toUpperCase().split(/[\s,\/\\]+/).filter(Boolean)}let emw="patient",emx="studyDateTime",emC="modalities",emk="description",emM="accession",emS="instances",emE="actions",emT=[{id:emw,accessorFn:e=>e.patientName??"",header:({column:e})=>ed.createElement(emp.ColumnHeader,{column:e}),cell:({row:e})=>ed.createElement("div",{className:"truncate"},e.getValue(emw)),meta:{label:"Patient",headerClassName:"min-w-[165px]",cellClassName:"min-w-[165px]",minWidth:165,priority:100}},{id:"mrn",accessorFn:e=>e.mrn??"",header:({column:e})=>ed.createElement(emp.ColumnHeader,{column:e}),cell:({row:e})=>ed.createElement("div",{className:"truncate"},e.getValue("mrn")),meta:{label:"MRN",headerClassName:"min-w-[120px]",cellClassName:"min-w-[120px]",minWidth:120,priority:20}},{id:emx,accessorFn:e=>{let t=function(e,t={}){let{strFormat:r,fallbackFormat:n="MMM D, YYYY",invalidFallback:a}=t;if(!e)return a??"";let i=r??rs.t("Common:localDateFormat",n),o=rs.language||"en",s=tO()(e,["YYYYMMDD","YYYY.MM.DD"],!0);return s.isValid()?s.locale(o).format(i):a??tO()(e).locale(o).format(i)}(e.date??"",{fallbackFormat:"MMM-DD-YYYY",invalidFallback:""});if(!t)return"";let r=function(e,t={}){let{strFormat:r,fallbackFormat:n="hh:mm A",invalidFallback:a}=t;if(!e)return a??"";let i=r??rs.t("Common:localTimeFormat",n),o=rs.language||"en",s=tO()(e,["HH","HHmm","HHmmss","HHmmss.SSS"],!0);return s.isValid()?s.locale(o).format(i):a??""}(e.time??"",{invalidFallback:""});return r?`${t} ${r}`:t},filterFn:(e,t,r)=>{let n=r&&"object"==typeof r?r:void 0,a=n?.startDate,i=n?.endDate;if(!a&&!i)return!0;let o=String(e.original.date??"").replace(/\D/g,"");return!!o&&(!a||!(o<a))&&(!i||!(o>i))},header:({column:e})=>ed.createElement(emp.ColumnHeader,{column:e}),cell:({row:e})=>ed.createElement("div",{className:"truncate"},e.getValue(emx)),sortingFn:(e,t)=>{let r=e.original,n=t.original;return rl(r.date??"",r.time??"")-rl(n.date??"",n.time??"")},meta:{label:"Study Date",headerClassName:"min-w-[195px]",cellClassName:"min-w-[195px]",minWidth:195,priority:70}},{id:emC,accessorFn:e=>e.modalities??"",header:({column:e})=>ed.createElement(emp.ColumnHeader,{column:e}),cell:({row:e})=>ed.createElement("div",{className:"truncate"},e.getValue(emC)),filterFn:(e,t,r)=>{let n=Array.isArray(r)?r:[];if(!n.length)return!0;let a=new Set(emb(String(e.getValue(t)??"")));return n.some(e=>a.has(String(e).toUpperCase()))},meta:{label:"Modalities",headerClassName:"min-w-[97px]",cellClassName:"min-w-[97px]",minWidth:97,priority:60}},{id:emk,accessorFn:e=>e.description??"",header:({column:e})=>ed.createElement(emp.ColumnHeader,{column:e}),cell:({row:e})=>{let t=e.getValue(emk);return ed.createElement("div",{className:t?"":"text-muted-foreground/40"},t||"No Description")},meta:{label:"Description",headerClassName:"min-w-[290px]",cellClassName:"min-w-[290px]",minWidth:290,priority:90}},{id:emM,accessorFn:e=>e.accession??"",header:({column:e})=>ed.createElement(emp.ColumnHeader,{column:e}),cell:({row:e})=>ed.createElement("div",{className:"truncate"},e.getValue(emM)),meta:{label:"Accession",headerClassName:"min-w-[140px]",cellClassName:"min-w-[140px]",minWidth:140,priority:30}},{id:emS,accessorFn:e=>Number(e.instances??0),header:({column:e})=>ed.createElement(emp.ColumnHeader,{column:e}),cell:({row:e})=>{let t=e.getValue(emS);return ed.createElement("div",{className:"text-right"},t)},sortingFn:(e,t,r)=>e.getValue(r)-t.getValue(r),meta:{label:"Instances",headerContent:ed.createElement(hO.Series,{className:"text-muted-foreground h-4 w-4 shrink-0","aria-hidden":"true"}),align:"right",headerClassName:"min-w-[45px]",cellClassName:"min-w-[45px] overflow-hidden",minWidth:45,priority:50}},{id:emE,header:()=>null,enableSorting:!1,enableHiding:!1,cell:({cell:e})=>ed.createElement(emv,{cell:e}),meta:{headerClassName:"w-[56px] min-w-[56px] max-w-[56px]",cellClassName:"w-[56px] min-w-[56px] max-w-[56px] overflow-visible",minWidth:56}}],emI=ed.createContext(null);function emP(){let e=ed.useContext(emI);if(!e)throw Error("SettingsPopover subcomponents must be used within <SettingsPopover>");return e}function em_(e){return null}function emD({children:e}){let[t,r]=ed.useState(!1),n=ed.useCallback(()=>r(!1),[]),a=ed.Children.toArray(e),i=null,o=null;for(let e of a)ed.isValidElement(e)&&e.type===em_?i=e.props.children:ed.isValidElement(e)&&e.type===emO&&(o=e);if(!i)throw Error("<SettingsPopover.Trigger> is required as a direct child of <SettingsPopover>.");if(!o)throw Error("<SettingsPopover.Content> is required as a direct child of <SettingsPopover>.");return ed.createElement(hB,{open:t,onOpenChange:r},ed.createElement(hU,{asChild:!0},i),ed.createElement(emI.Provider,{value:{close:n}},o))}function emO({children:e}){return ed.createElement(h2,{align:"end",sideOffset:8,className:"w-[315px] p-4",onOpenAutoFocus:e=>e.preventDefault()},e)}em_.displayName="SettingsPopover.Trigger",emD.displayName="SettingsPopover";let emA=Object.assign(emD,{Trigger:em_,Content:emO,Workflow:function(){let{close:e}=emP(),{workflows:t,defaultWorkflowId:r,setDefaultWorkflowId:n}=emg(),a=ed.useId(),i="__NO_DEFAULT__";return ed.createElement("div",{className:"mt-0 flex items-center gap-3"},ed.createElement(E2,{htmlFor:a,className:"whitespace-nowrap"},"Default Workflow"),ed.createElement("div",{className:"min-w-0 flex-1"},ed.createElement(si,{value:r??void 0,onValueChange:t=>{t===i?n():n(t),e()}},ed.createElement(sY,{id:a,className:"w-full"},ed.createElement(su,{placeholder:"Select Workflow"})),ed.createElement(sJ,{onPointerDown:e=>e.stopPropagation()},t.map(e=>ed.createElement(sQ,{key:e.id,value:e.id},e.displayName)),ed.createElement(s0,null),ed.createElement(sQ,{value:i},"No Default")))))},Divider:function(){return ed.createElement("div",{className:"bg-muted -mx-2 my-3 h-px"})},Item:function({children:e,onClick:t}){let{close:r}=emP();return ed.createElement(rM,{variant:"ghost",size:"default",onClick:()=>{t?.(),r()},className:"h-7 w-full justify-start"},e)}}),emR="notApplicable",emL=ed.createContext(null);function emN(){let e=ed.useContext(emL);if(!e)throw Error("PreviewPatientSummary.* components must be used within <PreviewPatientSummary>");return e}let emV=Object.assign(function({data:e,className:t,children:r}){let n=e??null,a=ed.useMemo(()=>({data:n}),[n]);return ed.createElement(emL.Provider,{value:a},ed.createElement("div",{className:t_("flex w-full flex-col gap-1",t)},r))},{Patient:function({className:e}={}){let{data:t}=emN(),r=t?.patientName,n=t?.mrn,a=r??"Select a study",i="string"==typeof r||"number"==typeof r?String(r):void 0,o=null!=n&&""!==n,s="string"==typeof n||"number"==typeof n?String(n):void 0;return ed.createElement("div",{className:t_("bg-muted flex items-center gap-3 rounded-lg px-4 py-3",e)},ed.createElement("div",{className:"text-primary shrink-0","aria-hidden":!0,style:{width:33,height:33}},ed.createElement(hO.PatientStudyList,null)),ed.createElement("div",{className:"flex h-[38px] min-w-0 flex-col justify-center gap-px"},ed.createElement("span",{className:"text-foreground truncate text-lg font-medium leading-tight",title:i},a),o&&ed.createElement("span",{className:"text-muted-foreground truncate text-lg leading-tight",title:s},n)))},Workflows:function({className:e}={}){let{data:t}=emN(),{workflows:r,getWorkflowsForStudy:n,getDefaultWorkflowForStudy:a,setDefaultWorkflowId:i}=emg(),o=ed.useMemo(()=>t?n(t):r,[t,r,n]),s=ed.useMemo(()=>t?a(t):r.find(e=>e.isDefault),[t,r,a]),l=ed.useMemo(()=>s?o.filter(e=>e.displayName!==s.displayName):o,[o,s]),u=e=>{if(!t)return;let r=o.find(t=>t.displayName===e);r?.launchWithStudy(t)};return ed.createElement("div",{className:t_("border-border/50 bg-muted w-full rounded-lg px-4 py-3 text-left transition",e)},ed.createElement("div",{className:"flex w-full items-center justify-between"},ed.createElement("span",{className:"text-foreground text-base font-medium leading-tight"},"Launch workflow"),ed.createElement("span",{className:"text-primary shrink-0 -translate-y-0.5","aria-hidden":!0,style:{width:18,height:18}},ed.createElement(hO.Info,null))),s&&ed.createElement("div",{className:"mt-2 flex flex-wrap items-center gap-0",role:"status","aria-live":"polite"},ed.createElement(rM,{variant:"ghost",size:"sm",className:"bg-primary/20 text-primary ring-primary ring-offset-background ml-1 mb-1 h-6 w-32 overflow-hidden ring-1 ring-offset-2",onClick:()=>u(s.displayName),title:s.displayName},ed.createElement("span",{className:"truncate"},s.displayName)),ed.createElement(rM,{type:"button",variant:"ghost",size:"icon","aria-label":"Clear default mode",className:"text-primary focus-visible:ring-ring focus-visible:ring-offset-background ml-1.5 mb-1 opacity-70 transition hover:opacity-100 focus-visible:ring-2 focus-visible:ring-offset-2",onClick:()=>{i()}},ed.createElement(rB,{className:"text-primary h-3.5 w-3.5","aria-hidden":!0}),ed.createElement("span",{className:"sr-only"},"Clear default mode"))),s&&t&&l.length>0&&ed.createElement("div",{className:"text-muted-foreground mt-2 text-sm"},"Other Available Workflows"),t&&l.length>0&&ed.createElement("div",{className:"mt-2 flex flex-wrap items-center gap-0"},l.map(e=>ed.createElement(rM,{key:e.displayName,variant:"ghost",size:"sm",className:"bg-primary/20 ml-1 mb-1 h-6 w-32 overflow-hidden",onClick:()=>u(e.displayName),title:e.displayName},ed.createElement("span",{className:"truncate"},e.displayName)))))}});function emF({series:e,onSeriesClick:t}){return ed.createElement("div",{className:"w-full px-2"},ed.createElement(epu,{noScroll:!0},ed.createElement(epd,null,ed.createElement(eph,{className:"hover:bg-transparent"},ed.createElement(epp,{className:"pl-0 text-base font-normal"},ed.createElement("span",{className:"text-foreground"},"Modality"),ed.createElement("span",{className:"text-muted-foreground"}," / Series")),ed.createElement(epp,{className:"text-foreground w-8 pr-0 text-right text-base font-normal"},ed.createElement(hO.Series,{className:"ml-auto h-4 w-4"})))),ed.createElement(epc,null,e.map((e,t)=>{let r=e.seriesInstanceUid||e.SeriesInstanceUID||String(t),n=String(e.modality||e.Modality||"").toUpperCase(),a=e.description||e.SeriesDescription||"",i=e.numSeriesInstances??e.numInstances??0;return ed.createElement(eph,{key:r,className:"hover:text-muted-foreground cursor-default hover:bg-transparent"},ed.createElement(epm,{className:"pl-0 text-base"},ed.createElement("div",{className:"flex items-center gap-2"},ed.createElement("span",{className:"text-foreground font-normal"},n),ed.createElement("span",{className:"font-normal"},a))),ed.createElement(epm,{className:"w-8 pr-0 text-right text-base"},i))}))))}function emB({study:e,series:t=[],seriesView:r="all",onThumbnailImageError:n}){let a="all"===r,[i,o]=ed.useState("thumbnails"),s=a?i:r,l=t.filter(e=>e.thumbnailStatus?.status!==emR),u=t.filter(e=>e.thumbnailStatus?.status===emR);return e?ed.createElement(Iu,{delayDuration:200},ed.createElement("div",{className:"flex h-full min-h-0 w-full flex-col gap-3"},ed.createElement(emV,{data:e},ed.createElement(emV.Patient,null),ed.createElement(emV.Workflows,null)),ed.createElement("div",{className:"text-muted-foreground flex h-5 w-full items-center justify-between gap-1 px-2 text-base"},ed.createElement("span",{className:"leading-tight"},t?.length?e?.description||"No Description":"No Series"),a&&ed.createElement(S8,{type:"single",value:i,onValueChange:e=>e&&o(e)},ed.createElement(S6,{value:"thumbnails","aria-label":"Thumbnail view",className:"text-primary"},ed.createElement(hO.ThumbnailView,null)),ed.createElement(S6,{value:"list","aria-label":"List view",className:"text-primary"},ed.createElement(hO.ListView,null)))),ed.createElement(EU,{className:"h-full min-h-0 w-full flex-1"},"thumbnails"===s?ed.createElement("div",{className:"flex flex-col"},l.length>0&&ed.createElement("div",{className:"grid grid-cols-[repeat(auto-fit,_minmax(0,135px))] place-items-start gap-[4px] pr-2"},l.map((e,t)=>{let r=e.seriesInstanceUid||e.SeriesInstanceUID||String(t),a=e.thumbnailStatus,i=a?.status==="ready"?a.src:void 0;return ed.createElement(PK,{key:`series-imaging-${r}`,displaySetInstanceUID:`series-${r}`,imageSrc:i,onImageLoadError:()=>n?.(r),imageAltText:e.description||e.SeriesDescription||"",description:e.description||e.SeriesDescription||"(empty)",seriesNumber:e.seriesNumber??e.SeriesNumber??"",numInstances:e.numSeriesInstances??e.numInstances??0,modality:e.modality||e.Modality||"",isActive:!1,onClick:()=>{},onDoubleClick:()=>{},isDraggable:!1,viewPreset:"thumbnails",thumbnailType:"thumbnail"},a?.status==="notAvailable"&&ed.createElement("div",{className:"bg-muted/50 flex h-full w-full items-center justify-center rounded"},ed.createElement(hO.SeriesPlaceholder,{className:"text-muted-foreground h-[40px] w-[60px] opacity-50"})))})),u.length>0&&ed.createElement("div",{className:"mt-1 grid grid-cols-[repeat(auto-fit,_minmax(0,275px))] place-items-start gap-[2px] pr-2"},u.map((e,t)=>{let r=e.seriesInstanceUid||e.SeriesInstanceUID||String(t);return ed.createElement(PK,{key:`series-non-imaging-${r}`,displaySetInstanceUID:`series-${r}`,imageAltText:e.description||e.SeriesDescription||"",description:e.description||e.SeriesDescription||"(empty)",seriesNumber:e.seriesNumber??e.SeriesNumber??"",numInstances:e.numSeriesInstances??e.numInstances??0,modality:e.modality||e.Modality||"",isActive:!1,onClick:()=>{},onDoubleClick:()=>{},isDraggable:!1,viewPreset:"list",thumbnailType:"thumbnailNoImage"})}))):ed.createElement(emF,{series:t})))):ed.createElement(emV,null,ed.createElement(emV.Patient,null),ed.createElement(emV.Workflows,null))}function emj({children:e}){return ed.createElement("div",{className:"z-10 mt-5 mr-5 flex items-center justify-end gap-1"},e)}function emW({children:e}){let t=null,r=null;if(ed.Children.forEach(e,e=>{if(ed.isValidElement(e)){let n=e.type;if(n===emj)t=e;else if(n===emB){if(r)throw Error("PreviewContainer can only contain one PreviewContent.");r=e}else throw Error("PreviewContainer can only contain PreviewHeader and PreviewContent.")}}),!r)throw Error("PreviewContainer must contain PreviewContent.");return ed.createElement("div",{className:"bg-background relative flex h-full w-full flex-col"},t,ed.createElement("div",{className:"direction-y flex min-h-0 flex-1 pr-3 pb-3 pt-[15px]"},r))}function emU({columns:e,data:t,title:r,initialVisibility:n={},sorting:a,pagination:i,filters:o,onSortingChange:s,onPaginationChange:l,onFiltersChange:u,enforceSingleSelection:d=!0,showColumnVisibility:c=!0,tableClassName:h,onSelectionChange:p,toolbarLeftComponent:m,toolbarRightActionsComponent:f,toolbarRightComponent:g,isLoading:y,loadingComponent:v,manualFiltering:b,onStudyDoubleClick:w}){return eh().createElement(emp,{data:t,columns:e,getRowId:e=>e.studyInstanceUid,initialVisibility:n,sorting:a,pagination:i,filters:o,onSortingChange:s,onPaginationChange:l,onFiltersChange:u,manualFiltering:b,enforceSingleSelection:d,onSelectionChange:p},eh().createElement(emz,{title:r,showColumnVisibility:c,tableClassName:h,toolbarLeftComponent:m,toolbarRightActionsComponent:f,toolbarRightComponent:g,isLoading:y,loadingComponent:v,onStudyDoubleClick:w}))}function emz({title:e,showColumnVisibility:t,tableClassName:r,toolbarLeftComponent:n,toolbarRightActionsComponent:a,toolbarRightComponent:i,isLoading:o,loadingComponent:s,onStudyDoubleClick:l}){let{t:u}=eA("StudyList"),{table:d}=ep7(),c=(0,ed.useMemo)(()=>Array.from(new Set((d.options?.data??[]).flatMap(e=>emb(String(e.modalities??""))))).sort(),[d.options?.data]),{getDefaultWorkflowForStudy:h,getWorkflowsForStudy:p}=emg();return eh().createElement("div",{className:"flex h-full flex-col"},(t||e)&&eh().createElement(emp.Toolbar,null,eh().createElement("div",{className:"absolute left-0"},n),e?eh().createElement(emp.Title,null,e):null,eh().createElement("div",{className:"absolute right-0 flex items-center"},a,a&&eh().createElement("div",{className:"bg-input mx-2 h-4 w-px"}),eh().createElement(emp.Pagination,null),t&&eh().createElement(emp.ViewOptions,null),i)),eh().createElement(emp.Table,{tableClassName:r},eh().createElement(emp.Header,null),eh().createElement(emp.FilterRow,{excludeColumnIds:[emS],renderFilterCell:({columnId:e,value:t,setValue:r})=>{if(e===emE)return eh().createElement("div",{className:"text-right"},eh().createElement(rM,{variant:"ghost",size:"sm",onClick:()=>d.setColumnFilters([]),"aria-label":"Reset filters"},"Reset"));if(e===emx){let e=t&&"object"==typeof t?t:{},n=e.startDate??"",a=e.endDate??"";return eh().createElement(Se,{id:emx,startDate:n,endDate:a,onChange:e=>{let t={...e.startDate?{startDate:e.startDate}:{},...e.endDate?{endDate:e.endDate}:{}};r(Object.keys(t).length>0?t:void 0)}})}if(e===emC){let e=Array.isArray(t)?t:[];return eh().createElement(EJ,{options:c,value:e,onChange:e=>r(e)},eh().createElement(EJ.Field,null,eh().createElement(EJ.Summary,null),eh().createElement(EJ.Input,{ariaLabel:"Filter Modalities",placeholder:""})),eh().createElement(EJ.Content,{fitToContent:!0,maxWidth:185},eh().createElement(EJ.Options,null)))}return null}}),eh().createElement(emp.Body,{emptyMessage:u("No studies available"),isLoading:o,loadingComponent:s,rowProps:{className:"group cursor-pointer",onClick:e=>{let t=e.original;l||p(t).length>0?e.getIsSelected()||e.toggleSelected(!0):e.toggleSelected()},onDoubleClick:e=>{let t=e.original,r=p(t),n=h(t);if(e.getIsSelected()||e.toggleSelected(!0),l)return void l(t,{defaultWorkflow:n,workflows:r});let a=n??r[0];a?.launchWithStudy(t)}}})))}emW.displayName="PreviewContainer";let emH=ed.createContext(void 0);function emG(){let e=ed.useContext(emH);if(!e)throw Error("useLayout must be used within <StudyList>");return e}function emq({isPreviewOpen:e,onIsPreviewOpenChange:t,defaultPreviewSizePercent:r,minPreviewSizePercent:n=15,className:a,loadedModes:i=[],preserveQueryParameters:o,dataPath:s,children:l}){let u=null,d=null;if(ed.Children.forEach(l,e=>{if(ed.isValidElement(e)){let t=e.type;if(t===em$){if(u)throw Error("StudyList can only contain one Table component.");u=e}else if(t===emK){if(d)throw Error("StudyList can only contain one Preview component.");d=e}else throw Error("StudyList can only contain Table and Preview components.")}}),!u)throw Error("StudyList must contain a Table component.");let c=ed.useCallback(()=>t(!0),[t]),h=ed.useCallback(()=>t(!1),[t]),p=ed.useMemo(()=>({isPreviewOpen:e,openPreview:c,closePreview:h,defaultPreviewSizePercent:r,minPreviewSizePercent:n}),[e,c,h,r,n]);return ed.createElement(emf,{loadedModes:i,preserveQueryParameters:o,dataPath:s},ed.createElement(emH.Provider,{value:p},ed.createElement(mr,{direction:"horizontal",className:a??"h-full w-full"},u,d)))}function em$({columns:e,data:t,title:r,initialVisibility:n,enforceSingleSelection:a,showColumnVisibility:i,tableClassName:o,onSelectionChange:s,onSortingChange:l,onPaginationChange:u,onFiltersChange:d,manualFiltering:c,sorting:h,pagination:p,filters:m,toolbarLeftComponent:f,toolbarRightComponent:g,toolbarRightActionsComponent:y,isLoading:v,loadingComponent:b,onStudyDoubleClick:w,children:x}){let{defaultPreviewSizePercent:C}=emG(),k=x||ed.createElement("div",{className:"flex h-full min-h-0 w-full flex-col px-3 pb-3 pt-0"},ed.createElement("div",{className:"min-h-0 flex-1"},ed.createElement("div",{className:"h-full rounded-md px-2 pb-2 pt-0"},ed.createElement(emU,{columns:e,data:t,title:r,initialVisibility:n,enforceSingleSelection:a,showColumnVisibility:i,tableClassName:o,onSelectionChange:s,toolbarLeftComponent:f,toolbarRightComponent:g,toolbarRightActionsComponent:y,onSortingChange:l,onPaginationChange:u,onFiltersChange:d,manualFiltering:c,sorting:h,pagination:p,filters:m,isLoading:v,loadingComponent:b,onStudyDoubleClick:w}))));return ed.createElement(pa,{defaultSize:100-C},k)}function emK({minSizePercent:e,children:t}){let{isPreviewOpen:r,defaultPreviewSizePercent:n,minPreviewSizePercent:a}=emG();return r?ed.createElement(ed.Fragment,null,ed.createElement(mn,null),ed.createElement(pa,{defaultSize:n,minSize:e??a},t)):null}emq.displayName="Layout";let emY=Object.assign(emq,{Table:em$,Preview:emK});function emZ({className:e,"aria-label":t,shouldShow:r,onClick:n,defaultAriaLabel:a}){return r?ed.createElement(rM,{variant:"ghost",size:"icon","aria-label":t??a,onClick:n,className:e},ed.createElement(hO.PanelRight,{"aria-hidden":"true",className:"text-primary h-4 w-4"})):null}Object.assign(emY,{Table:emY.Table,Preview:emY.Preview,SettingsPopover:emA,PreviewContainer:emW,PreviewHeader:emj,PreviewContent:emB,WorkflowsProvider:emf,OpenPreviewButton:function({className:e,"aria-label":t="Open preview"}){let{isPreviewOpen:r,openPreview:n}=emG();return ed.createElement(emZ,{className:e,"aria-label":t,shouldShow:!r,onClick:n,defaultAriaLabel:"Open preview"})},ClosePreviewButton:function({className:e,"aria-label":t="Close preview"}){let{isPreviewOpen:r,closePreview:n}=emG();return ed.createElement(emZ,{className:e,"aria-label":t,shouldShow:r,onClick:n,defaultAriaLabel:"Close preview"})},defaultColumns:emT,textColumn:function(e,t,r){return{id:e,accessorFn:t=>t[e]??"",header:({column:e})=>ed.createElement(emp.ColumnHeader,{column:e}),cell:({row:t})=>ed.createElement("div",{className:"truncate"},t.getValue(e)),meta:{label:t,minWidth:120,...r}}}});let emX=eh().forwardRef(({number:e,title:t,colorHex:r,details:n,onSelect:a,isLocked:i,onToggleVisibility:o,onToggleLocked:s,onRename:l,onDelete:u,onColor:d,onCopy:c,isSelected:h=!1,isSecondarySelected:p=!1,isVisible:m=!0,disableEditing:f=!1,className:g,children:y},v)=>{let{t:b}=eA("DataRow"),[w,x]=(0,ed.useState)(!1),C=t?.length>25,k=eh().Children.toArray(y).filter(e=>eh().isValidElement(e)&&e.type&&e.type.displayName?.startsWith("DataRow.Status")),M=(e,t)=>{switch(t.stopPropagation(),e){case"Rename":l(t);break;case"Copy":c?.(t);break;case"Lock":s(t);break;case"Delete":u(t);break;case"Color":d(t)}},S=(e,t=0)=>{let r,n=" ".repeat(t);if(""===e)return eh().createElement("div",{key:`empty-${t}`,className:"h-2","data-cy":"data-row-detail-line-empty"});let a=((r=document.createElement("textarea")).innerHTML=e,r.value);return eh().createElement("div",{key:a,className:"whitespace-pre-wrap","data-cy":"data-row-detail-line"},n,eh().createElement("span",{className:"font-medium"},a))},E=(e,t)=>{let r=e.slice(0,4),n=e.slice(4);return eh().createElement(Ip,null,eh().createElement(If,{asChild:!0},eh().createElement("div",{className:"cursor-help","data-cy":`data-row-details-${t}`},eh().createElement("div",{className:"flex flex-col space-y-1"},r.map((e,t)=>S(e,+!!e.startsWith(" ")))),n.length>0&&eh().createElement("div",{className:"text-muted-foreground mt-1 flex items-center text-sm"},eh().createElement("span",null,"..."),eh().createElement(hO.Info,{className:"mr-1 h-5 w-5"})))),eh().createElement(IP,{side:"right",align:"start",className:"max-w-md"},eh().createElement("div",{className:"text-secondary-foreground flex flex-col space-y-1 text-sm leading-normal"},e.map((e,t)=>S(e,+!!e.startsWith(" "))))))};return eh().createElement("div",{ref:v,className:t_("flex flex-col",!m&&"opacity-60",g)},eh().createElement("div",{className:`flex items-center ${h?"bg-popover":"bg-muted"} group relative cursor-pointer`,onClick:a,"data-cy":"data-row"},p&&eh().createElement("div",{className:"bg-primary/20 pointer-events-none absolute inset-0"}),eh().createElement("div",{className:"bg-primary/20 pointer-events-none absolute inset-0 opacity-0 transition-opacity group-hover:opacity-100"}),null!==e&&eh().createElement("div",{className:`flex h-7 max-h-7 w-7 flex-shrink-0 items-center justify-center rounded-l border-r border-background text-base ${h?"bg-highlight text-black":"bg-muted text-muted-foreground"} overflow-hidden`},e),null===e&&eh().createElement("div",{className:"ml-1 h-7"}),r&&eh().createElement("div",{className:"flex h-7 w-5 items-center justify-center"},eh().createElement("span",{className:"ml-2 h-2 w-2 rounded-full",style:{backgroundColor:r},"data-cy":"data-row-colorhex"})),eh().createElement("div",{className:"ml-2 flex-1 overflow-hidden"},C?eh().createElement(Ip,null,eh().createElement(If,{asChild:!0},eh().createElement("span",{"data-cy":"data-row-title",className:`cursor-default text-base ${h?"text-highlight":"text-muted-foreground"} [overflow:hidden] [display:-webkit-box] [-webkit-line-clamp:2] [-webkit-box-orient:vertical]`},t)),eh().createElement(IP,{side:"top",align:"center"},t)):eh().createElement("span",{"data-cy":"data-row-title",className:`text-base ${h?"text-highlight":"text-muted-foreground"} [overflow:hidden] [display:-webkit-box] [-webkit-line-clamp:2] [-webkit-box-orient:vertical]`},t)),eh().createElement("div",{className:"relative ml-2 flex items-center space-x-1"},eh().createElement(rM,{size:"icon",variant:"ghost",className:`h-6 w-6 transition-opacity ${h||!m?"opacity-100":"opacity-0 group-hover:opacity-100"}`,"aria-label":b(m?"Hide":"Show"),dataCY:"data-row-visibility-toggle",onClick:e=>{e.stopPropagation(),o(e)}},m?eh().createElement(hO.Hide,{className:"h-6 w-6"}):eh().createElement(hO.Show,{className:"h-6 w-6"})),i&&!f&&eh().createElement(hO.Lock,{className:"text-muted-foreground h-6 w-6"}),k,f&&eh().createElement("div",{className:"h-6 w-6"}),!f&&eh().createElement(_1,{onOpenChange:e=>x(e)},eh().createElement(_5,{asChild:!0},eh().createElement(rM,{size:"icon",variant:"ghost",className:`h-6 w-6 transition-opacity ${h||w?"opacity-100":"opacity-0 group-hover:opacity-100"}`,"aria-label":"Actions",dataCY:"actionsMenuTrigger",onClick:e=>e.stopPropagation()},eh().createElement(hO.More,{className:"h-6 w-6"}))),eh().createElement(Do,{align:"end",onCloseAutoFocus:e=>e.preventDefault()},eh().createElement(eh().Fragment,null,eh().createElement(Ds,{onClick:e=>M("Rename",e)},eh().createElement(hO.Rename,{className:"text-foreground"}),eh().createElement("span",{className:"pl-2","data-cy":"Rename"},b("Rename"))),c&&eh().createElement(Ds,{onClick:e=>M("Copy",e)},eh().createElement(hO.Copy,{className:"text-foreground"}),eh().createElement("span",{className:"pl-2","data-cy":"Duplicate"},b("Duplicate"))),eh().createElement(Ds,{onClick:e=>M("Delete",e)},eh().createElement(hO.Delete,{className:"text-foreground"}),eh().createElement("span",{className:"pl-2","data-cy":"Delete"},b("Delete"))),d&&eh().createElement(Ds,{onClick:e=>M("Color",e)},eh().createElement(hO.ColorChange,{className:"text-foreground"}),eh().createElement("span",{className:"pl-2","data-cy":"Change Color"},b("Change Color"))),eh().createElement(Ds,{onClick:e=>M("Lock",e)},eh().createElement(hO.Lock,{className:"text-foreground"}),eh().createElement("span",{className:"pl-2","data-cy":"LockToggle"},b(i?"Unlock":"Lock")))))))),n&&(n.primary?.length>0||n.secondary?.length>0)&&eh().createElement("div",{className:"ml-7 px-2 py-2","data-cy":"data-row-details"},eh().createElement("div",{className:"text-secondary-foreground flex items-center gap-1 text-base leading-normal"},n.primary?.length>0&&E(n.primary,"primary"),n.secondary?.length>0&&eh().createElement("div",{className:"text-muted-foreground ml-auto text-sm"},E(n.secondary,"secondary")))))});emX.displayName="DataRow";let emJ=({tooltip:e,icon:t,defaultTooltip:r})=>eh().createElement(Ip,null,eh().createElement(If,{asChild:!0},eh().createElement("div",{className:"flex h-6 w-6 items-center justify-center"},t)),eh().createElement(IP,{side:"bottom"},eh().createElement("div",null,e||r))),emQ=({children:e})=>eh().createElement(eh().Fragment,null,e),em0=({tooltip:e})=>eh().createElement(emJ,{tooltip:e,icon:eh().createElement(hO.ByName,{name:"status-alert",className:"h-4 w-4 text-yellow-500"}),defaultTooltip:"Warning"}),em1=({tooltip:e})=>eh().createElement(emJ,{tooltip:e,icon:eh().createElement(hO.Checked,{className:"h-4 w-4 text-green-500"}),defaultTooltip:"Success"}),em2=({tooltip:e})=>eh().createElement(emJ,{tooltip:e,icon:eh().createElement(hO.ByName,{name:"status-error",className:"h-4 w-4 text-red-500"}),defaultTooltip:"Error"}),em5=({tooltip:e})=>eh().createElement(emJ,{tooltip:e,icon:eh().createElement(hO.Info,{className:"text-primary h-4 w-4"}),defaultTooltip:"Info"});emQ.displayName="DataRow.Status",em0.displayName="DataRow.Status.Warning",em1.displayName="DataRow.Status.Success",em2.displayName="DataRow.Status.Error",em5.displayName="DataRow.Status.Info",emQ.Warning=em0,emQ.Success=em1,emQ.Error=em2,emQ.Info=em5;let em3=emX;em3.Status=emQ;let[em4,em8]=function(e,t){let r=ed.createContext(t);function n(e){let{children:t,...n}=e,a=ed.useMemo(()=>n,Object.values(n));return ed.createElement(r.Provider,{value:a},t)}return r.displayName=`${e}Context`,n.displayName=`${e}Provider`,[n,function(n){let a=ed.useContext(r);if(a)return a;if(t)return t;throw Error(`${n} must be rendered inside of a ${e} component.`)}]}("MeasurementTable",{data:[],isExpanded:!0}),em6=({data:e=[],onAction:t,isExpanded:r=!0,title:n,children:a,disableEditing:i=!1})=>{let{t:o}=eA("MeasurementTable"),s=e.length;return eh().createElement(em4,{data:e,onAction:t,isExpanded:r,disableEditing:i},eh().createElement(Dd,{defaultOpen:!0},eh().createElement(Dd.Header,{key:"measurementTableHeader",className:"bg-popover"},eh().createElement("span",null,`${o(n)} (${s})`)),eh().createElement(Dd.Content,{key:"measurementTableContent"},a)))},em9=({item:e,index:t})=>{let{onAction:r,isExpanded:n,disableEditing:a}=em8("MeasurementTable.Row"),{uid:i}=e;return eh().createElement("div",{"data-cy":`measurement-table-row-${t}`},eh().createElement(em3,{key:e.uid,description:e.label,number:t+1,title:e.label,colorHex:e.colorHex,isSelected:e.isSelected,details:e.displayText,onDelete:e=>r(e,"removeMeasurement",i),onSelect:e=>r(e,"jumpToMeasurement",i),onRename:e=>r(e,"renameMeasurement",i),onToggleVisibility:e=>r(e,"toggleVisibilityMeasurement",i),onToggleLocked:e=>r(e,"toggleLockMeasurement",i),onColor:e=>r(e,"changeMeasurementColor",i),disableEditing:a,isVisible:e.isVisible,isLocked:e.isLocked},e.isUnmapped&&eh().createElement(em3.Status.Warning,{tooltip:e.statusTooltip})))};em6.Header=({children:e})=>eh().createElement("div",{className:"measurement-table-header"},e),em6.Body=()=>{let{data:e}=em8("MeasurementTable.Body");return e&&0!==e.length?eh().createElement("div",{className:"measurement-table-body space-y-px"},e.map((e,t)=>eh().createElement(em9,{key:e.uid,item:e,index:t}))):eh().createElement("div",{className:"text-highlight mb-1 flex flex-1 items-center px-2 py-2 text-base"},eA("MeasurementTable").t("No tracked measurements"))},em6.Footer=({children:e})=>eh().createElement("div",{className:"measurement-table-footer"},e),em6.Row=em9,u(3236);var em7="http://www.w3.org/1999/xhtml";let efe={svg:"http://www.w3.org/2000/svg",xhtml:em7,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function eft(e){var t=e+="",r=t.indexOf(":");return r>=0&&"xmlns"!==(t=e.slice(0,r))&&(e=e.slice(r+1)),efe.hasOwnProperty(t)?{space:efe[t],local:e}:e}function efr(e){var t=eft(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===em7&&t.documentElement.namespaceURI===em7?t.createElement(e):t.createElementNS(r,e)}})(t)}function efn(){}function efa(e){return null==e?efn:function(){return this.querySelector(e)}}function efi(){return[]}function efo(e){return null==e?efi:function(){return this.querySelectorAll(e)}}function efs(e){return function(){return this.matches(e)}}function efl(e){return function(t){return t.matches(e)}}var efu=Array.prototype.find;function efd(){return this.firstElementChild}var efc=Array.prototype.filter;function efh(){return Array.from(this.children)}function efp(e){return Array(e.length)}function efm(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function eff(e,t,r,n,a,i){for(var o,s=0,l=t.length,u=i.length;s<u;++s)(o=t[s])?(o.__data__=i[s],n[s]=o):r[s]=new efm(e,i[s]);for(;s<l;++s)(o=t[s])&&(a[s]=o)}function efg(e,t,r,n,a,i,o){var s,l,u,d=new Map,c=t.length,h=i.length,p=Array(c);for(s=0;s<c;++s)(l=t[s])&&(p[s]=u=o.call(l,l.__data__,s,t)+"",d.has(u)?a[s]=l:d.set(u,l));for(s=0;s<h;++s)u=o.call(e,i[s],s,i)+"",(l=d.get(u))?(n[s]=l,l.__data__=i[s],d.delete(u)):r[s]=new efm(e,i[s]);for(s=0;s<c;++s)(l=t[s])&&d.get(p[s])===l&&(a[s]=l)}function efy(e){return e.__data__}function efv(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function efb(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function efw(e,t){return e.style.getPropertyValue(t)||efb(e).getComputedStyle(e,null).getPropertyValue(t)}function efx(e){return e.trim().split(/^|\s+/)}function efC(e){return e.classList||new efk(e)}function efk(e){this._node=e,this._names=efx(e.getAttribute("class")||"")}function efM(e,t){for(var r=efC(e),n=-1,a=t.length;++n<a;)r.add(t[n])}function efS(e,t){for(var r=efC(e),n=-1,a=t.length;++n<a;)r.remove(t[n])}function efE(){this.textContent=""}function efT(){this.innerHTML=""}function efI(){this.nextSibling&&this.parentNode.appendChild(this)}function efP(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ef_(){return null}function efD(){var e=this.parentNode;e&&e.removeChild(this)}function efO(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function efA(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function efR(e){return function(){var t=this.__on;if(t){for(var r,n=0,a=-1,i=t.length;n<i;++n)(r=t[n],e.type&&r.type!==e.type||r.name!==e.name)?t[++a]=r:this.removeEventListener(r.type,r.listener,r.options);++a?t.length=a:delete this.__on}}}function efL(e,t,r){return function(){var n,a=this.__on,i=function(e){t.call(this,e,this.__data__)};if(a){for(var o=0,s=a.length;o<s;++o)if((n=a[o]).type===e.type&&n.name===e.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=i,n.options=r),n.value=t;return}}this.addEventListener(e.type,i,r),n={type:e.type,name:e.name,value:t,listener:i,options:r},a?a.push(n):this.__on=[n]}}function efN(e,t,r){var n=efb(e),a=n.CustomEvent;"function"==typeof a?a=new a(t,r):(a=n.document.createEvent("Event"),r?(a.initEvent(t,r.bubbles,r.cancelable),a.detail=r.detail):a.initEvent(t,!1,!1)),e.dispatchEvent(a)}efm.prototype={constructor:efm,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},efk.prototype={add:function(e){0>this._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var efV=[null];function efF(e,t){this._groups=e,this._parents=t}function efB(){return new efF([[document.documentElement]],efV)}function efj(e){return"string"==typeof e?new efF([[document.querySelector(e)]],[document.documentElement]):new efF([[e]],efV)}efF.prototype=efB.prototype={constructor:efF,select:function(e){"function"!=typeof e&&(e=efa(e));for(var t=this._groups,r=t.length,n=Array(r),a=0;a<r;++a)for(var i,o,s=t[a],l=s.length,u=n[a]=Array(l),d=0;d<l;++d)(i=s[d])&&(o=e.call(i,i.__data__,d,s))&&("__data__"in i&&(o.__data__=i.__data__),u[d]=o);return new efF(n,this._parents)},selectAll:function(e){if("function"==typeof e){var t;t=e,e=function(){var e;return e=t.apply(this,arguments),null==e?[]:Array.isArray(e)?e:Array.from(e)}}else e=efo(e);for(var r=this._groups,n=r.length,a=[],i=[],o=0;o<n;++o)for(var s,l=r[o],u=l.length,d=0;d<u;++d)(s=l[d])&&(a.push(e.call(s,s.__data__,d,l)),i.push(s));return new efF(a,i)},selectChild:function(e){var t;return this.select(null==e?efd:(t="function"==typeof e?e:efl(e),function(){return efu.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?efh:(t="function"==typeof e?e:efl(e),function(){return efc.call(this.children,t)}))},filter:function(e){"function"!=typeof e&&(e=efs(e));for(var t=this._groups,r=t.length,n=Array(r),a=0;a<r;++a)for(var i,o=t[a],s=o.length,l=n[a]=[],u=0;u<s;++u)(i=o[u])&&e.call(i,i.__data__,u,o)&&l.push(i);return new efF(n,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,efy);var r=t?efg:eff,n=this._parents,a=this._groups;"function"!=typeof e&&(v=e,e=function(){return v});for(var i=a.length,o=Array(i),s=Array(i),l=Array(i),u=0;u<i;++u){var d=n[u],c=a[u],h=c.length,p="object"==typeof(y=e.call(d,d&&d.__data__,u,n))&&"length"in y?y:Array.from(y),m=p.length,f=s[u]=Array(m),g=o[u]=Array(m);r(d,c,f,g,l[u]=Array(h),p,t);for(var y,v,b,w,x=0,C=0;x<m;++x)if(b=f[x]){for(x>=C&&(C=x+1);!(w=g[C])&&++C<m;);b._next=w||null}}return(o=new efF(o,n))._enter=s,o._exit=l,o},enter:function(){return new efF(this._enter||this._groups.map(efp),this._parents)},exit:function(){return new efF(this._exit||this._groups.map(efp),this._parents)},join:function(e,t,r){var n=this.enter(),a=this,i=this.exit();return"function"==typeof e?(n=e(n))&&(n=n.selection()):n=n.append(e+""),null!=t&&(a=t(a))&&(a=a.selection()),null==r?i.remove():r(i),n&&a?n.merge(a).order():a},merge:function(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,a=r.length,i=n.length,o=Math.min(a,i),s=Array(a),l=0;l<o;++l)for(var u,d=r[l],c=n[l],h=d.length,p=s[l]=Array(h),m=0;m<h;++m)(u=d[m]||c[m])&&(p[m]=u);for(;l<a;++l)s[l]=r[l];return new efF(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n,a=e[t],i=a.length-1,o=a[i];--i>=0;)(n=a[i])&&(o&&4^n.compareDocumentPosition(o)&&o.parentNode.insertBefore(n,o),o=n);return this},sort:function(e){function t(t,r){return t&&r?e(t.__data__,r.__data__):!t-!r}e||(e=efv);for(var r=this._groups,n=r.length,a=Array(n),i=0;i<n;++i){for(var o,s=r[i],l=s.length,u=a[i]=Array(l),d=0;d<l;++d)(o=s[d])&&(u[d]=o);u.sort(t)}return new efF(a,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],a=0,i=n.length;a<i;++a){var o=n[a];if(o)return o}return null},size:function(){let e=0;for(let t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,r=0,n=t.length;r<n;++r)for(var a,i=t[r],o=0,s=i.length;o<s;++o)(a=i[o])&&e.call(a,a.__data__,o,i);return this},attr:function(e,t){var r=eft(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((null==t?r.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?r.local?function(e,t){return function(){var r=t.apply(this,arguments);null==r?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}:function(e,t){return function(){var r=t.apply(this,arguments);null==r?this.removeAttribute(e):this.setAttribute(e,r)}}:r.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(r,t))},style:function(e,t,r){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,r){return function(){var n=t.apply(this,arguments);null==n?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}:function(e,t,r){return function(){this.style.setProperty(e,t,r)}})(e,t,null==r?"":r)):efw(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var r=t.apply(this,arguments);null==r?delete this[e]:this[e]=r}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var r=efx(e+"");if(arguments.length<2){for(var n=efC(this.node()),a=-1,i=r.length;++a<i;)if(!n.contains(r[a]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?efM:efS)(this,e)}}:t?function(e){return function(){efM(this,e)}}:function(e){return function(){efS(this,e)}})(r,t))},text:function(e){return arguments.length?this.each(null==e?efE:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?efT:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(efI)},lower:function(){return this.each(efP)},append:function(e){var t="function"==typeof e?e:efr(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var r="function"==typeof e?e:efr(e),n=null==t?ef_:"function"==typeof t?t:efa(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})},remove:function(){return this.each(efD)},clone:function(e){return this.select(e?efA:efO)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,r){var n,a,i=(e+"").trim().split(/^|\s+/).map(function(e){var t="",r=e.indexOf(".");return r>=0&&(t=e.slice(r+1),e=e.slice(0,r)),{type:e,name:t}}),o=i.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,u=0,d=s.length;u<d;++u)for(n=0,l=s[u];n<o;++n)if((a=i[n]).type===l.type&&a.name===l.name)return l.value}return}for(s=t?efL:efR,n=0;n<o;++n)this.each(s(i[n],t,r));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return efN(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return efN(this,e,t)}})(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n,a=e[t],i=0,o=a.length;i<o;++i)(n=a[i])&&(yield n)}};var efW=0;function efU(){this._="@"+(++efW).toString(36)}function efz(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var n=r.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,[(n=n.matrixTransform(t.getScreenCTM().inverse())).x,n.y]}if(t.getBoundingClientRect){var a=t.getBoundingClientRect();return[e.clientX-a.left-t.clientLeft,e.clientY-a.top-t.clientTop]}}return[e.pageX,e.pageY]}function efH(e){for(var t=e.length/6|0,r=Array(t),n=0;n<t;)r[n]="#"+e.slice(6*n,6*++n);return r}efU.prototype=(function(){return new efU}).prototype={constructor:efU,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}},efH("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),efH("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),efH("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),efH("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),efH("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),efH("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),efH("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),efH("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");efH("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");efH("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),efH("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");let efG=e=>eoT(e[e.length-1]);function efq(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function ef$(e){return function(){return e}}efG([,,,].concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(efH)),efG([,,,].concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(efH)),efG([,,,].concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(efH)),efG([,,,].concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(efH)),efG([,,,].concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(efH)),efG([,,,].concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(efH)),efG([,,,].concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(efH)),efG([,,,].concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(efH)),efG([,,,].concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(efH)),efG([,,,].concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(efH)),efG([,,,].concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(efH)),efG([,,,].concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(efH)),efG([,,,].concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(efH)),efG([,,,].concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(efH)),efG([,,,].concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(efH)),efG([,,,].concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(efH)),efG([,,,].concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(efH)),efG([,,,].concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(efH)),efG([,,,].concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(efH)),efG([,,,].concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(efH)),efG([,,,].concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(efH)),efG([,,,].concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(efH)),efG([,,,].concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(efH)),efG([,,,].concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(efH)),efG([,,,].concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(efH)),efG([,,,].concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(efH)),efG([,,,].concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(efH)),eoH(eov(300,.5,0),eov(-240,.5,1)),eoH(eov(-100,.75,.35),eov(80,1.5,.8)),eoH(eov(260,.75,.35),eov(80,1.5,.8)),eov(),eiJ(),efq(efH("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),efq(efH("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),efq(efH("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),efq(efH("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));let efK=Math.cos,efY=Math.sin,efZ=Math.sqrt,efX=Math.PI,efJ=2*efX,efQ=Math.PI,ef0=2*efQ,ef1=ef0-1e-6;function ef2(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class ef5{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?ef2:function(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return ef2;let r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,n){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(e,t,r,n,a,i){this._append`C${+e},${+t},${+r},${+n},${this._x1=+a},${this._y1=+i}`}arcTo(e,t,r,n,a){if(e*=1,t*=1,r*=1,n*=1,(a*=1)<0)throw Error(`negative radius: ${a}`);let i=this._x1,o=this._y1,s=r-e,l=n-t,u=i-e,d=o-t,c=u*u+d*d;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(c>1e-6)if(Math.abs(d*s-l*u)>1e-6&&a){let h=r-i,p=n-o,m=s*s+l*l,f=Math.sqrt(m),g=Math.sqrt(c),y=a*Math.tan((efQ-Math.acos((m+c-(h*h+p*p))/(2*f*g)))/2),v=y/g,b=y/f;Math.abs(v-1)>1e-6&&this._append`L${e+v*u},${t+v*d}`,this._append`A${a},${a},0,0,${+(d*h>u*p)},${this._x1=e+b*s},${this._y1=t+b*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,r,n,a,i){if(e*=1,t*=1,r*=1,i=!!i,r<0)throw Error(`negative radius: ${r}`);let o=r*Math.cos(n),s=r*Math.sin(n),l=e+o,u=t+s,d=1^i,c=i?n-a:a-n;null===this._x1?this._append`M${l},${u}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-u)>1e-6)&&this._append`L${l},${u}`,r&&(c<0&&(c=c%ef0+ef0),c>ef1?this._append`A${r},${r},0,1,${d},${e-o},${t-s}A${r},${r},0,1,${d},${this._x1=l},${this._y1=u}`:c>1e-6&&this._append`A${r},${r},0,${+(c>=efQ)},${d},${this._x1=e+r*Math.cos(a)},${this._y1=t+r*Math.sin(a)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r*=1}v${+n}h${-r}Z`}toString(){return this._}}function ef3(e){this._context=e}function ef4(e){return new ef3(e)}function ef8(e){return e[0]}function ef6(e){return e[1]}function ef9(e,t){let r;var n=ef$(!0),a=null,i=ef4,o=null,s=(r=3,l.digits=function(e){if(!arguments.length)return r;if(null==e)r=null;else{let t=Math.floor(e);if(!(t>=0))throw RangeError(`invalid digits: ${e}`);r=t}return l},()=>new ef5(r));function l(r){var l,u,d,c,h=(r="object"==typeof(l=r)&&"length"in l?l:Array.from(l)).length,p=!1;for(null==a&&(o=i(c=s())),u=0;u<=h;++u)!(u<h&&n(d=r[u],u,r))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+e(d,u,r),+t(d,u,r));if(c)return o=null,c+""||null}return e="function"==typeof e?e:void 0===e?ef8:ef$(e),t="function"==typeof t?t:void 0===t?ef6:ef$(t),l.x=function(t){return arguments.length?(e="function"==typeof t?t:ef$(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:ef$(+e),l):t},l.defined=function(e){return arguments.length?(n="function"==typeof e?e:ef$(!!e),l):n},l.curve=function(e){return arguments.length?(i=e,null!=a&&(o=i(a)),l):i},l.context=function(e){return arguments.length?(null==e?a=o=null:o=i(a=e),l):a},l}function ef7(e){this._curve=e}function ege(){}function egt(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function egr(e){this._context=e}function egn(e,t){this._basis=new egr(e),this._beta=t}function ega(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function egi(e,t){this._context=e,this._k=(1-t)/6}function ego(e,t){this._context=e,this._k=(1-t)/6}function egs(e,t){this._context=e,this._k=(1-t)/6}function egl(e,t,r){var n=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/d,o=(o*u+e._y1*e._l23_2a-r*e._l12_2a)/d}e._context.bezierCurveTo(n,a,i,o,e._x2,e._y2)}function egu(e,t){this._context=e,this._alpha=t}function egd(e,t){this._context=e,this._alpha=t}function egc(e,t){this._context=e,this._alpha=t}ef5.prototype,Array.prototype.slice,ef3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},egE=ef4,ef7.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),-(t*Math.cos(e)))}},efZ(3),efZ(1/3),efY(efX/10),efY(7*efX/10),efY(efJ/10),efK(efJ/10),efZ(3),efZ(3),efZ(3),efZ(12),egr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:egt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:egt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},egn.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var n,a=e[0],i=t[0],o=e[r]-a,s=t[r]-i,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*e[l]+(1-this._beta)*(a+n*o),this._beta*t[l]+(1-this._beta)*(i+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}},function e(t){function r(e){return 1===t?new egr(e):new egn(e,t)}return r.beta=function(t){return e(+t)},r}(.85),egi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ega(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:ega(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function r(e){return new egi(e,t)}return r.tension=function(t){return e(+t)},r}(0),ego.prototype={areaStart:ege,areaEnd:ege,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ega(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function r(e){return new ego(e,t)}return r.tension=function(t){return e(+t)},r}(0),egs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ega(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function r(e){return new egs(e,t)}return r.tension=function(t){return e(+t)},r}(0),egu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e*=1,t*=1,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:egl(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function r(e){return t?new egu(e,t):new egi(e,0)}return r.alpha=function(t){return e(+t)},r}(.5),egd.prototype={areaStart:ege,areaEnd:ege,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e*=1,t*=1,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:egl(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function r(e){return t?new egd(e,t):new ego(e,0)}return r.alpha=function(t){return e(+t)},r}(.5),egc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e*=1,t*=1,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:egl(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function r(e){return t?new egc(e,t):new egs(e,0)}return r.alpha=function(t){return e(+t)},r}(.5);function egh(e,t,r){var n=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(n||a<0&&-0),o=(r-e._y1)/(a||n<0&&-0);return((i<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs((i*a+o*n)/(n+a)))||0}function egp(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function egm(e,t,r){var n=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,a+s*t,i-s,o-s*r,i,o)}function egf(e){this._context=e}function egg(e){this._context=e}egf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:egm(this,this._t0,egp(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t*=1,(e*=1)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,egm(this,egp(this,r=egh(this,e,t)),r);break;default:egm(this,this._t0,r=egh(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},((function(e){this._context=new egg(e)}).prototype=Object.create(egf.prototype)).point=function(e,t){egf.prototype.point.call(this,t,e)},egg.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,a,i){this._context.bezierCurveTo(t,e,n,r,i,a)}};let egy=(e,t,r,n,a,i)=>{let o=r.scale(a),s=n.scale(i);e.call(o),t.call(s)},egv=(e,t=[],r)=>{let n=e.select(".line");t&&t.length>0&&n.datum(t),n.attr("d",r)},egb=(e,t=[],r,n)=>{e.selectAll(".dot").data(t).attr("cx",r).attr("cy",n)};var egw={value:()=>{}};function egx(){for(var e,t=0,r=arguments.length,n={};t<r;++t){if(!(e=arguments[t]+"")||e in n||/[\s.]/.test(e))throw Error("illegal type: "+e);n[e]=[]}return new egC(n)}function egC(e){this._=e}function egk(e,t,r){for(var n=0,a=e.length;n<a;++n)if(e[n].name===t){e[n]=egw,e=e.slice(0,n).concat(e.slice(n+1));break}return null!=r&&e.push({name:t,value:r}),e}egC.prototype=egx.prototype={constructor:egC,on:function(e,t){var r,n=this._,a=(e+"").trim().split(/^|\s+/).map(function(e){var t="",r=e.indexOf(".");if(r>=0&&(t=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),i=-1,o=a.length;if(arguments.length<2){for(;++i<o;)if((r=(e=a[i]).type)&&(r=function(e,t){for(var r,n=0,a=e.length;n<a;++n)if((r=e[n]).name===t)return r.value}(n[r],e.name)))return r;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++i<o;)if(r=(e=a[i]).type)n[r]=egk(n[r],e.name,t);else if(null==t)for(r in n)n[r]=egk(n[r],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new egC(e)},call:function(e,t){if((r=arguments.length-2)>0)for(var r,n,a=Array(r),i=0;i<r;++i)a[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(n=this._[e],i=0,r=n.length;i<r;++i)n[i].value.apply(t,a)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var n=this._[e],a=0,i=n.length;a<i;++a)n[a].value.apply(t,r)}};let egM={capture:!0,passive:!1};function egS(e){e.preventDefault(),e.stopImmediatePropagation()}(function(e,{sourceEvent:t,subject:r,target:n,identifier:a,active:i,x:o,y:s,dx:l,dy:u,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:d}})}).prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var egE,egT,egI,egP,eg_,egD,egO,egA,egR,egL,egN,egV,egF,egB,egj,egW,egU,egz,egH,egG,egq,eg$,egK,egY,egZ,egX,egJ,egQ,eg0,eg1,eg2,eg5,eg3,eg4,eg8,eg6,eg9,eg7,eye,eyt,eyr,eyn,eya,eyi,eyo,eys,eyl,eyu,eyd,eyc,eyh,eyp,eym,eyf,eyg,eyy,eyv,eyb,eyw,eyx,eyC,eyk,eyM,eyS,eyE,eyT,eyI,eyP,ey_,eyD,eyO,eyA,eyR,eyL,eyN,eyV,eyF,eyB,eyj,eyW,eyU,eyz,eyH,eyG,eyq,ey$,eyK,eyY,eyZ,eyX,eyJ,eyQ,ey0,ey1,ey2,ey5,ey3,ey4,ey8,ey6,ey9,ey7,eve,evt,evr,evn=0,eva=0,evi=0,evo=0,evs=0,evl=0,evu="object"==typeof performance&&performance.now?performance:Date,evd="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function evc(){return evs||(evd(evh),evs=evu.now()+evl)}function evh(){evs=0}function evp(){this._call=this._time=this._next=null}function evm(e,t,r){var n=new evp;return n.restart(e,t,r),n}function evf(){evs=(evo=evu.now())+evl,evn=eva=0;try{evc(),++evn;for(var e,t=evt;t;)(e=evs-t._time)>=0&&t._call.call(void 0,e),t=t._next;--evn}finally{evn=0,function(){for(var e,t,r=evt,n=1/0;r;)r._call?(n>r._time&&(n=r._time),e=r,r=r._next):(t=r._next,r._next=null,r=e?e._next=t:evt=t);evr=e,evy(n)}(),evs=0}}function evg(){var e=evu.now(),t=e-evo;t>1e3&&(evl-=t,evo=e)}function evy(e){!evn&&(eva&&(eva=clearTimeout(eva)),e-evs>24?(e<1/0&&(eva=setTimeout(evf,e-evu.now()-evl)),evi&&(evi=clearInterval(evi))):(evi||(evo=evu.now(),evi=setInterval(evg,1e3)),evn=1,evd(evf)))}function evv(e,t,r){var n=new evp;return t=null==t?0:+t,n.restart(r=>{n.stop(),e(r+t)},t,r),n}evp.prototype=evm.prototype={constructor:evp,restart:function(e,t,r){if("function"!=typeof e)throw TypeError("callback is not a function");r=(null==r?evc():+r)+(null==t?0:+t),this._next||evr===this||(evr?evr._next=this:evt=this,evr=this),this._call=e,this._time=r,evy()},stop:function(){this._call&&(this._call=null,this._time=1/0,evy())}};var evb=egx("start","end","cancel","interrupt"),evw=[];function evx(e,t,r,n,a,i){var o=e.__transition;if(o){if(r in o)return}else e.__transition={};!function(e,t,r){var n,a=e.__transition;function i(l){var u,d,c,h;if(1!==r.state)return s();for(u in a)if((h=a[u]).name===r.name){if(3===h.state)return evv(i);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete a[u]):+u<t&&(h.state=6,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete a[u])}if(evv(function(){3===r.state&&(r.state=4,r.timer.restart(o,r.delay,r.time),o(l))}),r.state=2,r.on.call("start",e,e.__data__,r.index,r.group),2===r.state){for(r.state=3,n=Array(c=r.tween.length),u=0,d=-1;u<c;++u)(h=r.tween[u].value.call(e,e.__data__,r.index,r.group))&&(n[++d]=h);n.length=d+1}}function o(t){for(var a=t<r.duration?r.ease.call(null,t/r.duration):(r.timer.restart(s),r.state=5,1),i=-1,o=n.length;++i<o;)n[i].call(e,a);5===r.state&&(r.on.call("end",e,e.__data__,r.index,r.group),s())}function s(){for(var n in r.state=6,r.timer.stop(),delete a[t],a)return;delete e.__transition}a[t]=r,r.timer=evm(function(e){r.state=1,r.timer.restart(i,r.delay,r.time),r.delay<=e&&i(e-r.delay)},0,r.time)}(e,r,{name:t,index:n,group:a,on:evb,tween:evw,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:0})}function evC(e,t){var r=evM(e,t);if(r.state>0)throw Error("too late; already scheduled");return r}function evk(e,t){var r=evM(e,t);if(r.state>3)throw Error("too late; already running");return r}function evM(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw Error("transition not found");return r}function evS(e,t){var r,n,a,i=e.__transition,o=!0;if(i){for(a in t=null==t?null:t+"",i){if((r=i[a]).name!==t){o=!1;continue}n=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(n?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete i[a]}o&&delete e.__transition}}function evE(e,t,r){var n=e._id;return e.each(function(){var e=evk(this,n);(e.value||(e.value={}))[t]=r.apply(this,arguments)}),function(e){return evM(e,n).value[t]}}function evT(e,t){var r;return("number"==typeof t?eoI:t instanceof eiK?eoS:(r=eiK(t))?(t=r,eoS):eoD)(e,t)}var evI=efB.prototype.constructor;function evP(e){return function(){this.style.removeProperty(e)}}var ev_=0;function evD(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}var evO=efB.prototype;function evA(e){return(Math.pow(2,-10*e)-9765625e-10)*1.0009775171065494}evD.prototype=(function(e){return efB().transition(e)}).prototype={constructor:evD,select:function(e){var t=this._name,r=this._id;"function"!=typeof e&&(e=efa(e));for(var n=this._groups,a=n.length,i=Array(a),o=0;o<a;++o)for(var s,l,u=n[o],d=u.length,c=i[o]=Array(d),h=0;h<d;++h)(s=u[h])&&(l=e.call(s,s.__data__,h,u))&&("__data__"in s&&(l.__data__=s.__data__),c[h]=l,evx(c[h],t,r,h,c,evM(s,r)));return new evD(i,this._parents,t,r)},selectAll:function(e){var t=this._name,r=this._id;"function"!=typeof e&&(e=efo(e));for(var n=this._groups,a=n.length,i=[],o=[],s=0;s<a;++s)for(var l,u=n[s],d=u.length,c=0;c<d;++c)if(l=u[c]){for(var h,p=e.call(l,l.__data__,c,u),m=evM(l,r),f=0,g=p.length;f<g;++f)(h=p[f])&&evx(h,t,r,f,p,m);i.push(p),o.push(l)}return new evD(i,o,t,r)},selectChild:evO.selectChild,selectChildren:evO.selectChildren,filter:function(e){"function"!=typeof e&&(e=efs(e));for(var t=this._groups,r=t.length,n=Array(r),a=0;a<r;++a)for(var i,o=t[a],s=o.length,l=n[a]=[],u=0;u<s;++u)(i=o[u])&&e.call(i,i.__data__,u,o)&&l.push(i);return new evD(n,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw Error();for(var t=this._groups,r=e._groups,n=t.length,a=r.length,i=Math.min(n,a),o=Array(n),s=0;s<i;++s)for(var l,u=t[s],d=r[s],c=u.length,h=o[s]=Array(c),p=0;p<c;++p)(l=u[p]||d[p])&&(h[p]=l);for(;s<n;++s)o[s]=t[s];return new evD(o,this._parents,this._name,this._id)},selection:function(){return new evI(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,r=++ev_,n=this._groups,a=n.length,i=0;i<a;++i)for(var o,s=n[i],l=s.length,u=0;u<l;++u)if(o=s[u]){var d=evM(o,t);evx(o,e,r,u,s,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new evD(n,this._parents,e,r)},call:evO.call,nodes:evO.nodes,node:evO.node,size:evO.size,empty:evO.empty,each:evO.each,on:function(e,t){var r,n,a,i,o,s,l=this._id;return arguments.length<2?evM(this.node(),l).on.on(e):this.each((r=l,n=e,a=t,s=(n+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})?evC:evk,function(){var e=s(this,r),t=e.on;t!==i&&(o=(i=t).copy()).on(n,a),e.on=o}))},attr:function(e,t){var r=eft(e),n="transform"===r?eoF:evT;return this.attrTween(e,"function"==typeof t?(r.local?function(e,t,r){var n,a,i;return function(){var o,s,l=r(this);return null==l?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local))===(s=l+"")?null:o===n&&s===a?i:(a=s,i=t(n=o,l))}}:function(e,t,r){var n,a,i;return function(){var o,s,l=r(this);return null==l?void this.removeAttribute(e):(o=this.getAttribute(e))===(s=l+"")?null:o===n&&s===a?i:(a=s,i=t(n=o,l))}})(r,n,evE(this,"attr."+e,t)):null==t?(r.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(r):(r.local?function(e,t,r){var n,a,i=r+"";return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===n?a:a=t(n=o,r)}}:function(e,t,r){var n,a,i=r+"";return function(){var o=this.getAttribute(e);return o===i?null:o===n?a:a=t(n=o,r)}})(r,n,t))},attrTween:function(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();var n=eft(e);return this.tween(r,(n.local?function(e,t){var r,n;function a(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&function(t){this.setAttributeNS(e.space,e.local,a.call(this,t))}),r}return a._value=t,a}:function(e,t){var r,n;function a(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&function(t){this.setAttribute(e,a.call(this,t))}),r}return a._value=t,a})(n,t))},style:function(e,t,r){var n,a,i,o,s,l,u,d,c,h,p,m,f,g,y,v,b,w,x,C,k,M="transform"==(e+="")?eoV:evT;return null==t?this.styleTween(e,(n=e,function(){var e=efw(this,n),t=(this.style.removeProperty(n),efw(this,n));return e===t?null:e===a&&t===i?o:o=M(a=e,i=t)})).on("end.style."+e,evP(e)):"function"==typeof t?this.styleTween(e,(s=e,l=evE(this,"style."+e,t),function(){var e=efw(this,s),t=l(this),r=t+"";return null==t&&(this.style.removeProperty(s),r=t=efw(this,s)),e===r?null:e===u&&r===d?c:(d=r,c=M(u=e,t))})).each((h=this._id,b="end."+(v="style."+(p=e)),function(){var e=evk(this,h),t=e.on,r=null==e.value[v]?y||(y=evP(p)):void 0;(t!==m||g!==r)&&(f=(m=t).copy()).on(b,g=r),e.on=f})):this.styleTween(e,(w=e,k=t+"",function(){var e=efw(this,w);return e===k?null:e===x?C:C=M(x=e,t)}),r).on("end.style."+e,null)},styleTween:function(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();return this.tween(n,function(e,t,r){var n,a;function i(){var i=t.apply(this,arguments);return i!==a&&(n=(a=i)&&function(t){this.style.setProperty(e,i.call(this,t),r)}),n}return i._value=t,i}(e,t,null==r?"":r))},text:function(e){var t,r;return this.tween("text","function"==typeof e?(t=evE(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(r=null==e?"":e+"",function(){this.textContent=r}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,r;function n(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&function(e){this.textContent=n.call(this,e)}),t}return n._value=e,n}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n,a=evM(this.node(),r).tween,i=0,o=a.length;i<o;++i)if((n=a[i]).name===e)return n.value;return null}return this.each((null==t?function(e,t){var r,n;return function(){var a=evk(this,e),i=a.tween;if(i!==r){n=r=i;for(var o=0,s=n.length;o<s;++o)if(n[o].name===t){(n=n.slice()).splice(o,1);break}}a.tween=n}}:function(e,t,r){var n,a;if("function"!=typeof r)throw Error();return function(){var i=evk(this,e),o=i.tween;if(o!==n){a=(n=o).slice();for(var s={name:t,value:r},l=0,u=a.length;l<u;++l)if(a[l].name===t){a[l]=s;break}l===u&&a.push(s)}i.tween=a}})(r,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){evC(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){evC(this,e).delay=t}})(t,e)):evM(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){evk(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){evk(this,e).duration=t}})(t,e)):evM(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw Error();return function(){evk(this,e).ease=t}}(t,e)):evM(this.node(),t).ease},easeVarying:function(e){var t;if("function"!=typeof e)throw Error();return this.each((t=this._id,function(){var r=e.apply(this,arguments);if("function"!=typeof r)throw Error();evk(this,t).ease=r}))},end:function(){var e,t,r=this,n=r._id,a=r.size();return new Promise(function(i,o){var s={value:o},l={value:function(){0==--a&&i()}};r.each(function(){var r=evk(this,n),a=r.on;a!==e&&((t=(e=a).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),r.on=t}),0===a&&i()})},[Symbol.iterator]:evO[Symbol.iterator]},!function e(t){function r(e){return Math.pow(e,t)}return t*=1,r.exponent=e,r}(3),function e(t){function r(e){return 1-Math.pow(1-e,t)}return t*=1,r.exponent=e,r}(3),function e(t){function r(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t*=1,r.exponent=e,r}(3),!function e(t){function r(e){return(e*=1)*e*(t*(e-1)+e)}return t*=1,r.overshoot=e,r}(1.70158),function e(t){function r(e){return--e*e*((e+1)*t+e)+1}return t*=1,r.overshoot=e,r}(1.70158),function e(t){function r(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t*=1,r.overshoot=e,r}(1.70158);var evR=2*Math.PI;!function e(t,r){var n=Math.asin(1/(t=Math.max(1,t)))*(r/=evR);function a(e){return t*evA(- --e)*Math.sin((n-e)/r)}return a.amplitude=function(t){return e(t,r*evR)},a.period=function(r){return e(t,r)},a}(1,.3),function e(t,r){var n=Math.asin(1/(t=Math.max(1,t)))*(r/=evR);function a(e){return 1-t*evA(e*=1)*Math.sin((e+n)/r)}return a.amplitude=function(t){return e(t,r*evR)},a.period=function(r){return e(t,r)},a}(1,.3),function e(t,r){var n=Math.asin(1/(t=Math.max(1,t)))*(r/=evR);function a(e){return((e=2*e-1)<0?t*evA(-e)*Math.sin((n-e)/r):2-t*evA(e)*Math.sin((n+e)/r))/2}return a.amplitude=function(t){return e(t,r*evR)},a.period=function(r){return e(t,r)},a}(1,.3);var evL={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};efB.prototype.interrupt=function(e){return this.each(function(){evS(this,e)})},efB.prototype.transition=function(e){var t,r;e instanceof evD?(t=e._id,e=e._name):(t=++ev_,(r=evL).time=evc(),e=null==e?null:e+"");for(var n=this._groups,a=n.length,i=0;i<a;++i)for(var o,s=n[i],l=s.length,u=0;u<l;++u)(o=s[u])&&evx(o,e,t,u,s,r||function(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return r}(o,t));return new evD(n,this._parents,e,t)};let evN=e=>()=>e;function evV(e,{sourceEvent:t,target:r,transform:n,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:a}})}function evF(e,t,r){this.k=e,this.x=t,this.y=r}evF.prototype={constructor:evF,scale:function(e){return 1===e?this:new evF(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new evF(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var evB=new evF(1,0,0);function evj(e){e.stopImmediatePropagation()}function evW(e){e.preventDefault(),e.stopImmediatePropagation()}function evU(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function evz(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function evH(){return this.__zoom||evB}function evG(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function evq(){return navigator.maxTouchPoints||"ontouchstart"in this}function ev$(e,t,r){var n=e.invertX(t[0][0])-r[0][0],a=e.invertX(t[1][0])-r[1][0],i=e.invertY(t[0][1])-r[0][1],o=e.invertY(t[1][1])-r[1][1];return e.translate(a>n?(n+a)/2:Math.min(0,n)||Math.max(0,a),o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o))}evF.prototype;let evK=["wheel.zoom","mousedown.zoom","dblclick.zoom","touchstart.zoom","touchmove.zoom","touchend.zoom touchcancel.zoom"],evY={"dblclick.zoom":(e,t)=>{evZ(e,t)}},evZ=(e,t)=>{e&&e.transition().duration(750).call(t.transform,evB)},evX=(function(){var e,t,r,n=evU,a=evz,i=ev$,o=evG,s=evq,l=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],d=250,c=eoj,h=egx("start","zoom","end"),p=0,m=10;function f(e){e.property("__zoom",evH).on("wheel.zoom",C,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",M).filter(s).on("touchstart.zoom",S).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",T).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new evF(t,e.x,e.y)}function y(e,t,r){var n=t[0]-r[0]*e.k,a=t[1]-r[1]*e.k;return n===e.x&&a===e.y?e:new evF(e.k,n,a)}function v(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function b(e,t,r,n){e.on("start.zoom",function(){w(this,arguments).event(n).start()}).on("interrupt.zoom end.zoom",function(){w(this,arguments).event(n).end()}).tween("zoom",function(){var e=arguments,i=w(this,e).event(n),o=a.apply(this,e),s=null==r?v(o):"function"==typeof r?r.apply(this,e):r,l=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=this.__zoom,d="function"==typeof t?t.apply(this,e):t,h=c(u.invert(s).concat(l/u.k),d.invert(s).concat(l/d.k));return function(e){if(1===e)e=d;else{var t=h(e),r=l/t[2];e=new evF(r,s[0]-t[0]*r,s[1]-t[1]*r)}i.zoom(null,e)}})}function w(e,t,r){return!r&&e.__zooming||new x(e,t)}function x(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=a.apply(e,t),this.taps=0}function C(e,...t){if(n.apply(this,arguments)){var r=w(this,t).event(e),a=this.__zoom,s=Math.max(l[0],Math.min(l[1],a.k*Math.pow(2,o.apply(this,arguments)))),d=efz(e);if(r.wheel)(r.mouse[0][0]!==d[0]||r.mouse[0][1]!==d[1])&&(r.mouse[1]=a.invert(r.mouse[0]=d)),clearTimeout(r.wheel);else{if(a.k===s)return;r.mouse=[d,a.invert(d)],evS(this),r.start()}evW(e),r.wheel=setTimeout(function(){r.wheel=null,r.end()},150),r.zoom("mouse",i(y(g(a,s),r.mouse[0],r.mouse[1]),r.extent,u))}}function k(e,...t){if(!r&&n.apply(this,arguments)){var a,o,s,l=e.currentTarget,d=w(this,t,!0).event(e),c=efj(e.view).on("mousemove.zoom",function(e){if(evW(e),!d.moved){var t=e.clientX-m,r=e.clientY-f;d.moved=t*t+r*r>p}d.event(e).zoom("mouse",i(y(d.that.__zoom,d.mouse[0]=efz(e,l),d.mouse[1]),d.extent,u))},!0).on("mouseup.zoom",function(e){var t,r,n,a;c.on("mousemove.zoom mouseup.zoom",null),t=e.view,r=d.moved,n=t.document.documentElement,a=efj(t).on("dragstart.drag",null),r&&(a.on("click.drag",egS,egM),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in n?a.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect),evW(e),d.event(e).end()},!0),h=efz(e,l),m=e.clientX,f=e.clientY;o=(a=e.view).document.documentElement,s=efj(a).on("dragstart.drag",egS,egM),"onselectstart"in o?s.on("selectstart.drag",egS,egM):(o.__noselect=o.style.MozUserSelect,o.style.MozUserSelect="none"),evj(e),d.mouse=[h,this.__zoom.invert(h)],evS(this),d.start()}}function M(e,...t){if(n.apply(this,arguments)){var r=this.__zoom,o=efz(e.changedTouches?e.changedTouches[0]:e,this),s=r.invert(o),l=r.k*(e.shiftKey?.5:2),c=i(y(g(r,l),o,s),a.apply(this,t),u);evW(e),d>0?efj(this).transition().duration(d).call(b,c,o,e):efj(this).call(f.transform,c,o,e)}}function S(r,...a){if(n.apply(this,arguments)){var i,o,s,l,u=r.touches,d=u.length,c=w(this,a,r.changedTouches.length===d).event(r);for(evj(r),o=0;o<d;++o)l=[l=efz(s=u[o],this),this.__zoom.invert(l),s.identifier],c.touch0?c.touch1||c.touch0[2]===l[2]||(c.touch1=l,c.taps=0):(c.touch0=l,i=!0,c.taps=1+!!e);e&&(e=clearTimeout(e)),i&&(c.taps<2&&(t=l[0],e=setTimeout(function(){e=null},500)),evS(this),c.start())}}function E(e,...t){if(this.__zooming){var r,n,a,o,s=w(this,t).event(e),l=e.changedTouches,d=l.length;for(evW(e),r=0;r<d;++r)a=efz(n=l[r],this),s.touch0&&s.touch0[2]===n.identifier?s.touch0[0]=a:s.touch1&&s.touch1[2]===n.identifier&&(s.touch1[0]=a);if(n=s.that.__zoom,s.touch1){var c=s.touch0[0],h=s.touch0[1],p=s.touch1[0],m=s.touch1[1],f=(f=p[0]-c[0])*f+(f=p[1]-c[1])*f,v=(v=m[0]-h[0])*v+(v=m[1]-h[1])*v;n=g(n,Math.sqrt(f/v)),a=[(c[0]+p[0])/2,(c[1]+p[1])/2],o=[(h[0]+m[0])/2,(h[1]+m[1])/2]}else{if(!s.touch0)return;a=s.touch0[0],o=s.touch0[1]}s.zoom("touch",i(y(n,a,o),s.extent,u))}}function T(e,...n){if(this.__zooming){var a,i,o=w(this,n).event(e),s=e.changedTouches,l=s.length;for(evj(e),r&&clearTimeout(r),r=setTimeout(function(){r=null},500),a=0;a<l;++a)i=s[a],o.touch0&&o.touch0[2]===i.identifier?delete o.touch0:o.touch1&&o.touch1[2]===i.identifier&&delete o.touch1;if(o.touch1&&!o.touch0&&(o.touch0=o.touch1,delete o.touch1),o.touch0)o.touch0[1]=this.__zoom.invert(o.touch0[0]);else if(o.end(),2===o.taps&&(i=efz(i,this),Math.hypot(t[0]-i[0],t[1]-i[1])<m)){var u=efj(this).on("dblclick.zoom");u&&u.apply(this,arguments)}}}return f.transform=function(e,t,r,n){var a=e.selection?e.selection():e;a.property("__zoom",evH),e!==a?b(e,t,r,n):a.interrupt().each(function(){w(this,arguments).event(n).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},f.scaleBy=function(e,t,r,n){f.scaleTo(e,function(){var e=this.__zoom.k,r="function"==typeof t?t.apply(this,arguments):t;return e*r},r,n)},f.scaleTo=function(e,t,r,n){f.transform(e,function(){var e=a.apply(this,arguments),n=this.__zoom,o=null==r?v(e):"function"==typeof r?r.apply(this,arguments):r,s=n.invert(o),l="function"==typeof t?t.apply(this,arguments):t;return i(y(g(n,l),o,s),e,u)},r,n)},f.translateBy=function(e,t,r,n){f.transform(e,function(){return i(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof r?r.apply(this,arguments):r),a.apply(this,arguments),u)},null,n)},f.translateTo=function(e,t,r,n,o){f.transform(e,function(){var e=a.apply(this,arguments),o=this.__zoom,s=null==n?v(e):"function"==typeof n?n.apply(this,arguments):n;return i(evB.translate(s[0],s[1]).scale(o.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof r?-r.apply(this,arguments):-r),e,u)},n,o)},x.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=efj(this.that).datum();h.call(e,this.that,new evV(e,{sourceEvent:this.sourceEvent,target:f,type:e,transform:this.that.__zoom,dispatch:h}),t)}},f.wheelDelta=function(e){return arguments.length?(o="function"==typeof e?e:evN(+e),f):o},f.filter=function(e){return arguments.length?(n="function"==typeof e?e:evN(!!e),f):n},f.touchable=function(e){return arguments.length?(s="function"==typeof e?e:evN(!!e),f):s},f.extent=function(e){return arguments.length?(a="function"==typeof e?e:evN([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),f):a},f.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],f):[l[0],l[1]]},f.translateExtent=function(e){return arguments.length?(u[0][0]=+e[0][0],u[1][0]=+e[1][0],u[0][1]=+e[0][1],u[1][1]=+e[1][1],f):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},f.constrain=function(e){return arguments.length?(i=e,f):i},f.duration=function(e){return arguments.length?(d=+e,f):d},f.interpolate=function(e){return arguments.length?(c=e,f):c},f.on=function(){var e=h.on.apply(h,arguments);return e===h?f:e},f.clickDistance=function(e){return arguments.length?(p=(e*=1)*e,f):Math.sqrt(p)},f.tapDistance=function(e){return arguments.length?(m=+e,f):m},f})().scaleExtent([1,20]),evJ={bindMouseEvents:(e,t,r,n,a,i,o,s,l,u)=>{e&&(evX.on("zoom",function(d){let c=d.transform.rescaleX(n),h=d.transform.rescaleY(a);egy(t,r,i,o,c,h),u.forEach((t,r)=>{let n=e.select(`#series_${r}`),a=ef9().x(s(c)).y(l(h));egv(n,t,a),egb(n,t,s(c),l(h))})}),function(){for(let t of evK)e.on(t,null)}(),function(){for(let t of Object.keys(evY))e.call(evX).on(t,evY[t].bind(void 0,e,evX))}())},external:{resetZoom:e=>{evZ(e,evX)}}},{external:{resetZoom:evQ}}=evJ;ei().string,ei().number,ei().number,ei().bool,ei().bool,ei().bool,ei().number,ei().bool,ei().string,ei().string;let ev0=((I={}).NeverShowDialog="never",I.AlwaysShowDialog="always",I.ShowOnceAndConfigure="configure",I);ei().shape({option:ei().oneOf(Object.values(ev0)).isRequired,days:ei().number});let ev1=new Map;document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState?Array.from(ev1.keys()).forEach(e=>{window.sessionStorage.removeItem(e)}):Array.from(ev1.keys()).forEach(e=>{window.sessionStorage.setItem(e,ev1.get(e))})});let ev2=({className:e=""})=>{let{t}=eA("StudyList");return eh().createElement("div",{className:em()("inline-flex flex-col items-center",e)},eh().createElement(hO.Magnifier,{className:"mb-4"}),eh().createElement(eX,{className:"text-primary-light",variant:"h5"},t("No studies available")))};ev2.propTypes={className:ei().string};let ev5=ev2,ev3={};function ev4(e,t){ev3[e]&&console.warn(`Icon ${e} already exists.`),ev3[e]=t}function ev8(e,t){let r=ev3[e];return e&&r?"string"==typeof r&&r.endsWith(".png")?eh().createElement("img",{src:r,...t}):eh().createElement(r,t):eh().createElement("div",null,"Missing Icon "+e)}let ev6=({name:e,...t})=>eh().createElement(eh().Fragment,null,ev8(e,{...t}));ev6.propTypes={name:ei().string.isRequired,className:ei().string};let ev9=ev6,ev7={descending:()=>eh().createElement(hO.SortingDescending,{className:"text-primary-main mx-2 w-2"}),ascending:()=>eh().createElement(hO.SortingAscending,{className:"text-primary-main mx-2 w-2"}),none:()=>eh().createElement(hO.Sorting,{className:"text-primary-main mx-2 w-2"})},ebe=({label:e,isSortable:t,sortDirection:r,onLabelClick:n,className:a="",children:i})=>{let o=e=>{t&&n(e)};return eh().createElement("label",{className:em()("flex flex-col flex-1 text-white text-lg pl-1 select-none",a)},eh().createElement("span",{role:"button",className:"flex flex-row items-center cursor-pointer focus:outline-none",onClick:o,onKeyDown:o,tabIndex:"0"},e,t&&ev7[r]()),eh().createElement("span",null,i))};ebe.propTypes={label:ei().string.isRequired,isSortable:ei().bool.isRequired,sortDirection:ei().oneOf(["ascending","descending","none"]).isRequired,onLabelClick:ei().func.isRequired,className:ei().string,children:ei().node};let ebt=ebe,ebr=({id:e,label:t,isSortable:r,sortDirection:n,onLabelClick:a=()=>{},value:i={},onChange:o})=>{let{startDate:s,endDate:l}=i;return eh().createElement(ebt,{label:t,isSortable:r,sortDirection:n,onLabelClick:e=>{e.preventDefault(),a(e)},className:"xl:min-w-[284px]"},eh().createElement("div",{className:"relative xl:max-w-[246px]"},eh().createElement(Se,{className:"mt-2 [&_input]:h-[34px] [&_input]:py-2 [&_input]:px-3",id:e,startDate:s,endDate:l,onChange:o})))};ebr.propTypes={id:ei().string,label:ei().string.isRequired,isSortable:ei().bool.isRequired,sortDirection:ei().oneOf(["ascending","descending","none"]).isRequired,onLabelClick:ei().func.isRequired,value:ei().shape({startDate:ei().string,endDate:ei().string}),onChange:ei().func.isRequired};let ebn=ebr;function eba(e){return({1:"w-1/24",2:"w-2/24",3:"w-3/24",4:"w-4/24",5:"w-5/24",6:"w-6/24",7:"w-7/24",8:"w-8/24",9:"w-9/24",10:"w-10/24",11:"w-11/24",12:"w-12/24",13:"w-13/24",14:"w-14/24",15:"w-15/24",16:"w-16/24",17:"w-17/24",18:"w-18/24",19:"w-19/24",20:"w-20/24",21:"w-21/24",22:"w-22/24",23:"w-23/24",24:"w-24/24"})[e]}function ebi(){return(ebi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let ebo=({children:e,className:t,text:r,...n})=>eh().createElement("label",ebi({className:em()("",t)},n),r,e);function ebs(){return(ebs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}ebo.propTypes={children:ei().node};let ebl={true:"bg-transparent",false:"bg-black"},ebu={true:"input-small",false:""},ebd=({id:e,label:t,containerClassName:r="",labelClassName:n="",className:a="",transparent:i=!1,smallInput:o=!1,type:s="text",value:l,onChange:u,onFocus:d,autoFocus:c,onKeyPress:h,onKeyDown:p,readOnly:m,disabled:f,labelChildren:g,...y})=>eh().createElement("div",{className:em()("flex flex-1 flex-col",r)},eh().createElement(ebo,{className:n,text:t,children:g}),eh().createElement("input",ebs({"data-cy":`input-${e}`,className:em()(t&&"mt-2",a,"shadow transition duration-300 appearance-none border border-inputfield-main focus:border-inputfield-focus focus:outline-none disabled:border-inputfield-disabled rounded w-full py-2 px-3 text-sm text-white placeholder-inputfield-placeholder leading-tight",ebl[i],ebu[o],{"cursor-not-allowed":f}),disabled:f,readOnly:m,autoFocus:c,type:s,value:l,onChange:u,onFocus:d,onKeyPress:h,onKeyDown:p},y)));ebd.propTypes={id:ei().string,label:ei().string,containerClassName:ei().string,labelClassName:ei().string,className:ei().string,transparent:ei().bool,smallInput:ei().bool,type:ei().string,value:ei().any,onChange:ei().func,onFocus:ei().func,autoFocus:ei().bool,readOnly:ei().bool,onKeyPress:ei().func,onKeyDown:ei().func,disabled:ei().bool,labelChildren:ei().node};let ebc=({id:e,label:t,isSortable:r=!1,sortDirection:n="none",onLabelClick:a=()=>{},value:i="",onChange:o})=>eh().createElement(ebt,{label:t,isSortable:r,sortDirection:n,onLabelClick:a},eh().createElement(ebd,{id:e,className:"mt-2",type:"text",containerClassName:"mr-2",value:i,onChange:e=>{o(e.target.value)}}));ebc.propTypes={id:ei().string,label:ei().string.isRequired,isSortable:ei().bool,sortDirection:ei().oneOf(["ascending","descending","none"]),onLabelClick:ei().func,value:ei().any,onChange:ei().func.isRequired};let ebh=ebc;function ebp(e){return(ebp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ebm(e){var t=function(e,t){if("object"!=ebp(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ebp(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ebp(t)?t:t+""}function ebf(e,t,r){return(t=ebm(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ebg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eby(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ebg(Object(r),!0).forEach(function(t){ebf(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ebg(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ebv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ebb(e,t){if(e){if("string"==typeof e)return ebv(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ebv(e,t):void 0}}function ebw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}(e,t)||ebb(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ebx(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var ebC=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ebk(){return(ebk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function ebM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ebm(n.key),n)}}function ebS(e,t){return(ebS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ebE(e){return(ebE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ebT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ebT=function(){return!!e})()}function ebI(e){return function(e){if(Array.isArray(e))return ebv(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ebb(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ebP=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),eb_="-ms-",ebD="-moz-",ebO="-webkit-",ebA="comm",ebR="rule",ebL="decl",ebN="@keyframes",ebV=Math.abs,ebF=String.fromCharCode,ebB=Object.assign;function ebj(e,t,r){return e.replace(t,r)}function ebW(e,t){return e.indexOf(t)}function ebU(e,t){return 0|e.charCodeAt(t)}function ebz(e,t,r){return e.slice(t,r)}function ebH(e){return e.length}function ebG(e,t){return t.push(e),e}var ebq=1,eb$=1,ebK=0,ebY=0,ebZ=0,ebX="";function ebJ(e,t,r,n,a,i,o){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:ebq,column:eb$,length:o,return:""}}function ebQ(e,t){return ebB(ebJ("",null,null,"",null,null,0),e,{length:-e.length},t)}function eb0(){return ebZ=ebY<ebK?ebU(ebX,ebY++):0,eb$++,10===ebZ&&(eb$=1,ebq++),ebZ}function eb1(){return ebU(ebX,ebY)}function eb2(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function eb5(e){return ebq=eb$=1,ebK=ebH(ebX=e),ebY=0,[]}function eb3(e){var t,r;return(t=ebY-1,r=function e(t){for(;eb0();)switch(ebZ){case t:return ebY;case 34:case 39:34!==t&&39!==t&&e(ebZ);break;case 40:41===t&&e(t);break;case 92:eb0()}return ebY}(91===e?e+2:40===e?e+1:e),ebz(ebX,t,r)).trim()}function eb4(e,t,r,n,a,i,o,s,l,u,d){for(var c=a-1,h=0===a?i:[""],p=h.length,m=0,f=0,g=0;m<n;++m)for(var y=0,v=ebz(e,c+1,c=ebV(f=o[m])),b=e;y<p;++y)(b=(f>0?h[y]+" "+v:ebj(v,/&\f/g,h[y])).trim())&&(l[g++]=b);return ebJ(e,t,r,0===a?ebR:s,l,u,d)}function eb8(e,t,r,n){return ebJ(e,t,r,ebL,ebz(e,0,n),ebz(e,n+1,-1),n)}function eb6(e,t){for(var r="",n=e.length,a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function eb9(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ebL:return e.return=e.return||e.value;case ebA:return"";case ebN:return e.return=e.value+"{"+eb6(e.children,n)+"}";case ebR:e.value=e.props.join(",")}return ebH(r=eb6(e.children,n))?e.return=e.value+"{"+r+"}":""}var eb7=function(e,t,r){for(var n=0,a=0;n=a,a=eb1(),38===n&&12===a&&(t[r]=1),!eb2(a);)eb0();return ebz(ebX,e,ebY)},ewe=function(e,t){var r=-1,n=44;do switch(eb2(n)){case 0:38===n&&12===eb1()&&(t[r]=1),e[r]+=eb7(ebY-1,t,r);break;case 2:e[r]+=eb3(n);break;case 4:if(44===n){e[++r]=58===eb1()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=ebF(n)}while(n=eb0());return e},ewt=function(e,t){var r;return r=ewe(eb5(e),t),ebX="",r},ewr=new WeakMap,ewn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ewr.get(r))&&!n){ewr.set(e,!0);for(var a=[],i=ewt(t,a),o=r.props,s=0,l=0;s<i.length;s++)for(var u=0;u<o.length;u++,l++)e.props[l]=a[s]?i[s].replace(/&\f/g,o[u]):o[u]+" "+i[s]}}},ewa=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ewi=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ebL:e.return=function e(t,r){switch(45^ebU(t,0)?(((r<<2^ebU(t,0))<<2^ebU(t,1))<<2^ebU(t,2))<<2^ebU(t,3):0){case 5103:return ebO+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ebO+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return ebO+t+ebD+t+eb_+t+t;case 6828:case 4268:return ebO+t+eb_+t+t;case 6165:return ebO+t+eb_+"flex-"+t+t;case 5187:return ebO+t+ebj(t,/(\w+).+(:[^]+)/,ebO+"box-$1$2"+eb_+"flex-$1$2")+t;case 5443:return ebO+t+eb_+"flex-item-"+ebj(t,/flex-|-self/,"")+t;case 4675:return ebO+t+eb_+"flex-line-pack"+ebj(t,/align-content|flex-|-self/,"")+t;case 5548:return ebO+t+eb_+ebj(t,"shrink","negative")+t;case 5292:return ebO+t+eb_+ebj(t,"basis","preferred-size")+t;case 6060:return ebO+"box-"+ebj(t,"-grow","")+ebO+t+eb_+ebj(t,"grow","positive")+t;case 4554:return ebO+ebj(t,/([^-])(transform)/g,"$1"+ebO+"$2")+t;case 6187:return ebj(ebj(ebj(t,/(zoom-|grab)/,ebO+"$1"),/(image-set)/,ebO+"$1"),t,"")+t;case 5495:case 3959:return ebj(t,/(image-set\([^]*)/,ebO+"$1$`$1");case 4968:return ebj(ebj(t,/(.+:)(flex-)?(.*)/,ebO+"box-pack:$3"+eb_+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ebO+t+t;case 4095:case 3583:case 4068:case 2532:return ebj(t,/(.+)-inline(.+)/,ebO+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ebH(t)-1-r>6)switch(ebU(t,r+1)){case 109:if(45!==ebU(t,r+4))break;case 102:return ebj(t,/(.+:)(.+)-([^]+)/,"$1"+ebO+"$2-$3$1"+ebD+(108==ebU(t,r+3)?"$3":"$2-$3"))+t;case 115:return~ebW(t,"stretch")?e(ebj(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==ebU(t,r+1))break;case 6444:switch(ebU(t,ebH(t)-3-(~ebW(t,"!important")&&10))){case 107:return ebj(t,":",":"+ebO)+t;case 101:return ebj(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ebO+(45===ebU(t,14)?"inline-":"")+"box$3$1"+ebO+"$2$3$1"+eb_+"$2box$3")+t}break;case 5936:switch(ebU(t,r+11)){case 114:return ebO+t+eb_+ebj(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return ebO+t+eb_+ebj(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ebO+t+eb_+ebj(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ebO+t+eb_+t+t}return t}(e.value,e.length);break;case ebN:return eb6([ebQ(e,{value:ebj(e.value,"@","@"+ebO)})],n);case ebR:if(e.length){var a,i;return a=e.props,i=function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return eb6([ebQ(e,{props:[ebj(t,/:(read-\w+)/,":"+ebD+"$1")]})],n);case"::placeholder":return eb6([ebQ(e,{props:[ebj(t,/:(plac\w+)/,":"+ebO+"input-$1")]}),ebQ(e,{props:[ebj(t,/:(plac\w+)/,":"+ebD+"$1")]}),ebQ(e,{props:[ebj(t,/:(plac\w+)/,eb_+"input-$1")]})],n)}return""},a.map(i).join("")}}}],ewo=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},ews=function(e,t,r){ewo(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do e.insert(t===a?"."+n:"",a,e.sheet,!0),a=a.next;while(void 0!==a)}},ewl={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ewu=/[A-Z]|^ms/g,ewd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ewc=function(e){return 45===e.charCodeAt(1)},ewh=function(e){return null!=e&&"boolean"!=typeof e},ewp=(P=function(e){return ewc(e)?e:e.replace(ewu,"-$&").toLowerCase()},_=Object.create(null),function(e){return void 0===_[e]&&(_[e]=P(e)),_[e]}),ewm=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ewd,function(e,t,r){return B={name:t,styles:r,next:B},t})}return 1===ewl[e]||ewc(e)||"number"!=typeof t||0===t?t:t+"px"};function ewf(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return B={name:r.name,styles:r.styles,next:B},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)B={name:n.name,styles:n.styles,next:B},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=ewf(e,t,r[a])+";";else for(var i in r){var o=r[i];if("object"!=typeof o)null!=t&&void 0!==t[o]?n+=i+"{"+t[o]+"}":ewh(o)&&(n+=ewp(i)+":"+ewm(i,o)+";");else if(Array.isArray(o)&&"string"==typeof o[0]&&(null==t||void 0===t[o[0]]))for(var s=0;s<o.length;s++)ewh(o[s])&&(n+=ewp(i)+":"+ewm(i,o[s])+";");else{var l=ewf(e,t,o);switch(i){case"animation":case"animationName":n+=ewp(i)+":"+l+";";break;default:n+=i+"{"+l+"}"}}}return n}(e,t,r);case"function":if(void 0!==e){var a=B,i=r(e);return B=a,ewf(e,t,i)}}if(null==t)return r;var o=t[r];return void 0!==o?o:r}var ewg=/label:\s*([^\s;{]+)\s*(;|$)/g;function ewy(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n,a=!0,i="";B=void 0;var o=e[0];null==o||void 0===o.raw?(a=!1,i+=ewf(r,t,o)):i+=o[0];for(var s=1;s<e.length;s++)i+=ewf(r,t,e[s]),a&&(i+=o[s]);ewg.lastIndex=0;for(var l="";null!==(n=ewg.exec(i));)l+="-"+n[1];return{name:function(e){for(var t,r=0,n=0,a=e.length;a>=4;++n,a-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(a){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(i)+l,styles:i,next:B}}var ewv=!!ed.useInsertionEffect&&ed.useInsertionEffect,ewb=ewv||function(e){return e()};ewv||ed.useLayoutEffect;var eww=ed.createContext("u">typeof HTMLElement?function(e){var t,r,n,a,i,o=e.key;if("css"===o){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var l=e.stylisPlugins||ewi,u={},d=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)u[t[r]]=!0;d.push(e)});var c=(r=(t=[ewn,ewa].concat(l,[eb9,(n=function(e){i.insert(e)},function(e){!e.root&&(e=e.return)&&n(e)})])).length,function(e,n,a,i){for(var o="",s=0;s<r;s++)o+=t[s](e,n,a,i)||"";return o}),h=function(e){var t,r;return eb6((r=function e(t,r,n,a,i,o,s,l,u){for(var d,c=0,h=0,p=s,m=0,f=0,g=0,y=1,v=1,b=1,w=0,x="",C=i,k=o,M=a,S=x;v;)switch(g=w,w=eb0()){case 40:if(108!=g&&58==ebU(S,p-1)){-1!=ebW(S+=ebj(eb3(w),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:S+=eb3(w);break;case 9:case 10:case 13:case 32:S+=function(e){for(;ebZ=eb1();)if(ebZ<33)eb0();else break;return eb2(e)>2||eb2(ebZ)>3?"":" "}(g);break;case 92:S+=function(e,t){for(var r;--t&&eb0()&&!(ebZ<48)&&!(ebZ>102)&&(!(ebZ>57)||!(ebZ<65))&&(!(ebZ>70)||!(ebZ<97)););return r=ebY+(t<6&&32==eb1()&&32==eb0()),ebz(ebX,e,r)}(ebY-1,7);continue;case 47:switch(eb1()){case 42:case 47:ebG((d=function(e,t){for(;eb0();)if(e+ebZ===57)break;else if(e+ebZ===84&&47===eb1())break;return"/*"+ebz(ebX,t,ebY-1)+"*"+ebF(47===e?e:eb0())}(eb0(),ebY),ebJ(d,r,n,ebA,ebF(ebZ),ebz(d,2,-2),0)),u);break;default:S+="/"}break;case 123*y:l[c++]=ebH(S)*b;case 125*y:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+h:-1==b&&(S=ebj(S,/\f/g,"")),f>0&&ebH(S)-p&&ebG(f>32?eb8(S+";",a,n,p-1):eb8(ebj(S," ","")+";",a,n,p-2),u);break;case 59:S+=";";default:if(ebG(M=eb4(S,r,n,c,h,i,l,x,C=[],k=[],p),o),123===w)if(0===h)e(S,r,M,M,C,o,p,l,k);else switch(99===m&&110===ebU(S,3)?100:m){case 100:case 108:case 109:case 115:e(t,M,M,a&&ebG(eb4(t,M,M,0,0,i,l,x,i,C=[],p),k),i,k,p,l,a?C:k);break;default:e(S,M,M,M,[""],k,0,l,k)}}c=h=f=0,y=b=1,x=S="",p=s;break;case 58:p=1+ebH(S),f=g;default:if(y<1){if(123==w)--y;else if(125==w&&0==y++&&125==(ebZ=ebY>0?ebU(ebX,--ebY):0,eb$--,10===ebZ&&(eb$=1,ebq--),ebZ))continue}switch(S+=ebF(w),w*y){case 38:b=h>0?1:(S+="\f",-1);break;case 44:l[c++]=(ebH(S)-1)*b,b=1;break;case 64:45===eb1()&&(S+=eb3(eb0())),m=eb1(),h=p=ebH(x=S+=function(e){for(;!eb2(eb1());)eb0();return ebz(ebX,e,ebY)}(ebY)),w++;break;case 45:45===g&&2==ebH(S)&&(y=0)}}return o}("",null,null,null,[""],t=eb5(t=e),0,[0],t),ebX="",r),c)},p={key:o,sheet:new ebP({key:o,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:u,registered:{},insert:function(e,t,r,n){i=r,h(e?e+"{"+t.styles+"}":t.styles),n&&(p.inserted[t.name]=!0)}};return p.sheet.hydrate(d),p}({key:"css"}):null);eww.Provider;var ewx=ed.createContext({}),ewC={}.hasOwnProperty,ewk="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ewM=function(e,t){var r={};for(var n in t)ewC.call(t,n)&&(r[n]=t[n]);return r[ewk]=e,r},ewS=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return ewo(t,r,n),ewb(function(){return ews(t,r,n)}),null},ewE=(D=function(e,t,r){var n,a,i,o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var s=e[ewk],l=[o],u="";"string"==typeof e.className?(n=t.registered,a=e.className,i="",a.split(" ").forEach(function(e){void 0!==n[e]?l.push(n[e]+";"):e&&(i+=e+" ")}),u=i):null!=e.className&&(u=e.className+" ");var d=ewy(l,void 0,ed.useContext(ewx));u+=t.key+"-"+d.name;var c={};for(var h in e)ewC.call(e,h)&&"css"!==h&&h!==ewk&&(c[h]=e[h]);return c.className=u,r&&(c.ref=r),ed.createElement(ed.Fragment,null,ed.createElement(ewS,{cache:t,serialized:d,isStringTag:"string"==typeof s}),ed.createElement(s,c))},(0,ed.forwardRef)(function(e,t){return D(e,(0,ed.useContext)(eww),t)})),ewT=function(e,t){var r=arguments;if(null==t||!ewC.call(t,"css"))return ed.createElement.apply(void 0,r);var n=r.length,a=Array(n);a[0]=ewE,a[1]=ewM(e,t);for(var i=2;i<n;i++)a[i]=r[i];return ed.createElement.apply(null,a)};function ewI(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return ewy(t)}O=ewT||(ewT={}),A||(A=O.JSX||(O.JSX={}));var ewP=ed.useLayoutEffect,ew_=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ewD=function(){};function ewO(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];var i=[].concat(n);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&i.push("".concat(o?"-"===o[0]?e+o:e+"__"+o:e));return i.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var ewA=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===ebp(e)&&null!==e?[e]:[]},ewR=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,eby({},ebx(e,ew_))},ewL=function(e,t,r){var n=e.cx,a=e.getStyles,i=e.getClassNames,o=e.className;return{css:a(t,e),className:n(null!=r?r:{},i(t,e),o)}};function ewN(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ewV(e){return ewN(e)?window.pageYOffset:e.scrollTop}function ewF(e,t){ewN(e)?window.scrollTo(0,t):e.scrollTop=t}function ewB(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ewD,a=ewV(e),i=t-a,o=0;!function t(){var s;o+=10,ewF(e,i*((s=(s=o)/r-1)*s*s+1)+a),o<r?window.requestAnimationFrame(t):n(e)}()}function ewj(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),a=t.offsetHeight/3;n.bottom+a>r.bottom?ewF(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight)):n.top-a<r.top&&ewF(e,Math.max(t.offsetTop-a,0))}function ewW(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var ewU=!1,ewz="u">typeof window?window:{};ewz.addEventListener&&ewz.removeEventListener&&(ewz.addEventListener("p",ewD,{get passive(){return ewU=!0}}),ewz.removeEventListener("p",ewD,!1));var ewH=ewU;function ewG(e){return null!=e}var ewq=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Object.entries(e).filter(function(e){var t=ebw(e,1)[0];return!r.includes(t)}).reduce(function(e,t){var r=ebw(t,2),n=r[0],a=r[1];return e[n]=a,e},{})},ew$=["children","innerProps"],ewK=["children","innerProps"],ewY=function(e){return"auto"===e?"bottom":e},ewZ=(0,ed.createContext)(null),ewX=function(e){var t=e.children,r=e.minMenuHeight,n=e.maxMenuHeight,a=e.menuPlacement,i=e.menuPosition,o=e.menuShouldScrollIntoView,s=e.theme,l=((0,ed.useContext)(ewZ)||{}).setPortalPlacement,u=(0,ed.useRef)(null),d=ebw((0,ed.useState)(n),2),c=d[0],h=d[1],p=ebw((0,ed.useState)(null),2),m=p[0],f=p[1],g=s.spacing.controlHeight;return ewP(function(){var e=u.current;if(e){var t="fixed"===i,s=function(e){var t,r=e.maxHeight,n=e.menuEl,a=e.minHeight,i=e.placement,o=e.shouldScroll,s=e.isFixedPosition,l=e.controlHeight,u=function(e){var t=getComputedStyle(e),r="absolute"===t.position,n=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!r||"static"!==t.position)&&n.test(t.overflow+t.overflowY+t.overflowX))return a;return document.documentElement}(n),d={placement:"bottom",maxHeight:r};if(!n||!n.offsetParent)return d;var c=u.getBoundingClientRect().height,h=n.getBoundingClientRect(),p=h.bottom,m=h.height,f=h.top,g=n.offsetParent.getBoundingClientRect().top,y=s||ewN(t=u)?window.innerHeight:t.clientHeight,v=ewV(u),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=g-w,C=y-f,k=x+v,M=c-v-f,S=p-y+v+b,E=v+f-w;switch(i){case"auto":case"bottom":if(C>=m)return{placement:"bottom",maxHeight:r};if(M>=m&&!s)return o&&ewB(u,S,160),{placement:"bottom",maxHeight:r};if(!s&&M>=a||s&&C>=a)return o&&ewB(u,S,160),{placement:"bottom",maxHeight:s?C-b:M-b};if("auto"===i||s){var T=r,I=s?x:k;return I>=a&&(T=Math.min(I-b-l,r)),{placement:"top",maxHeight:T}}if("bottom"===i)return o&&ewF(u,S),{placement:"bottom",maxHeight:r};break;case"top":if(x>=m)return{placement:"top",maxHeight:r};if(k>=m&&!s)return o&&ewB(u,E,160),{placement:"top",maxHeight:r};if(!s&&k>=a||s&&x>=a){var P=r;return(!s&&k>=a||s&&x>=a)&&(P=s?x-w:k-w),o&&ewB(u,E,160),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:r};default:throw Error('Invalid placement provided "'.concat(i,'".'))}return d}({maxHeight:n,menuEl:e,minHeight:r,placement:a,shouldScroll:o&&!t,isFixedPosition:t,controlHeight:g});h(s.maxHeight),f(s.placement),null==l||l(s.placement)}},[n,a,i,o,r,l,g]),t({ref:u,placerProps:eby(eby({},e),{},{placement:m||ewY(a),maxHeight:c})})},ewJ=function(e,t){var r=e.theme,n=r.spacing.baseUnit,a=r.colors;return eby({textAlign:"center"},t?{}:{color:a.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px")})},ewQ=["size"],ew0=["innerProps","isRtl","size"],ew1={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ew2=function(e){var t=e.size,r=ebx(e,ewQ);return ewT("svg",ebk({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ew1},r))},ew5=function(e){return ewT(ew2,ebk({size:20},e),ewT("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ew3=function(e){return ewT(ew2,ebk({size:20},e),ewT("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ew4=function(e,t){var r=e.isFocused,n=e.theme,a=n.spacing.baseUnit,i=n.colors;return eby({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:r?i.neutral60:i.neutral20,padding:2*a,":hover":{color:r?i.neutral80:i.neutral40}})},ew8=function(){var e=ewI.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(j||(R=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],L||(L=R.slice(0)),j=Object.freeze(Object.defineProperties(R,{raw:{value:Object.freeze(L)}})))),ew6=function(e){var t=e.delay,r=e.offset;return ewT("span",{css:ewI({animation:"".concat(ew8," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ew9=["data"],ew7=["innerRef","isDisabled","isHidden","inputClassName"],exe={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ext={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":eby({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},exe)},exr=function(e){var t=e.children,r=e.innerProps;return ewT("div",r,t)},exn={ClearIndicator:function(e){var t=e.children,r=e.innerProps;return ewT("div",ebk({},ewL(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),t||ewT(ew5,null))},Control:function(e){var t=e.children,r=e.isDisabled,n=e.isFocused,a=e.innerRef,i=e.innerProps,o=e.menuIsOpen;return ewT("div",ebk({ref:a},ewL(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":n,"control--menu-is-open":o}),i),t)},DropdownIndicator:function(e){var t=e.children,r=e.innerProps;return ewT("div",ebk({},ewL(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),t||ewT(ew3,null))},DownChevron:ew3,CrossIcon:ew5,Group:function(e){var t=e.children,r=e.cx,n=e.getStyles,a=e.getClassNames,i=e.Heading,o=e.headingProps,s=e.innerProps,l=e.label,u=e.theme,d=e.selectProps;return ewT("div",ebk({},ewL(e,"group",{group:!0}),s),ewT(i,ebk({},o,{selectProps:d,theme:u,getStyles:n,getClassNames:a,cx:r}),l),ewT("div",null,t))},GroupHeading:function(e){var t=ewR(e);t.data;var r=ebx(t,ew9);return ewT("div",ebk({},ewL(e,"groupHeading",{"group-heading":!0}),r))},IndicatorsContainer:function(e){var t=e.children,r=e.innerProps;return ewT("div",ebk({},ewL(e,"indicatorsContainer",{indicators:!0}),r),t)},IndicatorSeparator:function(e){var t=e.innerProps;return ewT("span",ebk({},t,ewL(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,r=e.value,n=ewR(e),a=n.innerRef,i=n.isDisabled,o=n.isHidden,s=n.inputClassName,l=ebx(n,ew7);return ewT("div",ebk({},ewL(e,"input",{"input-container":!0}),{"data-value":r||""}),ewT("input",ebk({className:t({input:!0},s),ref:a,style:eby({label:"input",color:"inherit",background:0,opacity:+!o,width:"100%"},exe),disabled:i},l)))},LoadingIndicator:function(e){var t=e.innerProps,r=e.isRtl,n=e.size,a=ebx(e,ew0);return ewT("div",ebk({},ewL(eby(eby({},a),{},{innerProps:t,isRtl:r,size:void 0===n?4:n}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ewT(ew6,{delay:0,offset:r}),ewT(ew6,{delay:160,offset:!0}),ewT(ew6,{delay:320,offset:!r}))},Menu:function(e){var t=e.children,r=e.innerRef,n=e.innerProps;return ewT("div",ebk({},ewL(e,"menu",{menu:!0}),{ref:r},n),t)},MenuList:function(e){var t=e.children,r=e.innerProps,n=e.innerRef,a=e.isMulti;return ewT("div",ebk({},ewL(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:n},r),t)},MenuPortal:function(e){var t=e.appendTo,r=e.children,n=e.controlElement,a=e.innerProps,i=e.menuPlacement,o=e.menuPosition,s=(0,ed.useRef)(null),l=(0,ed.useRef)(null),u=ebw((0,ed.useState)(ewY(i)),2),d=u[0],c=u[1],h=(0,ed.useMemo)(function(){return{setPortalPlacement:c}},[]),p=ebw((0,ed.useState)(null),2),m=p[0],f=p[1],g=(0,ed.useCallback)(function(){if(n){var e,t={bottom:(e=n.getBoundingClientRect()).bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width},r="fixed"===o?0:window.pageYOffset,a=t[d]+r;(a!==(null==m?void 0:m.offset)||t.left!==(null==m?void 0:m.rect.left)||t.width!==(null==m?void 0:m.rect.width))&&f({offset:a,rect:t})}},[n,o,d,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);ewP(function(){g()},[g]);var y=(0,ed.useCallback)(function(){"function"==typeof l.current&&(l.current(),l.current=null),n&&s.current&&(l.current=ok(n,s.current,g,{elementResize:"ResizeObserver"in window}))},[n,g]);ewP(function(){y()},[y]);var v=(0,ed.useCallback)(function(e){s.current=e,y()},[y]);if(!t&&"fixed"!==o||!m)return null;var b=ewT("div",ebk({ref:v},ewL(eby(eby({},e),{},{offset:m.offset,position:o,rect:m.rect}),"menuPortal",{"menu-portal":!0}),a),r);return ewT(ewZ.Provider,{value:h},t?(0,rS.createPortal)(b,t):b)},LoadingMessage:function(e){var t=e.children,r=void 0===t?"Loading...":t,n=e.innerProps,a=ebx(e,ewK);return ewT("div",ebk({},ewL(eby(eby({},a),{},{children:r,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),r)},NoOptionsMessage:function(e){var t=e.children,r=void 0===t?"No options":t,n=e.innerProps,a=ebx(e,ew$);return ewT("div",ebk({},ewL(eby(eby({},a),{},{children:r,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),r)},MultiValue:function(e){var t=e.children,r=e.components,n=e.data,a=e.innerProps,i=e.isDisabled,o=e.removeProps,s=e.selectProps,l=r.Container,u=r.Label,d=r.Remove;return ewT(l,{data:n,innerProps:eby(eby({},ewL(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),a),selectProps:s},ewT(u,{data:n,innerProps:eby({},ewL(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),ewT(d,{data:n,innerProps:eby(eby({},ewL(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},o),selectProps:s}))},MultiValueContainer:exr,MultiValueLabel:exr,MultiValueRemove:function(e){var t=e.children,r=e.innerProps;return ewT("div",ebk({role:"button"},r),t||ewT(ew5,{size:14}))},Option:function(e){var t=e.children,r=e.isDisabled,n=e.isFocused,a=e.isSelected,i=e.innerRef,o=e.innerProps;return ewT("div",ebk({},ewL(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":n,"option--is-selected":a}),{ref:i,"aria-disabled":r},o),t)},Placeholder:function(e){var t=e.children,r=e.innerProps;return ewT("div",ebk({},ewL(e,"placeholder",{placeholder:!0}),r),t)},SelectContainer:function(e){var t=e.children,r=e.innerProps,n=e.isDisabled,a=e.isRtl;return ewT("div",ebk({},ewL(e,"container",{"--is-disabled":n,"--is-rtl":a}),r),t)},SingleValue:function(e){var t=e.children,r=e.isDisabled,n=e.innerProps;return ewT("div",ebk({},ewL(e,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),n),t)},ValueContainer:function(e){var t=e.children,r=e.innerProps,n=e.isMulti,a=e.hasValue;return ewT("div",ebk({},ewL(e,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":a}),r),t)}},exa=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function exi(e,t){if(e.length!==t.length)return!1;for(var r,n,a=0;a<e.length;a++)if(!((r=e[a])===(n=t[a])||exa(r)&&exa(n))&&1)return!1;return!0}for(var exo={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},exs=function(e){return ewT("span",ebk({css:exo},e))},exl={guidance:function(e){var t=e.isSearchable,r=e.isMulti,n=e.isDisabled,a=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(n?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(a?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,r=e.label,n=void 0===r?"":r,a=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return i?"option ".concat(n," is disabled. Select another option."):"option ".concat(n,", selected.");default:return""}},onFocus:function(e){var t=e.context,r=e.focused,n=e.options,a=e.label,i=void 0===a?"":a,o=e.selectValue,s=e.isDisabled,l=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&o)return"value ".concat(i," focused, ").concat(u(o,r),".");if("menu"===t){var d="".concat(l?"selected":"focused").concat(s?" disabled":"");return"option ".concat(i," ").concat(d,", ").concat(u(n,r),".")}return""},onFilter:function(e){var t=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(t?" for search term "+t:"",".")}},exu=function(e){var t=e.ariaSelection,r=e.focusedOption,n=e.focusedValue,a=e.focusableOptions,i=e.isFocused,o=e.selectValue,s=e.selectProps,l=e.id,u=s.ariaLiveMessages,d=s.getOptionLabel,c=s.inputValue,h=s.isMulti,p=s.isOptionDisabled,m=s.isSearchable,f=s.menuIsOpen,g=s.options,y=s.screenReaderStatus,v=s.tabSelectsValue,b=s["aria-label"],w=s["aria-live"],x=(0,ed.useMemo)(function(){return eby(eby({},exl),u||{})},[u]),C=(0,ed.useMemo)(function(){var e="";if(t&&x.onChange){var r=t.option,n=t.options,a=t.removedValue,i=t.removedValues,s=t.value,l=a||r||(Array.isArray(s)?null:s),u=l?d(l):"",c=n||i||void 0,h=c?c.map(d):[],m=eby({isDisabled:l&&p(l,o),label:u,labels:h},t);e=x.onChange(m)}return e},[t,x,p,o,d]),k=(0,ed.useMemo)(function(){var e="",t=r||n,i=!!(r&&o&&o.includes(r));if(t&&x.onFocus){var s={focused:t,label:d(t),isDisabled:p(t,o),isSelected:i,options:a,context:t===r?"menu":"value",selectValue:o};e=x.onFocus(s)}return e},[r,n,d,p,x,a,o]),M=(0,ed.useMemo)(function(){var e="";if(f&&g.length&&x.onFilter){var t=y({count:a.length});e=x.onFilter({inputValue:c,resultsMessage:t})}return e},[a,c,f,x,g,y]),S=(0,ed.useMemo)(function(){var e="";if(x.guidance){var t=n?"value":f?"menu":"input";e=x.guidance({"aria-label":b,context:t,isDisabled:r&&p(r,o),isMulti:h,isSearchable:m,tabSelectsValue:v})}return e},[b,r,n,h,p,m,f,x,o,v]),E="".concat(k," ").concat(M," ").concat(S),T=ewT(ed.Fragment,null,ewT("span",{id:"aria-selection"},C),ewT("span",{id:"aria-context"},E)),I=(null==t?void 0:t.action)==="initial-input-focus";return ewT(ed.Fragment,null,ewT(exs,{id:l},I&&T),ewT(exs,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},i&&!I&&T))},exd=[{base:"A",letters:"AⒶA\xc0\xc1\xc2ẦẤẪẨ\xc3ĀĂẰẮẴẲȦǠ\xc4ǞẢ\xc5ǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"\xc6ǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČ\xc7ḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺE\xc8\xc9\xcaỀẾỄỂẼĒḔḖĔĖ\xcbẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾI\xcc\xcd\xceĨĪĬİ\xcfḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃ\xd1ṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄO\xd2\xd3\xd4ỒỐỖỔ\xd5ṌȬṎŌṐṒŎȮȰ\xd6ȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬ\xd8ǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊU\xd9\xda\xdbŨṸŪṺŬ\xdcǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲ\xddŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚ\xe0\xe1\xe2ầấẫẩ\xe3āăằắẵẳȧǡ\xe4ǟả\xe5ǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"\xe6ǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċč\xe7ḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔe\xe8\xe9\xeaềếễểẽēḕḗĕė\xebẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘi\xec\xed\xeeĩīĭ\xefḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹń\xf1ṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞo\xf2\xf3\xf4ồốỗổ\xf5ṍȭṏōṑṓŏȯȱ\xf6ȫỏőǒȍȏơờớỡởợọộǫǭ\xf8ǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢs\xdfśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤu\xf9\xfa\xfbũṹūṻŭ\xfcǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳ\xfdŷỹȳẏ\xffỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],exc=RegExp("["+exd.map(function(e){return e.letters}).join("")+"]","g"),exh={},exp=0;exp<exd.length;exp++)for(var exm=exd[exp],exf=0;exf<exm.letters.length;exf++)exh[exm.letters[exf]]=exm.base;var exg=function(e){return e.replace(exc,function(e){return exh[e]})},exy=function(e,t){void 0===t&&(t=exi);var r=null;function n(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var i=e.apply(this,n);return r={lastResult:i,lastArgs:n,lastThis:this},i}return n.clear=function(){r=null},n}(exg),exv=function(e){return e.replace(/^\s+|\s+$/g,"")},exb=function(e){return"".concat(e.label," ").concat(e.value)},exw=["innerRef"];function exx(e){var t=e.innerRef,r=ewq(ebx(e,exw),"onExited","in","enter","exit","appear");return ewT("input",ebk({ref:t},r,{css:ewI({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var exC=function(e){e.preventDefault(),e.stopPropagation()},exk=["boxSizing","height","overflow","paddingRight","position"],exM={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function exS(e){e.preventDefault()}function exE(e){e.stopPropagation()}function exT(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;0===e?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function exI(){return"ontouchstart"in window||navigator.maxTouchPoints}var exP=!!("u">typeof window&&window.document&&window.document.createElement),ex_=0,exD={capture:!1,passive:!1},exO=function(){return document.activeElement&&document.activeElement.blur()},exA={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function exR(e){var t,r,n,a,i,o,s,l,u,d,c,h,p,m,f,g,y,v,b,w,x,C,k,M,S=e.children,E=e.lockEnabled,T=e.captureEnabled,I=(r=(t={isEnabled:void 0===T||T,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}).isEnabled,n=t.onBottomArrive,a=t.onBottomLeave,i=t.onTopArrive,o=t.onTopLeave,s=(0,ed.useRef)(!1),l=(0,ed.useRef)(!1),u=(0,ed.useRef)(0),d=(0,ed.useRef)(null),c=(0,ed.useCallback)(function(e,t){if(null!==d.current){var r=d.current,u=r.scrollTop,c=r.scrollHeight,h=r.clientHeight,p=d.current,m=t>0,f=c-h-u,g=!1;f>t&&s.current&&(a&&a(e),s.current=!1),m&&l.current&&(o&&o(e),l.current=!1),m&&t>f?(n&&!s.current&&n(e),p.scrollTop=c,g=!0,s.current=!0):!m&&-t>u&&(i&&!l.current&&i(e),p.scrollTop=0,g=!0,l.current=!0),g&&exC(e)}},[n,a,i,o]),h=(0,ed.useCallback)(function(e){c(e,e.deltaY)},[c]),p=(0,ed.useCallback)(function(e){u.current=e.changedTouches[0].clientY},[]),m=(0,ed.useCallback)(function(e){var t=u.current-e.changedTouches[0].clientY;c(e,t)},[c]),f=(0,ed.useCallback)(function(e){if(e){var t=!!ewH&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",m,t)}},[m,p,h]),g=(0,ed.useCallback)(function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",m,!1))},[m,p,h]),(0,ed.useEffect)(function(){if(r){var e=d.current;return f(e),function(){g(e)}}},[r,f,g]),function(e){d.current=e}),P=(v=(y={isEnabled:E}).isEnabled,w=void 0===(b=y.accountForScrollbars)||b,x=(0,ed.useRef)({}),C=(0,ed.useRef)(null),k=(0,ed.useCallback)(function(e){if(exP){var t=document.body,r=t&&t.style;if(w&&exk.forEach(function(e){var t=r&&r[e];x.current[e]=t}),w&&ex_<1){var n=parseInt(x.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,i=window.innerWidth-a+n||0;Object.keys(exM).forEach(function(e){var t=exM[e];r&&(r[e]=t)}),r&&(r.paddingRight="".concat(i,"px"))}t&&exI()&&(t.addEventListener("touchmove",exS,exD),e&&(e.addEventListener("touchstart",exT,exD),e.addEventListener("touchmove",exE,exD))),ex_+=1}},[w]),M=(0,ed.useCallback)(function(e){if(exP){var t=document.body,r=t&&t.style;ex_=Math.max(ex_-1,0),w&&ex_<1&&exk.forEach(function(e){var t=x.current[e];r&&(r[e]=t)}),t&&exI()&&(t.removeEventListener("touchmove",exS,exD),e&&(e.removeEventListener("touchstart",exT,exD),e.removeEventListener("touchmove",exE,exD)))}},[w]),(0,ed.useEffect)(function(){if(v){var e=C.current;return k(e),function(){M(e)}}},[v,k,M]),function(e){C.current=e});return ewT(ed.Fragment,null,E&&ewT("div",{onClick:exO,css:exA}),S(function(e){I(e),P(e)}))}var exL={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},exN=function(e){var t=e.name,r=e.onFocus;return ewT("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:exL,value:"",onChange:function(){}})},exV={clearIndicator:ew4,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var r=e.isDisabled,n=e.isFocused,a=e.theme,i=a.colors,o=a.borderRadius;return eby({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:r?i.neutral5:i.neutral0,borderColor:r?i.neutral10:n?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:n?i.primary:i.neutral30}})},dropdownIndicator:ew4,group:function(e,t){var r=e.theme.spacing;return t?{}:{paddingBottom:2*r.baseUnit,paddingTop:2*r.baseUnit}},groupHeading:function(e,t){var r=e.theme,n=r.colors,a=r.spacing;return eby({label:"group",cursor:"default",display:"block"},t?{}:{color:n.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*a.baseUnit,paddingRight:3*a.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var r=e.isDisabled,n=e.theme,a=n.spacing.baseUnit,i=n.colors;return eby({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:r?i.neutral10:i.neutral20,marginBottom:2*a,marginTop:2*a})},input:function(e,t){var r=e.isDisabled,n=e.value,a=e.theme,i=a.spacing,o=a.colors;return eby(eby({visibility:r?"hidden":"visible",transform:n?"translateZ(0)":""},ext),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:o.neutral80})},loadingIndicator:function(e,t){var r=e.isFocused,n=e.size,a=e.theme,i=a.colors,o=a.spacing.baseUnit;return eby({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},t?{}:{color:r?i.neutral60:i.neutral20,padding:2*o})},loadingMessage:ewJ,menu:function(e,t){var r,n=e.placement,a=e.theme,i=a.borderRadius,o=a.spacing,s=a.colors;return eby((ebf(r={label:"menu"},n?({bottom:"top",top:"bottom"})[n]:"bottom","100%"),ebf(r,"position","absolute"),ebf(r,"width","100%"),ebf(r,"zIndex",1),r),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},menuList:function(e,t){var r=e.maxHeight,n=e.theme.spacing.baseUnit;return eby({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:n,paddingTop:n})},menuPortal:function(e){var t=e.rect,r=e.offset,n=e.position;return{left:t.left,position:n,top:r,width:t.width,zIndex:1}},multiValue:function(e,t){var r=e.theme,n=r.spacing,a=r.borderRadius,i=r.colors;return eby({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:a/2,margin:n.baseUnit/2})},multiValueLabel:function(e,t){var r=e.theme,n=r.borderRadius,a=r.colors,i=e.cropWithEllipsis;return eby({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:n/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var r=e.theme,n=r.spacing,a=r.borderRadius,i=r.colors,o=e.isFocused;return eby({alignItems:"center",display:"flex"},t?{}:{borderRadius:a/2,backgroundColor:o?i.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:ewJ,option:function(e,t){var r=e.isDisabled,n=e.isFocused,a=e.isSelected,i=e.theme,o=i.spacing,s=i.colors;return eby({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:a?s.primary:n?s.primary25:"transparent",color:r?s.neutral20:a?s.neutral0:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),":active":{backgroundColor:r?void 0:a?s.primary:s.primary50}})},placeholder:function(e,t){var r=e.theme,n=r.spacing,a=r.colors;return eby({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:a.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},singleValue:function(e,t){var r=e.isDisabled,n=e.theme,a=n.spacing,i=n.colors;return eby({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:r?i.neutral40:i.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},valueContainer:function(e,t){var r=e.theme.spacing,n=e.isMulti,a=e.hasValue,i=e.selectProps.controlShouldRenderValue;return eby({alignItems:"center",display:n&&a&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(2*r.baseUnit,"px")})}},exF={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},exB={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ewW(),captureMenuScroll:!ewW(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var r=eby({ignoreCase:!0,ignoreAccents:!0,stringify:exb,trim:!0,matchFrom:"any"},void 0),n=r.ignoreCase,a=r.ignoreAccents,i=r.stringify,o=r.trim,s=r.matchFrom,l=o?exv(t):t,u=o?exv(i(e)):i(e);return n&&(l=l.toLowerCase(),u=u.toLowerCase()),a&&(l=exy(l),u=exg(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function exj(e,t,r,n){var a=exq(e,t,r),i=ex$(e,t,r),o=exH(e,t),s=exG(e,t);return{type:"option",data:t,isDisabled:a,isSelected:i,label:o,value:s,index:n}}function exW(e,t){return e.options.map(function(r,n){if("options"in r){var a=r.options.map(function(r,n){return exj(e,r,t,n)}).filter(function(t){return exz(e,t)});return a.length>0?{type:"group",data:r,options:a,index:n}:void 0}var i=exj(e,r,t,n);return exz(e,i)?i:void 0}).filter(ewG)}function exU(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,ebI(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function exz(e,t){var r=e.inputValue,n=t.data,a=t.isSelected,i=t.label,o=t.value;return(!exY(e)||!a)&&exK(e,{label:i,value:o,data:n},void 0===r?"":r)}var exH=function(e,t){return e.getOptionLabel(t)},exG=function(e,t){return e.getOptionValue(t)};function exq(e,t,r){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,r)}function ex$(e,t,r){if(r.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,r);var n=exG(e,t);return r.some(function(t){return exG(e,t)===n})}function exK(e,t,r){return!e.filterOption||e.filterOption(t,r)}var exY=function(e){var t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},exZ=1,exX=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&ebS(i,e);var t,r,n,a=(t=ebT(),function(){var e,r=ebE(i);e=t?Reflect.construct(r,arguments,ebE(this).constructor):r.apply(this,arguments);if(e&&("object"==ebp(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function i(e){var t;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");if((t=a.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,r){var n=t.props,a=n.onChange;r.name=n.name,t.ariaOnChange(e,r),a(e,r)},t.setValue=function(e,r,n){var a=t.props,i=a.closeMenuOnSelect,o=a.isMulti,s=a.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:r,option:n})},t.selectOption=function(e){var r=t.props,n=r.blurInputOnSelect,a=r.isMulti,i=r.name,o=t.state.selectValue,s=a&&t.isOptionSelected(e,o),l=t.isOptionDisabled(e,o);if(s){var u=t.getOptionValue(e);t.setValue(o.filter(function(e){return t.getOptionValue(e)!==u}),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});a?t.setValue([].concat(ebI(o),[e]),"select-option",e):t.setValue(e,"select-option")}n&&t.blurInput()},t.removeValue=function(e){var r,n=t.props.isMulti,a=t.state.selectValue,i=t.getOptionValue(e),o=a.filter(function(e){return t.getOptionValue(e)!==i}),s=(r=o[0]||null,n?o:r);t.onChange(s,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e,r,n=t.state.selectValue;t.onChange((e=t.props.isMulti,r=[],e?r:null),{action:"clear",removedValues:n})},t.popValue=function(){var e,r=t.props.isMulti,n=t.state.selectValue,a=n[n.length-1],i=n.slice(0,n.length-1),o=(e=i[0]||null,r?i:e);t.onChange(o,{action:"pop-value",removedValue:a})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return ewO.apply(void 0,[t.props.classNamePrefix].concat(r))},t.getOptionLabel=function(e){return exH(t.props,e)},t.getOptionValue=function(e){return exG(t.props,e)},t.getStyles=function(e,r){var n=t.props.unstyled,a=exV[e](r,n);a.boxSizing="border-box";var i=t.props.styles[e];return i?i(a,r):a},t.getClassNames=function(e,r){var n,a;return null==(n=(a=t.props.classNames)[e])?void 0:n.call(a,r)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){var e;return e=t.props,eby(eby({},exn),e.components)},t.buildCategorizedOptions=function(){return exW(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return exU(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,r){t.setState({ariaSelection:eby({value:e},r)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var r=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():r&&t.openMenu("first"):(r&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!t.props.isDisabled){var r=t.props,n=r.isMulti,a=r.menuIsOpen;t.focusInput(),a?(t.setState({inputIsHiddenAfterUpdate:!n}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&ewN(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var r=e.touches,n=r&&r.item(0);n&&(t.initialTouchX=n.clientX,t.initialTouchY=n.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var r=e.touches,n=r&&r.item(0);if(n){var a=Math.abs(n.clientX-t.initialTouchX),i=Math.abs(n.clientY-t.initialTouchY);t.userIsDragging=a>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var r=t.props.inputValue,n=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(n,{action:"input-change",prevInputValue:r}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var r=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:r}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return exY(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var r=t.props,n=r.isMulti,a=r.backspaceRemovesValue,i=r.escapeClearsValue,o=r.inputValue,s=r.isClearable,l=r.isDisabled,u=r.menuIsOpen,d=r.onKeyDown,c=r.tabSelectsValue,h=r.openMenuOnFocus,p=t.state,m=p.focusedOption,f=p.focusedValue,g=p.selectValue;if(!l){if("function"==typeof d&&(d(e),e.defaultPrevented))return;switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||o)return;t.focusValue("previous");break;case"ArrowRight":if(!n||o)return;t.focusValue("next");break;case"Delete":case"Backspace":if(o)return;if(f)t.removeValue(f);else{if(!a)return;n?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing||e.shiftKey||!u||!c||!m||h&&t.isOptionSelected(m,g))return;t.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(u){if(!m||t.isComposing)return;t.selectOption(m);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:o}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(o)return;if(!u){t.openMenu("first");break}if(!m)return;t.selectOption(m);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++exZ),t.state.selectValue=ewA(e.value),e.menuIsOpen&&t.state.selectValue.length){var r=t.buildFocusableOptions(),n=r.indexOf(t.state.selectValue[0]);t.state.focusedOption=r[n]}return t}return r=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&ewj(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isDisabled,n=t.menuIsOpen,a=this.state.isFocused;(a&&!r&&e.isDisabled||a&&n&&!e.menuIsOpen)&&this.focusInput(),a&&r&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):a||r||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(ewj(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,r=this.state,n=r.selectValue,a=r.isFocused,i=this.buildFocusableOptions(),o="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(n[0]);s>-1&&(o=s)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[o]},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,r=t.selectValue,n=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=r.indexOf(n);n||(a=-1);var i=r.length-1,o=-1;if(r.length){switch(e){case"previous":o=0===a?0:-1===a?i:a-1;break;case"next":a>-1&&a<i&&(o=a+1)}this.setState({inputIsHidden:-1!==o,focusedValue:r[o]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,r=this.state.focusedOption,n=this.getFocusableOptions();if(n.length){var a=0,i=n.indexOf(r);r||(i=-1),"up"===e?a=i>0?i-1:n.length-1:"down"===e?a=(i+1)%n.length:"pageup"===e?(a=i-t)<0&&(a=0):"pagedown"===e?(a=i+t)>n.length-1&&(a=n.length-1):"last"===e&&(a=n.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:n[a],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(exF):eby(eby({},exF),this.props.theme):exF}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,r=this.getStyles,n=this.getClassNames,a=this.getValue,i=this.selectOption,o=this.setValue,s=this.props,l=s.isMulti,u=s.isRtl,d=s.options;return{clearValue:e,cx:t,getStyles:r,getClassNames:n,getValue:a,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:d,selectOption:i,selectProps:s,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,r=e.isMulti;return void 0===t?r:t}},{key:"isOptionDisabled",value:function(e,t){return exq(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ex$(this.props,e,t)}},{key:"filterOption",value:function(e,t){return exK(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"!=typeof this.props.formatOptionLabel)return this.getOptionLabel(e);var r=this.props.inputValue,n=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:r,selectValue:n})}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,r=e.isSearchable,n=e.inputId,a=e.inputValue,i=e.tabIndex,o=e.form,s=e.menuIsOpen,l=e.required,u=this.getComponents().Input,d=this.state,c=d.inputIsHidden,h=d.ariaSelection,p=this.commonProps,m=n||this.getElementId("input"),f=eby(eby(eby({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox"},s&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?(null==h?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?ed.createElement(u,ebk({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:o,type:"text",value:a},f)):ed.createElement(exx,ebk({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ewD,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:o,value:""},f))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),r=t.MultiValue,n=t.MultiValueContainer,a=t.MultiValueLabel,i=t.MultiValueRemove,o=t.SingleValue,s=t.Placeholder,l=this.commonProps,u=this.props,d=u.controlShouldRenderValue,c=u.isDisabled,h=u.isMulti,p=u.inputValue,m=u.placeholder,f=this.state,g=f.selectValue,y=f.focusedValue,v=f.isFocused;if(!this.hasValue()||!d)return p?null:ed.createElement(s,ebk({},l,{key:"placeholder",isDisabled:c,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),m);if(h)return g.map(function(t,o){var s=t===y,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return ed.createElement(r,ebk({},l,{components:{Container:n,Label:a,Remove:i},isFocused:s,isDisabled:c,key:u,index:o,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(p)return null;var b=g[0];return ed.createElement(o,ebk({},l,{data:b,isDisabled:c}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,r=this.props,n=r.isDisabled,a=r.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||n||!this.hasValue()||a)return null;var o={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return ed.createElement(e,ebk({},t,{innerProps:o,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,r=this.props,n=r.isDisabled,a=r.isLoading,i=this.state.isFocused;return e&&a?ed.createElement(e,ebk({},t,{innerProps:{"aria-hidden":"true"},isDisabled:n,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,r=e.IndicatorSeparator;if(!t||!r)return null;var n=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return ed.createElement(r,ebk({},n,{isDisabled:a,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,r=this.props.isDisabled,n=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return ed.createElement(e,ebk({},t,{innerProps:a,isDisabled:r,isFocused:n}))}},{key:"renderMenu",value:function(){var e,t=this,r=this.getComponents(),n=r.Group,a=r.GroupHeading,i=r.Menu,o=r.MenuList,s=r.MenuPortal,l=r.LoadingMessage,u=r.NoOptionsMessage,d=r.Option,c=this.commonProps,h=this.state.focusedOption,p=this.props,m=p.captureMenuScroll,f=p.inputValue,g=p.isLoading,y=p.loadingMessage,v=p.minMenuHeight,b=p.maxMenuHeight,w=p.menuIsOpen,x=p.menuPlacement,C=p.menuPosition,k=p.menuPortalTarget,M=p.menuShouldBlockScroll,S=p.menuShouldScrollIntoView,E=p.noOptionsMessage,T=p.onMenuScrollToTop,I=p.onMenuScrollToBottom;if(!w)return null;var P=function(e,r){var n=e.type,a=e.data,i=e.isDisabled,o=e.isSelected,s=e.label,l=e.value,u=h===a,p=i?void 0:function(){return t.onOptionHover(a)},m=i?void 0:function(){return t.selectOption(a)},f="".concat(t.getElementId("option"),"-").concat(r);return ed.createElement(d,ebk({},c,{innerProps:{id:f,onClick:m,onMouseMove:p,onMouseOver:p,tabIndex:-1},data:a,isDisabled:i,isSelected:o,key:f,label:s,type:n,value:l,isFocused:u,innerRef:u?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())e=this.getCategorizedOptions().map(function(e){if("group"===e.type){var r=e.data,i=e.options,o=e.index,s="".concat(t.getElementId("group"),"-").concat(o),l="".concat(s,"-heading");return ed.createElement(n,ebk({},c,{key:s,data:r,options:i,Heading:a,headingProps:{id:l,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(e){return P(e,"".concat(o,"-").concat(e.index))}))}if("option"===e.type)return P(e,"".concat(e.index))});else if(g){var _=y({inputValue:f});if(null===_)return null;e=ed.createElement(l,c,_)}else{var D=E({inputValue:f});if(null===D)return null;e=ed.createElement(u,c,D)}var O={minMenuHeight:v,maxMenuHeight:b,menuPlacement:x,menuPosition:C,menuShouldScrollIntoView:S},A=ed.createElement(ewX,ebk({},c,O),function(r){var n=r.ref,a=r.placerProps,s=a.placement,l=a.maxHeight;return ed.createElement(i,ebk({},c,O,{innerRef:n,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove,id:t.getElementId("listbox")},isLoading:g,placement:s}),ed.createElement(exR,{captureEnabled:m,onTopArrive:T,onBottomArrive:I,lockEnabled:M},function(r){return ed.createElement(o,ebk({},c,{innerRef:function(e){t.getMenuListRef(e),r(e)},isLoading:g,maxHeight:l,focusedOption:h}),e)}))});return k||"fixed"===C?ed.createElement(s,ebk({},c,{appendTo:k,controlElement:this.controlRef,menuPlacement:x,menuPosition:C}),A):A}},{key:"renderFormField",value:function(){var e=this,t=this.props,r=t.delimiter,n=t.isDisabled,a=t.isMulti,i=t.name,o=t.required,s=this.state.selectValue;if(o&&!this.hasValue()&&!n)return ed.createElement(exN,{name:i,onFocus:this.onValueInputFocus});if(i&&!n)if(a)if(r){var l=s.map(function(t){return e.getOptionValue(t)}).join(r);return ed.createElement("input",{name:i,type:"hidden",value:l})}else{var u=s.length>0?s.map(function(t,r){return ed.createElement("input",{key:"i-".concat(r),name:i,type:"hidden",value:e.getOptionValue(t)})}):ed.createElement("input",{name:i,type:"hidden",value:""});return ed.createElement("div",null,u)}else{var d=s[0]?this.getOptionValue(s[0]):"";return ed.createElement("input",{name:i,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,r=t.ariaSelection,n=t.focusedOption,a=t.focusedValue,i=t.isFocused,o=t.selectValue,s=this.getFocusableOptions();return ed.createElement(exu,ebk({},e,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:n,focusedValue:a,isFocused:i,selectValue:o,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,r=e.IndicatorsContainer,n=e.SelectContainer,a=e.ValueContainer,i=this.props,o=i.className,s=i.id,l=i.isDisabled,u=i.menuIsOpen,d=this.state.isFocused,c=this.commonProps=this.getCommonProps();return ed.createElement(n,ebk({},c,{className:o,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),ed.createElement(t,ebk({},c,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:u}),ed.createElement(a,ebk({},c,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),ed.createElement(r,ebk({},c,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){var r,n=t.prevProps,a=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,s=t.isFocused,l=t.prevWasFocused,u=e.options,d=e.value,c=e.menuIsOpen,h=e.inputValue,p=e.isMulti,m=ewA(d),f={};if(n&&(d!==n.value||u!==n.options||c!==n.menuIsOpen||h!==n.inputValue)){var g,y=c?exU(exW(e,m)):[],v=a?function(e,t){var r=e.focusedValue,n=e.selectValue.indexOf(r);if(n>-1){if(t.indexOf(r)>-1)return r;if(n<t.length)return t[n]}return null}(t,m):null;f={selectValue:m,focusedOption:(g=t.focusedOption)&&y.indexOf(g)>-1?g:y[0],focusedValue:v,clearFocusValueOnUpdate:!1}}var b=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},w=o,x=s&&l;return s&&!x&&(w={value:(r=m[0]||null,p?m:r),options:m,action:"initial-input-focus"},x=!l),(null==o?void 0:o.action)==="initial-input-focus"&&(w=null),eby(eby(eby({},f),b),{},{prevProps:e,ariaSelection:w,prevWasFocused:x})}}],r&&ebM(i.prototype,r),n&&ebM(i,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(ed.Component);exX.defaultProps=exB;var exJ=(0,ed.forwardRef)(function(e,t){var r,n,a,i,o,s,l,u,d,c,h,p,m,f,g,y,v,b,w,x,C,k,M,S,E,T,I,P=(r=e.defaultInputValue,n=e.defaultMenuIsOpen,a=e.defaultValue,i=e.inputValue,o=e.menuIsOpen,s=e.onChange,l=e.onInputChange,u=e.onMenuClose,d=e.onMenuOpen,c=e.value,h=ebx(e,ebC),m=(p=ebw((0,ed.useState)(void 0!==i?i:void 0===r?"":r),2))[0],f=p[1],y=(g=ebw((0,ed.useState)(void 0!==o?o:void 0!==n&&n),2))[0],v=g[1],w=(b=ebw((0,ed.useState)(void 0!==c?c:void 0===a?null:a),2))[0],x=b[1],C=(0,ed.useCallback)(function(e,t){"function"==typeof s&&s(e,t),x(e)},[s]),k=(0,ed.useCallback)(function(e,t){var r;"function"==typeof l&&(r=l(e,t)),f(void 0!==r?r:e)},[l]),M=(0,ed.useCallback)(function(){"function"==typeof d&&d(),v(!0)},[d]),S=(0,ed.useCallback)(function(){"function"==typeof u&&u(),v(!1)},[u]),E=void 0!==i?i:m,T=void 0!==o?o:y,I=void 0!==c?c:w,eby(eby({},h),{},{inputValue:E,menuIsOpen:T,onChange:C,onInputChange:k,onMenuClose:S,onMenuOpen:M,value:I}));return ed.createElement(exX,ebk({ref:t},P))});let exQ=e=>{let t=e.selectProps.value,r=t[t.length-1],n=e.data.label;return r.label!==n&&(n+=", "),eh().createElement("span",null,n)},ex0=e=>eh().createElement(exn.Option,e,eh().createElement("div",{className:"flex items-center"},eh().createElement("div",{className:"h-2 w-2"},e.isSelected?eh().createElement(hO.ByName,{name:"checkbox-active"}):eh().createElement(hO.ByName,{name:"checkbox-default"})),eh().createElement("label",{id:e.data.value,className:"ml-3 mt-1"},eh().createElement("span",null,e.value)))),ex1=({id:e,className:t="",closeMenuOnSelect:r=!0,hideSelectedOptions:n=!1,isClearable:a=!0,isDisabled:i=!1,isMulti:o=!1,isSearchable:s=!0,onChange:l,options:u,placeholder:d,noIcons:c=!1,menuPlacement:h="auto",components:p={},value:m=[]})=>{let[f,g]=(0,ed.useState)(""),y=s?function(e,t){if(!e?.length||!t?.trim())return e??[];let r=t.trim().toLowerCase(),n=e.filter(e=>(e.label??e.value??"").toString().toLowerCase().startsWith(r)),a=e.filter(e=>{let t=(e.label??e.value??"").toString().toLowerCase();return t.includes(r)&&!t.startsWith(r)}),i=e.filter(e=>!(e.label??e.value??"").toString().toLowerCase().includes(r));return n.sort((e,t)=>(e.label??e.value??"").toString().length-(t.label??t.value??"").toString().length),[...n,...a,...i]}(u,f):u,v=o?{Option:ex0,MultiValue:exQ}:{};v=c?{...v,DropdownIndicator:()=>null,IndicatorSeparator:()=>null}:{...v,...p};let b=[];return m&&Array.isArray(m)&&m.forEach(e=>{let t=u.find(t=>t.value===e);t&&b.push(JSON.parse(JSON.stringify(t)))}),eh().createElement(exJ,{inputId:`input-${e}`,className:em()(t,"ohif-select customSelect__wrapper flex flex-1 flex-col"),"data-cy":`input-${e}`,classNamePrefix:"customSelect",isDisabled:i,isClearable:a,isMulti:o,isSearchable:s,menuPlacement:h,closeMenuOnSelect:r,hideSelectedOptions:n,components:v,placeholder:d,options:y,blurInputOnSelect:!0,menuPortalTarget:document.body,onInputChange:s?g:void 0,onMenuClose:s?()=>g(""):void 0,styles:{menuPortal:e=>({...e,zIndex:9999})},value:m&&Array.isArray(m)?b:m,onChange:(e,{action:t})=>{if(null===e)return l(null,t);l(e.length?e.reduce((e,t)=>e.concat([t.value]),[]):e,t)}})};ex1.propTypes={className:ei().string,closeMenuOnSelect:ei().bool,hideSelectedOptions:ei().bool,isClearable:ei().bool,isDisabled:ei().bool,isMulti:ei().bool,isSearchable:ei().bool,noIcons:ei().bool,menuPlacement:ei().oneOf(["auto","bottom","top"]),onChange:ei().func.isRequired,options:ei().arrayOf(ei().shape({value:ei().string,label:ei().string})),placeholder:ei().string,value:ei().oneOfType([ei().arrayOf(ei().string),ei().any])};let ex2=ex1,ex5=({id:e,label:t,isSortable:r,sortDirection:n,onLabelClick:a,value:i=[],placeholder:o="",options:s=[],onChange:l})=>eh().createElement(ebt,{label:t,isSortable:r,sortDirection:n,onLabelClick:a},eh().createElement(ex2,{id:e,placeholder:o,className:"mt-2",options:s,value:i,isMulti:!0,isClearable:!1,isSearchable:!0,closeMenuOnSelect:!1,hideSelectedOptions:!1,onChange:(e,t)=>{switch(t){case"select-option":case"remove-value":case"deselect-option":case"clear":l(e)}}}));ex5.propTypes={id:ei().string,label:ei().string.isRequired,isSortable:ei().bool.isRequired,sortDirection:ei().oneOf(["ascending","descending","none"]).isRequired,onLabelClick:ei().func.isRequired,onChange:ei().func.isRequired,placeholder:ei().string,options:ei().arrayOf(ei().shape({value:ei().string,label:ei().string})),value:ei().arrayOf(ei().string)};let ex3=ex5,ex4=({inputMeta:e,values:t,onValuesChange:r,sorting:n,onSortingChange:a,isSortingEnabled:i})=>{let{sortBy:o,sortDirection:s}=n;return eh().createElement("div",{className:"container relative m-auto flex flex-col"},eh().createElement("div",{className:"flex w-full flex-row"},e.map(e=>eh().createElement("div",{key:e.name,className:em()("pl-4 first:pl-12",eba(e.gridCol))},(({name:e,displayName:n,inputProps:l,isSortable:u,inputType:d})=>{let c=u&&i,h=o!==e?"none":s,p=()=>{if(i){let t="descending";o===e&&("ascending"===s?t="descending":"descending"===s&&(t="ascending")),a({sortBy:"none"!==t?e:"",sortDirection:t})}},m=n=>{r({...t,[e]:n})};switch(d){case"Text":return eh().createElement(ebh,{id:e,key:e,label:n,isSortable:c,sortDirection:h,onLabelClick:p,value:t[e],onChange:m});case"MultiSelect":return eh().createElement(ex3,{id:e,key:e,label:n,isSortable:c,sortDirection:h,onLabelClick:p,value:t[e],onChange:m,options:l.options});case"DateRange":return eh().createElement(ebn,{id:e,key:e,label:n,isSortable:c,sortDirection:h,onLabelClick:p,value:t[e],onChange:({startDate:n,endDate:a})=>{r({...t,[e]:{startDate:n,endDate:a}})}});case"None":return eh().createElement(ebt,{key:e,label:n,isSortable:c,sortDirection:h,onLabelClick:p})}})(e)))))};ex4.propTypes={inputMeta:ei().arrayOf(ei().shape({name:ei().string.isRequired,displayName:ei().string.isRequired,inputType:ei().oneOf(["Text","MultiSelect","DateRange","None"]).isRequired,isSortable:ei().bool.isRequired,gridCol:ei().oneOf([1,2,3,4,5,6,7,8,9,10,11,12]).isRequired,option:ei().arrayOf(ei().shape({value:ei().string,label:ei().string}))})).isRequired,values:ei().object.isRequired,onValuesChange:ei().func.isRequired,sorting:ei().shape({sortBy:ei().string,sortDirection:ei().oneOf(["ascending","descending","none"])}).isRequired,onSortingChange:ei().func.isRequired,isSortingEnabled:ei().bool.isRequired};let ex8=ex4;function ex6(){return(ex6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let ex9="default",ex7=!1,eCe=!1,eCt="medium",eCr="none",eCn="medium",eCa="button",eCi="contained",eCo={none:"",small:"rounded",medium:"rounded-md",large:"rounded-lg",full:"rounded-full"},eCs={text:{default:"text-primary-light hover:bg-primary-light hover:text-white active:opacity-80 focus:bg-primary-light focus:text-white",primary:"text-primary-main hover:bg-primary-main hover:text-white active:opacity-80 focus:bg-primary-main focus:text-white",secondary:"text-secondary-light hover:bg-secondary-light hover:text-white active:opacity-80 focus:bg-secondary-light focus:text-white",white:"text-white hover:bg-white hover:text-black active:opacity-80 focus:bg-white focus:text-black",black:"text-black hover:bg-black hover:text-white focus:bg-black focus:text-white active:opacity-80"},outlined:{default:"text-primary-light hover:bg-primary-light hover:text-black focus:text-black focus:bg-primary-light active:opacity-80",primary:"text-primary-main hover:opacity-80 active:opacity-100 focus:opacity-80",secondary:"text-secondary-light hover:opacity-80 active:opacity-100 focus:opacity-80",translucent:"text-white hover:opacity-80 active:opacity-100 focus:opacity-80",white:"text-black hover:bg-primary-main focus:bg-primary-main hover:border-black focus:border-black",black:"text-white hover:bg-primary-main focus:bg-primary-main hover:border-black focus:border-black",primaryActive:"text-primary-active hover:opacity-80 active:opacity-100 focus:opacity-80",primaryLight:"border bg-transparent border-primary-main text-white hover:opacity-80 active:opacity-100 focus:opacity-80"},contained:{default:"text-black hover:opacity-80 active:opacity-100 focus:opacity-80",primary:"text-white hover:opacity-80 active:opacity-100 focus:opacity-80",primaryDark:"text-primary-active hover:opacity-80 active:opacity-100 focus:opacity-80",secondary:"text-white hover:opacity-80 active:opacity-100 focus:opacity-80",white:"text-black hover:opacity-80 active:opacity-100 focus:opacity-80",black:"text-white hover:opacity-80 active:opacity-100 focus:opacity-80",light:"border text-black hover:opacity-80 active:opacity-100 focus:opacity-80"},disabled:{default:"cursor-not-allowed opacity-50 text-black",primary:"cursor-not-allowed opacity-50 text-white",secondary:"cursor-not-allowed opacity-50 text-white",white:"cursor-not-allowed opacity-50 text-black",black:"cursor-not-allowed opacity-50 text-white",light:"cursor-not-allowed opacity-50 border text-black"}},eCl={text:{default:"",primary:"",secondary:"",white:"",black:""},outlined:{default:"bg-transparent",primary:"bg-transparent",secondary:"bg-transparent",black:"bg-black",white:""},contained:{default:"bg-primary-light",primary:"bg-primary-main",primaryDark:"bg-primary-dark",secondary:"bg-secondary-light",white:"bg-white",black:"bg-black",light:"bg-primary-light"},disabled:{default:"bg-primary-light",primary:"bg-primary-main",secondary:"bg-secondary-light",white:"bg-white",black:"bg-black",light:"bg-primary-light"}},eCu={none:"",light:"border border-primary-light",primary:"border border-primary-main",primaryActive:"border border-primary-active",secondary:"border border-secondary-light",white:"border border-white",black:"border border-black"},eCd={small:"py-2 px-2 text-sm min-w-md",medium:"py-2 px-2 text-lg min-w-md",large:"py-2 px-6 text-xl min-w-md",initial:""},eCc={true:"flex w-full",false:"inline-flex"},eCh=({children:e="",variant:t=eCi,color:r=ex9,border:n=eCr,size:a=eCn,rounded:i=eCt,disabled:o=ex7,type:s=eCa,fullWidth:l=eCe,bgColor:u=null,startIcon:d,endIcon:c,name:h,className:p,onClick:m=()=>{},...f})=>{let g=d&&eh().createElement("div",{className:"mr-2"},eh().cloneElement(d,{className:em()("w-4 h-4 fill-current")})),y=c&&eh().createElement("div",{className:"ml-2"},eh().cloneElement(c,{className:em()("w-4 h-4 fill-current")})),v=(0,ed.useRef)(null),b=em()("leading-none font-sans text-center justify-center items-center outline-none transition duration-300 ease-in-out focus:outline-none",((e,t,r=null)=>{let n=eCl[e][t];return r||(r=n),`${eCs[e][t]} ${r}`})(t,r,u),eCu[n],eCo[i],eCd[a],eCc[l],p);return eh().createElement("button",ex6({className:b,disabled:o,ref:v,onClick:e=>{v.current.blur(),o||m(e)},type:s,"data-cy":`${h}-btn`},f),g,e,y)};eCh.propTypes={children:ei().node,onClick:ei().func.isRequired,size:ei().oneOf(["small","medium","large","initial","inherit"]),rounded:ei().oneOf(["none","small","medium","large","full"]),variant:ei().oneOf(["text","outlined","contained","disabled"]),color:ei().oneOf(["default","primary","primaryDark","primaryActive","secondary","white","black","inherit","light","translucent"]),border:ei().oneOf(["none","light","default","primary","primaryActive","secondary","white","black"]),fullWidth:ei().bool,disabled:ei().bool,type:ei().string,name:ei().string,startIcon:ei().node,endIcon:ei().node,className:ei().string,bgColor:ei().string};let eCp=eCh;function eCm(){return(eCm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let eCf={vertical:{none:"",small:"first:rounded-t last:rounded-b",medium:"first:rounded-t-md last:rounded-b-md",large:"first:rounded-t-lg last:rounded-b-lg",full:"first:rounded-t-full last:rounded-b-full"},horizontal:{none:"",small:"first:rounded-l last:rounded-r",medium:"first:rounded-l-md last:rounded-r-md",large:"first:rounded-l-lg last:rounded-r-lg",full:"first:rounded-l-full last:rounded-r-full"}},eCg={text:{vertical:"border-t-0 border-l-0 border-r-0 last:border-b-0",horizontal:"border-l-0 border-t-0 border-b-0 last:border-r-0"},outlined:{vertical:"border border-b-0 last:border-b",horizontal:"border border-r-0 last:border-r"},contained:{vertical:"border-t-0 border-l-0 border-r-0 last:border-b-0",horizontal:"border-l-0 border-t-0 border-b-0 last:border-r-0"}},eCy={text:{default:"border-primary-light",primary:"border-primary-main",secondary:"border-secondary-light",white:"border-white",black:"border-primary-main"},outlined:{default:"",primary:"",secondary:"border border-secondary-light",white:"",black:"border-primary-main group-hover:bg-primary-main group-hover:border-black"},contained:{default:"border-white\xa0",primary:"border-white\xa0",secondary:"border-white\xa0",white:"border-black",black:"border-primary-main"}},eCv={vertical:"flex-col",horizontal:"flex-row"},eCb={vertical:"border-t-0 border-b-0",horizontal:"border-l-0 last:border-r-0"},eCw=({children:e,className:t,disabled:r=!1,fullWidth:n=!1,color:a="default",orientation:i="horizontal",rounded:o="medium",size:s="medium",variant:l="outlined",splitBorder:u=!0,...d})=>{let c=(0,ed.useRef)(null),h=em()("border outline-none",eCg[l]&&eCg[l][i],eCy[l]&&eCy[l][a],eCf[i]&&eCf[i][o]);return eh().createElement("div",eCm({role:"group",className:em()("group",t,eCv[i],n?"flex":"inline-flex"),ref:c},d),eh().Children.map(e,(t,o)=>{let d=o===eh().Children.count(e)-1;return eh().isValidElement(t)?eh().cloneElement(t,{className:em()(h,t.props.className,!u&&0!==o&&!d&&eCb[i],!u&&d&&"last:border-l-0"),disabled:t.props.disabled||r,color:t.props.color||a,fullWidth:n,rounded:"none",size:t.props.size||s,variant:t.props.variant||l}):null}))};eCw.propTypes={children:ei().node.isRequired,className:ei().string,color:ei().oneOf(["default","inherit","primary","secondary","white","black"]),disabled:ei().bool,fullWidth:ei().bool,orientation:ei().oneOf(["vertical","horizontal"]),rounded:ei().oneOf(["none","small","medium","large","full"]),size:ei().oneOf(["small","medium","large","inherit"]),variant:ei().oneOf(["text","outlined","contained"])};let eCx=eCw,eCC=({children:e,className:t="",fullWidth:r=!0,style:n={}})=>eh().createElement("div",{className:em()("text-lg text-white",{true:"w-full",false:""}[r],t),style:n},e);eCC.propTypes={fullWidth:ei().bool,children:ei().node.isRequired,className:ei().string,style:ei().object};let eCk=eCC,eCM=({children:e,className:t="",style:r={}})=>eh().createElement("div",{className:em()("bg-secondary-dark border-secondary-light flex border-b pr-2 font-bold",t),style:r},eh().isValidElement(e)?eh().cloneElement(e,{isTableHead:!0}):e);eCM.propTypes={children:function(e,t,r){let n=eh().Children.toArray(e.children);return n.some(e=>"string"==typeof e)?Error(`Failed prop type: Invalid prop ${t} supplied to ${r}, expected a valid element instead of a string.`):n.some(e=>!eh().isValidElement(e))?Error(`Failed prop type: Invalid prop ${t} supplied to ${r}, expected a valid node element.`):void 0},className:ei().string,style:ei().object};let eCS=eCM,eCE=({children:e,className:t="",style:r={}})=>eh().createElement("div",{className:em()("ohif-scrollbar mt-2 max-h-48 overflow-y-scroll",t),style:r},eh().isValidElement(e)?eh().cloneElement(e,{isTableHead:!1}):e);eCE.propTypes={children:function(e,t,r){let n=eh().Children.toArray(e.children);return n.some(e=>"string"==typeof e)?Error(`Failed prop type: Invalid prop ${t} supplied to ${r}, expected a valid element instead of a string.`):n.some(e=>!eh().isValidElement(e))?Error(`Failed prop type: Invalid prop ${t} supplied to ${r}, expected a valid node element.`):void 0},className:ei().string,style:ei().object};let eCT=eCE,eCI=({children:e,className:t="",isTableHead:r=!1,style:n={}})=>{let a=eh().Children.map(e,t=>eh().isValidElement(t)?eh().cloneElement(t,{isTableHead:r,cellsNum:e.length}):e);return eh().createElement("div",{className:em()("flex w-full",t),style:n},a)};eCI.propTypes={isTableHead:ei().bool,children:function(e,t,r){let n=eh().Children.toArray(e.children);return n.some(e=>"string"==typeof e)?Error(`Failed prop type: Invalid prop ${t} supplied to ${r}, expected a valid element instead of a string.`):n.some(e=>!eh().isValidElement(e))?Error(`Failed prop type: Invalid prop ${t} supplied to ${r}, expected a valid node element.`):void 0},className:ei().string,style:ei().object};let eCP=eCI,eC_=({children:e,className:t="",colSpan:r=1,cellsNum:n,isTableHead:a=!1,align:i="left",style:o={}})=>eh().createElement("div",{className:em()("break-all px-2 last:border-r-0",`w-${r}/${n}`,{left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"}[i],{true:"",false:"border-r border-secondary-light"}[a],t),style:o},e);eC_.propTypes={align:ei().oneOf(["left","center","right","justify"]),children:ei().node.isRequired,className:ei().string,colSpan:ei().number,isTableHead:ei().bool,style:ei().object};let eCD=eC_,eCO=({seriesTableColumns:e,seriesTableDataSource:t,children:r})=>eh().createElement("div",{className:"w-full bg-black py-4 pl-12 pr-2"},eh().createElement("div",{className:"block"},r),eh().createElement("div",{className:"mt-4"},eh().createElement(eCk,null,eh().createElement(eCS,null,eh().createElement(eCP,null,Object.keys(e).map(t=>eh().createElement(eCD,{key:t},e[t])))),eh().createElement(eCT,null,t.map((e,t)=>eh().createElement(eCP,{key:t},Object.keys(e).map(t=>{let r=e[t];return eh().createElement(eCD,{key:t,className:"truncate"},r)})))))));eCO.propTypes={seriesTableDataSource:ei().arrayOf(ei().object).isRequired,seriesTableColumns:ei().object.isRequired,children:ei().node.isRequired};let eCA=eCO,eCR=({filtersMeta:e,filterValues:t,onChange:r,clearFilters:n,isFiltering:a,numOfStudies:i,onUploadClick:o,getDataSourceConfigurationComponent:s})=>{let{t:l}=eA("StudyList"),{sortBy:u,sortDirection:d}=t;return eh().createElement(eh().Fragment,null,eh().createElement("div",null,eh().createElement("div",{className:"bg-black"},eh().createElement("div",{className:"container relative mx-auto flex flex-col pt-5"},eh().createElement("div",{className:"mb-5 flex flex-row justify-between"},eh().createElement("div",{className:"flex min-w-[1px] shrink flex-row items-center gap-6"},eh().createElement(eX,{variant:"h6",className:"text-white"},l("StudyList")),s&&s(),o&&eh().createElement("div",{className:"text-primary-active flex cursor-pointer items-center gap-2 self-center text-lg font-semibold",onClick:o},eh().createElement(hO.Upload,null),eh().createElement("span",null,l("Upload")))),eh().createElement("div",{className:"flex h-[34px] flex-row items-center"},a&&eh().createElement(eCp,{rounded:"full",variant:"outlined",color:"primaryActive",border:"primaryActive",className:"mx-8",startIcon:eh().createElement(hO.Cancel,null),onClick:n},l("ClearFilters")),eh().createElement(eX,{variant:"h6",className:"mr-2","data-cy":"num-studies"},i>100?">100":i),eh().createElement(eX,{variant:"h6",className:"text-primary-light"},`${l("Studies")}\xa0`)))))),eh().createElement("div",{className:"sticky -top-1 z-10 mx-auto border-b-4 border-black"},eh().createElement("div",{className:"bg-primary-dark pt-3 pb-3"},eh().createElement(ex8,{inputMeta:e,values:t,onValuesChange:r,sorting:{sortBy:u,sortDirection:d},onSortingChange:e=>{r({...t,...e})},isSortingEnabled:i>0&&i<=100})),i>100&&eh().createElement("div",{className:"container m-auto"},eh().createElement("div",{className:"bg-primary-main rounded-b py-1 text-center text-base"},eh().createElement("p",{className:"text-white"},l("Filter list to 100 studies or less to enable sorting"))))))};eCR.propTypes={filtersMeta:ei().arrayOf(ei().shape({name:ei().string.isRequired,displayName:ei().string.isRequired,inputType:ei().oneOf(["Text","MultiSelect","DateRange","None"]).isRequired,isSortable:ei().bool.isRequired,gridCol:ei().oneOf([1,2,3,4,5,6,7,8,9,10,11,12]).isRequired,option:ei().arrayOf(ei().shape({value:ei().string,label:ei().string}))})).isRequired,filterValues:ei().object.isRequired,numOfStudies:ei().number.isRequired,onChange:ei().func.isRequired,clearFilters:ei().func.isRequired,isFiltering:ei().bool.isRequired,onUploadClick:ei().func,getDataSourceConfigurationComponent:ei().func};let eCL=eCR,eCN=({onChangePage:e,currentPage:t,perPage:r,onChangePerPage:n})=>{let{t:a}=eA("StudyList"),i=t=>{e(t<1?1:t)},o=[{value:"25",label:"25"},{value:"50",label:"50"},{value:"100",label:"100"}],[s,l]=(0,ed.useState)(o.find(e=>e.value===r));return eh().createElement("div",{className:"bg-black py-10"},eh().createElement("div",{className:"container relative m-auto px-8"},eh().createElement("div",{className:"flex justify-between"},eh().createElement("div",{className:"flex items-center"},eh().createElement(ex2,{id:"rows-per-page",className:"border-primary-main relative mr-3 w-24",options:o,value:s,isMulti:!1,isClearable:!1,isSearchable:!1,closeMenuOnSelect:!1,hideSelectedOptions:!0,onChange:e=>{l(e),n(e.value)}}),eh().createElement(eX,{className:"text-base opacity-60"},a("Results per page"))),eh().createElement("div",{className:""},eh().createElement("div",{className:"flex items-center"},eh().createElement(eX,{className:"mr-4 text-base opacity-60"},a("Page")," ",t),eh().createElement(eCx,null,eh().createElement(eCp,{size:"initial",className:"px-4 py-2 text-base",color:"translucent",border:"primary",variant:"outlined",onClick:()=>i(1)},"<<"),eh().createElement(eCp,{size:"initial",className:"py-2 px-2 text-base",color:"translucent",border:"primary",variant:"outlined",onClick:()=>i(t-1)},a("Previous")),eh().createElement(eCp,{size:"initial",className:"py-2 px-4 text-base",color:"translucent",border:"primary",variant:"outlined",onClick:()=>i(t+1)},a("Next"))))))))};eCN.propTypes={onChangePage:ei().func.isRequired,currentPage:ei().number.isRequired,perPage:ei().number.isRequired,onChangePerPage:ei().func.isRequired};let eCV=eCN,eCF=e=>{let{tableData:t}=e,{row:r,expandedContent:n,onClickRow:a,isExpanded:i,dataCY:o,clickableCY:s}=t;return eh().createElement(eh().Fragment,null,eh().createElement("tr",{className:"select-none","data-cy":o},eh().createElement("td",{className:em()("border-0 p-0",{"border-secondary-light bg-primary-dark border-b":i})},eh().createElement("div",{className:em()("w-full transition duration-300",{"border-primary-light hover:border-secondary-light mb-2 overflow-visible rounded border":i},{"border-transparent":!i})},eh().createElement("table",{className:em()("w-full p-4")},eh().createElement("tbody",null,eh().createElement("tr",{className:em()("hover:bg-secondary-main cursor-pointer transition duration-300",{"bg-primary-dark":!i},{"bg-secondary-dark":i}),onClick:a,"data-cy":s},r.map((e,t)=>{let{content:r,title:n,gridCol:a}=e;return eh().createElement("td",{key:t,className:em()("truncate px-4 py-2 text-base",{"border-secondary-light border-b":!i},eba(a)||""),style:{maxWidth:0},title:n},eh().createElement("div",{className:"flex"},0===t&&eh().createElement("div",null,i?eh().createElement(hO.ChevronOpen,{className:"-mt-1 mr-4 inline-flex"}):eh().createElement(hO.ChevronClosed,{className:"-mt-1 mr-4 inline-flex rotate-180"})),eh().createElement("div",{className:em()({"overflow-hidden":!0},{truncate:!0})},r)))})),i&&eh().createElement("tr",{className:"max-h-0 w-full select-text overflow-hidden bg-black"},eh().createElement("td",{colSpan:r.length},n))))))))};eCF.propTypes={tableData:ei().shape({row:ei().arrayOf(ei().shape({key:ei().string.isRequired,content:ei().node,title:ei().string,gridCol:ei().number.isRequired})).isRequired,expandedContent:ei().node.isRequired,onClickRow:ei().func.isRequired,isExpanded:ei().bool.isRequired,dataCY:ei().string,clickableCY:ei().string})};let eCB=eCF,eCj=({tableDataSource:e,querying:t})=>eh().createElement("div",{className:"bg-black"},eh().createElement("div",{className:"container relative m-auto"},eh().createElement("table",{className:"w-full text-white"},eh().createElement("tbody",{"data-cy":"study-list-results","data-querying":t},e.map((e,t)=>eh().createElement(eCB,{tableData:e,key:t}))))));eCj.propTypes={tableDataSource:ei().arrayOf(ei().shape({row:ei().array.isRequired,expandedContent:ei().node.isRequired,querying:ei().bool,onClickRow:ei().func.isRequired,isExpanded:ei().bool.isRequired}))};let eCW=eCj;var eCU=((N=eCU||{}).primary="primary",N.secondary="secondary",N),eCz=((V=eCz||{}).medium="medium",V.smallTall="smallTall",V.small="small",V),eCH=((F=eCH||{}).horizontal="horizontal",F.vertical="vertical",F);let eCG={bottom:{top:-15,left:"50%",transform:"translateX(-50%)"},"bottom-left":{top:-15,left:5},"bottom-right":{top:-15,right:5},right:{top:"calc(50% - 8px)",left:-15,transform:"rotate(270deg)"},left:{top:"calc(50% - 8px)",right:-15,transform:"rotate(-270deg)"},top:{bottom:-15,left:"50%",transform:"translateX(-50%) rotate(180deg)"}},eCq=({content:e,secondaryContent:t=null,isSticky:r=!1,position:n="bottom",className:a,tight:i=!1,children:o,isDisabled:s=!1,tooltipBoxClassName:l,showHideDelay:u=300,onHide:d})=>{let[c,h]=(0,ed.useState)(!1),p=(0,ed.useMemo)(()=>(r||c)&&!s,[r,c,s]),{t:m}=eA("Buttons"),f=document.getElementById("react-portal"),[g,y]=(0,ed.useState)({x:999999,y:999999}),v=(0,ed.useRef)(null),b=(0,ed.useRef)(null),w=(0,ed.useMemo)(()=>MI()(()=>h(!0),u),[u]),x=(0,ed.useMemo)(()=>MI()(()=>h(!1),u),[u]),C=()=>{x.cancel(),w()},k=()=>{w.cancel(),x()};(0,ed.useEffect)(()=>()=>{w.cancel(),x.cancel()},[w,x]),(0,ed.useEffect)(()=>{!p&&d&&d()},[p,d]),(0,ed.useEffect)(()=>{if(v.current&&b.current){let e=v.current.getBoundingClientRect(),t=b.current.getBoundingClientRect(),r=e.width,a=e.height,i=t.width,o=0,s=0;switch(n){case"bottom":o=e.left+r/2,s=e.top+a;break;case"top":o=e.left+r/2,s=e.top-2*a;break;case"right":o=e.left+r,s=e.top+a/2;break;case"left":o=e.left-i-10,s=e.top+a/2;break;case"bottom-left":o=e.left,s=e.top+a;break;case"bottom-right":o=e.left-i+r,s=e.top+a}y({x:o,y:s})}},[p,n,v.current,b.current]);let M=eh().createElement("div",{className:em()(`tooltip tooltip-${n} block`,"z-50"),style:{position:"fixed",top:g.y,left:p?g.x:999999}},eh().createElement("div",{ref:b,className:em()("tooltip-box bg-primary-dark border-secondary-light w-max-content relative inset-x-auto top-full rounded border text-base text-white",{"py-[6px] px-[8px]":!i},l)},eh().createElement("div",null,"string"==typeof e?m(e):e),eh().createElement("div",{className:"text-aqua-pale"},"string"==typeof t?m(t):t),eh().createElement("svg",{className:"text-primary-dark stroke-secondary-light absolute h-4",style:eCG[n],xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},eh().createElement("path",{fill:"currentColor",d:"M24 22l-12-20l-12 20"}))));return eh().createElement("div",{ref:v,className:em()("relative",a),onMouseOver:C,onFocus:C,onMouseOut:k,onBlur:k,role:"tooltip"},o,f&&rE().createPortal(M,f))};eCq.propTypes={isDisabled:ei().bool,content:ei().oneOfType([ei().node,ei().func]),secondaryContent:ei().oneOfType([ei().node,ei().func]),position:ei().oneOf(["bottom","bottom-left","bottom-right","left","right","top"]),isSticky:ei().bool,tight:ei().bool,children:ei().node.isRequired,className:ei().string,tooltipBoxClassName:ei().string,showHideDelay:ei().number,onHide:ei().func};let eC$={[eCz.small]:"h-[26px] text-[13px]",[eCz.smallTall]:"h-[32px] text-[13px]",[eCz.medium]:"h-[32px] text-[14px]"},eCK="leading-[1.2] font-sans text-center whitespace-nowrap",eCY={[eCU.primary]:em()(eCK,"font-semibold"),[eCU.secondary]:em()(eCK,"font-400")},eCZ="transition duration-300 ease-in-out focus:outline-none",eCX={[eCU.primary]:em()(eCZ,"hover:bg-customblue-80 active:bg-customblue-40"),[eCU.secondary]:em()(eCZ,"hover:bg-customblue-50 active:bg-customblue-20")},eCJ="text-white",eCQ={[eCU.primary]:em()("bg-primary-main",eCJ,eCX[eCU.primary]),[eCU.secondary]:em()("bg-customblue-30",eCJ,eCX[eCU.secondary])},eC0={color:"default",disabled:!1,rounded:"small",size:eCz.medium,type:eCU.primary},eC1=({children:e="",size:t=eC0.size,disabled:r=eC0.disabled,type:n=eC0.type,startIcon:a,endIcon:i,name:o,className:s,onClick:l=()=>{},dataCY:u,startIconTooltip:d=null,endIconTooltip:c=null})=>{u=u||`${o}-btn`;let h=a&&eh().createElement(eh().Fragment,null,eh().cloneElement(a,{className:em()("w-4 h-4 fill-current",a?.props?.className)})),p=i&&eh().createElement(eh().Fragment,null,eh().cloneElement(i,{className:em()("w-4 h-4 fill-current",i?.props?.className)})),m=(0,ed.useRef)(null),f=em()("box-content inline-flex flex-row items-center justify-center gap-[5px] justify center px-[10px] outline-none rounded",eCY[n],r?"bg-inputfield-placeholder text-common-light cursor-default":eCQ[n],eC$[t],e?"min-w-[32px]":"",s);return eh().createElement("button",{className:f,disabled:r,ref:m,onClick:e=>{m.current.blur(),r||l(e)},"data-cy":u},d?eh().createElement(eCq,{content:d},h):h,e,c?eh().createElement(eCq,{content:c},p):p)};eC1.propTypes={children:ei().node,onClick:ei().func.isRequired,size:ei().oneOf([eCz.medium,eCz.small]),disabled:ei().bool,type:ei().oneOf([eCU.primary,eCU.secondary]),name:ei().string,startIcon:ei().node,endIcon:ei().node,className:ei().string,startIconTooltip:ei().node,endIconTooltip:ei().node,dataCY:ei().string};let eC2=eC1,eC5=({items:e,...t})=>e?eh().createElement("div",{"data-cy":"context-menu",className:"bg-secondary-dark relative z-50 block w-48 rounded",onContextMenu:e=>e.preventDefault()},e.map((e,r)=>eh().createElement("div",{key:r,"data-cy":"context-menu-item",onClick:()=>e.action(e,t),style:{justifyContent:"space-between"},className:"hover:bg-primary-dark border-primary-dark flex cursor-pointer items-center border-b px-4 py-3 transition duration-300 last:border-b-0"},eh().createElement(eX,null,e.label),e.iconRight&&eh().createElement(hO.ByName,{name:e.iconRight,className:"inline text-white"})))):null;eC5.propTypes={defaultPosition:ei().shape({x:ei().number,y:ei().number}),items:ei().arrayOf(ei().shape({label:ei().string.isRequired,action:ei().func.isRequired}))};let eC3=eC5,eC4=({className:e,value:t="",placeholder:r,onDebounceChange:n,onChange:a,debounceTime:i=200})=>{let[o,s]=(0,ed.useState)(t),l=(0,ed.useRef)(null),u=(0,ed.useMemo)(()=>MI()(n||(()=>{}),i),[]);(0,ed.useEffect)(()=>s(t),[t]),(0,ed.useEffect)(()=>u?.cancel(),[]);let d=(0,ed.useCallback)(e=>{s(e),a&&a(e),n&&u(e)},[]);return eh().createElement("label",{className:em()("relative",e)},eh().createElement("span",{className:"absolute inset-y-0 left-0 flex items-center pl-2"},eh().createElement(hO.Search,null)),eh().createElement("input",{ref:l,type:"text",className:"border-inputfield-main focus:border-inputfield-focus disabled:border-inputfield-disabled placeholder:text-inputfield-placeholder block w-full appearance-none rounded-md border bg-black py-2 px-9 text-base leading-tight shadow transition duration-300 focus:outline-none",placeholder:r,onChange:e=>d(e.target.value),autoComplete:"off",value:o}),eh().createElement("span",{className:"absolute inset-y-0 right-0 flex items-center pr-2"},eh().createElement(hO.Clear,{className:em()("cursor-pointer",o?"":"hidden"),onClick:()=>{l.current.value="",d("")}})))}})(),d})());