var ko="2.1.19",It="[data-trix-attachment]",Ri={preview:{presentation:"gallery",caption:{name:!0,size:!0}},file:{caption:{size:!0}}},J={default:{tagName:"div",parse:!1},quote:{tagName:"blockquote",nestable:!0},heading1:{tagName:"h1",terminal:!0,breakOnReturn:!0,group:!1},code:{tagName:"pre",terminal:!0,htmlAttributes:["language"],text:{plaintext:!0}},bulletList:{tagName:"ul",parse:!1},bullet:{tagName:"li",listAttribute:"bulletList",group:!1,nestable:!0,test(i){return ir(i.parentNode)===J[this.listAttribute].tagName}},numberList:{tagName:"ol",parse:!1},number:{tagName:"li",listAttribute:"numberList",group:!1,nestable:!0,test(i){return ir(i.parentNode)===J[this.listAttribute].tagName}},attachmentGallery:{tagName:"div",exclusive:!0,terminal:!0,parse:!1,group:!1}},ir=i=>{var t;return i==null||(t=i.tagName)===null||t===void 0?void 0:t.toLowerCase()},rr=navigator.userAgent.match(/android\s([0-9]+.*Chrome)/i),Fn=rr&&parseInt(rr[1]),Ne={composesExistingText:/Android.*Chrome/.test(navigator.userAgent),recentAndroid:Fn&&Fn>12,samsungAndroid:Fn&&navigator.userAgent.match(/Android.*SM-/),forcesObjectResizing:/Trident.*rv:11/.test(navigator.userAgent),supportsInputEvents:typeof InputEvent<"u"&&["data","getTargetRanges","inputType"].every((i=>i in InputEvent.prototype))},Wr={ADD_ATTR:["language"],SAFE_FOR_XML:!1,RETURN_DOM:!0},m={attachFiles:"Attach Files",bold:"Bold",bullets:"Bullets",byte:"Byte",bytes:"Bytes",captionPlaceholder:"Add a caption\u2026",code:"Code",heading1:"Heading",indent:"Increase Level",italic:"Italic",link:"Link",numbers:"Numbers",outdent:"Decrease Level",quote:"Quote",redo:"Redo",remove:"Remove",strike:"Strikethrough",undo:"Undo",unlink:"Unlink",url:"URL",urlPlaceholder:"Enter a URL\u2026",GB:"GB",KB:"KB",MB:"MB",PB:"PB",TB:"TB"},To=[m.bytes,m.KB,m.MB,m.GB,m.TB,m.PB],Ur={prefix:"IEC",precision:2,formatter(i){switch(i){case 0:return"0 ".concat(m.bytes);case 1:return"1 ".concat(m.byte);default:let t;this.prefix==="SI"?t=1e3:this.prefix==="IEC"&&(t=1024);let e=Math.floor(Math.log(i)/Math.log(t)),n=(i/Math.pow(t,e)).toFixed(this.precision).replace(/0*$/,"").replace(/\.$/,"");return"".concat(n," ").concat(To[e])}}},An="\uFEFF",xt="\xA0",Vr=function(i){for(let t in i){let e=i[t];this[t]=e}return this},ki=document.documentElement,wo=ki.matches,R=function(i){let{onElement:t,matchingSelector:e,withCallback:n,inPhase:r,preventDefault:o,times:s}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=t||ki,c=e,u=r==="capturing",g=function(S){s!=null&&--s==0&&g.destroy();let D=Et(S.target,{matchingSelector:c});D!=null&&(n?.call(D,S,D),o&&S.preventDefault())};return g.destroy=()=>l.removeEventListener(i,g,u),l.addEventListener(i,g,u),g},zr=function(i){let{bubbles:t,cancelable:e,attributes:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};t=t!==!1,e=e!==!1;let r=document.createEvent("Events");return r.initEvent(i,t,e),n!=null&&Vr.call(r,n),r},Ce=function(i){let{onElement:t,bubbles:e,cancelable:n,attributes:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=t??ki,s=zr(i,{bubbles:e,cancelable:n,attributes:r});return o.dispatchEvent(s)},Hr=function(i,t){if(i?.nodeType===1)return wo.call(i,t)},Et=function(i){let{matchingSelector:t,untilNode:e}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(;i&&i.nodeType!==Node.ELEMENT_NODE;)i=i.parentNode;if(i!=null){if(t==null)return i;if(i.closest&&e==null)return i.closest(t);for(;i&&i!==e;){if(Hr(i,t))return i;i=i.parentNode}}},Ti=i=>document.activeElement!==i&&Nt(i,document.activeElement),Nt=function(i,t){if(i&&t)for(;t;){if(t===i)return!0;t=t.parentNode}},Pn=function(i){var t;if((t=i)===null||t===void 0||!t.parentNode)return;let e=0;for(i=i.previousSibling;i;)e++,i=i.previousSibling;return e},St=i=>{var t;return i==null||(t=i.parentNode)===null||t===void 0?void 0:t.removeChild(i)},Xe=function(i){let{onlyNodesOfType:t,usingFilter:e,expandEntityReferences:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(()=>{switch(t){case"element":return NodeFilter.SHOW_ELEMENT;case"text":return NodeFilter.SHOW_TEXT;case"comment":return NodeFilter.SHOW_COMMENT;default:return NodeFilter.SHOW_ALL}})();return document.createTreeWalker(i,r,e??null,n===!0)},q=i=>{var t;return i==null||(t=i.tagName)===null||t===void 0?void 0:t.toLowerCase()},b=function(i){let t,e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};typeof i=="object"?(n=i,i=n.tagName):n={attributes:n};let r=document.createElement(i);if(n.editable!=null&&(n.attributes==null&&(n.attributes={}),n.attributes.contenteditable=n.editable),n.attributes)for(t in n.attributes)e=n.attributes[t],r.setAttribute(t,e);if(n.style)for(t in n.style)e=n.style[t],r.style[t]=e;if(n.data)for(t in n.data)e=n.data[t],r.dataset[t]=e;return n.className&&n.className.split(" ").forEach((o=>{r.classList.add(o)})),n.textContent&&(r.textContent=n.textContent),n.childNodes&&[].concat(n.childNodes).forEach((o=>{r.appendChild(o)})),r},pe,Ee=function(){if(pe!=null)return pe;pe=[];for(let i in J){let t=J[i];t.tagName&&pe.push(t.tagName)}return pe},Bn=i=>Yt(i?.firstChild),Mn=function(i){let{strict:t}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{strict:!0};return t?Yt(i):Yt(i)||!Yt(i.firstChild)&&(function(e){return Ee().includes(q(e))&&!Ee().includes(q(e.firstChild))})(i)},Yt=i=>Do(i)&&i?.data==="block",Do=i=>i?.nodeType===Node.COMMENT_NODE,Xt=function(i){let{name:t}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i)return Se(i)?i.data===An?!t||i.parentNode.dataset.trixCursorTarget===t:void 0:Xt(i.firstChild)},Ot=i=>Hr(i,It),qr=i=>Se(i)&&i?.data==="",Se=i=>i?.nodeType===Node.TEXT_NODE,wi={level2Enabled:!0,getLevel(){return this.level2Enabled&&Ne.supportsInputEvents?2:0},pickFiles(i){let t=b("input",{type:"file",multiple:!0,hidden:!0,id:this.fileInputId});t.addEventListener("change",(()=>{i(t.files),St(t)})),St(document.getElementById(this.fileInputId)),document.body.appendChild(t),t.click()}},$e={removeBlankTableCells:!1,tableCellSeparator:" | ",tableRowSeparator:`
`},Bt={bold:{tagName:"strong",inheritable:!0,parser(i){let t=window.getComputedStyle(i);return t.fontWeight==="bold"||t.fontWeight>=600}},italic:{tagName:"em",inheritable:!0,parser:i=>window.getComputedStyle(i).fontStyle==="italic"},href:{groupTagName:"a",parser(i){let t="a:not(".concat(It,")"),e=i.closest(t);if(e)return e.getAttribute("href")}},strike:{tagName:"del",inheritable:!0},frozen:{style:{backgroundColor:"highlight"}}},Jr={getDefaultHTML:()=>`
`)},ai={interval:5e3},Ie=Object.freeze({__proto__:null,attachments:Ri,blockAttributes:J,browser:Ne,css:{attachment:"attachment",attachmentCaption:"attachment__caption",attachmentCaptionEditor:"attachment__caption-editor",attachmentMetadata:"attachment__metadata",attachmentMetadataContainer:"attachment__metadata-container",attachmentName:"attachment__name",attachmentProgress:"attachment__progress",attachmentSize:"attachment__size",attachmentToolbar:"attachment__toolbar",attachmentGallery:"attachment-gallery"},dompurify:Wr,fileSize:Ur,input:wi,keyNames:{8:"backspace",9:"tab",13:"return",27:"escape",37:"left",39:"right",46:"delete",68:"d",72:"h",79:"o"},lang:m,parser:$e,textAttributes:Bt,toolbar:Jr,undo:ai}),w=class{static proxyMethod(t){let{name:e,toMethod:n,toProperty:r,optional:o}=Lo(t);this.prototype[e]=function(){let s,l;var c,u;return n?l=o?(c=this[n])===null||c===void 0?void 0:c.call(this):this[n]():r&&(l=this[r]),o?(s=(u=l)===null||u===void 0?void 0:u[e],s?or.call(s,l,arguments):void 0):(s=l[e],or.call(s,l,arguments))}}},Lo=function(i){let t=i.match(No);if(!t)throw new Error("can't parse @proxyMethod expression: ".concat(i));let e={name:t[4]};return t[2]!=null?e.toMethod=t[1]:e.toProperty=t[1],t[3]!=null&&(e.optional=!0),e},{apply:or}=Function.prototype,No=new RegExp("^(.+?)(\\(\\))?(\\?)?\\.(.+?)$"),_n,jn,Wn,Mt=class extends w{static box(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t instanceof this?t:this.fromUCS2String(t?.toString())}static fromUCS2String(t){return new this(t,li(t))}static fromCodepoints(t){return new this(ci(t),t)}constructor(t,e){super(...arguments),this.ucs2String=t,this.codepoints=e,this.length=this.codepoints.length,this.ucs2Length=this.ucs2String.length}offsetToUCS2Offset(t){return ci(this.codepoints.slice(0,Math.max(0,t))).length}offsetFromUCS2Offset(t){return li(this.ucs2String.slice(0,Math.max(0,t))).length}slice(){return this.constructor.fromCodepoints(this.codepoints.slice(...arguments))}charAt(t){return this.slice(t,t+1)}isEqualTo(t){return this.constructor.box(t).ucs2String===this.ucs2String}toJSON(){return this.ucs2String}getCacheKey(){return this.ucs2String}toString(){return this.ucs2String}},Io=((_n=Array.from)===null||_n===void 0?void 0:_n.call(Array,"\u{1F47C}").length)===1,Oo=((jn=" ".codePointAt)===null||jn===void 0?void 0:jn.call(" ",0))!=null,Fo=((Wn=String.fromCodePoint)===null||Wn===void 0?void 0:Wn.call(String,32,128124))===" \u{1F47C}",li,ci;li=Io&&Oo?i=>Array.from(i).map((t=>t.codePointAt(0))):function(i){let t=[],e=0,{length:n}=i;for(;eString.fromCodePoint(...Array.from(i||[])):function(i){return(()=>{let t=[];return Array.from(i).forEach((e=>{let n="";e>65535&&(e-=65536,n+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t.push(n+String.fromCharCode(e))})),t})().join("")};var Po=0,pt=class extends w{static fromJSONString(t){return this.fromJSON(JSON.parse(t))}constructor(){super(...arguments),this.id=++Po}hasSameConstructorAs(t){return this.constructor===t?.constructor}isEqualTo(t){return this===t}inspect(){let t=[],e=this.contentsForInspection()||{};for(let n in e){let r=e[n];t.push("".concat(n,"=").concat(r))}return"#<".concat(this.constructor.name,":").concat(this.id).concat(t.length?" ".concat(t.join(", ")):"",">")}contentsForInspection(){}toJSONString(){return JSON.stringify(this)}toUTF16String(){return Mt.box(this)}getCacheKey(){return this.id.toString()}},_t=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(i.length!==t.length)return!1;for(let e=0;e1?e-1:0),r=1;r(Un||(Un=jo().concat(_o())),Un),O=i=>J[i],_o=()=>(Vn||(Vn=Object.keys(J)),Vn),hi=i=>Bt[i],jo=()=>(zn||(zn=Object.keys(Bt)),zn),Kr=function(i,t){Wo(i).textContent=t.replace(/%t/g,i)},Wo=function(i){let t=document.createElement("style");t.setAttribute("type","text/css"),t.setAttribute("data-tag-name",i.toLowerCase());let e=Uo();return e&&t.setAttribute("nonce",e),document.head.insertBefore(t,document.head.firstChild),t},Uo=function(){let i=sr("trix-csp-nonce")||sr("csp-nonce");if(i){let{nonce:t,content:e}=i;return t==""?e:t}},sr=i=>document.head.querySelector("meta[name=".concat(i,"]")),ar={"application/x-trix-feature-detection":"test"},Gr=function(i){let t=i.getData("text/plain"),e=i.getData("text/html");if(!t||!e)return t?.length;{let{body:n}=new DOMParser().parseFromString(e,"text/html");if(n.textContent===t)return!n.querySelector("*")}},$r=/Mac|^iP/.test(navigator.platform)?i=>i.metaKey:i=>i.ctrlKey,Li=i=>setTimeout(i,1),Yr=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t={};for(let e in i){let n=i[e];t[e]=n}return t},le=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Object.keys(i).length!==Object.keys(t).length)return!1;for(let e in i)if(i[e]!==t[e])return!1;return!0},x=function(i){if(i!=null)return Array.isArray(i)||(i=[i,i]),[lr(i[0]),lr(i[1]!=null?i[1]:i[0])]},mt=function(i){if(i==null)return;let[t,e]=x(i);return di(t,e)},Qe=function(i,t){if(i==null||t==null)return;let[e,n]=x(i),[r,o]=x(t);return di(e,r)&&di(n,o)},lr=function(i){return typeof i=="number"?i:Yr(i)},di=function(i,t){return typeof i=="number"?i===t:le(i,t)},Ze=class extends w{constructor(){super(...arguments),this.update=this.update.bind(this),this.selectionManagers=[]}start(){this.started||(this.started=!0,document.addEventListener("selectionchange",this.update,!0))}stop(){if(this.started)return this.started=!1,document.removeEventListener("selectionchange",this.update,!0)}registerSelectionManager(t){if(!this.selectionManagers.includes(t))return this.selectionManagers.push(t),this.start()}unregisterSelectionManager(t){if(this.selectionManagers=this.selectionManagers.filter((e=>e!==t)),this.selectionManagers.length===0)return this.stop()}notifySelectionManagersOfSelectionChange(){return this.selectionManagers.map((t=>t.selectionDidChange()))}update(){this.notifySelectionManagersOfSelectionChange()}reset(){this.update()}},jt=new Ze,Xr=function(){let i=window.getSelection();if(i.rangeCount>0)return i},Re=function(){var i;let t=(i=Xr())===null||i===void 0?void 0:i.getRangeAt(0);if(t&&!Vo(t))return t},Qr=function(i){let t=window.getSelection();return t.removeAllRanges(),t.addRange(i),jt.update()},Vo=i=>cr(i.startContainer)||cr(i.endContainer),cr=i=>!Object.getPrototypeOf(i),ye=i=>i.replace(new RegExp("".concat(An),"g"),"").replace(new RegExp("".concat(xt),"g")," "),Ni=new RegExp("[^\\S".concat(xt,"]")),Ii=i=>i.replace(new RegExp("".concat(Ni.source),"g")," ").replace(/\ {2,}/g," "),ur=function(i,t){if(i.isEqualTo(t))return["",""];let e=Hn(i,t),{length:n}=e.utf16String,r;if(n){let{offset:o}=e,s=i.codepoints.slice(0,o).concat(i.codepoints.slice(o+n));r=Hn(t,Mt.fromCodepoints(s))}else r=Hn(t,i);return[e.utf16String.toString(),r.utf16String.toString()]},Hn=function(i,t){let e=0,n=i.length,r=t.length;for(;ee+1&&i.charAt(n-1).isEqualTo(t.charAt(r-1));)n--,r--;return{utf16String:i.slice(e,n),offset:e}},rt=class i extends pt{static fromCommonAttributesOfObjects(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(!t.length)return new this;let e=fe(t[0]),n=e.getKeys();return t.slice(1).forEach((r=>{n=e.getKeysCommonToHash(fe(r)),e=e.slice(n)})),e}static box(t){return fe(t)}constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(...arguments),this.values=Ye(t)}add(t,e){return this.merge(zo(t,e))}remove(t){return new i(Ye(this.values,t))}get(t){return this.values[t]}has(t){return t in this.values}merge(t){return new i(Ho(this.values,qo(t)))}slice(t){let e={};return Array.from(t).forEach((n=>{this.has(n)&&(e[n]=this.values[n])})),new i(e)}getKeys(){return Object.keys(this.values)}getKeysCommonToHash(t){return t=fe(t),this.getKeys().filter((e=>this.values[e]===t.values[e]))}isEqualTo(t){return _t(this.toArray(),fe(t).toArray())}isEmpty(){return this.getKeys().length===0}toArray(){if(!this.array){let t=[];for(let e in this.values){let n=this.values[e];t.push(t.push(e,n))}this.array=t.slice(0)}return this.array}toObject(){return Ye(this.values)}toJSON(){return this.toObject()}contentsForInspection(){return{values:JSON.stringify(this.values)}}},zo=function(i,t){let e={};return e[i]=t,e},Ho=function(i,t){let e=Ye(i);for(let n in t){let r=t[n];e[n]=r}return e},Ye=function(i,t){let e={};return Object.keys(i).sort().forEach((n=>{n!==t&&(e[n]=i[n])})),e},fe=function(i){return i instanceof rt?i:new rt(i)},qo=function(i){return i instanceof rt?i.values:i},Te=class{static groupObjects(){let t,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],{depth:n,asTree:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r&&n==null&&(n=0);let o=[];return Array.from(e).forEach((s=>{var l;if(t){var c,u,g;if((c=s.canBeGrouped)!==null&&c!==void 0&&c.call(s,n)&&(u=(g=t[t.length-1]).canBeGroupedWith)!==null&&u!==void 0&&u.call(g,s,n))return void t.push(s);o.push(new this(t,{depth:n,asTree:r})),t=null}(l=s.canBeGrouped)!==null&&l!==void 0&&l.call(s,n)?t=[s]:o.push(s)})),t&&o.push(new this(t,{depth:n,asTree:r})),o}constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],{depth:e,asTree:n}=arguments.length>1?arguments[1]:void 0;this.objects=t,n&&(this.depth=e,this.objects=this.constructor.groupObjects(this.objects,{asTree:n,depth:this.depth+1}))}getObjects(){return this.objects}getDepth(){return this.depth}getCacheKey(){let t=["objectGroup"];return Array.from(this.getObjects()).forEach((e=>{t.push(e.getCacheKey())})),t.join("/")}},gi=class extends w{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];super(...arguments),this.objects={},Array.from(t).forEach((e=>{let n=JSON.stringify(e);this.objects[n]==null&&(this.objects[n]=e)}))}find(t){let e=JSON.stringify(t);return this.objects[e]}},mi=class{constructor(t){this.reset(t)}add(t){let e=hr(t);this.elements[e]=t}remove(t){let e=hr(t),n=this.elements[e];if(n)return delete this.elements[e],n}reset(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return this.elements={},Array.from(t).forEach((e=>{this.add(e)})),t}},hr=i=>i.dataset.trixStoreKey,Zt=class extends w{isPerforming(){return this.performing===!0}hasPerformed(){return this.performed===!0}hasSucceeded(){return this.performed&&this.succeeded}hasFailed(){return this.performed&&!this.succeeded}getPromise(){return this.promise||(this.promise=new Promise(((t,e)=>(this.performing=!0,this.perform(((n,r)=>{this.succeeded=n,this.performing=!1,this.performed=!0,this.succeeded?t(r):e(r)})))))),this.promise}perform(t){return t(!1)}release(){var t,e;(t=this.promise)===null||t===void 0||(e=t.cancel)===null||e===void 0||e.call(t),this.promise=null,this.performing=null,this.performed=null,this.succeeded=null}};Zt.proxyMethod("getPromise().then"),Zt.proxyMethod("getPromise().catch");var ft=class extends w{constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(...arguments),this.object=t,this.options=e,this.childViews=[],this.rootView=this}getNodes(){return this.nodes||(this.nodes=this.createNodes()),this.nodes.map((t=>t.cloneNode(!0)))}invalidate(){var t;return this.nodes=null,this.childViews=[],(t=this.parentView)===null||t===void 0?void 0:t.invalidate()}invalidateViewForObject(t){var e;return(e=this.findViewForObject(t))===null||e===void 0?void 0:e.invalidate()}findOrCreateCachedChildView(t,e,n){let r=this.getCachedViewForObject(e);return r?this.recordChildView(r):(r=this.createChildView(...arguments),this.cacheViewForObject(r,e)),r}createChildView(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};e instanceof Te&&(n.viewClass=t,t=pi);let r=new t(e,n);return this.recordChildView(r)}recordChildView(t){return t.parentView=this,t.rootView=this.rootView,this.childViews.push(t),t}getAllChildViews(){let t=[];return this.childViews.forEach((e=>{t.push(e),t=t.concat(e.getAllChildViews())})),t}findElement(){return this.findElementForObject(this.object)}findElementForObject(t){let e=t?.id;if(e)return this.rootView.element.querySelector("[data-trix-id='".concat(e,"']"))}findViewForObject(t){for(let e of this.getAllChildViews())if(e.object===t)return e}getViewCache(){return this.rootView!==this?this.rootView.getViewCache():this.isViewCachingEnabled()?(this.viewCache||(this.viewCache={}),this.viewCache):void 0}isViewCachingEnabled(){return this.shouldCacheViews!==!1}enableViewCaching(){this.shouldCacheViews=!0}disableViewCaching(){this.shouldCacheViews=!1}getCachedViewForObject(t){var e;return(e=this.getViewCache())===null||e===void 0?void 0:e[t.getCacheKey()]}cacheViewForObject(t,e){let n=this.getViewCache();n&&(n[e.getCacheKey()]=t)}garbageCollectCachedViews(){let t=this.getViewCache();if(t){let e=this.getAllChildViews().concat(this).map((n=>n.object.getCacheKey()));for(let n in t)e.includes(n)||delete t[n]}}},pi=class extends ft{constructor(){super(...arguments),this.objectGroup=this.object,this.viewClass=this.options.viewClass,delete this.options.viewClass}getChildViews(){return this.childViews.length||Array.from(this.objectGroup.getObjects()).forEach((t=>{this.findOrCreateCachedChildView(this.viewClass,t,this.options)})),this.childViews}createNodes(){let t=this.createContainerElement();return this.getChildViews().forEach((e=>{Array.from(e.getNodes()).forEach((n=>{t.appendChild(n)}))})),[t]}createContainerElement(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.objectGroup.getDepth();return this.getChildViews()[0].createContainerElement(t)}};var{entries:Zr,setPrototypeOf:dr,isFrozen:Jo,getPrototypeOf:Ko,getOwnPropertyDescriptor:Go}=Object,{freeze:K,seal:Z,create:Gt}=Object,{apply:fi,construct:bi}=typeof Reflect<"u"&&Reflect;K||(K=function(i){return i}),Z||(Z=function(i){return i}),fi||(fi=function(i,t){for(var e=arguments.length,n=new Array(e>2?e-2:0),r=2;r1?t-1:0),n=1;n"u"?null:F(BigInt.prototype.toString),br=typeof Symbol>"u"?null:F(Symbol.prototype.toString),T=F(Object.prototype.hasOwnProperty),Ve=F(Object.prototype.toString),_=F(RegExp.prototype.test),ze=(vr=TypeError,function(){for(var i=arguments.length,t=new Array(i),e=0;e1?e-1:0),r=1;r2&&arguments[2]!==void 0?arguments[2]:xe;if(dr&&dr(i,null),!H(t))return i;let n=t.length;for(;n--;){let r=t[n];if(typeof r=="string"){let o=e(r);o!==r&&(Jo(t)||(t[n]=o),r=o)}i[r]=!0}return i}function ts(i){for(let t=0;t/gm),os=Z(/\$\{[\w\W]*/gm),ss=Z(/^data-[\-\w.\u00B7-\uFFFF]+$/),as=Z(/^aria-[\-\w]+$/),to=Z(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ls=Z(/^(?:\w+script|data):/i),cs=Z(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eo=Z(/^html$/i),us=Z(/^[a-z][.\w]*(-[.\w]+)+$/i),Er=Object.freeze({__proto__:null,ARIA_ATTR:as,ATTR_WHITESPACE:cs,CUSTOM_ELEMENT:us,DATA_ATTR:ss,DOCTYPE_NAME:eo,ERB_EXPR:rs,IS_ALLOWED_URI:to,IS_SCRIPT_OR_DATA:ls,MUSTACHE_EXPR:is,TMPLIT_EXPR:os}),hs=1,ds=3,gs=7,ms=8,ps=9,fs=function(){return typeof window>"u"?null:window},te=(function i(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fs(),e=a=>i(a);if(e.version="3.4.2",e.removed=[],!t||!t.document||t.document.nodeType!==ps||!t.Element)return e.isSupported=!1,e;let{document:n}=t,r=n,o=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:l,Node:c,Element:u,NodeFilter:g,NamedNodeMap:S=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:D,DOMParser:Y,trustedTypes:st}=t,V=u.prototype,vt=Kt(V,"cloneNode"),Rt=Kt(V,"remove"),ce=Kt(V,"nextSibling"),ue=Kt(V,"childNodes"),j=Kt(V,"parentNode");if(typeof l=="function"){let a=n.createElement("template");a.content&&a.content.ownerDocument&&(n=a.content.ownerDocument)}let k,ht="",{implementation:kt,createNodeIterator:go,createDocumentFragment:mo,getElementsByTagName:po}=n,{importNode:fo}=r,z={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};e.isSupported=typeof Zr=="function"&&typeof j=="function"&&kt&&kt.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Oe,ERB_EXPR:Fe,TMPLIT_EXPR:Pe,DATA_ATTR:bo,ARIA_ATTR:vo,IS_SCRIPT_OR_DATA:Ao,ATTR_WHITESPACE:Oi,CUSTOM_ELEMENT:yo}=Er,{IS_ALLOWED_URI:Fi}=Er,B=null,Pi=p({},[...Ar,...Jn,...Kn,...Gn,...yr]),M=null,Bi=p({},[...xr,...$n,...Cr,...He]),L=Object.seal(Gt(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}})),he=null,Be=null,At=Object.seal(Gt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Mi=!0,xn=!0,_i=!1,ji=!0,Tt=!1,de=!0,wt=!1,Cn=!1,En=!1,Ut=!1,Me=!1,_e=!1,Wi=!0,Ui=!1,Vi="user-content-",Sn=!0,ge=!1,Vt={},at=null,Rn=p({},["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"]),zi=null,Hi=p({},["audio","video","img","source","image","track"]),kn=null,qi=p({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),je="http://www.w3.org/1998/Math/MathML",We="http://www.w3.org/2000/svg",lt="http://www.w3.org/1999/xhtml",zt=lt,Tn=!1,wn=null,xo=p({},[je,We,lt],qn),Dn=p({},["mi","mo","mn","ms","mtext"]),Ln=p({},["annotation-xml"]),Co=p({},["title","style","font","a","script"]),me=null,Eo=["application/xhtml+xml","text/html"],P=null,Ht=null,So=n.createElement("form"),Ji=function(a){return a instanceof RegExp||a instanceof Function},Nn=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ht&&Ht===a)return;a&&typeof a=="object"||(a={}),a=G(a),me=Eo.indexOf(a.PARSER_MEDIA_TYPE)===-1?"text/html":a.PARSER_MEDIA_TYPE,P=me==="application/xhtml+xml"?qn:xe,B=T(a,"ALLOWED_TAGS")&&H(a.ALLOWED_TAGS)?p({},a.ALLOWED_TAGS,P):Pi,M=T(a,"ALLOWED_ATTR")&&H(a.ALLOWED_ATTR)?p({},a.ALLOWED_ATTR,P):Bi,wn=T(a,"ALLOWED_NAMESPACES")&&H(a.ALLOWED_NAMESPACES)?p({},a.ALLOWED_NAMESPACES,qn):xo,kn=T(a,"ADD_URI_SAFE_ATTR")&&H(a.ADD_URI_SAFE_ATTR)?p(G(qi),a.ADD_URI_SAFE_ATTR,P):qi,zi=T(a,"ADD_DATA_URI_TAGS")&&H(a.ADD_DATA_URI_TAGS)?p(G(Hi),a.ADD_DATA_URI_TAGS,P):Hi,at=T(a,"FORBID_CONTENTS")&&H(a.FORBID_CONTENTS)?p({},a.FORBID_CONTENTS,P):Rn,he=T(a,"FORBID_TAGS")&&H(a.FORBID_TAGS)?p({},a.FORBID_TAGS,P):G({}),Be=T(a,"FORBID_ATTR")&&H(a.FORBID_ATTR)?p({},a.FORBID_ATTR,P):G({}),Vt=!!T(a,"USE_PROFILES")&&(a.USE_PROFILES&&typeof a.USE_PROFILES=="object"?G(a.USE_PROFILES):a.USE_PROFILES),Mi=a.ALLOW_ARIA_ATTR!==!1,xn=a.ALLOW_DATA_ATTR!==!1,_i=a.ALLOW_UNKNOWN_PROTOCOLS||!1,ji=a.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Tt=a.SAFE_FOR_TEMPLATES||!1,de=a.SAFE_FOR_XML!==!1,wt=a.WHOLE_DOCUMENT||!1,Ut=a.RETURN_DOM||!1,Me=a.RETURN_DOM_FRAGMENT||!1,_e=a.RETURN_TRUSTED_TYPE||!1,En=a.FORCE_BODY||!1,Wi=a.SANITIZE_DOM!==!1,Ui=a.SANITIZE_NAMED_PROPS||!1,Sn=a.KEEP_CONTENT!==!1,ge=a.IN_PLACE||!1,Fi=(function(h){try{return _(h,""),!0}catch{return!1}})(a.ALLOWED_URI_REGEXP)?a.ALLOWED_URI_REGEXP:to,zt=typeof a.NAMESPACE=="string"?a.NAMESPACE:lt,Dn=T(a,"MATHML_TEXT_INTEGRATION_POINTS")&&a.MATHML_TEXT_INTEGRATION_POINTS&&typeof a.MATHML_TEXT_INTEGRATION_POINTS=="object"?G(a.MATHML_TEXT_INTEGRATION_POINTS):p({},["mi","mo","mn","ms","mtext"]),Ln=T(a,"HTML_INTEGRATION_POINTS")&&a.HTML_INTEGRATION_POINTS&&typeof a.HTML_INTEGRATION_POINTS=="object"?G(a.HTML_INTEGRATION_POINTS):p({},["annotation-xml"]);let d=T(a,"CUSTOM_ELEMENT_HANDLING")&&a.CUSTOM_ELEMENT_HANDLING&&typeof a.CUSTOM_ELEMENT_HANDLING=="object"?G(a.CUSTOM_ELEMENT_HANDLING):Gt(null);if(L=Gt(null),T(d,"tagNameCheck")&&Ji(d.tagNameCheck)&&(L.tagNameCheck=d.tagNameCheck),T(d,"attributeNameCheck")&&Ji(d.attributeNameCheck)&&(L.attributeNameCheck=d.attributeNameCheck),T(d,"allowCustomizedBuiltInElements")&&typeof d.allowCustomizedBuiltInElements=="boolean"&&(L.allowCustomizedBuiltInElements=d.allowCustomizedBuiltInElements),Tt&&(xn=!1),Me&&(Ut=!0),Vt&&(B=p({},yr),M=Gt(null),Vt.html===!0&&(p(B,Ar),p(M,xr)),Vt.svg===!0&&(p(B,Jn),p(M,$n),p(M,He)),Vt.svgFilters===!0&&(p(B,Kn),p(M,$n),p(M,He)),Vt.mathMl===!0&&(p(B,Gn),p(M,Cr),p(M,He))),At.tagCheck=null,At.attributeCheck=null,T(a,"ADD_TAGS")&&(typeof a.ADD_TAGS=="function"?At.tagCheck=a.ADD_TAGS:H(a.ADD_TAGS)&&(B===Pi&&(B=G(B)),p(B,a.ADD_TAGS,P))),T(a,"ADD_ATTR")&&(typeof a.ADD_ATTR=="function"?At.attributeCheck=a.ADD_ATTR:H(a.ADD_ATTR)&&(M===Bi&&(M=G(M)),p(M,a.ADD_ATTR,P))),T(a,"ADD_URI_SAFE_ATTR")&&H(a.ADD_URI_SAFE_ATTR)&&p(kn,a.ADD_URI_SAFE_ATTR,P),T(a,"FORBID_CONTENTS")&&H(a.FORBID_CONTENTS)&&(at===Rn&&(at=G(at)),p(at,a.FORBID_CONTENTS,P)),T(a,"ADD_FORBID_CONTENTS")&&H(a.ADD_FORBID_CONTENTS)&&(at===Rn&&(at=G(at)),p(at,a.ADD_FORBID_CONTENTS,P)),Sn&&(B["#text"]=!0),wt&&p(B,["html","head","body"]),B.table&&(p(B,["tbody"]),delete he.tbody),a.TRUSTED_TYPES_POLICY){if(typeof a.TRUSTED_TYPES_POLICY.createHTML!="function")throw ze('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof a.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ze('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=a.TRUSTED_TYPES_POLICY,ht=k.createHTML("")}else k===void 0&&(k=(function(h,v){if(typeof h!="object"||typeof h.createPolicy!="function")return null;let y=null,f="data-tt-policy-suffix";v&&v.hasAttribute(f)&&(y=v.getAttribute(f));let W="dompurify"+(y?"#"+y:"");try{return h.createPolicy(W,{createHTML:X=>X,createScriptURL:X=>X})}catch{return console.warn("TrustedTypes policy "+W+" could not be created."),null}})(st,o)),k!==null&&typeof ht=="string"&&(ht=k.createHTML(""));K&&K(a),Ht=a},Ki=p({},[...Jn,...Kn,...es]),Gi=p({},[...Gn,...ns]),tt=function(a){ve(e.removed,{element:a});try{j(a).removeChild(a)}catch{Rt(a)}},Dt=function(a,d){try{ve(e.removed,{attribute:d.getAttributeNode(a),from:d})}catch{ve(e.removed,{attribute:null,from:d})}if(d.removeAttribute(a),a==="is")if(Ut||Me)try{tt(d)}catch{}else try{d.setAttribute(a,"")}catch{}},$i=function(a){let d=null,h=null;if(En)a=""+a;else{let f=mr(a,/^[\r\n\t ]+/);h=f&&f[0]}me==="application/xhtml+xml"&&zt===lt&&(a=''+a+"");let v=k?k.createHTML(a):a;if(zt===lt)try{d=new Y().parseFromString(v,me)}catch{}if(!d||!d.documentElement){d=kt.createDocument(zt,"template",null);try{d.documentElement.innerHTML=Tn?ht:v}catch{}}let y=d.body||d.documentElement;return a&&h&&y.insertBefore(n.createTextNode(h),y.childNodes[0]||null),zt===lt?po.call(d,wt?"html":"body")[0]:wt?d.documentElement:y},Yi=function(a){return go.call(a.ownerDocument||a,a,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},In=function(a){return a instanceof D&&(typeof a.nodeName!="string"||typeof a.textContent!="string"||typeof a.removeChild!="function"||!(a.attributes instanceof S)||typeof a.removeAttribute!="function"||typeof a.setAttribute!="function"||typeof a.namespaceURI!="string"||typeof a.insertBefore!="function"||typeof a.hasChildNodes!="function")},On=function(a){return typeof c=="function"&&a instanceof c};function dt(a,d,h){be(a,(v=>{v.call(e,d,h,Ht)}))}let Xi=function(a){let d=null;if(dt(z.beforeSanitizeElements,a,null),In(a))return tt(a),!0;let h=P(a.nodeName);if(dt(z.uponSanitizeElement,a,{tagName:h,allowedTags:B}),de&&a.hasChildNodes()&&!On(a.firstElementChild)&&_(/<[/\w!]/g,a.innerHTML)&&_(/<[/\w!]/g,a.textContent)||de&&a.namespaceURI===lt&&h==="style"&&On(a.firstElementChild)||a.nodeType===gs||de&&a.nodeType===ms&&_(/<[/\w]/g,a.data))return tt(a),!0;if(he[h]||!(At.tagCheck instanceof Function&&At.tagCheck(h))&&!B[h]){if(!he[h]&&Zi(h)&&(L.tagNameCheck instanceof RegExp&&_(L.tagNameCheck,h)||L.tagNameCheck instanceof Function&&L.tagNameCheck(h)))return!1;if(Sn&&!at[h]){let v=j(a)||a.parentNode,y=ue(a)||a.childNodes;if(y&&v)for(let f=y.length-1;f>=0;--f){let W=vt(y[f],!0);v.insertBefore(W,ce(a))}}return tt(a),!0}return a instanceof u&&!(function(v){let y=j(v);y&&y.tagName||(y={namespaceURI:zt,tagName:"template"});let f=xe(v.tagName),W=xe(y.tagName);return!!wn[v.namespaceURI]&&(v.namespaceURI===We?y.namespaceURI===lt?f==="svg":y.namespaceURI===je?f==="svg"&&(W==="annotation-xml"||Dn[W]):!!Ki[f]:v.namespaceURI===je?y.namespaceURI===lt?f==="math":y.namespaceURI===We?f==="math"&&Ln[W]:!!Gi[f]:v.namespaceURI===lt?!(y.namespaceURI===We&&!Ln[W])&&!(y.namespaceURI===je&&!Dn[W])&&!Gi[f]&&(Co[f]||!Ki[f]):!(me!=="application/xhtml+xml"||!wn[v.namespaceURI]))})(a)?(tt(a),!0):h!=="noscript"&&h!=="noembed"&&h!=="noframes"||!_(/<\/no(script|embed|frames)/i,a.innerHTML)?(Tt&&a.nodeType===ds&&(d=a.textContent,be([Oe,Fe,Pe],(v=>{d=Jt(d,v," ")})),a.textContent!==d&&(ve(e.removed,{element:a.cloneNode()}),a.textContent=d)),dt(z.afterSanitizeElements,a,null),!1):(tt(a),!0)},Qi=function(a,d,h){if(Be[d]||Wi&&(d==="id"||d==="name")&&(h in n||h in So))return!1;let v=M[d]||At.attributeCheck instanceof Function&&At.attributeCheck(d,a);if(!(xn&&!Be[d]&&_(bo,d))){if(!(Mi&&_(vo,d))){if(!v||Be[d]){if(!(Zi(a)&&(L.tagNameCheck instanceof RegExp&&_(L.tagNameCheck,a)||L.tagNameCheck instanceof Function&&L.tagNameCheck(a))&&(L.attributeNameCheck instanceof RegExp&&_(L.attributeNameCheck,d)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(d,a))||d==="is"&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&_(L.tagNameCheck,h)||L.tagNameCheck instanceof Function&&L.tagNameCheck(h))))return!1}else if(!kn[d]){if(!_(Fi,Jt(h,Oi,""))){if((d!=="src"&&d!=="xlink:href"&&d!=="href"||a==="script"||pr(h,"data:")!==0||!zi[a])&&!(_i&&!_(Ao,Jt(h,Oi,"")))){if(h)return!1}}}}}return!0},Ro=p({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Zi=function(a){return!Ro[xe(a)]&&_(yo,a)},tr=function(a){dt(z.beforeSanitizeAttributes,a,null);let{attributes:d}=a;if(!d||In(a))return;let h={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:M,forceKeepAttr:void 0},v=d.length;for(;v--;){let y=d[v],{name:f,namespaceURI:W,value:X}=y,C=P(f),et=X,N=f==="value"?et:Xo(et);if(h.attrName=C,h.attrValue=N,h.keepAttr=!0,h.forceKeepAttr=void 0,dt(z.uponSanitizeAttribute,a,h),N=h.attrValue,!Ui||C!=="id"&&C!=="name"||pr(N,Vi)===0||(Dt(f,a),N=Vi+N),de&&_(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,N)){Dt(f,a);continue}if(C==="attributename"&&mr(N,"href")){Dt(f,a);continue}if(h.forceKeepAttr)continue;if(!h.keepAttr){Dt(f,a);continue}if(!ji&&_(/\/>/i,N)){Dt(f,a);continue}Tt&&be([Oe,Fe,Pe],(nr=>{N=Jt(N,nr," ")}));let qt=P(a.nodeName);if(Qi(qt,C,N)){if(k&&typeof st=="object"&&typeof st.getAttributeType=="function"&&!W)switch(st.getAttributeType(qt,C)){case"TrustedHTML":N=k.createHTML(N);break;case"TrustedScriptURL":N=k.createScriptURL(N)}if(N!==et)try{W?a.setAttributeNS(W,f,N):a.setAttribute(f,N),In(a)?tt(a):gr(e.removed)}catch{Dt(f,a)}}else Dt(f,a)}dt(z.afterSanitizeAttributes,a,null)},er=function(a){let d=null,h=Yi(a);for(dt(z.beforeSanitizeShadowDOM,a,null);d=h.nextNode();)dt(z.uponSanitizeShadowNode,d,null),Xi(d),tr(d),d.content instanceof s&&er(d.content);dt(z.afterSanitizeShadowDOM,a,null)};return e.sanitize=function(a){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=null,v=null,y=null,f=null;if(Tn=!a,Tn&&(a=""),typeof a!="string"&&!On(a)&&typeof(a=(function(C){switch(typeof C){case"string":return C;case"number":return Qo(C);case"boolean":return Zo(C);case"bigint":return fr?fr(C):"0";case"symbol":return br?br(C):"Symbol()";case"undefined":default:return Ve(C);case"function":case"object":{if(C===null)return Ve(C);let et=C,N=Kt(et,"toString");if(typeof N=="function"){let qt=N(et);return typeof qt=="string"?qt:Ve(qt)}return Ve(C)}}})(a))!="string")throw ze("dirty is not a string, aborting");if(!e.isSupported)return a;if(Cn||Nn(d),e.removed=[],typeof a=="string"&&(ge=!1),ge){let C=a.nodeName;if(typeof C=="string"){let et=P(C);if(!B[et]||he[et])throw ze("root node is forbidden and cannot be sanitized in-place")}}else if(a instanceof c)h=$i(""),v=h.ownerDocument.importNode(a,!0),v.nodeType===hs&&v.nodeName==="BODY"||v.nodeName==="HTML"?h=v:h.appendChild(v);else{if(!Ut&&!Tt&&!wt&&a.indexOf("<")===-1)return k&&_e?k.createHTML(a):a;if(h=$i(a),!h)return Ut?null:_e?ht:""}h&&En&&tt(h.firstChild);let W=Yi(ge?a:h);for(;y=W.nextNode();)Xi(y),tr(y),y.content instanceof s&&er(y.content);if(ge)return a;if(Ut){if(Tt){h.normalize();let C=h.innerHTML;be([Oe,Fe,Pe],(et=>{C=Jt(C,et," ")})),h.innerHTML=C}if(Me)for(f=mo.call(h.ownerDocument);h.firstChild;)f.appendChild(h.firstChild);else f=h;return(M.shadowroot||M.shadowrootmode)&&(f=fo.call(r,f,!0)),f}let X=wt?h.outerHTML:h.innerHTML;return wt&&B["!doctype"]&&h.ownerDocument&&h.ownerDocument.doctype&&h.ownerDocument.doctype.name&&_(eo,h.ownerDocument.doctype.name)&&(X="
`+X),Tt&&be([Oe,Fe,Pe],(C=>{X=Jt(X,C," ")})),k&&_e?k.createHTML(X):X},e.setConfig=function(){Nn(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),Cn=!0},e.clearConfig=function(){Ht=null,Cn=!1},e.isValidAttribute=function(a,d,h){Ht||Nn({});let v=P(a),y=P(d);return Qi(v,y,h)},e.addHook=function(a,d){typeof d=="function"&&ve(z[a],d)},e.removeHook=function(a,d){if(d!==void 0){let h=$o(z[a],d);return h===-1?void 0:Yo(z[a],h,1)[0]}return gr(z[a])},e.removeHooks=function(a){z[a]=[]},e.removeAllHooks=function(){z={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},e})();te.addHook("uponSanitizeAttribute",(function(i,t){if(t.attrName==="data-trix-serialized-attributes")return void(t.keepAttr=!1);/^data-trix-/.test(t.attrName)&&(t.forceKeepAttr=!0)}));var bs="style href src width height language class".split(" "),vs="javascript:".split(" "),As="script iframe form noscript".split(" "),ee=class extends w{static setHTML(t,e,n){let r=new this(e,n).sanitize(),o=r.getHTML?r.getHTML():r.outerHTML;t.innerHTML=o}static sanitize(t,e){let n=new this(t,e);return n.sanitize(),n}constructor(t){let{allowedAttributes:e,forbiddenProtocols:n,forbiddenElements:r,purifyOptions:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(...arguments),this.allowedAttributes=e||bs,this.forbiddenProtocols=n||vs,this.forbiddenElements=r||As,this.purifyOptions=o||{},this.body=ys(t)}sanitize(){this.sanitizeElements(),this.normalizeListElementNesting();let t=Object.assign({},Wr,this.purifyOptions);return te.setConfig(t),this.body=te.sanitize(this.body),this.body}getHTML(){return this.body.innerHTML}getBody(){return this.body}sanitizeElements(){let t=Xe(this.body),e=[];for(;t.nextNode();){let n=t.currentNode;switch(n.nodeType){case Node.ELEMENT_NODE:this.elementIsRemovable(n)?e.push(n):this.sanitizeElement(n);break;case Node.COMMENT_NODE:e.push(n)}}return e.forEach((n=>St(n))),this.body}sanitizeElement(t){return t.hasAttribute("href")&&this.forbiddenProtocols.includes(t.protocol)&&t.removeAttribute("href"),Array.from(t.attributes).forEach((e=>{let{name:n}=e;this.allowedAttributes.includes(n)||n.indexOf("data-trix")===0||t.removeAttribute(n)})),t}normalizeListElementNesting(){return Array.from(this.body.querySelectorAll("ul,ol")).forEach((t=>{let e=t.previousElementSibling;e&&q(e)==="li"&&e.appendChild(t)})),this.body}elementIsRemovable(t){if(t?.nodeType===Node.ELEMENT_NODE)return this.elementIsForbidden(t)||this.elementIsntSerializable(t)}elementIsForbidden(t){return this.forbiddenElements.includes(q(t))}elementIsntSerializable(t){return t.getAttribute("data-trix-serialize")==="false"&&!Ot(t)}},ys=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";i=i.replace(/<\/html[^>]*>[^]*$/i,"