/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.99 * * Copyright 2011-2022 Cesium Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Columbus View (Pat. Pend.) * * Portions licensed separately. * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details. */ var Cesium=(()=>{var Pye=Object.create;var rP=Object.defineProperty;var Iye=Object.getOwnPropertyDescriptor;var Oye=Object.getOwnPropertyNames;var Bye=Object.getPrototypeOf,Rye=Object.prototype.hasOwnProperty;var bp=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var fa=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Mye=(e,t)=>{for(var n in t)rP(e,n,{get:t[n],enumerable:!0})},rY=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Oye(t))!Rye.call(e,o)&&o!==n&&rP(e,o,{get:()=>t[o],enumerable:!(i=Iye(t,o))||i.enumerable});return e};var so=(e,t,n)=>(n=e!=null?Pye(Bye(e)):{},rY(t||!e||!e.__esModule?rP(n,"default",{value:e,enumerable:!0}):n,e)),Lye=e=>rY(rP({},"__esModule",{value:!0}),e);var sP=fa((apt,aY)=>{var Jh=function(e){e==null&&(e=new Date().getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)};Jh.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};Jh.prototype.init_by_array=function(e,t){var n,i,o;for(this.init_seed(19650218),n=1,i=0,o=this.N>t?this.N:t;o;o--){var r=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((r&4294901760)>>>16)*1664525<<16)+(r&65535)*1664525)+e[i]+i,this.mt[n]>>>=0,n++,i++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1),i>=t&&(i=0)}for(o=this.N-1;o;o--){var r=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((r&4294901760)>>>16)*1566083941<<16)+(r&65535)*1566083941)-n,this.mt[n]>>>=0,n++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1)}this.mt[0]=2147483648};Jh.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_seed(5489),n=0;n>>1^t[e&1];for(;n>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};Jh.prototype.random_int31=function(){return this.random_int()>>>1};Jh.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};Jh.prototype.random=function(){return this.random_int()*(1/4294967296)};Jh.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};Jh.prototype.random_long=function(){var e=this.random_int()>>>5,t=this.random_int()>>>6;return(e*67108864+t)*(1/9007199254740992)};aY.exports=Jh});var DX=fa((qA,YA)=>{/*! https://mths.be/punycode v1.4.0 by @mathias */(function(e){var t=typeof qA=="object"&&qA&&!qA.nodeType&&qA,n=typeof YA=="object"&&YA&&!YA.nodeType&&YA,i=typeof global=="object"&&global;(i.global===i||i.window===i||i.self===i)&&(e=i);var o,r=2147483647,s=36,a=1,c=26,l=38,f=700,d=72,p=128,g="-",m=/^xn--/,A=/[^\x20-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=s-a,b=Math.floor,S=String.fromCharCode,D;function v(V){throw new RangeError(x[V])}function O(V,H){for(var k=V.length,Y=[];k--;)Y[k]=H(V[k]);return Y}function R(V,H){var k=V.split("@"),Y="";k.length>1&&(Y=k[0]+"@",V=k[1]),V=V.replace(C,".");var q=V.split("."),X=O(q,H).join(".");return Y+X}function M(V){for(var H=[],k=0,Y=V.length,q,X;k=55296&&q<=56319&&k65535&&(H-=65536,k+=S(H>>>10&1023|55296),H=56320|H&1023),k+=S(H),k}).join("")}function _(V){return V-48<10?V-22:V-65<26?V-65:V-97<26?V-97:s}function E(V,H){return V+22+75*(V<26)-((H!=0)<<5)}function w(V,H,k){var Y=0;for(V=k?b(V/f):V>>1,V+=b(V/H);V>T*c>>1;Y+=s)V=b(V/T);return b(Y+(T+1)*V/(V+l))}function P(V){var H=[],k=V.length,Y,q=0,X=p,W=d,J,Z,he,pe,oe,ue,_e,Ee,Ie;for(J=V.lastIndexOf(g),J<0&&(J=0),Z=0;Z=128&&v("not-basic"),H.push(V.charCodeAt(Z));for(he=J>0?J+1:0;he=k&&v("invalid-input"),_e=_(V.charCodeAt(he++)),(_e>=s||_e>b((r-q)/oe))&&v("overflow"),q+=_e*oe,Ee=ue<=W?a:ue>=W+c?c:ue-W,!(_eb(r/Ie)&&v("overflow"),oe*=Ie;Y=H.length+1,W=w(q-pe,Y,pe==0),b(q/Y)>r-X&&v("overflow"),X+=b(q/Y),q%=Y,H.splice(q++,0,X)}return L(H)}function B(V){var H,k,Y,q,X,W,J,Z,he,pe,oe,ue=[],_e,Ee,Ie,Fe;for(V=M(V),_e=V.length,H=p,k=0,X=d,W=0;W<_e;++W)oe=V[W],oe<128&&ue.push(S(oe));for(Y=q=ue.length,q&&ue.push(g);Y<_e;){for(J=r,W=0;W<_e;++W)oe=V[W],oe>=H&&oeb((r-k)/Ee)&&v("overflow"),k+=(J-H)*Ee,H=J,W=0;W<_e;++W)if(oe=V[W],oer&&v("overflow"),oe==H){for(Z=k,he=s;pe=he<=X?a:he>=X+c?c:he-X,!(Z{/*! * URI.js - Mutating URLs * IPv6 Support * * Version: 1.19.11 * * Author: Rodney Rehm * Web: http://medialize.github.io/URI.js/ * * Licensed under * MIT License http://www.opensource.org/licenses/mit-license * */(function(e,t){"use strict";typeof FP=="object"&&FP.exports?FP.exports=t():typeof define=="function"&&define.amd?define(t):e.IPv6=t(e)})(vX,function(e){"use strict";var t=e&&e.IPv6;function n(o){var r=o.toLowerCase(),s=r.split(":"),a=s.length,c=8;s[0]===""&&s[1]===""&&s[2]===""?(s.shift(),s.shift()):s[0]===""&&s[1]===""?s.shift():s[a-1]===""&&s[a-2]===""&&s.pop(),a=s.length,s[a-1].indexOf(".")!==-1&&(c=7);var l;for(l=0;l1);p++)f.splice(0,1);s[d]=f.join("")}var g=-1,m=0,A=0,C=-1,x=!1;for(d=0;dm&&(g=C,m=A)):s[d]==="0"&&(x=!0,C=d,A=1);A>m&&(g=C,m=A),m>1&&s.splice(g,m,""),a=s.length;var T="";for(s[0]===""&&(T=":"),d=0;d{/*! * URI.js - Mutating URLs * Second Level Domain (SLD) Support * * Version: 1.19.11 * * Author: Rodney Rehm * Web: http://medialize.github.io/URI.js/ * * Licensed under * MIT License http://www.opensource.org/licenses/mit-license * */(function(e,t){"use strict";typeof NP=="object"&&NP.exports?NP.exports=t():typeof define=="function"&&define.amd?define(t):e.SecondLevelDomains=t(e)})(IX,function(e){"use strict";var t=e&&e.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(i){var o=i.lastIndexOf(".");if(o<=0||o>=i.length-1)return!1;var r=i.lastIndexOf(".",o-1);if(r<=0||r>=o-1)return!1;var s=n.list[i.slice(o+1)];return s?s.indexOf(" "+i.slice(r+1,o)+" ")>=0:!1},is:function(i){var o=i.lastIndexOf(".");if(o<=0||o>=i.length-1)return!1;var r=i.lastIndexOf(".",o-1);if(r>=0)return!1;var s=n.list[i.slice(o+1)];return s?s.indexOf(" "+i.slice(0,o)+" ")>=0:!1},get:function(i){var o=i.lastIndexOf(".");if(o<=0||o>=i.length-1)return null;var r=i.lastIndexOf(".",o-1);if(r<=0||r>=o-1)return null;var s=n.list[i.slice(o+1)];return!s||s.indexOf(" "+i.slice(r+1,o)+" ")<0?null:i.slice(r+1)},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n})});var ll=fa((BX,kP)=>{/*! * URI.js - Mutating URLs * * Version: 1.19.11 * * Author: Rodney Rehm * Web: http://medialize.github.io/URI.js/ * * Licensed under * MIT License http://www.opensource.org/licenses/mit-license * */(function(e,t){"use strict";typeof kP=="object"&&kP.exports?kP.exports=t(DX(),PX(),OX()):typeof define=="function"&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],t):e.URI=t(e.punycode,e.IPv6,e.SecondLevelDomains,e)})(BX,function(e,t,n,i){"use strict";var o=i&&i.URI;function r(E,w){var P=arguments.length>=1,B=arguments.length>=2;if(!(this instanceof r))return P?B?new r(E,w):new r(E):new r;if(E===void 0){if(P)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?E=location.href+"":E=""}if(E===null&&P)throw new TypeError("null is not a valid argument for URI");return this.href(E),w!==void 0?this.absoluteTo(w):this}function s(E){return/^[0-9]+$/.test(E)}r.version="1.19.11";var a=r.prototype,c=Object.prototype.hasOwnProperty;function l(E){return E.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function f(E){return E===void 0?"Undefined":String(Object.prototype.toString.call(E)).slice(8,-1)}function d(E){return f(E)==="Array"}function p(E,w){var P={},B,N;if(f(w)==="RegExp")P=null;else if(d(w))for(B=0,N=w.length;B]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,r.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},r.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,r.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,r.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},r.hostProtocols=["http","https"],r.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,r.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},r.getDomAttribute=function(E){if(!(!E||!E.nodeName)){var w=E.nodeName.toLowerCase();if(!(w==="input"&&E.type!=="image"))return r.domAttributes[w]}};function C(E){return escape(E)}function x(E){return encodeURIComponent(E).replace(/[!'()*]/g,C).replace(/\*/g,"%2A")}r.encode=x,r.decode=decodeURIComponent,r.iso8859=function(){r.encode=escape,r.decode=unescape},r.unicode=function(){r.encode=x,r.decode=decodeURIComponent},r.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},r.encodeQuery=function(E,w){var P=r.encode(E+"");return w===void 0&&(w=r.escapeQuerySpace),w?P.replace(/%20/g,"+"):P},r.decodeQuery=function(E,w){E+="",w===void 0&&(w=r.escapeQuerySpace);try{return r.decode(w?E.replace(/\+/g,"%20"):E)}catch{return E}};var T={encode:"encode",decode:"decode"},b,S=function(E,w){return function(P){try{return r[w](P+"").replace(r.characters[E][w].expression,function(B){return r.characters[E][w].map[B]})}catch{return P}}};for(b in T)r[b+"PathSegment"]=S("pathname",T[b]),r[b+"UrnPathSegment"]=S("urnpath",T[b]);var D=function(E,w,P){return function(B){var N;P?N=function(k){return r[w](r[P](k))}:N=r[w];for(var U=(B+"").split(E),V=0,H=U.length;V-1&&(w.fragment=E.substring(P+1)||null,E=E.substring(0,P)),P=E.indexOf("?"),P>-1&&(w.query=E.substring(P+1)||null,E=E.substring(0,P)),E=E.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),E=E.replace(/^[/\\]{2,}/i,"//"),E.substring(0,2)==="//"?(w.protocol=null,E=E.substring(2),E=r.parseAuthority(E,w)):(P=E.indexOf(":"),P>-1&&(w.protocol=E.substring(0,P)||null,w.protocol&&!w.protocol.match(r.protocol_expression)?w.protocol=void 0:E.substring(P+1,P+3).replace(/\\/g,"/")==="//"?(E=E.substring(P+3),E=r.parseAuthority(E,w)):(E=E.substring(P+1),w.urn=!0))),w.path=E,w},r.parseHost=function(E,w){E||(E=""),E=E.replace(/\\/g,"/");var P=E.indexOf("/"),B,N;if(P===-1&&(P=E.length),E.charAt(0)==="[")B=E.indexOf("]"),w.hostname=E.substring(1,B)||null,w.port=E.substring(B+2,P)||null,w.port==="/"&&(w.port=null);else{var U=E.indexOf(":"),V=E.indexOf("/"),H=E.indexOf(":",U+1);H!==-1&&(V===-1||H-1?N:E.length-1),V;return U>-1&&(N===-1||U-1?W=W.slice(0,J)+W.slice(J).replace(U,""):W=W.replace(U,""),!(W.length<=k[0].length)&&!(P.ignore&&P.ignore.test(W))){X=Y+W.length;var pe=w(W,Y,X,E);if(pe===void 0){B.lastIndex=X;continue}pe=String(pe),E=E.slice(0,Y)+pe+E.slice(X),B.lastIndex=Y+pe.length}}return B.lastIndex=0,E},r.ensureValidHostname=function(E,w){var P=!!E,B=!!w,N=!1;if(B&&(N=g(r.hostProtocols,w)),N&&!P)throw new TypeError("Hostname cannot be empty, if protocol is "+w);if(E&&E.match(r.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+E+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(E).match(r.invalid_hostname_characters))throw new TypeError('Hostname "'+E+'" contains characters other than [A-Z0-9.-:_]')}},r.ensureValidPort=function(E){if(!!E){var w=Number(E);if(!(s(w)&&w>0&&w<65536))throw new TypeError('Port "'+E+'" is not a valid port')}},r.noConflict=function(E){if(E){var w={URI:this.noConflict()};return i.URITemplate&&typeof i.URITemplate.noConflict=="function"&&(w.URITemplate=i.URITemplate.noConflict()),i.IPv6&&typeof i.IPv6.noConflict=="function"&&(w.IPv6=i.IPv6.noConflict()),i.SecondLevelDomains&&typeof i.SecondLevelDomains.noConflict=="function"&&(w.SecondLevelDomains=i.SecondLevelDomains.noConflict()),w}else i.URI===this&&(i.URI=o);return this},a.build=function(E){return E===!0?this._deferred_build=!0:(E===void 0||this._deferred_build)&&(this._string=r.build(this._parts),this._deferred_build=!1),this},a.clone=function(){return new r(this)},a.valueOf=a.toString=function(){return this.build(!1)._string};function v(E){return function(w,P){return w===void 0?this._parts[E]||"":(this._parts[E]=w||null,this.build(!P),this)}}function O(E,w){return function(P,B){return P===void 0?this._parts[E]||"":(P!==null&&(P=P+"",P.charAt(0)===w&&(P=P.substring(1))),this._parts[E]=P,this.build(!B),this)}}a.protocol=v("protocol"),a.username=v("username"),a.password=v("password"),a.hostname=v("hostname"),a.port=v("port"),a.query=O("query","?"),a.fragment=O("fragment","#"),a.search=function(E,w){var P=this.query(E,w);return typeof P=="string"&&P.length?"?"+P:P},a.hash=function(E,w){var P=this.fragment(E,w);return typeof P=="string"&&P.length?"#"+P:P},a.pathname=function(E,w){if(E===void 0||E===!0){var P=this._parts.path||(this._parts.hostname?"/":"");return E?(this._parts.urn?r.decodeUrnPath:r.decodePath)(P):P}else return this._parts.urn?this._parts.path=E?r.recodeUrnPath(E):"":this._parts.path=E?r.recodePath(E):"/",this.build(!w),this},a.path=a.pathname,a.href=function(E,w){var P;if(E===void 0)return this.toString();this._string="",this._parts=r._parts();var B=E instanceof r,N=typeof E=="object"&&(E.hostname||E.path||E.pathname);if(E.nodeName){var U=r.getDomAttribute(E);E=E[U]||"",N=!1}if(!B&&N&&E.pathname!==void 0&&(E=E.toString()),typeof E=="string"||E instanceof String)this._parts=r.parse(String(E),this._parts);else if(B||N){var V=B?E._parts:E;for(P in V)P!=="query"&&c.call(this._parts,P)&&(this._parts[P]=V[P]);V.query&&this.query(V.query,!1)}else throw new TypeError("invalid input");return this.build(!w),this},a.is=function(E){var w=!1,P=!1,B=!1,N=!1,U=!1,V=!1,H=!1,k=!this._parts.urn;switch(this._parts.hostname&&(k=!1,P=r.ip4_expression.test(this._parts.hostname),B=r.ip6_expression.test(this._parts.hostname),w=P||B,N=!w,U=N&&n&&n.has(this._parts.hostname),V=N&&r.idn_expression.test(this._parts.hostname),H=N&&r.punycode_expression.test(this._parts.hostname)),E.toLowerCase()){case"relative":return k;case"absolute":return!k;case"domain":case"name":return N;case"sld":return U;case"ip":return w;case"ip4":case"ipv4":case"inet4":return P;case"ip6":case"ipv6":case"inet6":return B;case"idn":return V;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return H}return null};var R=a.protocol,M=a.port,L=a.hostname;a.protocol=function(E,w){if(E&&(E=E.replace(/:(\/\/)?$/,""),!E.match(r.protocol_expression)))throw new TypeError('Protocol "'+E+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return R.call(this,E,w)},a.scheme=a.protocol,a.port=function(E,w){return this._parts.urn?E===void 0?"":this:(E!==void 0&&(E===0&&(E=null),E&&(E+="",E.charAt(0)===":"&&(E=E.substring(1)),r.ensureValidPort(E))),M.call(this,E,w))},a.hostname=function(E,w){if(this._parts.urn)return E===void 0?"":this;if(E!==void 0){var P={preventInvalidHostname:this._parts.preventInvalidHostname},B=r.parseHost(E,P);if(B!=="/")throw new TypeError('Hostname "'+E+'" contains characters other than [A-Z0-9.-]');E=P.hostname,this._parts.preventInvalidHostname&&r.ensureValidHostname(E,this._parts.protocol)}return L.call(this,E,w)},a.origin=function(E,w){if(this._parts.urn)return E===void 0?"":this;if(E===void 0){var P=this.protocol(),B=this.authority();return B?(P?P+"://":"")+this.authority():""}else{var N=r(E);return this.protocol(N.protocol()).authority(N.authority()).build(!w),this}},a.host=function(E,w){if(this._parts.urn)return E===void 0?"":this;if(E===void 0)return this._parts.hostname?r.buildHost(this._parts):"";var P=r.parseHost(E,this._parts);if(P!=="/")throw new TypeError('Hostname "'+E+'" contains characters other than [A-Z0-9.-]');return this.build(!w),this},a.authority=function(E,w){if(this._parts.urn)return E===void 0?"":this;if(E===void 0)return this._parts.hostname?r.buildAuthority(this._parts):"";var P=r.parseAuthority(E,this._parts);if(P!=="/")throw new TypeError('Hostname "'+E+'" contains characters other than [A-Z0-9.-]');return this.build(!w),this},a.userinfo=function(E,w){if(this._parts.urn)return E===void 0?"":this;if(E===void 0){var P=r.buildUserinfo(this._parts);return P&&P.substring(0,P.length-1)}else return E[E.length-1]!=="@"&&(E+="@"),r.parseUserinfo(E,this._parts),this.build(!w),this},a.resource=function(E,w){var P;return E===void 0?this.path()+this.search()+this.hash():(P=r.parse(E),this._parts.path=P.path,this._parts.query=P.query,this._parts.fragment=P.fragment,this.build(!w),this)},a.subdomain=function(E,w){if(this._parts.urn)return E===void 0?"":this;if(E===void 0){if(!this._parts.hostname||this.is("IP"))return"";var P=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,P)||""}else{var B=this._parts.hostname.length-this.domain().length,N=this._parts.hostname.substring(0,B),U=new RegExp("^"+l(N));if(E&&E.charAt(E.length-1)!=="."&&(E+="."),E.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return E&&r.ensureValidHostname(E,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(U,E),this.build(!w),this}},a.domain=function(E,w){if(this._parts.urn)return E===void 0?"":this;if(typeof E=="boolean"&&(w=E,E=void 0),E===void 0){if(!this._parts.hostname||this.is("IP"))return"";var P=this._parts.hostname.match(/\./g);if(P&&P.length<2)return this._parts.hostname;var B=this._parts.hostname.length-this.tld(w).length-1;return B=this._parts.hostname.lastIndexOf(".",B-1)+1,this._parts.hostname.substring(B)||""}else{if(!E)throw new TypeError("cannot set domain empty");if(E.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(r.ensureValidHostname(E,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=E;else{var N=new RegExp(l(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(N,E)}return this.build(!w),this}},a.tld=function(E,w){if(this._parts.urn)return E===void 0?"":this;if(typeof E=="boolean"&&(w=E,E=void 0),E===void 0){if(!this._parts.hostname||this.is("IP"))return"";var P=this._parts.hostname.lastIndexOf("."),B=this._parts.hostname.substring(P+1);return w!==!0&&n&&n.list[B.toLowerCase()]&&n.get(this._parts.hostname)||B}else{var N;if(E)if(E.match(/[^a-zA-Z0-9-]/))if(n&&n.is(E))N=new RegExp(l(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(N,E);else throw new TypeError('TLD "'+E+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");N=new RegExp(l(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(N,E)}else throw new TypeError("cannot set TLD empty");return this.build(!w),this}},a.directory=function(E,w){if(this._parts.urn)return E===void 0?"":this;if(E===void 0||E===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var P=this._parts.path.length-this.filename().length-1,B=this._parts.path.substring(0,P)||(this._parts.hostname?"/":"");return E?r.decodePath(B):B}else{var N=this._parts.path.length-this.filename().length,U=this._parts.path.substring(0,N),V=new RegExp("^"+l(U));return this.is("relative")||(E||(E="/"),E.charAt(0)!=="/"&&(E="/"+E)),E&&E.charAt(E.length-1)!=="/"&&(E+="/"),E=r.recodePath(E),this._parts.path=this._parts.path.replace(V,E),this.build(!w),this}},a.filename=function(E,w){if(this._parts.urn)return E===void 0?"":this;if(typeof E!="string"){if(!this._parts.path||this._parts.path==="/")return"";var P=this._parts.path.lastIndexOf("/"),B=this._parts.path.substring(P+1);return E?r.decodePathSegment(B):B}else{var N=!1;E.charAt(0)==="/"&&(E=E.substring(1)),E.match(/\.?\//)&&(N=!0);var U=new RegExp(l(this.filename())+"$");return E=r.recodePath(E),this._parts.path=this._parts.path.replace(U,E),N?this.normalizePath(w):this.build(!w),this}},a.suffix=function(E,w){if(this._parts.urn)return E===void 0?"":this;if(E===void 0||E===!0){if(!this._parts.path||this._parts.path==="/")return"";var P=this.filename(),B=P.lastIndexOf("."),N,U;return B===-1?"":(N=P.substring(B+1),U=/^[a-z0-9%]+$/i.test(N)?N:"",E?r.decodePathSegment(U):U)}else{E.charAt(0)==="."&&(E=E.substring(1));var V=this.suffix(),H;if(V)E?H=new RegExp(l(V)+"$"):H=new RegExp(l("."+V)+"$");else{if(!E)return this;this._parts.path+="."+r.recodePath(E)}return H&&(E=r.recodePath(E),this._parts.path=this._parts.path.replace(H,E)),this.build(!w),this}},a.segment=function(E,w,P){var B=this._parts.urn?":":"/",N=this.path(),U=N.substring(0,1)==="/",V=N.split(B);if(E!==void 0&&typeof E!="number"&&(P=w,w=E,E=void 0),E!==void 0&&typeof E!="number")throw new Error('Bad segment "'+E+'", must be 0-based integer');if(U&&V.shift(),E<0&&(E=Math.max(V.length+E,0)),w===void 0)return E===void 0?V:V[E];if(E===null||V[E]===void 0)if(d(w)){V=[];for(var H=0,k=w.length;H{/*! @license DOMPurify 2.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.0/LICENSE */(function(e,t){typeof eG=="object"&&typeof tG<"u"?tG.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.DOMPurify=t())})(eG,function(){"use strict";function e(Ne){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},e(Ne)}function t(Ne,nt){return t=Object.setPrototypeOf||function(je,ut){return je.__proto__=ut,je},t(Ne,nt)}function n(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function i(Ne,nt,Ce){return n()?i=Reflect.construct:i=function(ut,Wn,Zn){var Fi=[null];Fi.push.apply(Fi,Wn);var po=Function.bind.apply(ut,Fi),bo=new po;return Zn&&t(bo,Zn.prototype),bo},i.apply(null,arguments)}function o(Ne){return r(Ne)||s(Ne)||a(Ne)||l()}function r(Ne){if(Array.isArray(Ne))return c(Ne)}function s(Ne){if(typeof Symbol<"u"&&Ne[Symbol.iterator]!=null||Ne["@@iterator"]!=null)return Array.from(Ne)}function a(Ne,nt){if(!!Ne){if(typeof Ne=="string")return c(Ne,nt);var Ce=Object.prototype.toString.call(Ne).slice(8,-1);if(Ce==="Object"&&Ne.constructor&&(Ce=Ne.constructor.name),Ce==="Map"||Ce==="Set")return Array.from(Ne);if(Ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ce))return c(Ne,nt)}}function c(Ne,nt){(nt==null||nt>Ne.length)&&(nt=Ne.length);for(var Ce=0,je=new Array(nt);Ce1?Ce-1:0),ut=1;ut/gm),Ie=C(/^data-[\-\w.\u00B7-\uFFFF]/),Fe=C(/^aria-[\-\w]+$/),We=C(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Lt=C(/^(?:\w+script|data):/i),Gt=C(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),cn=C(/^html$/i),_t=function(){return typeof window>"u"?null:window},Pn=function(nt,Ce){if(e(nt)!=="object"||typeof nt.createPolicy!="function")return null;var je=null,ut="data-tt-policy-suffix";Ce.currentScript&&Ce.currentScript.hasAttribute(ut)&&(je=Ce.currentScript.getAttribute(ut));var Wn="dompurify"+(je?"#"+je:"");try{return nt.createPolicy(Wn,{createHTML:function(Fi){return Fi},createScriptURL:function(Fi){return Fi}})}catch{return console.warn("TrustedTypes policy "+Wn+" could not be created."),null}};function Jn(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_t(),nt=function(Se){return Jn(Se)};if(nt.version="2.4.0",nt.removed=[],!Ne||!Ne.document||Ne.document.nodeType!==9)return nt.isSupported=!1,nt;var Ce=Ne.document,je=Ne.document,ut=Ne.DocumentFragment,Wn=Ne.HTMLTemplateElement,Zn=Ne.Node,Fi=Ne.Element,po=Ne.NodeFilter,bo=Ne.NamedNodeMap,Ii=bo===void 0?Ne.NamedNodeMap||Ne.MozNamedAttrMap:bo,Le=Ne.HTMLFormElement,et=Ne.DOMParser,Ke=Ne.trustedTypes,qe=Fi.prototype,mt=H(qe,"cloneNode"),Ft=H(qe,"nextSibling"),Cn=H(qe,"childNodes"),ro=H(qe,"parentNode");if(typeof Wn=="function"){var So=je.createElement("template");So.content&&So.content.ownerDocument&&(je=So.content.ownerDocument)}var Ao=Pn(Ke,Ce),Gs=Ao?Ao.createHTML(""):"",nr=je,Oi=nr.implementation,Wr=nr.createNodeIterator,jr=nr.createDocumentFragment,Ql=nr.getElementsByTagName,Ni=Ce.importNode,Er={};try{Er=V(je).documentMode?je.documentMode:{}}catch{}var Oo={};nt.isSupported=typeof ro=="function"&&Oi&&typeof Oi.createHTMLDocument<"u"&&Er!==9;var ir=_e,jh=Ee,br=Ie,$l=Fe,eu=Lt,PA=Gt,qr=We,Bo=null,IA=U({},[].concat(o(k),o(Y),o(q),o(W),o(Z))),rs=null,qh=U({},[].concat(o(he),o(pe),o(oe),o(ue))),ki=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}})),Yh=null,nb=null,vz=!0,Pz=!0,Hq=!1,OA=!1,r0=!1,Iz=!1,Oz=!1,BA=!1,eP=!1,tP=!1,Gq=!0,Wq=!1,xye="user-content-",Bz=!0,ib=!1,RA={},MA=null,jq=U({},["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"]),qq=null,Yq=U({},["audio","video","img","source","image","track"]),Rz=null,Xq=U({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Mz="http://www.w3.org/1998/Math/MathML",Lz="http://www.w3.org/2000/svg",Ep="http://www.w3.org/1999/xhtml",nP=Ep,Fz=!1,LA,Tye=["application/xhtml+xml","text/html"],Eye="text/html",gs,FA=null,bye=je.createElement("form"),Kq=function(Se){return Se instanceof RegExp||Se instanceof Function},Nz=function(Se){FA&&FA===Se||((!Se||e(Se)!=="object")&&(Se={}),Se=V(Se),LA=Tye.indexOf(Se.PARSER_MEDIA_TYPE)===-1?LA=Eye:LA=Se.PARSER_MEDIA_TYPE,gs=LA==="application/xhtml+xml"?function(gt){return gt}:R,Bo="ALLOWED_TAGS"in Se?U({},Se.ALLOWED_TAGS,gs):IA,rs="ALLOWED_ATTR"in Se?U({},Se.ALLOWED_ATTR,gs):qh,Rz="ADD_URI_SAFE_ATTR"in Se?U(V(Xq),Se.ADD_URI_SAFE_ATTR,gs):Xq,qq="ADD_DATA_URI_TAGS"in Se?U(V(Yq),Se.ADD_DATA_URI_TAGS,gs):Yq,MA="FORBID_CONTENTS"in Se?U({},Se.FORBID_CONTENTS,gs):jq,Yh="FORBID_TAGS"in Se?U({},Se.FORBID_TAGS,gs):{},nb="FORBID_ATTR"in Se?U({},Se.FORBID_ATTR,gs):{},RA="USE_PROFILES"in Se?Se.USE_PROFILES:!1,vz=Se.ALLOW_ARIA_ATTR!==!1,Pz=Se.ALLOW_DATA_ATTR!==!1,Hq=Se.ALLOW_UNKNOWN_PROTOCOLS||!1,OA=Se.SAFE_FOR_TEMPLATES||!1,r0=Se.WHOLE_DOCUMENT||!1,BA=Se.RETURN_DOM||!1,eP=Se.RETURN_DOM_FRAGMENT||!1,tP=Se.RETURN_TRUSTED_TYPE||!1,Oz=Se.FORCE_BODY||!1,Gq=Se.SANITIZE_DOM!==!1,Wq=Se.SANITIZE_NAMED_PROPS||!1,Bz=Se.KEEP_CONTENT!==!1,ib=Se.IN_PLACE||!1,qr=Se.ALLOWED_URI_REGEXP||qr,nP=Se.NAMESPACE||Ep,Se.CUSTOM_ELEMENT_HANDLING&&Kq(Se.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ki.tagNameCheck=Se.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Se.CUSTOM_ELEMENT_HANDLING&&Kq(Se.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ki.attributeNameCheck=Se.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Se.CUSTOM_ELEMENT_HANDLING&&typeof Se.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ki.allowCustomizedBuiltInElements=Se.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),OA&&(Pz=!1),eP&&(BA=!0),RA&&(Bo=U({},o(Z)),rs=[],RA.html===!0&&(U(Bo,k),U(rs,he)),RA.svg===!0&&(U(Bo,Y),U(rs,pe),U(rs,ue)),RA.svgFilters===!0&&(U(Bo,q),U(rs,pe),U(rs,ue)),RA.mathMl===!0&&(U(Bo,W),U(rs,oe),U(rs,ue))),Se.ADD_TAGS&&(Bo===IA&&(Bo=V(Bo)),U(Bo,Se.ADD_TAGS,gs)),Se.ADD_ATTR&&(rs===qh&&(rs=V(rs)),U(rs,Se.ADD_ATTR,gs)),Se.ADD_URI_SAFE_ATTR&&U(Rz,Se.ADD_URI_SAFE_ATTR,gs),Se.FORBID_CONTENTS&&(MA===jq&&(MA=V(MA)),U(MA,Se.FORBID_CONTENTS,gs)),Bz&&(Bo["#text"]=!0),r0&&U(Bo,["html","head","body"]),Bo.table&&(U(Bo,["tbody"]),delete Yh.tbody),A&&A(Se),FA=Se)},Jq=U({},["mi","mo","mn","ms","mtext"]),Zq=U({},["foreignobject","desc","title","annotation-xml"]),Sye=U({},["title","style","font","a","script"]),iP=U({},Y);U(iP,q),U(iP,X);var kz=U({},W);U(kz,J);var wye=function(Se){var gt=ro(Se);(!gt||!gt.tagName)&&(gt={namespaceURI:Ep,tagName:"template"});var Wt=R(Se.tagName),$i=R(gt.tagName);return Se.namespaceURI===Lz?gt.namespaceURI===Ep?Wt==="svg":gt.namespaceURI===Mz?Wt==="svg"&&($i==="annotation-xml"||Jq[$i]):Boolean(iP[Wt]):Se.namespaceURI===Mz?gt.namespaceURI===Ep?Wt==="math":gt.namespaceURI===Lz?Wt==="math"&&Zq[$i]:Boolean(kz[Wt]):Se.namespaceURI===Ep?gt.namespaceURI===Lz&&!Zq[$i]||gt.namespaceURI===Mz&&!Jq[$i]?!1:!kz[Wt]&&(Sye[Wt]||!iP[Wt]):!1},Xh=function(Se){O(nt.removed,{element:Se});try{Se.parentNode.removeChild(Se)}catch{try{Se.outerHTML=Gs}catch{Se.remove()}}},Vz=function(Se,gt){try{O(nt.removed,{attribute:gt.getAttributeNode(Se),from:gt})}catch{O(nt.removed,{attribute:null,from:gt})}if(gt.removeAttribute(Se),Se==="is"&&!rs[Se])if(BA||eP)try{Xh(gt)}catch{}else try{gt.setAttribute(Se,"")}catch{}},Qq=function(Se){var gt,Wt;if(Oz)Se=""+Se;else{var $i=M(Se,/^[\r\n\t ]+/);Wt=$i&&$i[0]}LA==="application/xhtml+xml"&&(Se=''+Se+"");var wc=Ao?Ao.createHTML(Se):Se;if(nP===Ep)try{gt=new et().parseFromString(wc,LA)}catch{}if(!gt||!gt.documentElement){gt=Oi.createDocument(nP,"template",null);try{gt.documentElement.innerHTML=Fz?"":wc}catch{}}var la=gt.body||gt.documentElement;return Se&&Wt&&la.insertBefore(je.createTextNode(Wt),la.childNodes[0]||null),nP===Ep?Ql.call(gt,r0?"html":"body")[0]:r0?gt.documentElement:la},$q=function(Se){return Wr.call(Se.ownerDocument||Se,Se,po.SHOW_ELEMENT|po.SHOW_COMMENT|po.SHOW_TEXT,null,!1)},Dye=function(Se){return Se instanceof Le&&(typeof Se.nodeName!="string"||typeof Se.textContent!="string"||typeof Se.removeChild!="function"||!(Se.attributes instanceof Ii)||typeof Se.removeAttribute!="function"||typeof Se.setAttribute!="function"||typeof Se.namespaceURI!="string"||typeof Se.insertBefore!="function")},ob=function(Se){return e(Zn)==="object"?Se instanceof Zn:Se&&e(Se)==="object"&&typeof Se.nodeType=="number"&&typeof Se.nodeName=="string"},Kh=function(Se,gt,Wt){!Oo[Se]||D(Oo[Se],function($i){$i.call(nt,gt,Wt,FA)})},eY=function(Se){var gt;if(Kh("beforeSanitizeElements",Se,null),Dye(Se)||w(/[\u0080-\uFFFF]/,Se.nodeName))return Xh(Se),!0;var Wt=gs(Se.nodeName);if(Kh("uponSanitizeElement",Se,{tagName:Wt,allowedTags:Bo}),Se.hasChildNodes()&&!ob(Se.firstElementChild)&&(!ob(Se.content)||!ob(Se.content.firstElementChild))&&w(/<[/\w]/g,Se.innerHTML)&&w(/<[/\w]/g,Se.textContent)||Wt==="select"&&w(/