//>>built
(function(){var W=function(){function k(b){return(b=(""+b).match(O))?new p(u(b[1]),u(b[2]),u(b[3]),u(b[4]),u(b[5]),u(b[6]),u(b[7])):null}function K(b,n){return"string"==typeof b?encodeURI(b).replace(n,L):null}function L(b){b=b.charCodeAt(0);return"%"+"0123456789ABCDEF".charAt(b>>4&15)+"0123456789ABCDEF".charAt(b&15)}function F(b){if(null===b)return null;b=b.replace(/(^|\/)\.(?:\/|$)/g,"$1").replace(/\/{2,}/g,"/");for(var n=P,q;(q=b.replace(n,"$1"))!=b;b=q);return b}function M(b,n){b=b.R();var q=n.K();
q?b.fa(n.j):q=n.V();q?b.ca(n.m):q=n.W();q?b.da(n.k):q=n.Y();var y=n.g,v=F(y);if(q)b.ba(n.T()),v=v&&v.replace(G,"");else if(q=!!y){if(47!==v.charCodeAt(0)){v=F(b.g||"").replace(G,"");var z=v.lastIndexOf("/")+1;v=F((z?v.substring(0,z):"")+F(y)).replace(G,"")}}else v=v&&v.replace(G,""),v!==y&&b.G(v);q?b.G(v):q=n.Z();q?b.M(n.l):q=n.X();q&&b.ea(n.n);return b}function p(b,n,q,y,v,z,H){this.j=b;this.m=n;this.k=q;this.h=y;this.g=v;this.l=z;this.n=H}function u(b){return"string"==typeof b&&0<b.length?b:null}
var P=RegExp(/(\/|^)(?:[^./][^/]*|\.{2,}(?:[^./][^/]*)|\.{3,}[^/]*)\/\.\.(?:\/|$)/),G=/^(?:\.\.\/)*(?:\.\.$)?/;p.prototype.toString=function(){var b=[];null!==this.j&&b.push(this.j,":");null!==this.k&&(b.push("//"),null!==this.m&&b.push(this.m,"@"),b.push(this.k),null!==this.h&&b.push(":",this.h.toString()));null!==this.g&&b.push(this.g);null!==this.l&&b.push("?",this.l);null!==this.n&&b.push("#",this.n);return b.join("")};p.prototype.R=function(){return new p(this.j,this.m,this.k,this.h,this.g,this.l,
this.n)};p.prototype.U=function(){return this.j&&decodeURIComponent(this.j).toLowerCase()};p.prototype.fa=function(b){this.j=b?b:null};p.prototype.K=function(){return null!==this.j};p.prototype.ca=function(b){this.m=b?b:null};p.prototype.V=function(){return null!==this.m};p.prototype.da=function(b){this.k=b?b:null;this.G(this.g)};p.prototype.W=function(){return null!==this.k};p.prototype.T=function(){return this.h&&decodeURIComponent(this.h)};p.prototype.ba=function(b){if(b){b=Number(b);if(b!==(b&
65535))throw Error("Bad port number "+b);this.h=""+b}else this.h=null};p.prototype.Y=function(){return null!==this.h};p.prototype.S=function(){return this.g&&decodeURIComponent(this.g)};p.prototype.G=function(b){b?(b=""+b,this.g=!this.k||/^\//.test(b)?b:"/"+b):this.g=null};p.prototype.M=function(b){this.l=b?b:null};p.prototype.Z=function(){return null!==this.l};p.prototype.aa=function(b){if("object"===typeof b&&!(b instanceof Array)&&(b instanceof Object||"[object Array]"!==Object.prototype.toString.call(b))){var n=
[],q=-1;for(z in b){var y=b[z];"string"===typeof y&&(n[++q]=z,n[++q]=y)}b=n}n=[];q="";for(var v=0;v<b.length;){var z=b[v++];y=b[v++];n.push(q,encodeURIComponent(z.toString()));q="\x26";y&&n.push("\x3d",encodeURIComponent(y.toString()))}this.l=n.join("")};p.prototype.ea=function(b){this.n=b?b:null};p.prototype.X=function(){return null!==this.n};var O=/^(?:([^:/?#]+):)?(?:\/\/(?:([^/?#]*)@)?([^/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,N=/[#\/\?@]/g,Q=/[#\?]/g;p.parse=k;p.create=function(b,
n,q,y,v,z,H){b=new p(K(b,N),K(n,N),"string"==typeof q?encodeURIComponent(q):null,0<y?y.toString():null,K(v,Q),null,"string"==typeof H?encodeURIComponent(H):null);z&&("string"===typeof z?b.M(z.replace(/[^?&=0-9A-Za-z_\-~.%]/g,L)):b.aa(z));return b};p.$=M;p.ja=F;p.ua={oa:function(b){return/\.html$/.test(k(b).S())?"text/html":"application/javascript"},$:function(b,n){return b?M(k(b),k(n)).toString():""+n}};return p}();"undefined"!==typeof window&&(window.URI=W);var r={e:{NONE:0,URI:1,URI_FRAGMENT:11,
SCRIPT:2,STYLE:3,HTML:12,ID:4,IDREF:5,IDREFS:6,GLOBAL_NAME:7,LOCAL_NAME:8,CLASSES:9,FRAME_TARGET:10,MEDIA_QUERY:13}};r.atype=r.e;r.w={"*::class":9,"*::dir":0,"*::draggable":0,"*::hidden":0,"*::id":4,"*::inert":0,"*::itemprop":0,"*::itemref":6,"*::itemscope":0,"*::lang":0,"*::onblur":2,"*::onchange":2,"*::onclick":2,"*::ondblclick":2,"*::onerror":2,"*::onfocus":2,"*::onkeydown":2,"*::onkeypress":2,"*::onkeyup":2,"*::onload":2,"*::onmousedown":2,"*::onmousemove":2,"*::onmouseout":2,"*::onmouseover":2,
"*::onmouseup":2,"*::onreset":2,"*::onscroll":2,"*::onselect":2,"*::onsubmit":2,"*::ontouchcancel":2,"*::ontouchend":2,"*::ontouchenter":2,"*::ontouchleave":2,"*::ontouchmove":2,"*::ontouchstart":2,"*::onunload":2,"*::spellcheck":0,"*::style":3,"*::tabindex":0,"*::title":0,"*::translate":0,"a::accesskey":0,"a::coords":0,"a::href":1,"a::hreflang":0,"a::name":7,"a::onblur":2,"a::onfocus":2,"a::shape":0,"a::target":10,"a::type":0,"area::accesskey":0,"area::alt":0,"area::coords":0,"area::href":1,"area::nohref":0,
"area::onblur":2,"area::onfocus":2,"area::shape":0,"area::target":10,"audio::controls":0,"audio::loop":0,"audio::mediagroup":5,"audio::muted":0,"audio::preload":0,"audio::src":1,"bdo::dir":0,"blockquote::cite":1,"br::clear":0,"button::accesskey":0,"button::disabled":0,"button::name":8,"button::onblur":2,"button::onfocus":2,"button::type":0,"button::value":0,"canvas::height":0,"canvas::width":0,"caption::align":0,"col::align":0,"col::char":0,"col::charoff":0,"col::span":0,"col::valign":0,"col::width":0,
"colgroup::align":0,"colgroup::char":0,"colgroup::charoff":0,"colgroup::span":0,"colgroup::valign":0,"colgroup::width":0,"command::checked":0,"command::command":5,"command::disabled":0,"command::icon":1,"command::label":0,"command::radiogroup":0,"command::type":0,"data::value":0,"del::cite":1,"del::datetime":0,"details::open":0,"dir::compact":0,"div::align":0,"dl::compact":0,"fieldset::disabled":0,"font::color":0,"font::face":0,"font::size":0,"form::accept":0,"form::action":1,"form::autocomplete":0,
"form::enctype":0,"form::method":0,"form::name":7,"form::novalidate":0,"form::onreset":2,"form::onsubmit":2,"form::target":10,"h1::align":0,"h2::align":0,"h3::align":0,"h4::align":0,"h5::align":0,"h6::align":0,"hr::align":0,"hr::noshade":0,"hr::size":0,"hr::width":0,"iframe::align":0,"iframe::frameborder":0,"iframe::height":0,"iframe::marginheight":0,"iframe::marginwidth":0,"iframe::width":0,"img::align":0,"img::alt":0,"img::border":0,"img::height":0,"img::hspace":0,"img::ismap":0,"img::name":7,"img::src":1,
"img::usemap":11,"img::vspace":0,"img::width":0,"input::accept":0,"input::accesskey":0,"input::align":0,"input::alt":0,"input::autocomplete":0,"input::checked":0,"input::disabled":0,"input::inputmode":0,"input::ismap":0,"input::list":5,"input::max":0,"input::maxlength":0,"input::min":0,"input::multiple":0,"input::name":8,"input::onblur":2,"input::onchange":2,"input::onfocus":2,"input::onselect":2,"input::pattern":0,"input::placeholder":0,"input::readonly":0,"input::required":0,"input::size":0,"input::src":1,
"input::step":0,"input::type":0,"input::usemap":11,"input::value":0,"ins::cite":1,"ins::datetime":0,"label::accesskey":0,"label::for":5,"label::onblur":2,"label::onfocus":2,"legend::accesskey":0,"legend::align":0,"li::type":0,"li::value":0,"map::name":7,"menu::compact":0,"menu::label":0,"menu::type":0,"meter::high":0,"meter::low":0,"meter::max":0,"meter::min":0,"meter::optimum":0,"meter::value":0,"ol::compact":0,"ol::reversed":0,"ol::start":0,"ol::type":0,"optgroup::disabled":0,"optgroup::label":0,
"option::disabled":0,"option::label":0,"option::selected":0,"option::value":0,"output::for":6,"output::name":8,"p::align":0,"pre::width":0,"progress::max":0,"progress::min":0,"progress::value":0,"q::cite":1,"select::autocomplete":0,"select::disabled":0,"select::multiple":0,"select::name":8,"select::onblur":2,"select::onchange":2,"select::onfocus":2,"select::required":0,"select::size":0,"source::type":0,"table::align":0,"table::bgcolor":0,"table::border":0,"table::cellpadding":0,"table::cellspacing":0,
"table::frame":0,"table::rules":0,"table::summary":0,"table::width":0,"tbody::align":0,"tbody::char":0,"tbody::charoff":0,"tbody::valign":0,"td::abbr":0,"td::align":0,"td::axis":0,"td::bgcolor":0,"td::char":0,"td::charoff":0,"td::colspan":0,"td::headers":6,"td::height":0,"td::nowrap":0,"td::rowspan":0,"td::scope":0,"td::valign":0,"td::width":0,"textarea::accesskey":0,"textarea::autocomplete":0,"textarea::cols":0,"textarea::disabled":0,"textarea::inputmode":0,"textarea::name":8,"textarea::onblur":2,
"textarea::onchange":2,"textarea::onfocus":2,"textarea::onselect":2,"textarea::placeholder":0,"textarea::readonly":0,"textarea::required":0,"textarea::rows":0,"textarea::wrap":0,"tfoot::align":0,"tfoot::char":0,"tfoot::charoff":0,"tfoot::valign":0,"th::abbr":0,"th::align":0,"th::axis":0,"th::bgcolor":0,"th::char":0,"th::charoff":0,"th::colspan":0,"th::headers":6,"th::height":0,"th::nowrap":0,"th::rowspan":0,"th::scope":0,"th::valign":0,"th::width":0,"thead::align":0,"thead::char":0,"thead::charoff":0,
"thead::valign":0,"tr::align":0,"tr::bgcolor":0,"tr::char":0,"tr::charoff":0,"tr::valign":0,"track::default":0,"track::kind":0,"track::label":0,"track::srclang":0,"ul::compact":0,"ul::type":0,"video::controls":0,"video::height":0,"video::loop":0,"video::mediagroup":5,"video::muted":0,"video::poster":1,"video::preload":0,"video::src":1,"video::width":0};r.ATTRIBS=r.w;r.c={OPTIONAL_ENDTAG:1,EMPTY:2,CDATA:4,RCDATA:8,UNSAFE:16,FOLDABLE:32,SCRIPT:64,STYLE:128,VIRTUALIZED:256};r.eflags=r.c;r.f={a:0,abbr:0,
acronym:0,address:0,applet:272,area:2,article:0,aside:0,audio:0,b:0,base:274,basefont:274,bdi:0,bdo:0,big:0,blockquote:0,body:305,br:2,button:0,canvas:0,caption:0,center:0,cite:0,code:0,col:2,colgroup:1,command:2,data:0,datalist:0,dd:1,del:0,details:0,dfn:0,dialog:272,dir:0,div:0,dl:0,dt:1,em:0,fieldset:0,figcaption:0,figure:0,font:0,footer:0,form:0,frame:274,frameset:272,h1:0,h2:0,h3:0,h4:0,h5:0,h6:0,head:305,header:0,hgroup:0,hr:2,html:305,i:0,iframe:4,img:2,input:2,ins:0,isindex:274,kbd:0,keygen:274,
label:0,legend:0,li:1,link:274,map:0,mark:0,menu:0,meta:274,meter:0,nav:0,nobr:0,noembed:276,noframes:276,noscript:276,object:272,ol:0,optgroup:0,option:1,output:0,p:1,param:274,pre:0,progress:0,q:0,s:0,samp:0,script:84,section:0,select:0,small:0,source:2,span:0,strike:0,strong:0,style:148,sub:0,summary:0,sup:0,table:0,tbody:1,td:1,textarea:8,tfoot:1,th:1,thead:1,time:0,title:280,tr:1,track:2,tt:0,u:0,ul:0,"var":0,video:0,wbr:2};r.ELEMENTS=r.f;r.O={a:"HTMLAnchorElement",abbr:"HTMLElement",acronym:"HTMLElement",
address:"HTMLElement",applet:"HTMLAppletElement",area:"HTMLAreaElement",article:"HTMLElement",aside:"HTMLElement",audio:"HTMLAudioElement",b:"HTMLElement",base:"HTMLBaseElement",basefont:"HTMLBaseFontElement",bdi:"HTMLElement",bdo:"HTMLElement",big:"HTMLElement",blockquote:"HTMLQuoteElement",body:"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"HTMLCanvasElement",caption:"HTMLTableCaptionElement",center:"HTMLElement",cite:"HTMLElement",code:"HTMLElement",col:"HTMLTableColElement",
colgroup:"HTMLTableColElement",command:"HTMLCommandElement",data:"HTMLElement",datalist:"HTMLDataListElement",dd:"HTMLElement",del:"HTMLModElement",details:"HTMLDetailsElement",dfn:"HTMLElement",dialog:"HTMLDialogElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDListElement",dt:"HTMLElement",em:"HTMLElement",fieldset:"HTMLFieldSetElement",figcaption:"HTMLElement",figure:"HTMLElement",font:"HTMLFontElement",footer:"HTMLElement",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",
h1:"HTMLHeadingElement",h2:"HTMLHeadingElement",h3:"HTMLHeadingElement",h4:"HTMLHeadingElement",h5:"HTMLHeadingElement",h6:"HTMLHeadingElement",head:"HTMLHeadElement",header:"HTMLElement",hgroup:"HTMLElement",hr:"HTMLHRElement",html:"HTMLHtmlElement",i:"HTMLElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTMLInputElement",ins:"HTMLModElement",isindex:"HTMLUnknownElement",kbd:"HTMLElement",keygen:"HTMLKeygenElement",label:"HTMLLabelElement",legend:"HTMLLegendElement",li:"HTMLLIElement",
link:"HTMLLinkElement",map:"HTMLMapElement",mark:"HTMLElement",menu:"HTMLMenuElement",meta:"HTMLMetaElement",meter:"HTMLMeterElement",nav:"HTMLElement",nobr:"HTMLElement",noembed:"HTMLElement",noframes:"HTMLElement",noscript:"HTMLElement",object:"HTMLObjectElement",ol:"HTMLOListElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTMLParamElement",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",s:"HTMLElement",
samp:"HTMLElement",script:"HTMLScriptElement",section:"HTMLElement",select:"HTMLSelectElement",small:"HTMLElement",source:"HTMLSourceElement",span:"HTMLSpanElement",strike:"HTMLElement",strong:"HTMLElement",style:"HTMLStyleElement",sub:"HTMLElement",summary:"HTMLElement",sup:"HTMLElement",table:"HTMLTableElement",tbody:"HTMLTableSectionElement",td:"HTMLTableDataCellElement",textarea:"HTMLTextAreaElement",tfoot:"HTMLTableSectionElement",th:"HTMLTableHeaderCellElement",thead:"HTMLTableSectionElement",
time:"HTMLTimeElement",title:"HTMLTitleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",tt:"HTMLElement",u:"HTMLElement",ul:"HTMLUListElement","var":"HTMLElement",video:"HTMLVideoElement",wbr:"HTMLElement"};r.ELEMENT_DOM_INTERFACES=r.O;r.N={NOT_LOADED:0,SAME_DOCUMENT:1,NEW_DOCUMENT:2};r.ueffects=r.N;r.J={"a::href":2,"area::href":2,"audio::src":1,"blockquote::cite":0,"command::icon":1,"del::cite":0,"form::action":2,"img::src":1,"input::src":1,"ins::cite":0,"q::cite":0,"video::poster":1,"video::src":1};
r.URIEFFECTS=r.J;r.L={UNSANDBOXED:2,SANDBOXED:1,DATA:0};r.ltypes=r.L;r.I={"a::href":2,"area::href":2,"audio::src":2,"blockquote::cite":2,"command::icon":1,"del::cite":2,"form::action":2,"img::src":1,"input::src":1,"ins::cite":2,"q::cite":2,"video::poster":1,"video::src":2};r.LOADERTYPES=r.I;"undefined"!==typeof window&&(window.html4=r);var V=function(k){function K(a,e){e=R.hasOwnProperty(e)?R[e]:(a=e.match(da))?String.fromCharCode(parseInt(a[1],10)):(a=e.match(ea))?String.fromCharCode(parseInt(a[1],
16)):S&&fa.test(e)?(S.innerHTML="\x26"+e+";",a=S.textContent,R[e]=a):"\x26"+e+";";return e}function L(a){return a.replace(ha,K)}function F(a){return(""+a).replace(ia,"\x26amp;").replace(X,"\x26lt;").replace(Y,"\x26gt;").replace(ja,"\x26#34;")}function M(a){return a.replace(ka,"\x26amp;$1").replace(X,"\x26lt;").replace(Y,"\x26gt;")}function p(a){var e={z:a.z||a.cdata,A:a.A||a.comment,B:a.B||a.endDoc,r:a.r||a.endTag,d:a.d||a.pcdata,F:a.F||a.rcdata,H:a.H||a.startDoc,v:a.v||a.startTag};return function(c,
h){var d=/(<\/|\x3c!--|<[!?]|[&<>])/g;c+="";if(la)c=c.split(d);else{for(var l=[],f=0,g;null!==(g=d.exec(c));)l.push(c.substring(f,g.index)),l.push(g[0]),f=g.index+g[0].length;l.push(c.substring(f));c=l}P(e,c,0,{o:!1,C:!1},h)}}function u(a,e,c,h,d){return function(){P(a,e,c,h,d)}}function P(a,e,c,h,d){try{a.H&&0==c&&a.H(d);for(var l,f,g,m=e.length;c<m;){var t=e[c++],w=e[c];switch(t){case "\x26":ma.test(w)?(a.d&&a.d("\x26"+w,d,A,u(a,e,c,h,d)),c++):a.d&&a.d("\x26amp;",d,A,u(a,e,c,h,d));break;case "\x3c/":if(l=
/^([-\w:]+)[^'"]*/.exec(w))if(l[0].length===w.length&&"\x3e"===e[c+1])c+=2,g=l[1].toLowerCase(),a.r&&a.r(g,d,A,u(a,e,c,h,d));else{var B=e,C=c,D=a,E=d,J=A,na=h,T=O(B,C);T?(D.r&&D.r(T.name,E,J,u(D,B,C,na,E)),c=T.next):c=B.length}else a.d&&a.d("\x26lt;/",d,A,u(a,e,c,h,d));break;case "\x3c":if(l=/^([-\w:]+)\s*\/?/.exec(w))if(l[0].length===w.length&&"\x3e"===e[c+1]){c+=2;g=l[1].toLowerCase();a.v&&a.v(g,[],d,A,u(a,e,c,h,d));var Z=k.f[g];Z&aa&&(c=G(e,{name:g,next:c,c:Z},a,d,A,h))}else{B=e;C=a;D=d;E=A;J=
h;var I=O(B,c);I?(C.v&&C.v(I.name,I.P,D,E,u(C,B,I.next,J,D)),c=I.c&aa?G(B,I,C,D,E,J):I.next):c=B.length}else a.d&&a.d("\x26lt;",d,A,u(a,e,c,h,d));break;case "\x3c!--":if(!h.C){for(f=c+1;f<m&&("\x3e"!==e[f]||!/--$/.test(e[f-1]));f++);if(f<m){if(a.A){var ba=e.slice(c,f).join("");a.A(ba.substr(0,ba.length-2),d,A,u(a,e,f+1,h,d))}c=f+1}else h.C=!0}h.C&&a.d&&a.d("\x26lt;!--",d,A,u(a,e,c,h,d));break;case "\x3c!":if(/^\w/.test(w)){if(!h.o){for(f=c+1;f<m&&"\x3e"!==e[f];f++);f<m?c=f+1:h.o=!0}h.o&&a.d&&a.d("\x26lt;!",
d,A,u(a,e,c,h,d))}else a.d&&a.d("\x26lt;!",d,A,u(a,e,c,h,d));break;case "\x3c?":if(!h.o){for(f=c+1;f<m&&"\x3e"!==e[f];f++);f<m?c=f+1:h.o=!0}h.o&&a.d&&a.d("\x26lt;?",d,A,u(a,e,c,h,d));break;case "\x3e":a.d&&a.d("\x26gt;",d,A,u(a,e,c,h,d));break;case "":break;default:a.d&&a.d(t,d,A,u(a,e,c,h,d))}}a.B&&a.B(d)}catch(ca){if(ca!==A)throw ca;}}function G(a,e,c,h,d,l){var f=a.length;U.hasOwnProperty(e.name)||(U[e.name]=RegExp("^"+e.name+"(?:[\\s\\/]|$)","i"));for(var g=U[e.name],m=e.next,t=e.next+1;t<f&&
("\x3c/"!==a[t-1]||!g.test(a[t]));t++);t<f&&--t;f=a.slice(m,t).join("");if(e.c&k.c.CDATA)c.z&&c.z(f,h,d,u(c,a,t,l,h));else if(e.c&k.c.RCDATA)c.F&&c.F(M(f),h,d,u(c,a,t,l,h));else throw Error("bug");return t}function O(a,e){var c=/^([-\w:]+)/.exec(a[e]),h={};h.name=c[1].toLowerCase();h.c=k.f[h.name];var d=a[e].substr(c[0].length);e+=1;for(var l=a.length;e<l&&"\x3e"!==a[e];e++)d+=a[e];if(!(l<=e)){for(var f=[];""!==d;)if(c=oa.exec(d))if(c[4]&&!c[5]||c[6]&&!c[7]){c=c[4]||c[6];var g=!1;for(d=[d,a[e++]];e<
l;e++){if(g){if("\x3e"===a[e])break}else 0<=a[e].indexOf(c)&&(g=!0);d.push(a[e])}if(l<=e)break;d=d.join("")}else{g=c[1].toLowerCase();if(c[2]){var m=c[3];var t=m.charCodeAt(0);if(34===t||39===t)m=m.substr(1,m.length-2);m=L(m.replace(pa,""))}else m="";f.push(g,m);d=d.substr(c[0].length)}else d=d.replace(/^[\s\S][^a-z\s]*/,"");h.P=f;h.next=e+1;return h}}function N(a){function e(d,l){h||l.push(d)}var c,h;return p({startDoc:function(){c=[];h=!1},startTag:function(d,l,f){if(!h&&k.f.hasOwnProperty(d)){var g=
k.f[d];if(!(g&k.c.FOLDABLE)){var m=a(d,l);if(m){if("object"!==typeof m)throw Error("tagPolicy did not return object (old API?)");if("attribs"in m)l=m.attribs;else throw Error("tagPolicy gave no attribs");var t;"tagName"in m?(t=m.tagName,m=k.f[t]):(t=d,m=g);if(g&k.c.OPTIONAL_ENDTAG){var w=c[c.length-1];w&&w.D===d&&(w.t!==t||d!==t)&&f.push("\x3c/",w.t,"\x3e")}g&k.c.EMPTY||c.push({D:d,t:t});f.push("\x3c",t);d=0;for(w=l.length;d<w;d+=2){var B=l[d],C=l[d+1];null!==C&&void 0!==C&&f.push(" ",B,'\x3d"',F(C),
'"')}f.push("\x3e");g&k.c.EMPTY&&!(m&k.c.EMPTY)&&f.push("\x3c/",t,"\x3e")}else h=!(g&k.c.EMPTY)}}},endTag:function(d,l){if(h)h=!1;else if(k.f.hasOwnProperty(d)){var f=k.f[d];if(!(f&(k.c.EMPTY|k.c.FOLDABLE))){if(f&k.c.OPTIONAL_ENDTAG)for(f=c.length;0<=--f;){var g=c[f].D;if(g===d)break;if(!(k.f[g]&k.c.OPTIONAL_ENDTAG))return}else for(f=c.length;0<=--f&&c[f].D!==d;);if(!(0>f)){for(g=c.length;--g>f;){var m=c[g].t;k.f[m]&k.c.OPTIONAL_ENDTAG||l.push("\x3c/",m,"\x3e")}f<c.length&&(d=c[f].t);c.length=f;l.push("\x3c/",
d,"\x3e")}}}},pcdata:e,rcdata:e,cdata:e,endDoc:function(d){for(;c.length;c.length--)d.push("\x3c/",c[c.length-1].t,"\x3e")}})}function Q(a,e,c,h,d){if(!d)return null;try{var l=W.parse(""+a);if(l&&(!l.K()||qa.test(l.U()))){var f=d(l,e,c,h);return f?f.toString():null}}catch(g){}return null}function b(a,e,c,h,d){c||a(e+" removed",{Q:"removed",tagName:e});if(h!==d){var l="changed";h&&!d?l="removed":!h&&d&&(l="added");a(e+"."+c+" "+l,{Q:l,tagName:e,ia:c,oldValue:h,newValue:d})}}function n(a,e,c){e=e+"::"+
c;if(a.hasOwnProperty(e))return a[e];e="*::"+c;if(a.hasOwnProperty(e))return a[e]}function q(a,e,c,h,d){for(var l=0;l<e.length;l+=2){var f=e[l],g=e[l+1],m=g,t=null,w;if((w=a+"::"+f,k.w.hasOwnProperty(w))||(w="*::"+f,k.w.hasOwnProperty(w)))t=k.w[w];if(null!==t)switch(t){case k.e.NONE:break;case k.e.SCRIPT:g=null;d&&b(d,a,f,m,g);break;case k.e.STYLE:if("undefined"===typeof z){g=null;d&&b(d,a,f,m,g);break}var B=[];z(g,{declaration:function(C,D){var E=C.toLowerCase();H(E,D,c?function(J){return Q(J,k.N.ga,
k.L.ha,{TYPE:"CSS",CSS_PROP:E},c)}:null);D.length&&B.push(E+": "+D.join(" "))}});g=0<B.length?B.join(" ; "):null;d&&b(d,a,f,m,g);break;case k.e.ID:case k.e.IDREF:case k.e.IDREFS:case k.e.GLOBAL_NAME:case k.e.LOCAL_NAME:case k.e.CLASSES:g=h?h(g):g;d&&b(d,a,f,m,g);break;case k.e.URI:g=Q(g,n(k.J,a,f),n(k.I,a,f),{TYPE:"MARKUP",XML_ATTR:f,XML_TAG:a},c);d&&b(d,a,f,m,g);break;case k.e.URI_FRAGMENT:g&&"#"===g.charAt(0)?(g=g.substring(1),g=h?h(g):g,null!==g&&void 0!==g&&(g="#"+g)):g=null;d&&b(d,a,f,m,g);break;
default:g=null,d&&b(d,a,f,m,g)}else g=null,d&&b(d,a,f,m,g);e[l+1]=g}return e}function y(a,e,c){return function(h,d){if(k.f[h]&k.c.UNSAFE)c&&b(c,h,void 0,void 0,void 0);else return{attribs:q(h,d,a,e,c)}}}function v(a,e){var c=[];N(e)(a,c);return c.join("")}var z,H;"undefined"!==typeof window&&(z=window.parseCssDeclarations,H=window.sanitizeCssProperty);var R={lt:"\x3c",LT:"\x3c",gt:"\x3e",GT:"\x3e",amp:"\x26",AMP:"\x26",quot:'"',apos:"'",nbsp:"\u00a0"},da=/^#(\d+)$/,ea=/^#x([0-9A-Fa-f]+)$/,fa=/^[A-Za-z][A-za-z0-9]+$/,
S="undefined"!==typeof window&&window.document?window.document.createElement("textarea"):null,pa=/\0/g,ha=/&(#[0-9]+|#[xX][0-9A-Fa-f]+|\w+);/g,ma=/^(#[0-9]+|#[xX][0-9A-Fa-f]+|\w+);/,ia=/&/g,ka=/&([^a-z#]|#(?:[^0-9x]|x(?:[^0-9a-f]|$)|$)|$)/gi,X=/[<]/g,Y=/>/g,ja=/"/g,oa=/^\s*([-.:\w]+)(?:\s*(=)\s*((")[^"]*("|$)|(')[^']*('|$)|(?=[a-z][-\w]*\s*=)|[^"'\s]*))?/i,la=3==="a,b".split(/(,)/).length,aa=k.c.CDATA|k.c.RCDATA,A={},U={},qa=/^(?:https?|mailto)$/i,x={};x.ka=x.escapeAttrib=F;x.la=x.makeHtmlSanitizer=
N;x.ma=x.makeSaxParser=p;x.na=x.makeTagPolicy=y;x.pa=x.normalizeRCData=M;x.qa=x.sanitize=function(a,e,c,h){return v(a,y(e,c,h))};x.ra=x.sanitizeAttribs=q;x.sa=x.sanitizeWithPolicy=v;x.ta=x.unescapeEntities=L;return x}(r);r=V.sanitize;"undefined"!==typeof window&&(window.html=V,window.html_sanitize=r);"function"===typeof define&&define.amd&&define([],function(){return V})})();