diff --git a/CHANGELOG.md b/CHANGELOG.md index 896cc5be..36a54d73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Nedenfor ses dato for release og beskrivelse af opgaver som er implementeret. ## In develop +* Fixed editing/deleting bookings errors in itkdev_booking. * Disable access to webform error log * Added retry action to error log * Changed failed jobs view diff --git a/web/modules/custom/itkdev_booking/assets/dist/main.js b/web/modules/custom/itkdev_booking/assets/dist/main.js index 06a7f43f..1878ccfa 100644 --- a/web/modules/custom/itkdev_booking/assets/dist/main.js +++ b/web/modules/custom/itkdev_booking/assets/dist/main.js @@ -1,3 +1,3 @@ -/*! For license information please see main.242e558e.js.LICENSE.txt */ -!function(){var e={5561:function(e,t){"use strict";t.Z={code:"da",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"N\xe6ste",today:"I dag",month:"M\xe5ned",week:"Uge",day:"Dag",list:"Agenda"},weekText:"Uge",allDayText:"Hele dagen",moreLinkText:"flere",noEventsText:"Ingen arrangementer at vise"}},7892:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",u="month",c="quarter",h="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var s=t.name;x[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},w=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},k=y;k.l=S,k.i=_,k.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e)}var m=g.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return k},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return w(e)1?n-1:0),i=1;i/gm),V=c(/\${[\w\W]*}/gm),G=c(/^data-[\-\w.\u00B7-\uFFFF]/),q=c(/^aria-[\-\w]+$/),Y=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=c(/^(?:\w+script|data):/i),Z=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=c(/^html$/i),$=Object.freeze({__proto__:null,MUSTACHE_EXPR:W,ERB_EXPR:U,TMPLIT_EXPR:V,DATA_ATTR:G,ARIA_ATTR:q,IS_ALLOWED_URI:Y,IS_SCRIPT_OR_DATA:X,ATTR_WHITESPACE:Z,DOCTYPE_NAME:K}),Q=function(){return"undefined"===typeof window?null:window},J=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(o){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function ee(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),n=function(e){return ee(e)};if(n.version="3.0.3",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r,i=t.document,o=i.currentScript,s=t.document,l=t.DocumentFragment,c=t.HTMLTemplateElement,h=t.Node,d=t.Element,f=t.NodeFilter,p=t.NamedNodeMap,C=void 0===p?t.NamedNodeMap||t.MozNamedAttrMap:p,M=t.HTMLFormElement,W=t.DOMParser,U=t.trustedTypes,V=d.prototype,G=D(V,"cloneNode"),q=D(V,"nextSibling"),X=D(V,"childNodes"),Z=D(V,"parentNode");if("function"===typeof c){var te=s.createElement("template");te.content&&te.content.ownerDocument&&(s=te.content.ownerDocument)}var ne="",re=s,ie=re.implementation,oe=re.createNodeIterator,ae=re.createDocumentFragment,se=re.getElementsByTagName,le=i.importNode,ue={};n.isSupported="function"===typeof e&&"function"===typeof Z&&ie&&void 0!==ie.createHTMLDocument;var ce,he,de=$.MUSTACHE_EXPR,fe=$.ERB_EXPR,pe=$.TMPLIT_EXPR,ve=$.DATA_ATTR,ge=$.ARIA_ATTR,me=$.IS_SCRIPT_OR_DATA,ye=$.ATTR_WHITESPACE,be=$.IS_ALLOWED_URI,xe=null,_e=R({},[].concat(a(I),a(P),a(O),a(A),a(F))),Se=null,we=R({},[].concat(a(j),a(H),a(z),a(B))),ke=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ee=null,Ce=null,Me=!0,Re=!0,Te=!1,De=!0,Ie=!1,Pe=!1,Oe=!1,Ne=!1,Ae=!1,Le=!1,Fe=!1,je=!0,He=!1,ze="user-content-",Be=!0,We=!1,Ue={},Ve=null,Ge=R({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),qe=null,Ye=R({},["audio","video","img","source","image","track"]),Xe=null,Ze=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml",Je=Qe,et=!1,tt=null,nt=R({},[Ke,$e,Qe],b),rt=["application/xhtml+xml","text/html"],it="text/html",ot=null,at=s.createElement("form"),st=function(e){return e instanceof RegExp||e instanceof Function},lt=function(e){if(!ot||ot!==e){if(e&&"object"===typeof e||(e={}),e=T(e),ce=ce=-1===rt.indexOf(e.PARSER_MEDIA_TYPE)?it:e.PARSER_MEDIA_TYPE,he="application/xhtml+xml"===ce?b:y,xe="ALLOWED_TAGS"in e?R({},e.ALLOWED_TAGS,he):_e,Se="ALLOWED_ATTR"in e?R({},e.ALLOWED_ATTR,he):we,tt="ALLOWED_NAMESPACES"in e?R({},e.ALLOWED_NAMESPACES,b):nt,Xe="ADD_URI_SAFE_ATTR"in e?R(T(Ze),e.ADD_URI_SAFE_ATTR,he):Ze,qe="ADD_DATA_URI_TAGS"in e?R(T(Ye),e.ADD_DATA_URI_TAGS,he):Ye,Ve="FORBID_CONTENTS"in e?R({},e.FORBID_CONTENTS,he):Ge,Ee="FORBID_TAGS"in e?R({},e.FORBID_TAGS,he):{},Ce="FORBID_ATTR"in e?R({},e.FORBID_ATTR,he):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,Me=!1!==e.ALLOW_ARIA_ATTR,Re=!1!==e.ALLOW_DATA_ATTR,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ie=e.SAFE_FOR_TEMPLATES||!1,Pe=e.WHOLE_DOCUMENT||!1,Ae=e.RETURN_DOM||!1,Le=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,Ne=e.FORCE_BODY||!1,je=!1!==e.SANITIZE_DOM,He=e.SANITIZE_NAMED_PROPS||!1,Be=!1!==e.KEEP_CONTENT,We=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||Y,Je=e.NAMESPACE||Qe,ke=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ke.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ke.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ke.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(Re=!1),Le&&(Ae=!0),Ue&&(xe=R({},a(F)),Se=[],!0===Ue.html&&(R(xe,I),R(Se,j)),!0===Ue.svg&&(R(xe,P),R(Se,H),R(Se,B)),!0===Ue.svgFilters&&(R(xe,O),R(Se,H),R(Se,B)),!0===Ue.mathMl&&(R(xe,A),R(Se,z),R(Se,B))),e.ADD_TAGS&&(xe===_e&&(xe=T(xe)),R(xe,e.ADD_TAGS,he)),e.ADD_ATTR&&(Se===we&&(Se=T(Se)),R(Se,e.ADD_ATTR,he)),e.ADD_URI_SAFE_ATTR&&R(Xe,e.ADD_URI_SAFE_ATTR,he),e.FORBID_CONTENTS&&(Ve===Ge&&(Ve=T(Ve)),R(Ve,e.FORBID_CONTENTS,he)),Be&&(xe["#text"]=!0),Pe&&R(xe,["html","head","body"]),xe.table&&(R(xe,["tbody"]),delete Ee.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');r=e.TRUSTED_TYPES_POLICY,ne=r.createHTML("")}else void 0===r&&(r=J(U,o)),null!==r&&"string"===typeof ne&&(ne=r.createHTML(""));u&&u(e),ot=e}},ut=R({},["mi","mo","mn","ms","mtext"]),ct=R({},["foreignobject","desc","title","annotation-xml"]),ht=R({},["title","style","font","a","script"]),dt=R({},P);R(dt,O),R(dt,N);var ft=R({},A);R(ft,L);var pt=function(e){var t=Z(e);t&&t.tagName||(t={namespaceURI:Je,tagName:"template"});var n=y(e.tagName),r=y(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===$e?t.namespaceURI===Qe?"svg"===n:t.namespaceURI===Ke?"svg"===n&&("annotation-xml"===r||ut[r]):Boolean(dt[n]):e.namespaceURI===Ke?t.namespaceURI===Qe?"math"===n:t.namespaceURI===$e?"math"===n&&ct[r]:Boolean(ft[n]):e.namespaceURI===Qe?!(t.namespaceURI===$e&&!ct[r])&&!(t.namespaceURI===Ke&&!ut[r])&&!ft[n]&&(ht[n]||!dt[n]):!("application/xhtml+xml"!==ce||!tt[e.namespaceURI]))},vt=function(e){m(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},gt=function(e,t){try{m(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){m(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Se[e])if(Ae||Le)try{vt(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},mt=function(e){var t,n;if(Ne)e=""+e;else{var i=x(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===ce&&Je===Qe&&(e=''+e+"");var o=r?r.createHTML(e):e;if(Je===Qe)try{t=(new W).parseFromString(o,ce)}catch(l){}if(!t||!t.documentElement){t=ie.createDocument(Je,"template",null);try{t.documentElement.innerHTML=et?ne:o}catch(l){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(s.createTextNode(n),a.childNodes[0]||null),Je===Qe?se.call(t,Pe?"html":"body")[0]:Pe?t.documentElement:a},yt=function(e){return oe.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT,null,!1)},bt=function(e){return e instanceof M&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof C)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},xt=function(e){return"object"===typeof h?e instanceof h:e&&"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},_t=function(e,t,r){ue[e]&&v(ue[e],(function(e){e.call(n,t,r,ot)}))},St=function(e){var t;if(_t("beforeSanitizeElements",e,null),bt(e))return vt(e),!0;var r=he(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:r,allowedTags:xe}),e.hasChildNodes()&&!xt(e.firstElementChild)&&(!xt(e.content)||!xt(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return vt(e),!0;if(!xe[r]||Ee[r]){if(!Ee[r]&&kt(r)){if(ke.tagNameCheck instanceof RegExp&&k(ke.tagNameCheck,r))return!1;if(ke.tagNameCheck instanceof Function&&ke.tagNameCheck(r))return!1}if(Be&&!Ve[r]){var i=Z(e)||e.parentNode,o=X(e)||e.childNodes;if(o&&i)for(var a=o.length-1;a>=0;--a)i.insertBefore(G(o[a],!0),q(e))}return vt(e),!0}return e instanceof d&&!pt(e)?(vt(e),!0):"noscript"!==r&&"noembed"!==r||!k(/<\/no(script|embed)/i,e.innerHTML)?(Ie&&3===e.nodeType&&(t=e.textContent,t=_(t,de," "),t=_(t,fe," "),t=_(t,pe," "),e.textContent!==t&&(m(n.removed,{element:e.cloneNode()}),e.textContent=t)),_t("afterSanitizeElements",e,null),!1):(vt(e),!0)},wt=function(e,t,n){if(je&&("id"===t||"name"===t)&&(n in s||n in at))return!1;if(Re&&!Ce[t]&&k(ve,t));else if(Me&&k(ge,t));else if(!Se[t]||Ce[t]){if(!(kt(e)&&(ke.tagNameCheck instanceof RegExp&&k(ke.tagNameCheck,e)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(e))&&(ke.attributeNameCheck instanceof RegExp&&k(ke.attributeNameCheck,t)||ke.attributeNameCheck instanceof Function&&ke.attributeNameCheck(t))||"is"===t&&ke.allowCustomizedBuiltInElements&&(ke.tagNameCheck instanceof RegExp&&k(ke.tagNameCheck,n)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))))return!1}else if(Xe[t]);else if(k(be,_(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!qe[e])if(Te&&!k(me,_(n,ye,"")));else if(n)return!1;return!0},kt=function(e){return e.indexOf("-")>0},Et=function(e){var t,i,o,a;_t("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se};for(a=s.length;a--;){var u=t=s[a],c=u.name,h=u.namespaceURI;if(i="value"===c?t.value:w(t.value),o=he(c),l.attrName=o,l.attrValue=i,l.keepAttr=!0,l.forceKeepAttr=void 0,_t("uponSanitizeAttribute",e,l),i=l.attrValue,!l.forceKeepAttr&&(gt(c,e),l.keepAttr))if(De||!k(/\/>/i,i)){Ie&&(i=_(i,de," "),i=_(i,fe," "),i=_(i,pe," "));var d=he(e.nodeName);if(wt(d,o,i)){if(!He||"id"!==o&&"name"!==o||(gt(c,e),i=ze+i),r&&"object"===typeof U&&"function"===typeof U.getAttributeType)if(h);else switch(U.getAttributeType(d,o)){case"TrustedHTML":i=r.createHTML(i);break;case"TrustedScriptURL":i=r.createScriptURL(i)}try{h?e.setAttributeNS(h,c,i):e.setAttribute(c,i),g(n.removed)}catch(f){}}}else gt(c,e)}_t("afterSanitizeAttributes",e,null)}},Ct=function e(t){var n,r=yt(t);for(_t("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)_t("uponSanitizeShadowNode",n,null),St(n)||(n.content instanceof l&&e(n.content),Et(n));_t("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){var t,o,a,s,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((et=!e)&&(e="\x3c!--\x3e"),"string"!==typeof e&&!xt(e)){if("function"!==typeof e.toString)throw E("toString is not a function");if("string"!==typeof(e=e.toString()))throw E("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Oe||lt(u),n.removed=[],"string"===typeof e&&(We=!1),We){if(e.nodeName){var c=he(e.nodeName);if(!xe[c]||Ee[c])throw E("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof h)1===(o=(t=mt("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?t=o:t.appendChild(o);else{if(!Ae&&!Ie&&!Pe&&-1===e.indexOf("<"))return r&&Fe?r.createHTML(e):e;if(!(t=mt(e)))return Ae?null:Fe?ne:""}t&&Ne&&vt(t.firstChild);for(var d=yt(We?e:t);a=d.nextNode();)St(a)||(a.content instanceof l&&Ct(a.content),Et(a));if(We)return e;if(Ae){if(Le)for(s=ae.call(t.ownerDocument);t.firstChild;)s.appendChild(t.firstChild);else s=t;return(Se.shadowroot||Se.shadowrootmod)&&(s=le.call(i,s,!0)),s}var f=Pe?t.outerHTML:t.innerHTML;return Pe&&xe["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&k(K,t.ownerDocument.doctype.name)&&(f="\n"+f),Ie&&(f=_(f,de," "),f=_(f,fe," "),f=_(f,pe," ")),r&&Fe?r.createHTML(f):f},n.setConfig=function(e){lt(e),Oe=!0},n.clearConfig=function(){ot=null,Oe=!1},n.isValidAttribute=function(e,t,n){ot||lt({});var r=he(e),i=he(t);return wt(r,i,n)},n.addHook=function(e,t){"function"===typeof t&&(ue[e]=ue[e]||[],m(ue[e],t))},n.removeHook=function(e){if(ue[e])return g(ue[e])},n.removeHooks=function(e){ue[e]&&(ue[e]=[])},n.removeAllHooks=function(){ue={}},n}return ee()}()},2110:function(e,t,n){"use strict";var r=n(8309),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=f(n);i&&i!==p&&e(t,i,r)}var a=c(n);h&&(a=a.concat(h(n)));for(var s=l(t),v=l(n),g=0;g/i,a=//i,s=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"===typeof window&&window.DOMParser;if("function"===typeof u){var c=new u;s=l=function(e,t){return t&&(e="<"+t+">"+e+""),c.parseFromString(e,"text/html")}}if("object"===typeof document&&document.implementation){var h=document.implementation.createHTMLDocument();s=function(e,t){return t?(h.documentElement.querySelector(t).innerHTML=e,h):(h.documentElement.innerHTML=e,h)}}var d,f="object"===typeof document?document.createElement("template"):{};f.content&&(d=function(e){return f.innerHTML=e,f.content.childNodes}),e.exports=function(e){var u,c,h,f,p=e.match(i);switch(p&&p[1]&&(u=p[1].toLowerCase()),u){case t:return c=l(e),o.test(e)||(h=c.querySelector(n))&&h.parentNode.removeChild(h),a.test(e)||(h=c.querySelector(r))&&h.parentNode.removeChild(h),c.querySelectorAll(t);case n:case r:return f=(c=s(e)).querySelectorAll(u),a.test(e)&&o.test(e)?f[0].parentNode.childNodes:f;default:return d?d(e):(h=s(e,r).querySelector(r)).childNodes}}},159:function(e,t,n){var r=n(9409),i=n(1716).formatDOM,o=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(o);return n&&n[1]&&(t=n[1]),i(r(e),null,t)}},1716:function(e,t,n){for(var r,i=n(538),o=n(9127).CASE_SENSITIVE_TAG_NAMES,a=i.Comment,s=i.Element,l=i.ProcessingInstruction,u=i.Text,c={},h=0,d=o.length;h0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=h;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(h);t.CDATA=d;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(h);t.Document=f;var p=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?o.ElementType.Script:"style"===t?o.ElementType.Style:o.ElementType.Tag);var a=e.call(this,r)||this;return a.name=t,a.attribs=n,a.type=i,a}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(h);function v(e){return(0,o.isTag)(e)}function g(e){return e.type===o.ElementType.CDATA}function m(e){return e.type===o.ElementType.Text}function y(e){return e.type===o.ElementType.Comment}function b(e){return e.type===o.ElementType.Directive}function x(e){return e.type===o.ElementType.Root}function _(e,t){var n;if(void 0===t&&(t=!1),m(e))n=new l(e.data);else if(y(e))n=new u(e.data);else if(v(e)){var r=t?S(e.children):[],o=new p(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(g(e)){r=t?S(e.children):[];var a=new d(r);r.forEach((function(e){return e.parent=a})),n=a}else if(x(e)){r=t?S(e.children):[];var s=new f(r);r.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!b(e))throw new Error("Not implemented yet: ".concat(e.type));var h=new c(e.name,e.data);null!=e["x-name"]&&(h["x-name"]=e["x-name"],h["x-publicId"]=e["x-publicId"],h["x-systemId"]=e["x-systemId"]),n=h}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function S(e){for(var t=e.map((function(e){return _(e,!0)})),n=1;n1&&(c=p(c,{key:c.key||x})),m.push(c);else if("text"!==o.type){switch(h=o.attribs,l(o)?a(h.style,h):h&&(h=i(h,o.name)),d=null,o.type){case"script":case"style":o.children[0]&&(h.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?h.defaultValue=o.children[0].data:o.children&&o.children.length&&(d=e(o.children,n));break;default:continue}_>1&&(h.key=x),m.push(v(o.name,h,d))}else{if((u=!o.data.trim().length)&&o.parent&&!s(o.parent))continue;if(b&&u)continue;m.push(o.data)}return 1===m.length?m[0]:m}},4141:function(e,t,n){var r=n(2791),i=n(5792).default;var o={reactCompat:!0};var a=r.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!==typeof e)throw new TypeError("First argument must be an object");var n,r,i="function"===typeof t,o={},a={};for(n in e)r=e[n],i&&(o=t(n,r))&&2===o.length?a[o[0]]=o[1]:"string"===typeof r&&(a[r]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!==e&&void 0!==e)try{t.style=i(e,o)}catch(n){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},9936:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(4776),a=n(1262);i(n(1262),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"===typeof t&&(n=t,t=s),"object"===typeof e&&(t=e,e=void 0),this.callback=null!==e&&void 0!==e?e:null,this.options=null!==t&&void 0!==t?t:s,this.elementCB=null!==n&&void 0!==n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===o.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"===typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},1262:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=h;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(h);t.CDATA=d;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(h);t.Document=f;var p=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?o.ElementType.Script:"style"===t?o.ElementType.Style:o.ElementType.Tag);var a=e.call(this,r)||this;return a.name=t,a.attribs=n,a.type=i,a}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(h);function v(e){return(0,o.isTag)(e)}function g(e){return e.type===o.ElementType.CDATA}function m(e){return e.type===o.ElementType.Text}function y(e){return e.type===o.ElementType.Comment}function b(e){return e.type===o.ElementType.Directive}function x(e){return e.type===o.ElementType.Root}function _(e,t){var n;if(void 0===t&&(t=!1),m(e))n=new l(e.data);else if(y(e))n=new u(e.data);else if(v(e)){var r=t?S(e.children):[],o=new p(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(g(e)){r=t?S(e.children):[];var a=new d(r);r.forEach((function(e){return e.parent=a})),n=a}else if(x(e)){r=t?S(e.children):[];var s=new f(r);r.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!b(e))throw new Error("Not implemented yet: ".concat(e.type));var h=new c(e.name,e.data);null!=e["x-name"]&&(h["x-name"]=e["x-name"],h["x-publicId"]=e["x-publicId"],h["x-systemId"]=e["x-systemId"]),n=h}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function S(e){for(var t=e.map((function(e){return _(e,!0)})),n=1;ni;){if(o-i>600){var s=o-i+1,l=r-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);e(n,r,Math.max(i,Math.floor(r-l*c/s+h)),Math.min(o,Math.floor(r+(s-l)*c/s+h)),a)}var d=n[r],f=i,p=o;for(t(n,i,r),a(n[o],d)>0&&t(n,i,o);f0;)p--}0===a(n[i],d)?t(n,i,p):t(n,++p,o),p<=r&&(i=p+1),r<=p&&(o=p-1)}}(e,r,i||0,o||e.length-1,a||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return et?1:0}var r=function(e){void 0===e&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r=e.minX&&t.maxY>=e.minY}function p(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(t,n,r,i,o){for(var a=[n,r];a.length;)if(!((r=a.pop())-(n=a.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,o),a.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!f(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var o=0;o=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var a=this._chooseSplitIndex(n,i,r),s=p(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(e,t){this.data=p([e,t]),this.data.height=e.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,o,s,l,u,h,d=1/0,f=1/0,p=t;p<=n-t;p++){var v=a(e,0,p,this.toBBox),g=a(e,p,n,this.toBBox),m=(i=v,o=g,s=void 0,l=void 0,u=void 0,h=void 0,s=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),u=Math.min(i.maxX,o.maxX),h=Math.min(i.maxY,o.maxY),Math.max(0,u-s)*Math.max(0,h-l)),y=c(v)+c(g);m=t;f--){var p=e.children[f];s(l,e.leaf?i(p):p),u+=h(l)}return u},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)s(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)0===e[t].children.length?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():o(e[t],this.toBBox)},r}()},1071:function(e,t,n){"use strict";var r=n(2791);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n