// trix@2.1.16 downloaded from https://ga.jspm.io/npm:trix@2.1.16/dist/trix.esm.min.js
var t="2.1.16";const e="[data-trix-attachment]",i={preview:{presentation:"gallery",caption:{name:!0,size:!0}},file:{caption:{size:!0}}},n={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(t){return r(t.parentNode)===n[this.listAttribute].tagName}},numberList:{tagName:"ol",parse:!1},number:{tagName:"li",listAttribute:"numberList",group:!1,nestable:!0,test(t){return r(t.parentNode)===n[this.listAttribute].tagName}},attachmentGallery:{tagName:"div",exclusive:!0,terminal:!0,parse:!1,group:!1}},r=t=>{var e;return null==t||null===(e=t.tagName)||void 0===e?void 0:e.toLowerCase()},o=navigator.userAgent.match(/android\s([0-9]+.*Chrome)/i),s=o&&parseInt(o[1]);var a={composesExistingText:/Android.*Chrome/.test(navigator.userAgent),recentAndroid:s&&s>12,samsungAndroid:s&&navigator.userAgent.match(/Android.*SM-/),forcesObjectResizing:/Trident.*rv:11/.test(navigator.userAgent),supportsInputEvents:"undefined"!=typeof InputEvent&&["data","getTargetRanges","inputType"].every((t=>t in InputEvent.prototype))},l={ADD_ATTR:["language"],SAFE_FOR_XML:!1,RETURN_DOM:!0},c={attachFiles:"Attach Files",bold:"Bold",bullets:"Bullets",byte:"Byte",bytes:"Bytes",captionPlaceholder:"Add a caption…",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…",GB:"GB",KB:"KB",MB:"MB",PB:"PB",TB:"TB"};const u=[c.bytes,c.KB,c.MB,c.GB,c.TB,c.PB];var h={prefix:"IEC",precision:2,formatter(t){switch(t){case 0:return"0 ".concat(c.bytes);case 1:return"1 ".concat(c.byte);default:let e;"SI"===this.prefix?e=1e3:"IEC"===this.prefix&&(e=1024);const i=Math.floor(Math.log(t)/Math.log(e)),n=(t/Math.pow(e,i)).toFixed(this.precision).replace(/0*$/,"").replace(/\.$/,"");return"".concat(n," ").concat(u[i])}}};const d="\ufeff",g=" ",m=function(t){for(const e in t){const i=t[e];this[e]=i}return this},p=document.documentElement,f=p.matches,b=function(t){let{onElement:e,matchingSelector:i,withCallback:n,inPhase:r,preventDefault:o,times:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=e||p,l=i,c="capturing"===r,u=function(t){null!=s&&0==--s&&u.destroy();const e=x(t.target,{matchingSelector:l});null!=e&&(null==n||n.call(e,t,e),o&&t.preventDefault())};return u.destroy=()=>a.removeEventListener(t,u,c),a.addEventListener(t,u,c),u},v=function(t){let{bubbles:e,cancelable:i,attributes:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=!1!==e,i=!1!==i;const r=document.createEvent("Events");return r.initEvent(t,e,i),null!=n&&m.call(r,n),r},A=function(t){let{onElement:e,bubbles:i,cancelable:n,attributes:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=null!=e?e:p,s=v(t,{bubbles:i,cancelable:n,attributes:r});return o.dispatchEvent(s)},y=function(t,e){if(1===(null==t?void 0:t.nodeType))return f.call(t,e)},x=function(t){let{matchingSelector:e,untilNode:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.parentNode;if(null!=t){if(null==e)return t;if(t.closest&&null==i)return t.closest(e);for(;t&&t!==i;){if(y(t,e))return t;t=t.parentNode}}},C=t=>document.activeElement!==t&&E(t,document.activeElement),E=function(t,e){if(t&&e)for(;e;){if(e===t)return!0;e=e.parentNode}},S=function(t){var e;if(null===(e=t)||void 0===e||!e.parentNode)return;let i=0;for(t=t.previousSibling;t;)i++,t=t.previousSibling;return i},k=t=>{var e;return null==t||null===(e=t.parentNode)||void 0===e?void 0:e.removeChild(t)},R=function(t){let{onlyNodesOfType:e,usingFilter:i,expandEntityReferences:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(()=>{switch(e){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(t,r,null!=i?i:null,!0===n)},T=t=>{var e;return null==t||null===(e=t.tagName)||void 0===e?void 0:e.toLowerCase()},w=function(t){let e,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"==typeof t?(n=t,t=n.tagName):n={attributes:n};const r=document.createElement(t);if(null!=n.editable&&(null==n.attributes&&(n.attributes={}),n.attributes.contenteditable=n.editable),n.attributes)for(e in n.attributes)i=n.attributes[e],r.setAttribute(e,i);if(n.style)for(e in n.style)i=n.style[e],r.style[e]=i;if(n.data)for(e in n.data)i=n.data[e],r.dataset[e]=i;return n.className&&n.className.split(" ").forEach((t=>{r.classList.add(t)})),n.textContent&&(r.textContent=n.textContent),n.childNodes&&[].concat(n.childNodes).forEach((t=>{r.appendChild(t)})),r};let L;const D=function(){if(null!=L)return L;L=[];for(const t in n){const e=n[t];e.tagName&&L.push(e.tagName)}return L},N=t=>O(null==t?void 0:t.firstChild),I=function(t){let{strict:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{strict:!0};return e?O(t):O(t)||!O(t.firstChild)&&function(t){return D().includes(T(t))&&!D().includes(T(t.firstChild))}(t)},O=t=>F(t)&&"block"===(null==t?void 0:t.data),F=t=>(null==t?void 0:t.nodeType)===Node.COMMENT_NODE,P=function(t){let{name:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t)return _(t)?t.data===d?!e||t.parentNode.dataset.trixCursorTarget===e:void 0:P(t.firstChild)},M=t=>y(t,e),B=t=>_(t)&&""===(null==t?void 0:t.data),_=t=>(null==t?void 0:t.nodeType)===Node.TEXT_NODE,j={level2Enabled:!0,getLevel(){return this.level2Enabled&&a.supportsInputEvents?2:0},pickFiles(t){const e=w("input",{type:"file",multiple:!0,hidden:!0,id:this.fileInputId});e.addEventListener("change",(()=>{t(e.files),k(e)})),k(document.getElementById(this.fileInputId)),document.body.appendChild(e),e.click()}};var W={removeBlankTableCells:!1,tableCellSeparator:" | ",tableRowSeparator:"\n"},U={bold:{tagName:"strong",inheritable:!0,parser(t){const e=window.getComputedStyle(t);return"bold"===e.fontWeight||e.fontWeight>=600}},italic:{tagName:"em",inheritable:!0,parser:t=>"italic"===window.getComputedStyle(t).fontStyle},href:{groupTagName:"a",parser(t){const i="a:not(".concat(e,")"),n=t.closest(i);if(n)return n.getAttribute("href")}},strike:{tagName:"del",inheritable:!0},frozen:{style:{backgroundColor:"highlight"}}},z={getDefaultHTML:()=>'
\n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n \n\n \n\n \n \n \n \n
\n\n ')};const V={interval:5e3};var q=Object.freeze({__proto__:null,attachments:i,blockAttributes:n,browser:a,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:l,fileSize:h,input:j,keyNames:{8:"backspace",9:"tab",13:"return",27:"escape",37:"left",39:"right",46:"delete",68:"d",72:"h",79:"o"},lang:c,parser:W,textAttributes:U,toolbar:z,undo:V});class H{static proxyMethod(t){const{name:e,toMethod:i,toProperty:n,optional:r}=J(t);this.prototype[e]=function(){let t,o;var s,a;i?o=r?null===(s=this[i])||void 0===s?void 0:s.call(this):this[i]():n&&(o=this[n]);return r?(t=null===(a=o)||void 0===a?void 0:a[e],t?K.call(t,o,arguments):void 0):(t=o[e],K.call(t,o,arguments))}}}const J=function(t){const e=t.match(G);if(!e)throw new Error("can't parse @proxyMethod expression: ".concat(t));const i={name:e[4]};return null!=e[2]?i.toMethod=e[1]:i.toProperty=e[1],null!=e[3]&&(i.optional=!0),i},{apply:K}=Function.prototype,G=new RegExp("^(.+?)(\\(\\))?(\\?)?\\.(.+?)$");var X,$,Y;class Z extends H{static box(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t instanceof this?t:this.fromUCS2String(null==t?void 0:t.toString())}static fromUCS2String(t){return new this(t,it(t))}static fromCodepoints(t){return new this(nt(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 nt(this.codepoints.slice(0,Math.max(0,t))).length}offsetFromUCS2Offset(t){return it(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}}const Q=1===(null===(X=Array.from)||void 0===X?void 0:X.call(Array,"👼").length),tt=null!=(null===($=" ".codePointAt)||void 0===$?void 0:$.call(" ",0)),et=" 👼"===(null===(Y=String.fromCodePoint)||void 0===Y?void 0:Y.call(String,32,128124));let it,nt;it=Q&&tt?t=>Array.from(t).map((t=>t.codePointAt(0))):function(t){const e=[];let i=0;const{length:n}=t;for(;iString.fromCodePoint(...Array.from(t||[])):function(t){return(()=>{const e=[];return Array.from(t).forEach((t=>{let i="";t>65535&&(t-=65536,i+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e.push(i+String.fromCharCode(t))})),e})().join("")};let rt=0;class ot extends H{static fromJSONString(t){return this.fromJSON(JSON.parse(t))}constructor(){super(...arguments),this.id=++rt}hasSameConstructorAs(t){return this.constructor===(null==t?void 0:t.constructor)}isEqualTo(t){return this===t}inspect(){const t=[],e=this.contentsForInspection()||{};for(const i in e){const n=e[i];t.push("".concat(i,"=").concat(n))}return"#<".concat(this.constructor.name,":").concat(this.id).concat(t.length?" ".concat(t.join(", ")):"",">")}contentsForInspection(){}toJSONString(){return JSON.stringify(this)}toUTF16String(){return Z.box(this)}getCacheKey(){return this.id.toString()}}const st=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length!==e.length)return!1;for(let i=0;i1?i-1:0),r=1;r(ut||(ut=vt().concat(ft())),ut),pt=t=>n[t],ft=()=>(ht||(ht=Object.keys(n)),ht),bt=t=>U[t],vt=()=>(dt||(dt=Object.keys(U)),dt),At=function(t,e){yt(t).textContent=e.replace(/%t/g,t)},yt=function(t){const e=document.createElement("style");e.setAttribute("type","text/css"),e.setAttribute("data-tag-name",t.toLowerCase());const i=xt();return i&&e.setAttribute("nonce",i),document.head.insertBefore(e,document.head.firstChild),e},xt=function(){const t=Ct("trix-csp-nonce")||Ct("csp-nonce");if(t){const{nonce:e,content:i}=t;return""==e?i:e}},Ct=t=>document.head.querySelector("meta[name=".concat(t,"]")),Et={"application/x-trix-feature-detection":"test"},St=function(t){const e=t.getData("text/plain"),i=t.getData("text/html");if(!e||!i)return null==e?void 0:e.length;{const{body:t}=(new DOMParser).parseFromString(i,"text/html");if(t.textContent===e)return!t.querySelector("*")}},kt=/Mac|^iP/.test(navigator.platform)?t=>t.metaKey:t=>t.ctrlKey;const Rt=t=>setTimeout(t,1),Tt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e={};for(const i in t){const n=t[i];e[i]=n}return e},wt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const i in t)if(t[i]!==e[i])return!1;return!0},Lt=function(t){if(null!=t)return Array.isArray(t)||(t=[t,t]),[It(t[0]),It(null!=t[1]?t[1]:t[0])]},Dt=function(t){if(null==t)return;const[e,i]=Lt(t);return Ot(e,i)},Nt=function(t,e){if(null==t||null==e)return;const[i,n]=Lt(t),[r,o]=Lt(e);return Ot(i,r)&&Ot(n,o)},It=function(t){return"number"==typeof t?t:Tt(t)},Ot=function(t,e){return"number"==typeof t?t===e:wt(t,e)};class Ft extends H{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)),0===this.selectionManagers.length)return this.stop()}notifySelectionManagersOfSelectionChange(){return this.selectionManagers.map((t=>t.selectionDidChange()))}update(){this.notifySelectionManagersOfSelectionChange()}reset(){this.update()}}const Pt=new Ft,Mt=function(){const t=window.getSelection();if(t.rangeCount>0)return t},Bt=function(){var t;const e=null===(t=Mt())||void 0===t?void 0:t.getRangeAt(0);if(e&&!jt(e))return e},_t=function(t){const e=window.getSelection();return e.removeAllRanges(),e.addRange(t),Pt.update()},jt=t=>Wt(t.startContainer)||Wt(t.endContainer),Wt=t=>!Object.getPrototypeOf(t),Ut=t=>t.replace(new RegExp("".concat(d),"g"),"").replace(new RegExp("".concat(g),"g")," "),Ht=new RegExp("[^\\S".concat(g,"]")),zt=t=>t.replace(new RegExp("".concat(Ht.source),"g")," ").replace(/\ {2,}/g," "),Vt=function(t,e){if(t.isEqualTo(e))return["",""];const i=qt(t,e),{length:n}=i.utf16String;let r;if(n){const{offset:o}=i,s=t.codepoints.slice(0,o).concat(t.codepoints.slice(o+n));r=qt(e,Z.fromCodepoints(s))}else r=qt(e,t);return[i.utf16String.toString(),r.utf16String.toString()]},qt=function(t,e){let i=0,n=t.length,r=e.length;for(;ii+1&&t.charAt(n-1).isEqualTo(e.charAt(r-1));)n--,r--;return{utf16String:t.slice(i,n),offset:i}};class Jt extends ot{static fromCommonAttributesOfObjects(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t.length)return new this;let e=$t(t[0]),i=e.getKeys();return t.slice(1).forEach((t=>{i=e.getKeysCommonToHash($t(t)),e=e.slice(i)})),e}static box(t){return $t(t)}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(...arguments),this.values=Xt(t)}add(t,e){return this.merge(Kt(t,e))}remove(t){return new Jt(Xt(this.values,t))}get(t){return this.values[t]}has(t){return t in this.values}merge(t){return new Jt(Gt(this.values,Yt(t)))}slice(t){const e={};return Array.from(t).forEach((t=>{this.has(t)&&(e[t]=this.values[t])})),new Jt(e)}getKeys(){return Object.keys(this.values)}getKeysCommonToHash(t){return t=$t(t),this.getKeys().filter((e=>this.values[e]===t.values[e]))}isEqualTo(t){return st(this.toArray(),$t(t).toArray())}isEmpty(){return 0===this.getKeys().length}toArray(){if(!this.array){const t=[];for(const e in this.values){const i=this.values[e];t.push(t.push(e,i))}this.array=t.slice(0)}return this.array}toObject(){return Xt(this.values)}toJSON(){return this.toObject()}contentsForInspection(){return{values:JSON.stringify(this.values)}}}const Kt=function(t,e){const i={};return i[t]=e,i},Gt=function(t,e){const i=Xt(t);for(const t in e){const n=e[t];i[t]=n}return i},Xt=function(t,e){const i={};return Object.keys(t).sort().forEach((n=>{n!==e&&(i[n]=t[n])})),i},$t=function(t){return t instanceof Jt?t:new Jt(t)},Yt=function(t){return t instanceof Jt?t.values:t};class Zt{static groupObjects(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{depth:i,asTree:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n&&null==i&&(i=0);const r=[];return Array.from(e).forEach((e=>{var o;if(t){var s,a,l;if(null!==(s=e.canBeGrouped)&&void 0!==s&&s.call(e,i)&&null!==(a=(l=t[t.length-1]).canBeGroupedWith)&&void 0!==a&&a.call(l,e,i))return void t.push(e);r.push(new this(t,{depth:i,asTree:n})),t=null}null!==(o=e.canBeGrouped)&&void 0!==o&&o.call(e,i)?t=[e]:r.push(e)})),t&&r.push(new this(t,{depth:i,asTree:n})),r}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{depth:e,asTree:i}=arguments.length>1?arguments[1]:void 0;this.objects=t,i&&(this.depth=e,this.objects=this.constructor.groupObjects(this.objects,{asTree:i,depth:this.depth+1}))}getObjects(){return this.objects}getDepth(){return this.depth}getCacheKey(){const t=["objectGroup"];return Array.from(this.getObjects()).forEach((e=>{t.push(e.getCacheKey())})),t.join("/")}}class Qt extends H{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super(...arguments),this.objects={},Array.from(t).forEach((t=>{const e=JSON.stringify(t);null==this.objects[e]&&(this.objects[e]=t)}))}find(t){const e=JSON.stringify(t);return this.objects[e]}}class te{constructor(t){this.reset(t)}add(t){const e=ee(t);this.elements[e]=t}remove(t){const e=ee(t),i=this.elements[e];if(i)return delete this.elements[e],i}reset(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.elements={},Array.from(t).forEach((t=>{this.add(t)})),t}}const ee=t=>t.dataset.trixStoreKey;class ie extends H{isPerforming(){return!0===this.performing}hasPerformed(){return!0===this.performed}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(((i,n)=>{this.succeeded=i,this.performing=!1,this.performed=!0,this.succeeded?t(n):e(n)})))))),this.promise}perform(t){return t(!1)}release(){var t,e;null===(t=this.promise)||void 0===t||null===(e=t.cancel)||void 0===e||e.call(t),this.promise=null,this.performing=null,this.performed=null,this.succeeded=null}}ie.proxyMethod("getPromise().then"),ie.proxyMethod("getPromise().catch");class ne extends H{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?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=[],null===(t=this.parentView)||void 0===t?void 0:t.invalidate()}invalidateViewForObject(t){var e;return null===(e=this.findViewForObject(t))||void 0===e?void 0:e.invalidate()}findOrCreateCachedChildView(t,e,i){let n=this.getCachedViewForObject(e);return n?this.recordChildView(n):(n=this.createChildView(...arguments),this.cacheViewForObject(n,e)),n}createChildView(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof Zt&&(i.viewClass=t,t=re);const n=new t(e,i);return this.recordChildView(n)}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){const e=null==t?void 0:t.id;if(e)return this.rootView.element.querySelector("[data-trix-id='".concat(e,"']"))}findViewForObject(t){for(const 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!1!==this.shouldCacheViews}enableViewCaching(){this.shouldCacheViews=!0}disableViewCaching(){this.shouldCacheViews=!1}getCachedViewForObject(t){var e;return null===(e=this.getViewCache())||void 0===e?void 0:e[t.getCacheKey()]}cacheViewForObject(t,e){const i=this.getViewCache();i&&(i[e.getCacheKey()]=t)}garbageCollectCachedViews(){const t=this.getViewCache();if(t){const e=this.getAllChildViews().concat(this).map((t=>t.object.getCacheKey()));for(const i in t)e.includes(i)||delete t[i]}}}class re extends ne{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(){const t=this.createContainerElement();return this.getChildViews().forEach((e=>{Array.from(e.getNodes()).forEach((e=>{t.appendChild(e)}))})),[t]}createContainerElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.objectGroup.getDepth();return this.getChildViews()[0].createContainerElement(t)}}
/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */const{entries:oe,setPrototypeOf:se,isFrozen:ae,getPrototypeOf:le,getOwnPropertyDescriptor:ce}=Object;let{freeze:ue,seal:he,create:de}=Object,{apply:ge,construct:me}="undefined"!=typeof Reflect&&Reflect;ue||(ue=function(t){return t}),he||(he=function(t){return t}),ge||(ge=function(t,e){for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r1?e-1:0),n=1;n1?i-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:ye;se&&se(t,null);let n=e.length;for(;n--;){let r=e[n];if("string"==typeof r){const t=i(r);t!==r&&(ae(e)||(e[n]=t),r=t)}t[r]=!0}return t}function Ie(t){for(let e=0;e/gm),Ge=he(/\$\{[\w\W]*/gm),Xe=he(/^data-[\-\w.\u00B7-\uFFFF]+$/),$e=he(/^aria-[\-\w]+$/),Ye=he(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ze=he(/^(?:\w+script|data):/i),Qe=he(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ti=he(/^html$/i),ei=he(/^[a-z][.\w]*(-[.\w]+)+$/i);var ii=Object.freeze({__proto__:null,ARIA_ATTR:$e,ATTR_WHITESPACE:Qe,CUSTOM_ELEMENT:ei,DATA_ATTR:Xe,DOCTYPE_NAME:ti,ERB_EXPR:Ke,IS_ALLOWED_URI:Ye,IS_SCRIPT_OR_DATA:Ze,MUSTACHE_EXPR:Je,TMPLIT_EXPR:Ge});const ni=1,ri=3,oi=7,si=8,ai=9,li=function(){return"undefined"==typeof window?null:window};var ci=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:li();const i=e=>t(e);if(i.version="3.2.7",i.removed=[],!e||!e.document||e.document.nodeType!==ai||!e.Element)return i.isSupported=!1,i;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:l,Element:c,NodeFilter:u,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:g,trustedTypes:m}=e,p=c.prototype,f=Fe(p,"cloneNode"),b=Fe(p,"remove"),v=Fe(p,"nextSibling"),A=Fe(p,"childNodes"),y=Fe(p,"parentNode");if("function"==typeof a){const t=n.createElement("template");t.content&&t.content.ownerDocument&&(n=t.content.ownerDocument)}let x,C="";const{implementation:E,createNodeIterator:S,createDocumentFragment:k,getElementsByTagName:R}=n,{importNode:T}=r;let w={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof oe&&"function"==typeof y&&E&&void 0!==E.createHTMLDocument;const{MUSTACHE_EXPR:L,ERB_EXPR:D,TMPLIT_EXPR:N,DATA_ATTR:I,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:M}=ii;let{IS_ALLOWED_URI:B}=ii,_=null;const j=Ne({},[...Pe,...Me,...Be,...je,...Ue]);let W=null;const U=Ne({},[...He,...ze,...Ve,...qe]);let z=Object.seal(de(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}})),V=null,q=null,J=!0,K=!0,G=!1,X=!0,$=!1,Y=!0,Q=!1,tt=!1,et=!1,it=!1,nt=!1,rt=!1,st=!0,at=!1,lt=!0,ct=!1,ut={},ht=null;const dt=Ne({},["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"]);let gt=null;const mt=Ne({},["audio","video","img","source","image","track"]);let pt=null;const ft=Ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bt="http://www.w3.org/1998/Math/MathML",vt="http://www.w3.org/2000/svg",At="http://www.w3.org/1999/xhtml";let yt=At,xt=!1,Ct=null;const Et=Ne({},[bt,vt,At],xe);let St=Ne({},["mi","mo","mn","ms","mtext"]),kt=Ne({},["annotation-xml"]);const Rt=Ne({},["title","style","font","a","script"]);let Tt=null;const wt=["application/xhtml+xml","text/html"];let Lt=null,Dt=null;const Nt=n.createElement("form"),It=function(t){return t instanceof RegExp||t instanceof Function},Ot=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Dt||Dt!==t){if(t&&"object"==typeof t||(t={}),t=Oe(t),Tt=-1===wt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Lt="application/xhtml+xml"===Tt?xe:ye,_=Re(t,"ALLOWED_TAGS")?Ne({},t.ALLOWED_TAGS,Lt):j,W=Re(t,"ALLOWED_ATTR")?Ne({},t.ALLOWED_ATTR,Lt):U,Ct=Re(t,"ALLOWED_NAMESPACES")?Ne({},t.ALLOWED_NAMESPACES,xe):Et,pt=Re(t,"ADD_URI_SAFE_ATTR")?Ne(Oe(ft),t.ADD_URI_SAFE_ATTR,Lt):ft,gt=Re(t,"ADD_DATA_URI_TAGS")?Ne(Oe(mt),t.ADD_DATA_URI_TAGS,Lt):mt,ht=Re(t,"FORBID_CONTENTS")?Ne({},t.FORBID_CONTENTS,Lt):dt,V=Re(t,"FORBID_TAGS")?Ne({},t.FORBID_TAGS,Lt):Oe({}),q=Re(t,"FORBID_ATTR")?Ne({},t.FORBID_ATTR,Lt):Oe({}),ut=!!Re(t,"USE_PROFILES")&&t.USE_PROFILES,J=!1!==t.ALLOW_ARIA_ATTR,K=!1!==t.ALLOW_DATA_ATTR,G=t.ALLOW_UNKNOWN_PROTOCOLS||!1,X=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,$=t.SAFE_FOR_TEMPLATES||!1,Y=!1!==t.SAFE_FOR_XML,Q=t.WHOLE_DOCUMENT||!1,it=t.RETURN_DOM||!1,nt=t.RETURN_DOM_FRAGMENT||!1,rt=t.RETURN_TRUSTED_TYPE||!1,et=t.FORCE_BODY||!1,st=!1!==t.SANITIZE_DOM,at=t.SANITIZE_NAMED_PROPS||!1,lt=!1!==t.KEEP_CONTENT,ct=t.IN_PLACE||!1,B=t.ALLOWED_URI_REGEXP||Ye,yt=t.NAMESPACE||At,St=t.MATHML_TEXT_INTEGRATION_POINTS||St,kt=t.HTML_INTEGRATION_POINTS||kt,z=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&It(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&It(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(z.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),$&&(K=!1),nt&&(it=!0),ut&&(_=Ne({},Ue),W=[],!0===ut.html&&(Ne(_,Pe),Ne(W,He)),!0===ut.svg&&(Ne(_,Me),Ne(W,ze),Ne(W,qe)),!0===ut.svgFilters&&(Ne(_,Be),Ne(W,ze),Ne(W,qe)),!0===ut.mathMl&&(Ne(_,je),Ne(W,Ve),Ne(W,qe))),t.ADD_TAGS&&(_===j&&(_=Oe(_)),Ne(_,t.ADD_TAGS,Lt)),t.ADD_ATTR&&(W===U&&(W=Oe(W)),Ne(W,t.ADD_ATTR,Lt)),t.ADD_URI_SAFE_ATTR&&Ne(pt,t.ADD_URI_SAFE_ATTR,Lt),t.FORBID_CONTENTS&&(ht===dt&&(ht=Oe(ht)),Ne(ht,t.FORBID_CONTENTS,Lt)),lt&&(_["#text"]=!0),Q&&Ne(_,["html","head","body"]),_.table&&(Ne(_,["tbody"]),delete V.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw we('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw we('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=t.TRUSTED_TYPES_POLICY,C=x.createHTML("")}else void 0===x&&(x=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(i=e.getAttribute(n));const r="dompurify"+(i?"#"+i:"");try{return t.createPolicy(r,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(m,o)),null!==x&&"string"==typeof C&&(C=x.createHTML(""));ue&&ue(t),Dt=t}},Pt=Ne({},[...Me,...Be,..._e]),Mt=Ne({},[...je,...We]),Bt=function(t){ve(i.removed,{element:t});try{y(t).removeChild(t)}catch(e){b(t)}},_t=function(t,e){try{ve(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){ve(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(it||nt)try{Bt(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},jt=function(t){let e=null,i=null;if(et)t=""+t;else{const e=Ce(t,/^[\r\n\t ]+/);i=e&&e[0]}"application/xhtml+xml"===Tt&&yt===At&&(t=''+t+"");const r=x?x.createHTML(t):t;if(yt===At)try{e=(new g).parseFromString(r,Tt)}catch(t){}if(!e||!e.documentElement){e=E.createDocument(yt,"template",null);try{e.documentElement.innerHTML=xt?C:r}catch(t){}}const o=e.body||e.documentElement;return t&&i&&o.insertBefore(n.createTextNode(i),o.childNodes[0]||null),yt===At?R.call(e,Q?"html":"body")[0]:Q?e.documentElement:o},Wt=function(t){return S.call(t.ownerDocument||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ut=function(t){return t instanceof d&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof h)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Ht=function(t){return"function"==typeof l&&t instanceof l};function zt(t,e,n){pe(t,(t=>{t.call(i,e,n,Dt)}))}const Vt=function(t){let e=null;if(zt(w.beforeSanitizeElements,t,null),Ut(t))return Bt(t),!0;const n=Lt(t.nodeName);if(zt(w.uponSanitizeElement,t,{tagName:n,allowedTags:_}),Y&&t.hasChildNodes()&&!Ht(t.firstElementChild)&&Te(/<[/\w!]/g,t.innerHTML)&&Te(/<[/\w!]/g,t.textContent))return Bt(t),!0;if(t.nodeType===oi)return Bt(t),!0;if(Y&&t.nodeType===si&&Te(/<[/\w]/g,t.data))return Bt(t),!0;if(!_[n]||V[n]){if(!V[n]&&Kt(n)){if(z.tagNameCheck instanceof RegExp&&Te(z.tagNameCheck,n))return!1;if(z.tagNameCheck instanceof Function&&z.tagNameCheck(n))return!1}if(lt&&!ht[n]){const e=y(t)||t.parentNode,i=A(t)||t.childNodes;if(i&&e)for(let n=i.length-1;n>=0;--n){const r=f(i[n],!0);r.__removalCount=(t.__removalCount||0)+1,e.insertBefore(r,v(t))}}return Bt(t),!0}return t instanceof c&&!function(t){let e=y(t);e&&e.tagName||(e={namespaceURI:yt,tagName:"template"});const i=ye(t.tagName),n=ye(e.tagName);return!!Ct[t.namespaceURI]&&(t.namespaceURI===vt?e.namespaceURI===At?"svg"===i:e.namespaceURI===bt?"svg"===i&&("annotation-xml"===n||St[n]):Boolean(Pt[i]):t.namespaceURI===bt?e.namespaceURI===At?"math"===i:e.namespaceURI===vt?"math"===i&&kt[n]:Boolean(Mt[i]):t.namespaceURI===At?!(e.namespaceURI===vt&&!kt[n])&&!(e.namespaceURI===bt&&!St[n])&&!Mt[i]&&(Rt[i]||!Pt[i]):!("application/xhtml+xml"!==Tt||!Ct[t.namespaceURI]))}(t)?(Bt(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!Te(/<\/no(script|embed|frames)/i,t.innerHTML)?($&&t.nodeType===ri&&(e=t.textContent,pe([L,D,N],(t=>{e=Ee(e,t," ")})),t.textContent!==e&&(ve(i.removed,{element:t.cloneNode()}),t.textContent=e)),zt(w.afterSanitizeElements,t,null),!1):(Bt(t),!0)},qt=function(t,e,i){if(st&&("id"===e||"name"===e)&&(i in n||i in Nt))return!1;if(K&&!q[e]&&Te(I,e));else if(J&&Te(O,e));else if(!W[e]||q[e]){if(!(Kt(t)&&(z.tagNameCheck instanceof RegExp&&Te(z.tagNameCheck,t)||z.tagNameCheck instanceof Function&&z.tagNameCheck(t))&&(z.attributeNameCheck instanceof RegExp&&Te(z.attributeNameCheck,e)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(e,t))||"is"===e&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&Te(z.tagNameCheck,i)||z.tagNameCheck instanceof Function&&z.tagNameCheck(i))))return!1}else if(pt[e]);else if(Te(B,Ee(i,P,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==Se(i,"data:")||!gt[t])if(G&&!Te(F,Ee(i,P,"")));else if(i)return!1;return!0},Kt=function(t){return"annotation-xml"!==t&&Ce(t,M)},Gt=function(t){zt(w.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||Ut(t))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let r=e.length;for(;r--;){const o=e[r],{name:s,namespaceURI:a,value:l}=o,c=Lt(s),u=l;let h="value"===s?u:ke(u);if(n.attrName=c,n.attrValue=h,n.keepAttr=!0,n.forceKeepAttr=void 0,zt(w.uponSanitizeAttribute,t,n),h=n.attrValue,!at||"id"!==c&&"name"!==c||(_t(s,t),h="user-content-"+h),Y&&Te(/((--!?|])>)|<\/(style|title|textarea)/i,h)){_t(s,t);continue}if("attributename"===c&&Ce(h,"href")){_t(s,t);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){_t(s,t);continue}if(!X&&Te(/\/>/i,h)){_t(s,t);continue}$&&pe([L,D,N],(t=>{h=Ee(h,t," ")}));const d=Lt(t.nodeName);if(qt(d,c,h)){if(x&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(a);else switch(m.getAttributeType(d,c)){case"TrustedHTML":h=x.createHTML(h);break;case"TrustedScriptURL":h=x.createScriptURL(h)}if(h!==u)try{a?t.setAttributeNS(a,s,h):t.setAttribute(s,h),Ut(t)?Bt(t):be(i.removed)}catch(e){_t(s,t)}}else _t(s,t)}zt(w.afterSanitizeAttributes,t,null)},Xt=function t(e){let i=null;const n=Wt(e);for(zt(w.beforeSanitizeShadowDOM,e,null);i=n.nextNode();)zt(w.uponSanitizeShadowNode,i,null),Vt(i),Gt(i),i.content instanceof s&&t(i.content);zt(w.afterSanitizeShadowDOM,e,null)};return i.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,a=null,c=null;if(xt=!t,xt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Ht(t)){if("function"!=typeof t.toString)throw we("toString is not a function");if("string"!=typeof(t=t.toString()))throw we("dirty is not a string, aborting")}if(!i.isSupported)return t;if(tt||Ot(e),i.removed=[],"string"==typeof t&&(ct=!1),ct){if(t.nodeName){const e=Lt(t.nodeName);if(!_[e]||V[e])throw we("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)n=jt("\x3c!----\x3e"),o=n.ownerDocument.importNode(t,!0),o.nodeType===ni&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!it&&!$&&!Q&&-1===t.indexOf("<"))return x&&rt?x.createHTML(t):t;if(n=jt(t),!n)return it?null:rt?C:""}n&&et&&Bt(n.firstChild);const u=Wt(ct?t:n);for(;a=u.nextNode();)Vt(a),Gt(a),a.content instanceof s&&Xt(a.content);if(ct)return t;if(it){if(nt)for(c=k.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return(W.shadowroot||W.shadowrootmode)&&(c=T.call(r,c,!0)),c}let h=Q?n.outerHTML:n.innerHTML;return Q&&_["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&Te(ti,n.ownerDocument.doctype.name)&&(h="\n"+h),$&&pe([L,D,N],(t=>{h=Ee(h,t," ")})),x&&rt?x.createHTML(h):h},i.setConfig=function(){Ot(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),tt=!0},i.clearConfig=function(){Dt=null,tt=!1},i.isValidAttribute=function(t,e,i){Dt||Ot({});const n=Lt(t),r=Lt(e);return qt(n,r,i)},i.addHook=function(t,e){"function"==typeof e&&ve(w[t],e)},i.removeHook=function(t,e){if(void 0!==e){const i=fe(w[t],e);return-1===i?void 0:Ae(w[t],i,1)[0]}return be(w[t])},i.removeHooks=function(t){w[t]=[]},i.removeAllHooks=function(){w={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}();ci.addHook("uponSanitizeAttribute",(function(t,e){/^data-trix-/.test(e.attrName)&&(e.forceKeepAttr=!0)}));const ui="style href src width height language class".split(" "),hi="javascript:".split(" "),di="script iframe form noscript".split(" ");class gi extends H{static setHTML(t,e,i){const n=new this(e,i).sanitize(),r=n.getHTML?n.getHTML():n.outerHTML;t.innerHTML=r}static sanitize(t,e){const i=new this(t,e);return i.sanitize(),i}constructor(t){let{allowedAttributes:e,forbiddenProtocols:i,forbiddenElements:n,purifyOptions:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(...arguments),this.allowedAttributes=e||ui,this.forbiddenProtocols=i||hi,this.forbiddenElements=n||di,this.purifyOptions=r||{},this.body=mi(t)}sanitize(){this.sanitizeElements(),this.normalizeListElementNesting();const t=Object.assign({},l,this.purifyOptions);return ci.setConfig(t),this.body=ci.sanitize(this.body),this.body}getHTML(){return this.body.innerHTML}getBody(){return this.body}sanitizeElements(){const t=R(this.body),e=[];for(;t.nextNode();){const i=t.currentNode;switch(i.nodeType){case Node.ELEMENT_NODE:this.elementIsRemovable(i)?e.push(i):this.sanitizeElement(i);break;case Node.COMMENT_NODE:e.push(i)}}return e.forEach((t=>k(t))),this.body}sanitizeElement(t){return t.hasAttribute("href")&&this.forbiddenProtocols.includes(t.protocol)&&t.removeAttribute("href"),Array.from(t.attributes).forEach((e=>{let{name:i}=e;this.allowedAttributes.includes(i)||0===i.indexOf("data-trix")||t.removeAttribute(i)})),t}normalizeListElementNesting(){return Array.from(this.body.querySelectorAll("ul,ol")).forEach((t=>{const e=t.previousElementSibling;e&&"li"===T(e)&&e.appendChild(t)})),this.body}elementIsRemovable(t){if((null==t?void 0:t.nodeType)===Node.ELEMENT_NODE)return this.elementIsForbidden(t)||this.elementIsntSerializable(t)}elementIsForbidden(t){return this.forbiddenElements.includes(T(t))}elementIsntSerializable(t){return"false"===t.getAttribute("data-trix-serialize")&&!M(t)}}const mi=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";t=t.replace(/<\/html[^>]*>[^]*$/i,"