var e,t,n=function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{var t;return{name:e,value:this.attribs[e],namespace:null==(t=this["x-attribsNamespace"])?void 0:t[e],prefix:null==(t=this["x-attribsPrefix"])?void 0:t[e]}}))}};function v(t){return t.type===e.Tag||t.type===e.Script||t.type===e.Style}function I(t){return t.type===e.CDATA}function b(t){return t.type===e.Text}function C(t){return t.type===e.Comment}function O(t){return t.type===e.Directive}function k(t){return t.type===e.Root}function R(e){return Object.prototype.hasOwnProperty.call(e,"children")}function D(e,t=!1){let n;if(b(e))n=new T(e.data);else if(C(e))n=new _(e.data);else if(v(e)){const r=t?L(e.children):[],i=new N(e.name,{...e.attribs},r);r.forEach((e=>e.parent=i)),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=i}else if(I(e)){const r=t?L(e.children):[],i=new y(r);r.forEach((e=>e.parent=i)),n=i}else if(k(e)){const r=t?L(e.children):[],i=new S(r);r.forEach((e=>e.parent=i)),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),n=i}else{if(!O(e))throw new Error("Not implemented yet: "+e.type);{const t=new g(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),n=t}}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function L(e){var t=e.map((e=>D(e,!0)));for(let e=1;e$\x80-\uFFFF]/g,P=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),B=null!=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):(e,t)=>55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function F(e){let t,n="",r=0;for(;null!==(t=M.exec(e));){var i=t.index,s=e.charCodeAt(i),a=P.get(s);r=void 0!==a?(n+=e.substring(r,i)+a,i+1):(n+=`${e.substring(r,i)}&#x${B(e,i).toString(16)};`,M.lastIndex+=Number(55296==(64512&s)))}return n+e.substr(r)}function U(e,t){return function(n){let r,i=0,s="";for(;r=e.exec(n);)i!==r.index&&(s+=n.substring(i,r.index)),s+=t.get(r[0].charCodeAt(0)),i=r.index+1;return s+n.substring(i)}}const H=U(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),G=U(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),X=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),j=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),Y=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function q(e){return e.replace(/"/g,""")}const $=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function V(e,t={}){var n="length"in e?e:[e];let r="";for(let e=0;e`;case l:return`\x3c!--${e.data}--\x3e`;case p:return``;case u:case h:case f:return function(e,t){!(t="foreign"===t.xmlMode&&(e.name=null!=(r=X.get(e.name))?r:e.name,e.parent)&&W.has(e.parent.name)?{...t,xmlMode:!1}:t).xmlMode&&z.has(e.name)&&(t={...t,xmlMode:"foreign"});let n="<"+e.name;var r=function(e,t){var n;if(e){const r=!1===(null!=(n=t.encodeEntities)?n:t.decodeEntities)?q:t.xmlMode||"utf8"!==t.encodeEntities?F:H;return Object.keys(e).map((n=>{var i,s=null!=(s=e[n])?s:"";return"foreign"===t.xmlMode&&(n=null!=(i=j.get(n))?i:n),t.emptyAttrs||t.xmlMode||""!==s?`${n}="${r(s)}"`:n})).join(" ")}}(e.attribs,t);return r&&(n+=" "+r),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&$.has(e.name))?(t.xmlMode||(n+=" "),n+="/>"):(n+=">",0`)),n}(e,t);case o:return function(e,t){var n,r=e.data||"";return!1===(null!=(n=t.encodeEntities)?n:t.decodeEntities)||!t.xmlMode&&e.parent&&Y.has(e.parent.name)?r:(t.xmlMode||"utf8"!==t.encodeEntities?F:G)(r)}(e,t)}}const W=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),z=new Set(["svg","math"]);function Q(e,t){return V(e,t)}function J(e){return Array.isArray(e)?e.map(J).join(""):R(e)&&!C(e)?J(e.children):b(e)?e.data:""}function Z(t){return Array.isArray(t)?t.map(Z).join(""):R(t)&&(t.type===e.Tag||I(t))?Z(t.children):b(t)?t.data:""}function ee(e){return R(e)?e.children:[]}function te(e){return e.parent||null}function ne(e){var t=te(e);if(null!=t)return ee(t);var n=[e];let{prev:r,next:i}=e;for(;null!=r;)n.unshift(r),({prev:r}=r);for(;null!=i;)n.push(i),({next:i}=i);return n}function re(e){let t=e.next;for(;null!==t&&!v(t);)({next:t}=t);return t}function ie(e){let t=e.prev;for(;null!==t&&!v(t);)({prev:t}=t);return t}function se(e){var t,n;e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent&&0<=(n=(t=e.parent.children).lastIndexOf(e))&&t.splice(n,1),e.next=null,e.prev=null,e.parent=null}function ae(e,t,n=!0,r=1/0){return oe(e,Array.isArray(t)?t:[t],n,r)}function oe(e,t,n,r){for(var i=[],s=[t],a=[0];;)if(a[0]>=s[0].length){if(1===a.length)return i;s.shift(),a.shift()}else{const t=s[0][a[0]++];if(e(t)&&(i.push(t),--r<=0))return i;n&&R(t)&&0"function"==typeof e?t=>v(t)&&e(t.name):"*"===e?v:t=>v(t)&&t.name===e,tag_type:e=>"function"==typeof e?t=>e(t.type):t=>t.type===e,tag_contains:e=>"function"==typeof e?t=>b(t)&&e(t.data):t=>b(t)&&t.data===e};function ue(e,t){return"function"==typeof t?n=>v(n)&&t(n.attribs[e]):n=>v(n)&&n.attribs[e]===t}function he(e,t){return n=>e(n)||t(n)}function fe(e){var t=Object.keys(e).map((t=>{var n=e[t];return Object.prototype.hasOwnProperty.call(le,t)?le[t](n):ue(t,n)}));return 0===t.length?null:t.reduce(he)}function pe(e,t,n=!0,r=1/0){return ae(le.tag_name(e),t,n,r)}function de(e,n){var r=[],i=[];if(e===n)return 0;let s=R(e)?e:e.parent;for(;s;)r.unshift(s),s=s.parent;for(s=R(n)?n:n.parent;s;)i.unshift(s),s=s.parent;var a,o,c,l,u=Math.min(r.length,i.length);let h=0;for(;ho.indexOf(l)?a===n?t.FOLLOWING|t.CONTAINED_BY:t.FOLLOWING:a===e?t.PRECEDING|t.CONTAINS:t.PRECEDING)}function Ee(e){return(e=e.filter(((e,t,n)=>!n.includes(e,t+1)))).sort(((e,n)=>(e=de(e,n))&t.PRECEDING?-1:e&t.FOLLOWING?1:0)),e}!function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"}(t=t||{});const me=["url","type","lang"],Te=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function _e(e){return pe("media:content",e).map((e=>{var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault};for(const e of me)t[e]&&(n[e]=t[e]);for(const e of Te)t[e]&&(n[e]=parseInt(t[e],10));return t.expression&&(n.expression=t.expression),n}))}function ge(e,t){return pe(e,t,!0,1)[0]}function Ae(e,t,n=!1){return J(pe(e,t,n,1)).trim()}function ye(e,t,n,r,i=!1){(n=Ae(n,r,i))&&(e[t]=n)}function Se(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}var Ne=Object.freeze({__proto__:null,isTag:v,isCDATA:I,isText:b,isComment:C,isDocument:k,hasChildren:R,getOuterHTML:Q,getInnerHTML:function(e,t){return R(e)?e.children.map((e=>Q(e,t))).join(""):""},getText:function e(t){return Array.isArray(t)?t.map(e).join(""):v(t)?"br"===t.name?"\n":e(t.children):I(t)?e(t.children):b(t)?t.data:""},textContent:J,innerText:Z,getChildren:ee,getParent:te,getSiblings:ne,getAttributeValue:function(e,t){return null==(e=e.attribs)?void 0:e[t]},hasAttrib:function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},getName:function(e){return e.name},nextElementSibling:re,prevElementSibling:ie,removeElement:se,replaceElement:function(e,t){const n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;if(r&&(r.prev=t),r=t.parent=e.parent){const n=r.children;n[n.lastIndexOf(e)]=t,e.parent=null}},appendChild:function(e,t){se(t),t.next=null,1<(t.parent=e).children.push(t)?((e=e.children[e.children.length-2]).next=t).prev=e:t.prev=null},append:function(e,t){se(t);var n=e.parent,r=e.next;if(t.next=r,((t.prev=e).next=t).parent=n,r){if(r.prev=t,n){const e=n.children;e.splice(e.lastIndexOf(r),0,t)}}else n&&n.children.push(t)},prependChild:function(e,t){se(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)?((e=e.children[1]).prev=t).next=e:t.next=null},prepend:function(e,t){se(t);var n,r=e.parent;r&&(n=r.children).splice(n.indexOf(e),0,t),e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,(t.next=e).prev=t},filter:ae,find:oe,findOneChild:function(e,t){return t.find(e)},findOne:ce,existsOne:function e(t,n){return n.some((n=>v(n)&&(t(n)||e(t,n.children))))},findAll:function(e,t){for(var n=[],r=[t],i=[0];;)if(i[0]>=r[0].length){if(1===r.length)return n;r.shift(),i.shift()}else{const t=r[0][i[0]++];v(t)&&(e(t)&&n.push(t),0{var t={media:_e(e=e.children)},n=(ye(t,"id","id",e),ye(t,"title","title",e),null==(n=ge("link",e))?void 0:n.attribs.href);return n&&(t.link=n),(n=Ae("summary",e)||Ae("content",e))&&(t.description=n),(n=Ae("updated",e))&&(t.pubDate=new Date(n)),t}))},n=(ye(t,"id","id",e),ye(t,"title","title",e),null==(n=ge("link",e))?void 0:n.attribs.href);return n&&(t.link=n),ye(t,"description","subtitle",e),(n=Ae("updated",e))&&(t.updated=new Date(n)),ye(t,"author","email",e,!0),t}:function(e){var t=null!=(t=null==(t=ge("channel",e.children))?void 0:t.children)?t:[],n=(e={type:e.name.substr(0,3),id:"",items:pe("item",e.children).map((e=>{var t={media:_e(e=e.children)};return ye(t,"id","guid",e),ye(t,"title","title",e),ye(t,"link","link",e),ye(t,"description","description",e),(e=Ae("pubDate",e)||Ae("dc:date",e))&&(t.pubDate=new Date(e)),t}))},ye(e,"title","title",t),ye(e,"link","link",t),ye(e,"description","description",t),Ae("lastBuildDate",t));return n&&(e.updated=new Date(n)),ye(e,"author","managingEditor",t,!0),e})(e):null}}),ve=function(){return(ve=Object.assign||function(e){for(var t,n=1,r=arguments.length;ne.length-3)&&((t=e.charCodeAt(n+1))>=ke.LowerA&&t<=ke.LowerZ||t>=ke.UpperA&&t<=ke.UpperZ||t===ke.Exclamation)&&e.includes(">",n+2)}!function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"}(ke=ke||{});var Me=Object.prototype.hasOwnProperty,Pe=/\s+/,Be="data-",Fe={null:null,true:!0,false:!1},Ue=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,He=/^{[^]*}$|^\[[^]*]$/;function Ge(e,t,n){if(e&&v(e))return null==e.attribs&&(e.attribs={}),t?Me.call(e.attribs,t)?!n&&Ue.test(t)?t:e.attribs[t]:"option"===e.name&&"value"===t?be(e.children):"input"!==e.name||"radio"!==e.attribs.type&&"checkbox"!==e.attribs.type||"value"!==t?void 0:"on":e.attribs}function Xe(e,t,n){null===n?Ve(e,t):e.attribs[t]="".concat(n)}function je(e,t,n){return t in e?e[t]:!n&&Ue.test(t)?void 0!==Ge(e,t,!1):Ge(e,t,n)}function Ye(e,t,n,r){t in e?e[t]=n:Xe(e,t,!r&&Ue.test(t)?n?"":null:"".concat(n))}function qe(e,t,n){null==e.data&&(e.data={}),"object"==typeof t?Object.assign(e.data,t):"string"==typeof t&&void 0!==n&&(e.data[t]=n)}function $e(e,t){for(var n,r,i=null==t?(n=Object.keys(e.attribs).filter((function(e){return e.startsWith(Be)}))).map((function(e){return e.slice(5).replace(/[_.-](\w|$)/g,(function(e,t){return t.toUpperCase()}))})):(n=[Be+t.replace(/[A-Z]/g,"-$&").toLowerCase()],[t]),s=0;s").parent().html();case"innerHTML":return this.html();default:return je(r,e,this.options.xmlMode)}}if("object"==typeof e||void 0!==t){if("function"!=typeof t)return Le(this,(function(r){v(r)&&("object"==typeof e?Object.keys(e).forEach((function(t){var i=e[t];Ye(r,t,i,n.options.xmlMode)})):Ye(r,e,t,n.options.xmlMode))}));if("object"==typeof e)throw new Error("Bad combination of arguments.");return Le(this,(function(r,i){v(r)&&Ye(r,e,t.call(r,i,je(r,e,n.options.xmlMode)),n.options.xmlMode)}))}},data:function(e,t){var n=this[0];if(n&&v(n))return null==n.data&&(n.data={}),e?"object"==typeof e||void 0!==t?(Le(this,(function(n){v(n)&&("object"==typeof e?qe(n,e):qe(n,e,t))})),this):Me.call(n.data,e)?n.data[e]:$e(n,e):$e(n)},val:function(e){var t=0===arguments.length,n=this[0];if(!n||!v(n))return t?void 0:this;switch(n.name){case"textarea":return this.text(e);case"select":var r=this.find("option:selected");if(t)return this.attr("multiple")?r.toArray().map((function(e){return be(e.children)})):r.attr("value");if(null!=this.attr("multiple")||"object"!=typeof e){this.find("option").removeAttr("selected");for(var i="object"!=typeof e?[e]:e,s=0;s>10|55296,1023&r|56320)}function st(e){return e.replace(Ze,it)}function at(e){return 39===e||34===e}function ot(e){return 32===e||9===e||10===e||12===e||13===e}function ct(e){var t=[],n=lt(t,""+e,0);if(n>=1)):e.type===We.Pseudo&&(e.data?"has"===e.name||"contains"===e.name?n=0:Array.isArray(e.data)?(n=Math.min(...e.data.map((e=>Math.min(...e.map(Tt))))))<0&&(n=0):n=2:n=3),n}const _t=/[-[\]{}()*+?.,\\^$|#\s]/g;function gt(e){return e.replace(_t,"\\$&")}const At=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function yt(e,t){return"boolean"==typeof e.ignoreCase?e.ignoreCase:"quirks"===e.ignoreCase?!!t.quirksMode:!t.xmlMode&&At.has(e.name)}const St={equals(e,t,n){const r=n.adapter,i=t.name;let s=t.value;return yt(t,n)?(s=s.toLowerCase(),t=>{var n=r.getAttributeValue(t,i);return null!=n&&n.length===s.length&&n.toLowerCase()===s&&e(t)}):t=>r.getAttributeValue(t,i)===s&&e(t)},hyphen(e,t,n){const r=n.adapter,i=t.name;let s=t.value;const a=s.length;return yt(t,n)?(s=s.toLowerCase(),function(t){var n=r.getAttributeValue(t,i);return null!=n&&(n.length===a||"-"===n.charAt(a))&&n.substr(0,a).toLowerCase()===s&&e(t)}):function(t){var n=r.getAttributeValue(t,i);return null!=n&&(n.length===a||"-"===n.charAt(a))&&n.substr(0,a)===s&&e(t)}},element(e,t,n){const r=n.adapter,{name:i,value:s}=t;if(/\s/.test(s))return ht.falseFunc;const a=new RegExp(`(?:^|\\s)${gt(s)}(?:$|\\s)`,yt(t,n)?"i":"");return function(t){var n=r.getAttributeValue(t,i);return null!=n&&n.length>=s.length&&a.test(n)&&e(t)}},exists:(e,{name:t},{adapter:n})=>r=>n.hasAttrib(r,t)&&e(r),start(e,t,n){const r=n.adapter,i=t.name;let s=t.value;const a=s.length;return 0===a?ht.falseFunc:yt(t,n)?(s=s.toLowerCase(),t=>{var n=r.getAttributeValue(t,i);return null!=n&&n.length>=a&&n.substr(0,a).toLowerCase()===s&&e(t)}):t=>{var n;return!(null==(n=r.getAttributeValue(t,i))||!n.startsWith(s))&&e(t)}},end(e,t,n){const r=n.adapter,i=t.name;let s=t.value;const a=-s.length;return 0==a?ht.falseFunc:yt(t,n)?(s=s.toLowerCase(),t=>{var n;return(null==(n=r.getAttributeValue(t,i))?void 0:n.substr(a).toLowerCase())===s&&e(t)}):t=>{var n;return!(null==(n=r.getAttributeValue(t,i))||!n.endsWith(s))&&e(t)}},any(e,t,n){const r=n.adapter,{name:i,value:s}=t;if(""===s)return ht.falseFunc;if(yt(t,n)){const t=new RegExp(gt(s),"i");return function(n){var a=r.getAttributeValue(n,i);return null!=a&&a.length>=s.length&&t.test(a)&&e(n)}}return t=>{var n;return!(null==(n=r.getAttributeValue(t,i))||!n.includes(s))&&e(t)}},not(e,t,n){const r=n.adapter,i=t.name;let s=t.value;return""===s?t=>!!r.getAttributeValue(t,i)&&e(t):yt(t,n)?(s=s.toLowerCase(),t=>{var n=r.getAttributeValue(t,i);return(null==n||n.length!==s.length||n.toLowerCase()!==s)&&e(t)}):t=>r.getAttributeValue(t,i)!==s&&e(t)}},Nt=new Set([9,10,12,13,32]),vt="0".charCodeAt(0),It="9".charCodeAt(0);function bt(e){return function(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return ht.falseFunc;if(-1===t)return e=>e<=n;if(0===t)return e=>e===n;if(1===t)return n<0?ht.trueFunc:e=>e>=n;const r=Math.abs(t),i=(n%r+r)%r;return 1e>=n&&e%r==i:e=>e<=n&&e%r==i}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];let t=0,n=0,r=s(),i=a();if(t=vt&&e.charCodeAt(t)<=It;)r=10*r+(e.charCodeAt(t)-vt),t++;return t===n?null:r}function o(){for(;t{var r=t.getParent(n);return null!=r&&t.isTag(r)&&e(n)}}const Ot={contains:(e,t,{adapter:n})=>function(r){return e(r)&&n.getText(r).includes(t)},icontains(e,t,{adapter:n}){const r=t.toLowerCase();return function(t){return e(t)&&n.getText(t).toLowerCase().includes(r)}},"nth-child"(e,t,{adapter:n,equals:r}){const i=bt(t);return i===ht.falseFunc?ht.falseFunc:i===ht.trueFunc?Ct(e,n):function(t){var s=n.getSiblings(t);let a=0;for(let e=0;et=>{var r=n.getParent(t);return(null==r||!n.isTag(r))&&e(t)},scope(e,t,n,r){const i=n.equals;return r&&0!==r.length?1===r.length?t=>i(r[0],t)&&e(t):t=>r.includes(t)&&e(t):Ot.root(e,t,n)},hover:kt("isHovered"),visited:kt("isVisited"),active:kt("isActive")};function kt(e){return function(t,n,{adapter:r}){const i=r[e];return"function"!=typeof i?ht.falseFunc:function(e){return i(e)&&t(e)}}}const Rt={empty:(e,{adapter:t})=>!t.getChildren(e).some((e=>t.isTag(e)||""!==t.getText(e))),"first-child"(e,{adapter:t,equals:n}){var r;return t.prevElementSibling?null==t.prevElementSibling(e):null!=(r=t.getSiblings(e).find((e=>t.isTag(e))))&&n(e,r)},"last-child"(e,{adapter:t,equals:n}){var r=t.getSiblings(e);for(let i=r.length-1;0<=i;i--){if(n(e,r[i]))return!0;if(t.isTag(r[i]))break}return!1},"first-of-type"(e,{adapter:t,equals:n}){var r=t.getSiblings(e),i=t.getName(e);for(let a=0;an(e,i)||!t.isTag(i)||t.getName(i)!==r))},"only-child":(e,{adapter:t,equals:n})=>t.getSiblings(e).every((r=>n(e,r)||!t.isTag(r)))};function Dt(e,t,n,r){if(null===n){if(e.length>r)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===r)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}const Lt={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:":is(\n :is(button, input, select, textarea, optgroup, option)[disabled],\n optgroup[disabled] > option,\n fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\n )",enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},wt={};function xt(e,t){var n=t.getSiblings(e);return n.length<=1||(e=n.indexOf(e))<0||e===n.length-1?[]:n.slice(e+1).filter(t.isTag)}function Mt(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}const Pt=(e,t,n,r,i)=>{const s=i(t,Mt(n),r);return s===ht.trueFunc?e:s===ht.falseFunc?ht.falseFunc:t=>s(t)&&e(t)},Bt={is:Pt,matches:Pt,where:Pt,not(e,t,n,r,i){const s=i(t,Mt(n),r);return s===ht.falseFunc?e:s===ht.trueFunc?ht.falseFunc:t=>!s(t)&&e(t)},has(e,t,n,r,i){const s=n.adapter,a=Mt(n),o=(a.relativeSelector=!0,t.some((e=>e.some(dt)))?[wt]:void 0),c=i(t,a,o);if(c===ht.falseFunc)return ht.falseFunc;const l=function(e,t){return e===ht.falseFunc?ht.falseFunc:n=>t.isTag(n)&&e(n)}(c,s);if(o&&c!==ht.trueFunc){const{shouldTestNextSiblings:t=!1}=c;return n=>{if(!e(n))return!1;o[0]=n;var r=s.getChildren(n);n=t?[...r,...xt(n,s)]:r;return s.existsOne(l,n)}}return t=>e(t)&&s.existsOne(l,s.getChildren(t))}};function Ft(e,t){return(e=t.getParent(e))&&t.isTag(e)?e:null}function Ut(e){return e.type===We.Pseudo&&("scope"===e.name||Array.isArray(e.data)&&e.data.some((e=>e.some(Ut))))}const Ht={type:We.Descendant},Gt={type:"_flexibleDescendant"},Xt={type:We.Pseudo,name:"scope",data:null};function jt(e,t){return t===ht.falseFunc||e===ht.trueFunc?e:e===ht.falseFunc||t===ht.trueFunc?t:function(n){return e(n)||t(n)}}const Yt=(e,t)=>e===t,qt={adapter:Ne,equals:Yt},$t=(ut=function e(t,n,r){t.forEach(mt),r=null!=(o=n.context)?o:r;const i=Array.isArray(r),s=r&&(Array.isArray(r)?r:[r]);if(!1!==n.relativeSelector)!function(e,{adapter:t},n){var r=!(null==n||!n.every((e=>{var n=t.isTag(e)&&t.getParent(e);return e===wt||n&&t.isTag(n)})));for(const t of e){if(!(00{if(2<=t.length){const[e,n]=t;e.type===We.Pseudo&&"scope"===e.name&&(i&&n.type===We.Descendant?t[1]=Gt:n.type!==We.Adjacent&&n.type!==We.Sibling||(a=!0))}return function(t,n,r){return t.reduce(((t,i)=>t===ht.falseFunc?ht.falseFunc:function(e,t,n,r,i){const{adapter:s,equals:a}=n;switch(t.type){case We.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case We.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case We.Attribute:if(null!=t.namespace)throw new Error("Namespaced attributes are not yet supported by css-select");return n.xmlMode&&!n.lowerCaseAttributeNames||(t.name=t.name.toLowerCase()),St[t.action](e,t,n);case We.Pseudo:return function(e,t,n,r,i){const{name:s,data:a}=t;if(Array.isArray(a)){if(s in Bt)return Bt[s](e,a,n,r,i);throw new Error(`Unknown pseudo-class :${s}(${a})`)}const o=null==(t=n.pseudos)?void 0:t[s],c="string"==typeof o?o:Lt[s];if("string"==typeof c){if(null!=a)throw new Error(`Pseudo ${s} doesn't have any arguments`);const t=ct(c);return Bt.is(e,t,n,r,i)}if("function"==typeof o)return Dt(o,s,a,1),t=>o(t,a)&&e(t);if(s in Ot)return Ot[s](e,a,n,r);if(s in Rt){const t=Rt[s];return Dt(t,s,a,2),r=>t(r,n,a)&&e(r)}throw new Error("Unknown pseudo-class :"+s)}(e,t,n,r,i);case We.Tag:{if(null!=t.namespace)throw new Error("Namespaced tag names are not yet supported by css-select");let r=t.name;return n.xmlMode&&!n.lowerCaseTags||(r=r.toLowerCase()),function(t){return s.getName(t)===r&&e(t)}}case We.Descendant:{if(!1===n.cacheResults||"undefined"==typeof WeakSet)return function(t){let n=t;for(;n=Ft(n,s);)if(e(n))return!0;return!1};const t=new WeakSet;return function(n){let r=n;for(;r=Ft(r,s);)if(!t.has(r)){if(s.isTag(r)&&e(r))return!0;t.add(r)}return!1}}case"_flexibleDescendant":return function(t){let n=t;do{if(e(n))return!0}while(n=Ft(n,s));return!1};case We.Parent:return function(t){return s.getChildren(t).some((t=>s.isTag(t)&&e(t)))};case We.Child:return function(t){return null!=(t=s.getParent(t))&&s.isTag(t)&&e(t)};case We.Sibling:return function(t){var n=s.getSiblings(t);for(let i=0;ie.some(Wt))))}function zt(e){var t=[],n=[];for(const r of e)(r.some(Wt)?t:n).push(r);return[n,t]}const Qt={type:We.Universal,namespace:null},Jt={type:We.Pseudo,name:"scope",data:null};function Zt(e,t,n={}){return en([e],t,n)}function en(e,t,n={}){var r;return"function"==typeof t?e.some(t):([t,r]=zt(ct(t)),00v(e)&&!s.has(e))):t;if(0===o.length)break;var a=rn(r,t,n);if(a.length)if(s)a.forEach((e=>s.add(e)));else{if(e===i.length-1)return a;s=new Set(a)}}return void 0!==s?s.size===t.length?t:t.filter((e=>s.has(e))):[]}function rn(e,t,n){var r,i;return e.some(nt)?(r=null!=(r=n.root)?r:function(e){for(;e.parent;)e=e.parent;return e}(t[0]),i={...n,context:t,relativeSelector:!1},e.push(Jt),sn(r,e,i,!0,t.length)):sn(t,e,n,!1,t.length)}function sn(e,t,n,r,i){var s=t.findIndex(Wt),a=t.slice(0,s),o=t[s],c=t.length-1===s?i:1/0;if(0===(c=function(e,t,n){var r=null!=t?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(r)?0<=r?r+1:1/0:0;case"lt":return isFinite(r)?0<=r?Math.min(r,n):1/0:0;case"gt":return isFinite(r)?1/0:0;case"odd":return 2*n;case"even":return 2*n-1;case"last":case"not":return 1/0}}(o.name,o.data,c)))return[];r=(0!==a.length||Array.isArray(e)?0===a.length?(Array.isArray(e)?e:[e]).filter(v):r||a.some(nt)?an(e,[a],n,c):cn(e,[a],n):ee(e).filter(v)).slice(0,c);let l=function(e,t,n,r){var i="string"==typeof n?parseInt(n,10):NaN;switch(e){case"first":case"lt":return t;case"last":return 0t%2==0));case"odd":return t.filter(((e,t)=>t%2==1));case"not":{const e=new Set(nn(n,t,r));return t.filter((t=>!e.has(t)))}}}(o.name,r,o.data,n);if(0===l.length||t.length===s+1)return l;if(e=(a=t.slice(s+1)).some(nt)){if(nt(a[0])){const e=a[0].type;e!==We.Sibling&&e!==We.Adjacent||(l=Vt(l,Ne,!0)),a.unshift(Qt)}n={...n,relativeSelector:!1,rootFunc:e=>l.includes(e)}}else n.rootFunc&&n.rootFunc!==ft&&(n={...n,rootFunc:ft});return a.some(Wt)?sn(l,a,n,!1,i):e?an(l,[a],n,i):cn(l,[a],n)}function an(e,t,n,r){return on(e,$t(t,n,e),r)}function on(e,t,n=1/0){return oe((e=>v(e)&&t(e)),Vt(e,Ne,t.shouldTestNextSiblings),!0,n)}function cn(e,t,n){return 0===(e=(Array.isArray(e)?e:[e]).filter(v)).length||(t=$t(t,n))===ft?e:e.filter(t)}var ln=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;isn(t,e,n,!0,1/0))),e.length&&r.push(an(t,e,n,1/0)),0===r.length?[]:1===r.length?r[0]:Ee(r.reduce(((e,t)=>[...e,...t]))))}(e,n,r)))):this._make([])},parent:mn,parents:Tn,parentsUntil:_n,closest:function(e){var t,n,r,i=[];return e&&(n={xmlMode:this.options.xmlMode,root:null==(t=this._root)?void 0:t[0]},r="string"==typeof e?function(t){return Zt(t,e,n)}:Cn(e),Le(this,(function(e){for(;e&&v(e);){if(r(e,0)){i.includes(e)||i.push(e);break}e=e.parent}}))),this._make(i)},next:gn,nextAll:An,nextUntil:yn,prev:Sn,prevAll:Nn,prevUntil:vn,siblings:In,children:bn,contents:function(){var e=this.toArray().reduce((function(e,t){return R(t)?e.concat(t.children):e}),[]);return this._make(e)},each:function(e){for(var t=0,n=this.length;t=e.length?null:e[t+n],c=0;cthis.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){0this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t=this.html.length?(this.endOfChunkHit=!this.lastChunkWritten,Gn.EOF):(e=this.html.charCodeAt(e))===Gn.CARRIAGE_RETURN?Gn.LINE_FEED:e}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Gn.EOF;let e=this.html.charCodeAt(this.pos);return e===Gn.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Gn.LINE_FEED):e===Gn.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,ir(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||31䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(e){return e.charCodeAt(0)})))})),dr=(hr(pr),fr((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e){return e.charCodeAt(0)})))}))),Er=(hr(dr),fr((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var n,r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function i(e){var t;return 55296<=e&&e<=57343||1114111>>10&1023|55296),e=56320|1023&e),t+String.fromCharCode(e)},t.replaceCodePoint=i,t.default=function(e){return(0,t.fromCodePoint)(i(e))}}))),mr=(hr(Er),Er.replaceCodePoint,Er.fromCodePoint,pr),Tr=dr,_r=Er,gr=fr((function(e,t){var n=lr&&lr.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){e[r=void 0===r?n:r]=t[n]}),r=lr&&lr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=lr&&lr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},s=lr&&lr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=(Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0,s(mr)),o=(s=(t.htmlDecodeTree=a.default,s(Tr)),t.xmlDecodeTree=s.default,i(_r));t.decodeCodePoint=o.default;var c,l,u,h,f=_r;function p(e){return e>=c.ZERO&&e<=c.NINE}Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return f.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return f.fromCodePoint}}),function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(c={}),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(l=t.BinTrieFlags||(t.BinTrieFlags={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(u={}),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(h=t.DecodingMode||(t.DecodingMode={}));var d=function(){function e(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=u.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=h.Strict}return e.prototype.startEntity=function(e){this.decodeMode=e,this.state=u.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},e.prototype.write=function(e,t){switch(this.state){case u.EntityStart:return e.charCodeAt(t)===c.NUM?(this.state=u.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=u.NamedEntity,this.stateNamedEntity(e,t));case u.NumericStart:return this.stateNumericStart(e,t);case u.NumericDecimal:return this.stateNumericDecimal(e,t);case u.NumericHex:return this.stateNumericHex(e,t);case u.NamedEntity:return this.stateNamedEntity(e,t)}},e.prototype.stateNumericStart=function(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===c.LOWER_X?(this.state=u.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=u.NumericDecimal,this.stateNumericDecimal(e,t))},e.prototype.addToNumericResult=function(e,t,n,r){t!==n&&(n-=t,this.result=this.result*Math.pow(r,n)+parseInt(e.substr(t,n),r),this.consumed+=n)},e.prototype.stateNumericHex=function(e,t){for(var n=t;t=c.UPPER_A&&r<=c.UPPER_F||c.LOWER_A<=r&&r<=c.LOWER_F))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1},e.prototype.stateNumericDecimal=function(e,t){for(var n=t;t>14;t>14)){if(s===c.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==h.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},e.prototype.emitNotTerminatedNamedEntity=function(){var e=this.result,t=(this.decodeTree[e]&l.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,t,this.consumed),null!=(e=this.errors)&&e.missingSemicolonAfterCharacterReference(),this.consumed},e.prototype.emitNamedEntityData=function(e,t,n){var r=this.decodeTree;return this.emitCodePoint(1===t?r[e]&~l.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n},e.prototype.end=function(){var e;switch(this.state){case u.NamedEntity:return 0===this.result||this.decodeMode===h.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case u.NumericDecimal:return this.emitNumericEntity(0,2);case u.NumericHex:return this.emitNumericEntity(0,3);case u.NumericStart:return null!=(e=this.errors)&&e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case u.EntityStart:return 0}},e}();function E(e){var t="",n=new d(e,(function(e){return t+=(0,o.fromCodePoint)(e)}));return function(e,r){for(var i=0,s=0;0<=(s=e.indexOf("&",s));){t+=e.slice(i,s),n.startEntity(r);var a=n.write(e,s+1);if(a<0){i=s+n.end();break}i=s+a,s=0===a?i+1:i}var o=t+e.slice(i);return t="",o}}function m(e,t,n,r){var i=(t&l.BRANCH_LENGTH)>>7;t&=l.JUMP_TABLE;if(0==i)return 0!=t&&r===t?n:-1;if(t)return(t=r-t)<0||i<=t?-1:e[n+t]-1;for(var s=n,a=s+i-1;s<=a;){var o=s+a>>>1,c=e[o];if(c=Gn.DIGIT_0&&e<=Gn.DIGIT_9}function jr(e){return e>=Gn.LATIN_CAPITAL_A&&e<=Gn.LATIN_CAPITAL_Z}function Yr(e){return function(e){return e>=Gn.LATIN_SMALL_A&&e<=Gn.LATIN_SMALL_Z}(e)||jr(e)}function qr(e){return Yr(e)||Xr(e)}function $r(e){return e>=Gn.LATIN_CAPITAL_A&&e<=Gn.LATIN_CAPITAL_F}function Vr(e){return e>=Gn.LATIN_SMALL_A&&e<=Gn.LATIN_SMALL_F}function Kr(e){return e+32}function Wr(e){return e===Gn.SPACE||e===Gn.LINE_FEED||e===Gn.TABULATION||e===Gn.FORM_FEED}function zr(e){return Wr(e)||e===Gn.SOLIDUS||e===Gn.GREATER_THAN_SIGN}class Qr{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=kr.DATA,this.returnState=kr.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new or(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,n;null!=(n=(t=this.handler).onParseError)&&n.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;var e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused)||null==e||e()}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!(!this.preprocessor.endOfChunkHit||(this._unconsume(this.consumedAfterSnapshot),this.active=!1))}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t>14)-1;if(e!==Gn.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((i=this.preprocessor.peek(1))===Gn.EQUALS_SIGN||qr(i))?(t=[Gn.AMPERSAND],s+=a):(t=0==a?[wr[s]&~yr.VALUE_LENGTH]:1==a?[wr[++s]]:[wr[++s],wr[++s]],n=0,r=e!==Gn.SEMICOLON),0==a){this._consume();break}}}return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(Xn.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===kr.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===kr.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===kr.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case kr.DATA:this._stateData(e);break;case kr.RCDATA:this._stateRcdata(e);break;case kr.RAWTEXT:this._stateRawtext(e);break;case kr.SCRIPT_DATA:this._stateScriptData(e);break;case kr.PLAINTEXT:this._statePlaintext(e);break;case kr.TAG_OPEN:this._stateTagOpen(e);break;case kr.END_TAG_OPEN:this._stateEndTagOpen(e);break;case kr.TAG_NAME:this._stateTagName(e);break;case kr.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case kr.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case kr.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case kr.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case kr.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case kr.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case kr.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case kr.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case kr.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case kr.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case kr.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case kr.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case kr.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case kr.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case kr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case kr.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case kr.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case kr.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case kr.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case kr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case kr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case kr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case kr.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case kr.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case kr.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case kr.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case kr.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case kr.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case kr.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case kr.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case kr.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case kr.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case kr.BOGUS_COMMENT:this._stateBogusComment(e);break;case kr.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case kr.COMMENT_START:this._stateCommentStart(e);break;case kr.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case kr.COMMENT:this._stateComment(e);break;case kr.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case kr.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case kr.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case kr.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case kr.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case kr.COMMENT_END:this._stateCommentEnd(e);break;case kr.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case kr.DOCTYPE:this._stateDoctype(e);break;case kr.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case kr.DOCTYPE_NAME:this._stateDoctypeName(e);break;case kr.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case kr.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case kr.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case kr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case kr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case kr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case kr.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case kr.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case kr.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case kr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case kr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case kr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case kr.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case kr.CDATA_SECTION:this._stateCdataSection(e);break;case kr.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case kr.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case kr.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case kr.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case kr.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case kr.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case kr.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case kr.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case kr.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case kr.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case Gn.LESS_THAN_SIGN:this.state=kr.TAG_OPEN;break;case Gn.AMPERSAND:this.returnState=kr.DATA,this.state=kr.CHARACTER_REFERENCE;break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter),this._emitCodePoint(e);break;case Gn.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case Gn.AMPERSAND:this.returnState=kr.RCDATA,this.state=kr.CHARACTER_REFERENCE;break;case Gn.LESS_THAN_SIGN:this.state=kr.RCDATA_LESS_THAN_SIGN;break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter),this._emitChars(Zn);break;case Gn.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case Gn.LESS_THAN_SIGN:this.state=kr.RAWTEXT_LESS_THAN_SIGN;break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter),this._emitChars(Zn);break;case Gn.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case Gn.LESS_THAN_SIGN:this.state=kr.SCRIPT_DATA_LESS_THAN_SIGN;break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter),this._emitChars(Zn);break;case Gn.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case Gn.NULL:this._err(Xn.unexpectedNullCharacter),this._emitChars(Zn);break;case Gn.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Yr(e))this._createStartTagToken(),this.state=kr.TAG_NAME,this._stateTagName(e);else switch(e){case Gn.EXCLAMATION_MARK:this.state=kr.MARKUP_DECLARATION_OPEN;break;case Gn.SOLIDUS:this.state=kr.END_TAG_OPEN;break;case Gn.QUESTION_MARK:this._err(Xn.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=kr.BOGUS_COMMENT,this._stateBogusComment(e);break;case Gn.EOF:this._err(Xn.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(Xn.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=kr.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Yr(e))this._createEndTagToken(),this.state=kr.TAG_NAME,this._stateTagName(e);else switch(e){case Gn.GREATER_THAN_SIGN:this._err(Xn.missingEndTagName),this.state=kr.DATA;break;case Gn.EOF:this._err(Xn.eofBeforeTagName),this._emitChars("");break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter),this.state=kr.SCRIPT_DATA_ESCAPED,this._emitChars(Zn);break;case Gn.EOF:this._err(Xn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=kr.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===Gn.SOLIDUS?this.state=kr.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Yr(e)?(this._emitChars("<"),this.state=kr.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=kr.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){Yr(e)?(this.state=kr.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter),this.state=kr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Zn);break;case Gn.EOF:this._err(Xn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=kr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===Gn.SOLIDUS?(this.state=kr.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=kr.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(rr,!1)&&zr(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=kr.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=kr.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case Gn.SPACE:case Gn.LINE_FEED:case Gn.TABULATION:case Gn.FORM_FEED:break;case Gn.SOLIDUS:case Gn.GREATER_THAN_SIGN:case Gn.EOF:this.state=kr.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Gn.EQUALS_SIGN:this._err(Xn.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=kr.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=kr.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case Gn.SPACE:case Gn.LINE_FEED:case Gn.TABULATION:case Gn.FORM_FEED:case Gn.SOLIDUS:case Gn.GREATER_THAN_SIGN:case Gn.EOF:this._leaveAttrName(),this.state=kr.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Gn.EQUALS_SIGN:this._leaveAttrName(),this.state=kr.BEFORE_ATTRIBUTE_VALUE;break;case Gn.QUOTATION_MARK:case Gn.APOSTROPHE:case Gn.LESS_THAN_SIGN:this._err(Xn.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter),this.currentAttr.name+=Zn;break;default:this.currentAttr.name+=String.fromCodePoint(jr(e)?Kr(e):e)}}_stateAfterAttributeName(e){switch(e){case Gn.SPACE:case Gn.LINE_FEED:case Gn.TABULATION:case Gn.FORM_FEED:break;case Gn.SOLIDUS:this.state=kr.SELF_CLOSING_START_TAG;break;case Gn.EQUALS_SIGN:this.state=kr.BEFORE_ATTRIBUTE_VALUE;break;case Gn.GREATER_THAN_SIGN:this.state=kr.DATA,this.emitCurrentTagToken();break;case Gn.EOF:this._err(Xn.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=kr.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case Gn.SPACE:case Gn.LINE_FEED:case Gn.TABULATION:case Gn.FORM_FEED:break;case Gn.QUOTATION_MARK:this.state=kr.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case Gn.APOSTROPHE:this.state=kr.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case Gn.GREATER_THAN_SIGN:this._err(Xn.missingAttributeValue),this.state=kr.DATA,this.emitCurrentTagToken();break;default:this.state=kr.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case Gn.QUOTATION_MARK:this.state=kr.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Gn.AMPERSAND:this.returnState=kr.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=kr.CHARACTER_REFERENCE;break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter),this.currentAttr.value+=Zn;break;case Gn.EOF:this._err(Xn.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case Gn.APOSTROPHE:this.state=kr.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Gn.AMPERSAND:this.returnState=kr.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=kr.CHARACTER_REFERENCE;break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter),this.currentAttr.value+=Zn;break;case Gn.EOF:this._err(Xn.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case Gn.SPACE:case Gn.LINE_FEED:case Gn.TABULATION:case Gn.FORM_FEED:this._leaveAttrValue(),this.state=kr.BEFORE_ATTRIBUTE_NAME;break;case Gn.AMPERSAND:this.returnState=kr.ATTRIBUTE_VALUE_UNQUOTED,this.state=kr.CHARACTER_REFERENCE;break;case Gn.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=kr.DATA,this.emitCurrentTagToken();break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter),this.currentAttr.value+=Zn;break;case Gn.QUOTATION_MARK:case Gn.APOSTROPHE:case Gn.LESS_THAN_SIGN:case Gn.EQUALS_SIGN:case Gn.GRAVE_ACCENT:this._err(Xn.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case Gn.EOF:this._err(Xn.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case Gn.SPACE:case Gn.LINE_FEED:case Gn.TABULATION:case Gn.FORM_FEED:this._leaveAttrValue(),this.state=kr.BEFORE_ATTRIBUTE_NAME;break;case Gn.SOLIDUS:this._leaveAttrValue(),this.state=kr.SELF_CLOSING_START_TAG;break;case Gn.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=kr.DATA,this.emitCurrentTagToken();break;case Gn.EOF:this._err(Xn.eofInTag),this._emitEOFToken();break;default:this._err(Xn.missingWhitespaceBetweenAttributes),this.state=kr.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case Gn.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=kr.DATA,this.emitCurrentTagToken();break;case Gn.EOF:this._err(Xn.eofInTag),this._emitEOFToken();break;default:this._err(Xn.unexpectedSolidusInTag),this.state=kr.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){var t=this.currentToken;switch(e){case Gn.GREATER_THAN_SIGN:this.state=kr.DATA,this.emitCurrentComment(t);break;case Gn.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter),t.data+=Zn;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(er,!0)?(this._createCommentToken(er.length+1),this.state=kr.COMMENT_START):this._consumeSequenceIfMatch(nr,!1)?(this.currentLocation=this.getCurrentLocation(8),this.state=kr.DOCTYPE):this._consumeSequenceIfMatch(tr,!0)?this.inForeignNode?this.state=kr.CDATA_SECTION:(this._err(Xn.cdataInHtmlContent),this._createCommentToken(8),this.currentToken.data="[CDATA[",this.state=kr.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Xn.incorrectlyOpenedComment),this._createCommentToken(2),this.state=kr.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case Gn.HYPHEN_MINUS:this.state=kr.COMMENT_START_DASH;break;case Gn.GREATER_THAN_SIGN:{this._err(Xn.abruptClosingOfEmptyComment),this.state=kr.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=kr.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){var t=this.currentToken;switch(e){case Gn.HYPHEN_MINUS:this.state=kr.COMMENT_END;break;case Gn.GREATER_THAN_SIGN:this._err(Xn.abruptClosingOfEmptyComment),this.state=kr.DATA,this.emitCurrentComment(t);break;case Gn.EOF:this._err(Xn.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=kr.COMMENT,this._stateComment(e)}}_stateComment(e){var t=this.currentToken;switch(e){case Gn.HYPHEN_MINUS:this.state=kr.COMMENT_END_DASH;break;case Gn.LESS_THAN_SIGN:t.data+="<",this.state=kr.COMMENT_LESS_THAN_SIGN;break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter),t.data+=Zn;break;case Gn.EOF:this._err(Xn.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){var t=this.currentToken;switch(e){case Gn.EXCLAMATION_MARK:t.data+="!",this.state=kr.COMMENT_LESS_THAN_SIGN_BANG;break;case Gn.LESS_THAN_SIGN:t.data+="<";break;default:this.state=kr.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===Gn.HYPHEN_MINUS?this.state=kr.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=kr.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===Gn.HYPHEN_MINUS?this.state=kr.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=kr.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==Gn.GREATER_THAN_SIGN&&e!==Gn.EOF&&this._err(Xn.nestedComment),this.state=kr.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){var t=this.currentToken;switch(e){case Gn.HYPHEN_MINUS:this.state=kr.COMMENT_END;break;case Gn.EOF:this._err(Xn.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=kr.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){var t=this.currentToken;switch(e){case Gn.GREATER_THAN_SIGN:this.state=kr.DATA,this.emitCurrentComment(t);break;case Gn.EXCLAMATION_MARK:this.state=kr.COMMENT_END_BANG;break;case Gn.HYPHEN_MINUS:t.data+="-";break;case Gn.EOF:this._err(Xn.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=kr.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){var t=this.currentToken;switch(e){case Gn.HYPHEN_MINUS:t.data+="--!",this.state=kr.COMMENT_END_DASH;break;case Gn.GREATER_THAN_SIGN:this._err(Xn.incorrectlyClosedComment),this.state=kr.DATA,this.emitCurrentComment(t);break;case Gn.EOF:this._err(Xn.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=kr.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case Gn.SPACE:case Gn.LINE_FEED:case Gn.TABULATION:case Gn.FORM_FEED:this.state=kr.BEFORE_DOCTYPE_NAME;break;case Gn.GREATER_THAN_SIGN:this.state=kr.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case Gn.EOF:{this._err(Xn.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(Xn.missingWhitespaceBeforeDoctypeName),this.state=kr.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(jr(e))this._createDoctypeToken(String.fromCharCode(Kr(e))),this.state=kr.DOCTYPE_NAME;else switch(e){case Gn.SPACE:case Gn.LINE_FEED:case Gn.TABULATION:case Gn.FORM_FEED:break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter),this._createDoctypeToken(Zn),this.state=kr.DOCTYPE_NAME;break;case Gn.GREATER_THAN_SIGN:{this._err(Xn.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=kr.DATA;break}case Gn.EOF:{this._err(Xn.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=kr.DOCTYPE_NAME}}_stateDoctypeName(e){var t=this.currentToken;switch(e){case Gn.SPACE:case Gn.LINE_FEED:case Gn.TABULATION:case Gn.FORM_FEED:this.state=kr.AFTER_DOCTYPE_NAME;break;case Gn.GREATER_THAN_SIGN:this.state=kr.DATA,this.emitCurrentDoctype(t);break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter),t.name+=Zn;break;case Gn.EOF:this._err(Xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(jr(e)?Kr(e):e)}}_stateAfterDoctypeName(e){var t=this.currentToken;switch(e){case Gn.SPACE:case Gn.LINE_FEED:case Gn.TABULATION:case Gn.FORM_FEED:break;case Gn.GREATER_THAN_SIGN:this.state=kr.DATA,this.emitCurrentDoctype(t);break;case Gn.EOF:this._err(Xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=kr.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=kr.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Xn.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=kr.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){var t=this.currentToken;switch(e){case Gn.SPACE:case Gn.LINE_FEED:case Gn.TABULATION:case Gn.FORM_FEED:this.state=kr.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case Gn.QUOTATION_MARK:this._err(Xn.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=kr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Gn.APOSTROPHE:this._err(Xn.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=kr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Gn.GREATER_THAN_SIGN:this._err(Xn.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=kr.DATA,this.emitCurrentDoctype(t);break;case Gn.EOF:this._err(Xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Xn.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=kr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){var t=this.currentToken;switch(e){case Gn.SPACE:case Gn.LINE_FEED:case Gn.TABULATION:case Gn.FORM_FEED:break;case Gn.QUOTATION_MARK:t.publicId="",this.state=kr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Gn.APOSTROPHE:t.publicId="",this.state=kr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Gn.GREATER_THAN_SIGN:this._err(Xn.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=kr.DATA,this.emitCurrentDoctype(t);break;case Gn.EOF:this._err(Xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Xn.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=kr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){var t=this.currentToken;switch(e){case Gn.QUOTATION_MARK:this.state=kr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter),t.publicId+=Zn;break;case Gn.GREATER_THAN_SIGN:this._err(Xn.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=kr.DATA;break;case Gn.EOF:this._err(Xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){var t=this.currentToken;switch(e){case Gn.APOSTROPHE:this.state=kr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter),t.publicId+=Zn;break;case Gn.GREATER_THAN_SIGN:this._err(Xn.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=kr.DATA;break;case Gn.EOF:this._err(Xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){var t=this.currentToken;switch(e){case Gn.SPACE:case Gn.LINE_FEED:case Gn.TABULATION:case Gn.FORM_FEED:this.state=kr.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case Gn.GREATER_THAN_SIGN:this.state=kr.DATA,this.emitCurrentDoctype(t);break;case Gn.QUOTATION_MARK:this._err(Xn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=kr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Gn.APOSTROPHE:this._err(Xn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=kr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Gn.EOF:this._err(Xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Xn.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=kr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){var t=this.currentToken;switch(e){case Gn.SPACE:case Gn.LINE_FEED:case Gn.TABULATION:case Gn.FORM_FEED:break;case Gn.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=kr.DATA;break;case Gn.QUOTATION_MARK:t.systemId="",this.state=kr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Gn.APOSTROPHE:t.systemId="",this.state=kr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Gn.EOF:this._err(Xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Xn.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=kr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){var t=this.currentToken;switch(e){case Gn.SPACE:case Gn.LINE_FEED:case Gn.TABULATION:case Gn.FORM_FEED:this.state=kr.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case Gn.QUOTATION_MARK:this._err(Xn.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=kr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Gn.APOSTROPHE:this._err(Xn.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=kr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Gn.GREATER_THAN_SIGN:this._err(Xn.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=kr.DATA,this.emitCurrentDoctype(t);break;case Gn.EOF:this._err(Xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Xn.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=kr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){var t=this.currentToken;switch(e){case Gn.SPACE:case Gn.LINE_FEED:case Gn.TABULATION:case Gn.FORM_FEED:break;case Gn.QUOTATION_MARK:t.systemId="",this.state=kr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Gn.APOSTROPHE:t.systemId="",this.state=kr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Gn.GREATER_THAN_SIGN:this._err(Xn.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=kr.DATA,this.emitCurrentDoctype(t);break;case Gn.EOF:this._err(Xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Xn.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=kr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){var t=this.currentToken;switch(e){case Gn.QUOTATION_MARK:this.state=kr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter),t.systemId+=Zn;break;case Gn.GREATER_THAN_SIGN:this._err(Xn.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=kr.DATA;break;case Gn.EOF:this._err(Xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){var t=this.currentToken;switch(e){case Gn.APOSTROPHE:this.state=kr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter),t.systemId+=Zn;break;case Gn.GREATER_THAN_SIGN:this._err(Xn.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=kr.DATA;break;case Gn.EOF:this._err(Xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){var t=this.currentToken;switch(e){case Gn.SPACE:case Gn.LINE_FEED:case Gn.TABULATION:case Gn.FORM_FEED:break;case Gn.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=kr.DATA;break;case Gn.EOF:this._err(Xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Xn.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=kr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){var t=this.currentToken;switch(e){case Gn.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=kr.DATA;break;case Gn.NULL:this._err(Xn.unexpectedNullCharacter);break;case Gn.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case Gn.RIGHT_SQUARE_BRACKET:this.state=kr.CDATA_SECTION_BRACKET;break;case Gn.EOF:this._err(Xn.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===Gn.RIGHT_SQUARE_BRACKET?this.state=kr.CDATA_SECTION_END:(this._emitChars("]"),this.state=kr.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case Gn.GREATER_THAN_SIGN:this.state=kr.DATA;break;case Gn.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=kr.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(e){e===Gn.NUMBER_SIGN?this.state=kr.NUMERIC_CHARACTER_REFERENCE:qr(e)?(this.state=kr.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(e)):(this._flushCodePointConsumedAsCharacterReference(Gn.AMPERSAND),this._reconsumeInState(this.returnState,e))}_stateNamedCharacterReference(e){var t=this._matchNamedCharacterReference(e);if(!this._ensureHibernation())if(t){for(let e=0;e=e;){var t=this.current;0[e.name,e.value])));let r=0;for(let t=0;te.get(t.name)===t.value))&&3<=(r+=1)&&this.entries.splice(i.idx,1)}}}}insertMarker(){this.entries.unshift(oi)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:Rr.Element,element:e,token:t})}insertElementAfterBookmark(e,t){var n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Rr.Element,element:e,token:t})}removeEntry(e){0<=(e=this.entries.indexOf(e))&&this.entries.splice(e,1)}clearToLastMarker(){var e=this.entries.indexOf(oi);0<=e?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){var t=this.entries.find((t=>t.type===Rr.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===Rr.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===Rr.Element&&t.element===e))}}function li(e){return{nodeName:"#text",value:e,parentNode:null}}const ui={createDocument:()=>({nodeName:"#document",mode:br.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){n=e.childNodes.indexOf(n),e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const i=e.childNodes.find((e=>"#documentType"===e.nodeName));if(i)i.name=t,i.publicId=n,i.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};ui.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){var t;e.parentNode&&(t=e.parentNode.childNodes.indexOf(e),e.parentNode.childNodes.splice(t,1),e.parentNode=null)},insertText(e,t){if(0e.name)));for(let r=0;re.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},hi="html",fi=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],pi=[...fi,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],di=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ei=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],mi=[...Ei,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Ti(e,t){return t.some((t=>e.startsWith(t)))}const _i="text/html",gi="application/xhtml+xml",Ai="definitionurl",yi="definitionURL",Si=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),Ni=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:vr.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:vr.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:vr.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:vr.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:vr.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:vr.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:vr.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:vr.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:vr.XML}],["xml:space",{prefix:"xml",name:"space",namespace:vr.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:vr.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:vr.XMLNS}]]),vi=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),Ii=new Set([Or.B,Or.BIG,Or.BLOCKQUOTE,Or.BODY,Or.BR,Or.CENTER,Or.CODE,Or.DD,Or.DIV,Or.DL,Or.DT,Or.EM,Or.EMBED,Or.H1,Or.H2,Or.H3,Or.H4,Or.H5,Or.H6,Or.HEAD,Or.HR,Or.I,Or.IMG,Or.LI,Or.LISTING,Or.MENU,Or.META,Or.NOBR,Or.OL,Or.P,Or.PRE,Or.RUBY,Or.S,Or.SMALL,Or.SPAN,Or.STRONG,Or.STRIKE,Or.SUB,Or.SUP,Or.TABLE,Or.TT,Or.U,Or.UL,Or.VAR]);function bi(e){for(let t=0;tthis.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo&&(t=t&&{...t,startTag:t},this.treeAdapter.setNodeSourceCodeLocation(e,t)),this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){t=this.treeAdapter.createElement(e.tagName,t,e.attrs),this._attachElementToTree(t,e.location)}_insertElement(e,t){t=this.treeAdapter.createElement(e.tagName,t,e.attrs),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID)}_insertFakeElement(e,t){e=this.treeAdapter.createElement(e,vr.HTML,[]),this._attachElementToTree(e,null),this.openElements.push(e,t)}_insertTemplate(e){var t=this.treeAdapter.createElement(e.tagName,vr.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){var e=this.treeAdapter.createElement(Cr.HTML,vr.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,Or.HTML)}_appendCommentNode(e,t){var n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),e.location){var r=this.treeAdapter.getChildNodes(t),i=n?r.lastIndexOf(n):r.length;i=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){var n,r;this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location&&(n=t.location,r=this.treeAdapter.getTagName(e),r=t.type===jn.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset},this.treeAdapter.updateNodeSourceCodeLocation(e,r))}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==Or.SVG||this.treeAdapter.getTagName(t)!==Cr.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==vr.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===Or.MGLYPH||e.tagID===Or.MALIGNMARK)&&!this._isIntegrationPoint(n,t,vr.HTML))}_processToken(e){switch(e.type){case jn.CHARACTER:this.onCharacter(e);break;case jn.NULL_CHARACTER:this.onNullCharacter(e);break;case jn.COMMENT:this.onComment(e);break;case jn.DOCTYPE:this.onDoctype(e);break;case jn.START_TAG:this._processStartTag(e);break;case jn.END_TAG:this.onEndTag(e);break;case jn.EOF:this.onEof(e);break;case jn.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return function(e,t,n,r){return(!r||r===vr.HTML)&&function(e,t,n){if(t===vr.MATHML&&e===Or.ANNOTATION_XML)for(let e=0;ee.type===Rr.Marker||this.openElements.contains(e.element)));for(let n=t<0?e-1:t-1;0<=n;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Dr.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Or.P),this.openElements.popUntilTagNamePopped(Or.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;0<=e;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case Or.TR:return void(this.insertionMode=Dr.IN_ROW);case Or.TBODY:case Or.THEAD:case Or.TFOOT:return void(this.insertionMode=Dr.IN_TABLE_BODY);case Or.CAPTION:return void(this.insertionMode=Dr.IN_CAPTION);case Or.COLGROUP:return void(this.insertionMode=Dr.IN_COLUMN_GROUP);case Or.TABLE:return void(this.insertionMode=Dr.IN_TABLE);case Or.BODY:return void(this.insertionMode=Dr.IN_BODY);case Or.FRAMESET:return void(this.insertionMode=Dr.IN_FRAMESET);case Or.SELECT:return void this._resetInsertionModeForSelect(e);case Or.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case Or.HTML:return void(this.insertionMode=this.headElement?Dr.AFTER_HEAD:Dr.BEFORE_HEAD);case Or.TD:case Or.TH:if(0e===Ir.COLOR||e===Ir.SIZE||e===Ir.FACE))||Ii.has(t)}(t)?(n=e._getAdjustedCurrentElement(),(n=e.treeAdapter.getNamespaceURI(n))===vr.MATHML?bi(t):n===vr.SVG&&(function(e){var t=vi.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=Mr(e.tagName))}(t),Ci(t)),Oi(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0):(Rs(e),e._startTagOutsideForeignContent(t))}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Dr.INITIAL:qi(this,e);break;case Dr.BEFORE_HTML:!function(e,t){t.tagID===Or.HTML?(e._insertElement(t,vr.HTML),e.insertionMode=Dr.BEFORE_HEAD):$i(e,t)}(this,e);break;case Dr.BEFORE_HEAD:!function(e,t){switch(t.tagID){case Or.HTML:as(e,t);break;case Or.HEAD:e._insertElement(t,vr.HTML),e.headElement=e.openElements.current,e.insertionMode=Dr.IN_HEAD;break;default:Vi(e,t)}}(this,e);break;case Dr.IN_HEAD:Ki(this,e);break;case Dr.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Or.HTML:as(e,t);break;case Or.BASEFONT:case Or.BGSOUND:case Or.HEAD:case Or.LINK:case Or.META:case Or.NOFRAMES:case Or.STYLE:Ki(e,t);break;case Or.NOSCRIPT:e._err(t,Xn.nestedNoscriptInHead);break;default:Qi(e,t)}}(this,e);break;case Dr.AFTER_HEAD:!function(e,t){switch(t.tagID){case Or.HTML:as(e,t);break;case Or.BODY:e._insertElement(t,vr.HTML),e.framesetOk=!1,e.insertionMode=Dr.IN_BODY;break;case Or.FRAMESET:e._insertElement(t,vr.HTML),e.insertionMode=Dr.IN_FRAMESET;break;case Or.BASE:case Or.BASEFONT:case Or.BGSOUND:case Or.LINK:case Or.META:case Or.NOFRAMES:case Or.SCRIPT:case Or.STYLE:case Or.TEMPLATE:case Or.TITLE:e._err(t,Xn.abandonedHeadElementChild),e.openElements.push(e.headElement,Or.HEAD),Ki(e,t),e.openElements.remove(e.headElement);break;case Or.HEAD:e._err(t,Xn.misplacedStartTagForHeadElement);break;default:Ji(e,t)}}(this,e);break;case Dr.IN_BODY:as(this,e);break;case Dr.IN_TABLE:hs(this,e);break;case Dr.IN_TABLE_TEXT:ms(this,e);break;case Dr.IN_CAPTION:!function(e,t){var n=t.tagID;Ts.has(n)?e.openElements.hasInTableScope(Or.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Or.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Dr.IN_TABLE,hs(e,t)):as(e,t)}(this,e);break;case Dr.IN_COLUMN_GROUP:_s(this,e);break;case Dr.IN_TABLE_BODY:As(this,e);break;case Dr.IN_ROW:Ss(this,e);break;case Dr.IN_CELL:!function(e,t){var n=t.tagID;Ts.has(n)?(e.openElements.hasInTableScope(Or.TD)||e.openElements.hasInTableScope(Or.TH))&&(e._closeTableCell(),Ss(e,t)):as(e,t)}(this,e);break;case Dr.IN_SELECT:vs(this,e);break;case Dr.IN_SELECT_IN_TABLE:!function(e,t){var n=t.tagID;n===Or.CAPTION||n===Or.TABLE||n===Or.TBODY||n===Or.TFOOT||n===Or.THEAD||n===Or.TR||n===Or.TD||n===Or.TH?(e.openElements.popUntilTagNamePopped(Or.SELECT),e._resetInsertionMode(),e._processStartTag(t)):vs(e,t)}(this,e);break;case Dr.IN_TEMPLATE:!function(e,t){switch(t.tagID){case Or.BASE:case Or.BASEFONT:case Or.BGSOUND:case Or.LINK:case Or.META:case Or.NOFRAMES:case Or.SCRIPT:case Or.STYLE:case Or.TEMPLATE:case Or.TITLE:Ki(e,t);break;case Or.CAPTION:case Or.COLGROUP:case Or.TBODY:case Or.TFOOT:case Or.THEAD:e.tmplInsertionModeStack[0]=Dr.IN_TABLE,e.insertionMode=Dr.IN_TABLE,hs(e,t);break;case Or.COL:e.tmplInsertionModeStack[0]=Dr.IN_COLUMN_GROUP,e.insertionMode=Dr.IN_COLUMN_GROUP,_s(e,t);break;case Or.TR:e.tmplInsertionModeStack[0]=Dr.IN_TABLE_BODY,e.insertionMode=Dr.IN_TABLE_BODY,As(e,t);break;case Or.TD:case Or.TH:e.tmplInsertionModeStack[0]=Dr.IN_ROW,e.insertionMode=Dr.IN_ROW,Ss(e,t);break;default:e.tmplInsertionModeStack[0]=Dr.IN_BODY,e.insertionMode=Dr.IN_BODY,as(e,t)}}(this,e);break;case Dr.AFTER_BODY:!function(e,t){(t.tagID===Or.HTML?as:Os)(e,t)}(this,e);break;case Dr.IN_FRAMESET:!function(e,t){switch(t.tagID){case Or.HTML:as(e,t);break;case Or.FRAMESET:e._insertElement(t,vr.HTML);break;case Or.FRAME:e._appendElement(t,vr.HTML),t.ackSelfClosing=!0;break;case Or.NOFRAMES:Ki(e,t)}}(this,e);break;case Dr.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Or.HTML:as(e,t);break;case Or.NOFRAMES:Ki(e,t)}}(this,e);break;case Dr.AFTER_AFTER_BODY:!function(e,t){(t.tagID===Or.HTML?as:ks)(e,t)}(this,e);break;case Dr.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Or.HTML:as(e,t);break;case Or.NOFRAMES:Ki(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===Or.P||t.tagID===Or.BR)return Rs(e),e._endTagOutsideForeignContent(t);for(let r=e.openElements.stackTop;0=Di;!n||o?(o&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=Ui(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function Ui(e,t){var n=e.treeAdapter.getNamespaceURI(t.element);n=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n}function Hi(e,t,n){var r,i=Mr(e.treeAdapter.getTagName(t));e._isElementCausesFosterParenting(i)?e._fosterParentElement(n):(r=e.treeAdapter.getNamespaceURI(t),i===Or.TEMPLATE&&r===vr.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n))}function Gi(e,t,n){var r=e.treeAdapter.getNamespaceURI(n.element),i=n.token;r=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,r),e.treeAdapter.appendChild(t,r),e.activeFormattingElements.insertElementAfterBookmark(r,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,r,i.tagID)}function Xi(e,t){for(let s=0;s=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&0<=e.openElements.stackTop){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),1<=e.openElements.stackTop)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function qi(e,t){e._err(t,Xn.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,br.QUIRKS),e.insertionMode=Dr.BEFORE_HTML,e._processToken(t)}function $i(e,t){e._insertFakeRootElement(),e.insertionMode=Dr.BEFORE_HEAD,e._processToken(t)}function Vi(e,t){e._insertFakeElement(Cr.HEAD,Or.HEAD),e.headElement=e.openElements.current,e.insertionMode=Dr.IN_HEAD,e._processToken(t)}function Ki(e,t){switch(t.tagID){case Or.HTML:as(e,t);break;case Or.BASE:case Or.BASEFONT:case Or.BGSOUND:case Or.LINK:case Or.META:e._appendElement(t,vr.HTML),t.ackSelfClosing=!0;break;case Or.TITLE:e._switchToTextParsing(t,Gr.RCDATA);break;case Or.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Gr.RAWTEXT):(e._insertElement(t,vr.HTML),e.insertionMode=Dr.IN_HEAD_NO_SCRIPT);break;case Or.NOFRAMES:case Or.STYLE:e._switchToTextParsing(t,Gr.RAWTEXT);break;case Or.SCRIPT:e._switchToTextParsing(t,Gr.SCRIPT_DATA);break;case Or.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Dr.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Dr.IN_TEMPLATE);break;case Or.HEAD:e._err(t,Xn.misplacedStartTagForHeadElement);break;default:zi(e,t)}}function Wi(e,t){0=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,s))break}}function cs(e,t){switch(t.tagID){case Or.A:case Or.B:case Or.I:case Or.S:case Or.U:case Or.EM:case Or.TT:case Or.BIG:case Or.CODE:case Or.FONT:case Or.NOBR:case Or.SMALL:case Or.STRIKE:case Or.STRONG:Xi(e,t);break;case Or.P:!function(e){e.openElements.hasInButtonScope(Or.P)||e._insertFakeElement(Cr.P,Or.P),e._closePElement()}(e);break;case Or.DL:case Or.UL:case Or.OL:case Or.DIR:case Or.DIV:case Or.NAV:case Or.PRE:case Or.MAIN:case Or.MENU:case Or.ASIDE:case Or.BUTTON:case Or.CENTER:case Or.FIGURE:case Or.FOOTER:case Or.HEADER:case Or.HGROUP:case Or.DIALOG:case Or.ADDRESS:case Or.ARTICLE:case Or.DETAILS:case Or.SECTION:case Or.SUMMARY:case Or.LISTING:case Or.FIELDSET:case Or.BLOCKQUOTE:case Or.FIGCAPTION:!function(e,t){t=t.tagID,e.openElements.hasInScope(t)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(t))}(e,t);break;case Or.LI:!function(e){e.openElements.hasInListItemScope(Or.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Or.LI),e.openElements.popUntilTagNamePopped(Or.LI))}(e);break;case Or.DD:case Or.DT:!function(e,t){t=t.tagID,e.openElements.hasInScope(t)&&(e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t))}(e,t);break;case Or.H1:case Or.H2:case Or.H3:case Or.H4:case Or.H5:case Or.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case Or.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Cr.BR,Or.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case Or.BODY:!function(e,t){var n;e.openElements.hasInScope(Or.BODY)&&(e.insertionMode=Dr.AFTER_BODY,e.options.sourceCodeLocationInfo)&&(n=e.openElements.tryPeekProperlyNestedBodyElement())&&e._setEndLocation(n,t)}(e,t);break;case Or.HTML:!function(e,t){e.openElements.hasInScope(Or.BODY)&&(e.insertionMode=Dr.AFTER_BODY,Cs(e,t))}(e,t);break;case Or.FORM:!function(e){var t=0$\x80-\uFFFF]/g;var n=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function r(e){for(var r="",i=0;null!==(s=t.xmlReplacer.exec(e));){var s=s.index,a=e.charCodeAt(s),o=n.get(a);i=void 0!==o?(r+=e.substring(i,s)+o,s+1):(r+="".concat(e.substring(i,s),"&#x").concat((0,t.getCodePoint)(e,s).toString(16),";"),t.xmlReplacer.lastIndex+=Number(55296==(64512&a)))}return r+e.substr(i)}function i(e,t){return function(n){for(var r,i=0,s="";r=e.exec(n);)i!==r.index&&(s+=n.substring(i,r.index)),s+=t.get(r[0].charCodeAt(0)),i=r.index+1;return s+n.substring(i)}}t.getCodePoint=null!=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)},t.encodeXML=r,t.escape=r,t.escapeUTF8=i(/[&<>'"]/g,n),t.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})),Ls=(hr(Ds),Ds.escapeText),ws=Ds.escapeAttribute;Ds.escapeUTF8,Ds.escape,Ds.encodeXML,Ds.getCodePoint,Ds.xmlReplacer;const xs=new Set([Cr.AREA,Cr.BASE,Cr.BASEFONT,Cr.BGSOUND,Cr.BR,Cr.COL,Cr.EMBED,Cr.FRAME,Cr.HR,Cr.IMG,Cr.INPUT,Cr.KEYGEN,Cr.LINK,Cr.META,Cr.PARAM,Cr.SOURCE,Cr.TRACK,Cr.WBR]),Ms={treeAdapter:ui,scriptingEnabled:!0};function Ps(e,t){return Bs(e,{...Ms,...t})}function Bs(e,t){return t.treeAdapter.isElementNode(e)?function(e,t){var n=t.treeAdapter.getTagName(e);return`<${n}${function(e,{treeAdapter:t}){let n="";for(const r of t.getAttrList(e)){if(n+=" ",r.namespace)switch(r.namespace){case vr.XML:n+="xml:"+r.name;break;case vr.XMLNS:"xmlns"!==r.name&&(n+="xmlns:"),n+=r.name;break;case vr.XLINK:n+="xlink:"+r.name;break;default:n+=r.prefix+":"+r.name}else n+=r.name;n+=`="${ws(r.value)}"`}return n}(e,t)}>`+(function(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===vr.HTML&&xs.has(t.treeAdapter.getTagName(e))}(e,t)?"":function(e,t){let n="";e=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===Cr.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===vr.HTML?t.treeAdapter.getTemplateContent(e):e;var r=t.treeAdapter.getChildNodes(e);if(r)for(const e of r)n+=Bs(e,t);return n}(e,t)+``)}(e,t):t.treeAdapter.isTextNode(e)?function(e,t){var n=t.treeAdapter,r=n.getTextNodeContent(e),i=(e=n.getParentNode(e))&&n.isElementNode(e)&&n.getTagName(e);return i&&n.getNamespaceURI(e)===vr.HTML&&(n=i,e=t.scriptingEnabled,Ur.has(n)||e&&n===Cr.NOSCRIPT)?r:Ls(r)}(e,t):t.treeAdapter.isCommentNode(e)?function(e,{treeAdapter:t}){return`\x3c!--${t.getCommentNodeContent(e)}--\x3e`}(e,t):t.treeAdapter.isDocumentTypeNode(e)?function(e,{treeAdapter:t}){return``}(e,t):""}function Fs(e){return new T(e)}function Us(e){var t=e.includes('"')?"'":'"';return t+e+t}const Hs={isCommentNode:C,isElementNode:v,isTextNode:b,createDocument(){var e=new S([]);return e["x-mode"]=br.NO_QUIRKS,e},createDocumentFragment:()=>new S([]),createElement(e,t,n){var r=Object.create(null),i=Object.create(null),s=Object.create(null);for(let e=0;enew _(e),appendChild(e,t){var n=e.children[e.children.length-1];n&&((n.next=t).prev=n),e.children.push(t),t.parent=e},insertBefore(e,t,n){var r=e.children.indexOf(n),i=n.prev;i&&((i.next=t).prev=i),(n.prev=t).next=n,e.children.splice(r,0,t),t.parent=e},setTemplateContent(e,t){Hs.appendChild(e,t)},getTemplateContent:e=>e.children[0],setDocumentType(e,t,n,r){var i=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+Us(t):n&&(r+=" SYSTEM"),n&&(r+=" "+Us(n)),r}(t,n,r);let s=e.children.find((e=>O(e)&&"!doctype"===e.name));s?s.data=null!=i?i:null:(s=new g("!doctype",i),Hs.appendChild(e,s)),s["x-name"]=null!=t?t:void 0,s["x-publicId"]=null!=n?n:void 0,s["x-systemId"]=null!=r?r:void 0},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode:e=>e["x-mode"],detachNode(e){var t,n,r;e.parent&&(t=e.parent.children.indexOf(e),({prev:n,next:r}=e),e.prev=null,e.next=null,n&&(n.next=r),r&&(r.prev=n),e.parent.children.splice(t,1),e.parent=null)},insertText(e,t){var n=e.children[e.children.length-1];n&&b(n)?n.data+=t:Hs.appendChild(e,Fs(t))},insertTextBefore(e,t,n){var r=e.children[e.children.indexOf(n)-1];r&&b(r)?r.data+=t:Hs.insertBefore(e,Fs(t),n)},adoptAttributes(e,t){for(let r=0;re.children[0],getChildNodes:e=>e.children,getParentNode:e=>e.parent,getAttrList:e=>e.attributes,getTagName:e=>e.name,getNamespaceURI:e=>e.namespace,getTextNodeContent:e=>e.data,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>null!=(e=e["x-name"])?e:"",getDocumentTypeNodePublicId:e=>null!=(e=e["x-publicId"])?e:"",getDocumentTypeNodeSystemId:e=>null!=(e=e["x-systemId"])?e:"",isDocumentTypeNode:e=>O(e)&&"!doctype"===e.name,setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){null!=t.endOffset&&(e.endIndex=t.endOffset),e.sourceCodeLocation={...e.sourceCodeLocation,...t}}};var Gs=function(e,t,n){if(2===arguments.length)for(var r,i=0,s=t.length;i=Xs.Zero&&e<=Xs.Nine}!function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(Xs=Xs||{}),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"}(js=js||{}),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(Ys=Ys||{});const Ws={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class zs{constructor({xmlMode:e=!1,decodeEntities:t=!0},n){this.cbs=n,this.state=js.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=js.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=e,this.decodeEntities=t,this.entityTrie=e?Lr:wr}reset(){this.state=js.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=js.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=js.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===Xs.Amp&&(this.state=js.BeforeEntity)}stateSpecialStartSequence(e){var t=this.sequenceIndex===this.currentSequence.length;if(t?Vs(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=js.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===Xs.Gt||$s(e)){var t=this.index-this.currentSequence.length;if(this.sectionStart=Xs.LowerA&&e<=Xs.LowerZ||e>=Xs.UpperA&&e<=Xs.UpperZ}(e)}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=js.SpecialStartSequence}stateBeforeTagName(e){var t;e===Xs.ExclamationMark?(this.state=js.BeforeDeclaration,this.sectionStart=this.index+1):e===Xs.Questionmark?(this.state=js.InProcessingInstruction,this.sectionStart=this.index+1):this.isTagStartChar(e)?(t=32|e,this.sectionStart=this.index,this.xmlMode||t!==Ws.TitleEnd[2]?this.state=this.xmlMode||t!==Ws.ScriptEnd[2]?js.InTagName:js.BeforeSpecialS:this.startSpecial(Ws.TitleEnd,3)):e===Xs.Slash?this.state=js.BeforeClosingTagName:(this.state=js.Text,this.stateText(e))}stateInTagName(e){Vs(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=js.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){$s(e)||(e===Xs.Gt?this.state=js.Text:(this.state=this.isTagStartChar(e)?js.InClosingTagName:js.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){e!==Xs.Gt&&!$s(e)||(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=js.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){e!==Xs.Gt&&!this.fastForwardTo(Xs.Gt)||(this.state=js.Text,this.baseState=js.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===Xs.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=js.InSpecialTag,this.sequenceIndex=0):this.state=js.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===Xs.Slash?this.state=js.InSelfClosingTag:$s(e)||(this.state=js.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===Xs.Gt?(this.cbs.onselfclosingtag(this.index),this.state=js.Text,this.baseState=js.Text,this.sectionStart=this.index+1,this.isSpecial=!1):$s(e)||(this.state=js.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){e!==Xs.Eq&&!Vs(e)||(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=js.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===Xs.Eq?this.state=js.BeforeAttributeValue:e===Xs.Slash||e===Xs.Gt?(this.cbs.onattribend(Ys.NoValue,this.index),this.state=js.BeforeAttributeName,this.stateBeforeAttributeName(e)):$s(e)||(this.cbs.onattribend(Ys.NoValue,this.index),this.state=js.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===Xs.DoubleQuote?(this.state=js.InAttributeValueDq,this.sectionStart=this.index+1):e===Xs.SingleQuote?(this.state=js.InAttributeValueSq,this.sectionStart=this.index+1):$s(e)||(this.sectionStart=this.index,this.state=js.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===Xs.DoubleQuote?Ys.Double:Ys.Single,this.index),this.state=js.BeforeAttributeName):this.decodeEntities&&e===Xs.Amp&&(this.baseState=this.state,this.state=js.BeforeEntity)}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,Xs.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,Xs.SingleQuote)}stateInAttributeValueNoQuotes(e){$s(e)||e===Xs.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Ys.Unquoted,this.index),this.state=js.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===Xs.Amp&&(this.baseState=this.state,this.state=js.BeforeEntity)}stateBeforeDeclaration(e){e===Xs.OpeningSquareBracket?(this.state=js.CDATASequence,this.sequenceIndex=0):this.state=e===Xs.Dash?js.BeforeComment:js.InDeclaration}stateInDeclaration(e){e!==Xs.Gt&&!this.fastForwardTo(Xs.Gt)||(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=js.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){e!==Xs.Gt&&!this.fastForwardTo(Xs.Gt)||(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=js.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===Xs.Dash?(this.state=js.InCommentLike,this.currentSequence=Ws.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=js.InDeclaration}stateInSpecialComment(e){e!==Xs.Gt&&!this.fastForwardTo(Xs.Gt)||(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=js.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){var t=32|e;t===Ws.ScriptEnd[3]?this.startSpecial(Ws.ScriptEnd,4):t===Ws.StyleEnd[3]?this.startSpecial(Ws.StyleEnd,4):(this.state=js.InTagName,this.stateInTagName(e))}stateBeforeEntity(e){this.entityExcess=1,this.entityResult=0,e===Xs.Number?this.state=js.BeforeNumericEntity:e!==Xs.Amp&&(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=js.InNamedEntity,this.stateInNamedEntity(e))}stateInNamedEntity(e){if(this.entityExcess+=1,this.trieIndex=Ar(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)this.emitNamedEntity(),this.index--;else{this.trieCurrent=this.entityTrie[this.trieIndex];var t=this.trieCurrent&yr.VALUE_LENGTH;if(t)if(t=(t>>14)-1,this.allowLegacyEntity()||e===Xs.Semi){const e=this.index-this.entityExcess+1;e>this.sectionStart&&this.emitPartial(this.sectionStart,e),this.entityResult=this.trieIndex,this.trieIndex+=t,this.entityExcess=0,this.sectionStart=this.index+1,0==t&&this.emitNamedEntity()}else this.trieIndex+=t}}emitNamedEntity(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&yr.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~yr.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(e){(32|e)===Xs.LowerX?(this.entityExcess++,this.state=js.InHexEntity):(this.state=js.InNumericEntity,this.stateInNumericEntity(e))}emitNumericEntity(e){var t=this.index-this.entityExcess-1;2+t+Number(this.state===js.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint(Nr(this.entityResult))),this.state=this.baseState}stateInNumericEntity(e){e===Xs.Semi?this.emitNumericEntity(!0):Ks(e)?(this.entityResult=10*this.entityResult+(e-Xs.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(e){e===Xs.Semi?this.emitNumericEntity(!0):Ks(e)?(this.entityResult=16*this.entityResult+(e-Xs.Zero),this.entityExcess++):function(e){return e>=Xs.UpperA&&e<=Xs.UpperF||e>=Xs.LowerA&&e<=Xs.LowerF}(e)?(this.entityResult=16*this.entityResult+((32|e)-Xs.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===js.Text||this.baseState===js.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===js.Text||this.state===js.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==js.InAttributeValueDq&&this.state!==js.InAttributeValueSq&&this.state!==js.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,n;this.ended?null!=(n=(t=this.cbs).onerror)&&n.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))}end(e){var t,n;this.ended?null!=(n=(t=this.cbs).onerror)&&n.call(t,new Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex":">"},i=/[&"'<>]/g,s=e.exports={};function a(e,t){return n.hasOwnProperty.call(e,t)}function o(e){return r[e]}function c(e,t,n){var r,i,s,a,o;return e instanceof Error&&(e=(i=e).name+": "+i.message),Object.setPrototypeOf?(r=new Error(e),Object.setPrototypeOf(r,c.prototype)):(r=this,Object.defineProperty(r,"message",{enumerable:!1,writable:!0,value:e})),Object.defineProperty(r,"name",{value:"Template render error"}),Error.captureStackTrace&&Error.captureStackTrace(r,this.constructor),a=i?(s=Object.getOwnPropertyDescriptor(i,"stack"))&&(s.get||function(){return s.value})||function(){return i.stack}:(o=new Error(e).stack,function(){return o}),Object.defineProperty(r,"stack",{get:function(){return a.call(r)}}),Object.defineProperty(r,"cause",{value:i}),r.lineno=t,r.colno=n,r.firstUpdate=!0,r.Update=function(e){return e="("+(e||"unknown path")+")",this.firstUpdate&&(this.lineno&&this.colno?e+=" [Line "+this.lineno+", Column "+this.colno+"]":this.lineno&&(e+=" [Line "+this.lineno+"]")),e+="\n ",this.firstUpdate&&(e+=" "),this.message=e+(this.message||""),this.firstUpdate=!1,this},r}function l(e){return"[object Function]"===n.toString.call(e)}function u(e){return"[object Array]"===n.toString.call(e)}function h(e){return"[object String]"===n.toString.call(e)}function f(e){return"[object Object]"===n.toString.call(e)}function p(e){var t=function(e){return e?"string"==typeof e?e.split("."):[e]:[]}(e);return function(e){for(var n=e,r=0;rr&&(s.warned=!0,(r=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",r.emitter=e,r.type=t,r.count=s.length,function(e){"function"==typeof console.warn?console.warn(e):console.log(e)}(r))):(s=i[t]=n,++e._eventsCount),e}function Va(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function Ka(e){var t=this._events;if(t){if("function"==typeof(t=t[e]))return 1;if(t)return t.length}return 0}function Wa(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}function za(){var e;Ya.call(this),this.__emitError=(e=this,function(t){e.emit("error",t)})}function Qa(){return new za}ja.prototype=Object.create(null),(Ya.EventEmitter=Ya).usingDomains=!1,Ya.prototype.domain=void 0,Ya.prototype._events=void 0,Ya.prototype._maxListeners=void 0,Ya.defaultMaxListeners=10,Ya.init=function(){this.domain=null,Ya.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new ja,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Ya.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},Ya.prototype.getMaxListeners=function(){return qa(this)},Ya.prototype.emit=function(e){var t,n,r,i,s,a="error"===e;if(s=this._events)a=a&&null==s.error;else if(!a)return!1;if(o=this.domain,a){if(a=arguments[1],o)return(a=a||new Error('Uncaught, unspecified "error" event')).domainEmitter=this,a.domain=o,a.domainThrown=!1,o.emit("error",a),!1;if(a instanceof Error)throw a;var o=new Error('Uncaught, unspecified "error" event. ('+a+")");throw o.context=a,o}if(!(t=s[e]))return!1;var c="function"==typeof t;switch(n=arguments.length){case 1:!function(e,t){if(c)e.call(t);else for(var n=e.length,r=Wa(e,n),i=0;i=","//","**"],c=n+this.current();switch(-1!==_a.indexOf(o,c)&&(this.forward(),-1!==_a.indexOf(o,(n=c)+this.current()))&&(n=c+this.current(),this.forward()),n){case"(":a=No;break;case")":a=vo;break;case"[":a=Io;break;case"]":a=bo;break;case"{":a=Co;break;case"}":a=Oo;break;case",":a=Ro;break;case":":a=Do;break;case"~":a=Lo;break;case"|":a=wo;break;default:a=ko}return Uo(a,n,e,t)}if((h=this._extractUntil(fo+po)).match(/^[-+]?[0-9]+$/))return"."===this.current()?(this.forward(),o=this._extract("0123456789"),Uo(xo,h+"."+o,e,t)):Uo("int",h,e,t);if(h.match(/^(true|false)$/))return Uo(Mo,h,e,t);if("none"===h)return Uo(Po,h,e,t);if("null"===h)return Uo(Po,h,e,t);if(h)return Uo(Bo,h,e,t);throw new Error("Unexpected value while parsing: "+h)}var l,u=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if(h=(h=this._extractString(this.tags.BLOCK_START+"-"))||this._extractString(this.tags.BLOCK_START))return this.in_code=!0,Uo(_o,h,e,t);if(h=(h=this._extractString(this.tags.VARIABLE_START+"-"))||this._extractString(this.tags.VARIABLE_START))return this.in_code=!0,Uo(Ao,h,e,t);var h="",f=!1;for(this._matches(this.tags.COMMENT_START)&&(f=!0,h=this._extractString(this.tags.COMMENT_START));null!==(l=this._extractUntil(u));){if(h+=l,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!f){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&0this.len?null:this.str.slice(this.index,this.index+e.length)===e},t._extractString=function(e){return this._matches(e)?(this.forwardN(e.length),e):null},t._extractUntil=function(e){return this._extractMatching(!0,e||"")},t._extract=function(e){return this._extractMatching(!1,e)},t._extractMatching=function(e,t){if(this.isFinished())return null;var n=t.indexOf(this.current());if(e&&-1===n||!e&&-1!==n){var r=this.current();this.forward();for(var i=t.indexOf(this.current());(e&&-1===i||!e&&-1!==i)&&!this.isFinished();)r+=this.current(),this.forward(),i=t.indexOf(this.current());return r}return""},t._extractRegex=function(e){return(e=this.currentStr().match(e))?(this.forwardN(e[0].length),e):null},t.isFinished=function(){return this.index>=this.len},t.forwardN=function(e){for(var t=0;t",n+2),e(t,n+4)})))}};function rl(e,t){return(rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}nl.Node,nl.Root,nl.NodeList,nl.Value,nl.Literal,nl.Group,nl.Pair,nl.Dict,nl.Output,nl.Capture,nl.TemplateData,nl.If,nl.IfAsync,nl.InlineIf,nl.For,nl.AsyncEach,nl.AsyncAll,nl.Macro,nl.Caller,nl.Import,nl.FromImport,nl.FunCall,nl.Filter,nl.FilterAsync,nl.KeywordArgs,nl.Block,nl.Super,nl.Extends,nl.Include,nl.Switch,nl.Case,nl.LookupVal,nl.BinOp,nl.In,nl.Is,nl.Or,nl.And,nl.Not,nl.Add,nl.Concat,nl.Sub,nl.Mul,nl.Div,nl.FloorDiv,nl.Mod,nl.Pow,nl.Neg,nl.Pos,nl.Compare,nl.CompareOperand,nl.CallExtension,nl.CallExtensionAsync,nl.printNodes;var il=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(r=n).prototype=Object.create(t.prototype),rl(r.prototype.constructor=r,t);var r=n.prototype;return r.init=function(e){this.tokens=e,this.peeked=null,this.breakOnBlocks=null,this.dropLeadingWhitespace=!1,this.extensions=[]},r.nextToken=function(e){var t;if(this.peeked){if(e||this.peeked.type!==Go.TOKEN_WHITESPACE)return t=this.peeked,this.peeked=null,t;this.peeked=null}if(t=this.tokens.nextToken(),!e)for(;t&&t.type===Go.TOKEN_WHITESPACE;)t=this.tokens.nextToken();return t},r.peekToken=function(){return this.peeked=this.peeked||this.nextToken(),this.peeked},r.pushToken=function(e){if(this.peeked)throw new Error("pushToken: can only push one token on between reads");this.peeked=e},r.error=function(e,t,n){var r;return void 0!==t&&void 0!==n||(t=(r=this.peekToken()||{}).lineno,n=r.colno),void 0!==t&&(t+=1),void 0!==n&&(n+=1),new _a.TemplateError(e,t,n)},r.fail=function(e,t,n){throw this.error(e,t,n)},r.skip=function(e){var t=this.nextToken();return!(!t||t.type!==e)||(this.pushToken(t),!1)},r.expect=function(e){var t=this.nextToken();return t.type!==e&&this.fail("expected "+e+", got "+t.type,t.lineno,t.colno),t},r.skipValue=function(e,t){var n=this.nextToken();return!(!n||n.type!==e||n.value!==t)||(this.pushToken(n),!1)},r.skipSymbol=function(e){return this.skipValue(Go.TOKEN_SYMBOL,e)},r.advanceAfterBlockEnd=function(e){var t;return e||((t=this.peekToken())||this.fail("unexpected end of file"),t.type!==Go.TOKEN_SYMBOL&&this.fail("advanceAfterBlockEnd: expected symbol token or explicit name to be passed"),e=this.nextToken().value),(t=this.nextToken())&&t.type===Go.TOKEN_BLOCK_END?"-"===t.value.charAt(0)&&(this.dropLeadingWhitespace=!0):this.fail("expected block end in "+e+" statement"),t},r.advanceAfterVariableEnd=function(){var e=this.nextToken();e&&e.type===Go.TOKEN_VARIABLE_END?this.dropLeadingWhitespace="-"===e.value.charAt(e.value.length-this.tokens.tags.VARIABLE_END.length-1):(this.pushToken(e),this.fail("expected variable end"))},r.parseFor=function(){var e,t,n=this.peekToken();if(this.skipSymbol("for")?(e=new nl.For(n.lineno,n.colno),t="endfor"):this.skipSymbol("asyncEach")?(e=new nl.AsyncEach(n.lineno,n.colno),t="endeach"):this.skipSymbol("asyncAll")?(e=new nl.AsyncAll(n.lineno,n.colno),t="endall"):this.fail("parseFor: expected for{Async}",n.lineno,n.colno),e.name=this.parsePrimary(),e.name instanceof nl.Symbol||this.fail("parseFor: variable name expected for loop"),this.peekToken().type===Go.TOKEN_COMMA){var r=e.name;for(e.name=new nl.Array(r.lineno,r.colno),e.name.addChild(r);this.skip(Go.TOKEN_COMMA);){var i=this.parsePrimary();e.name.addChild(i)}}return this.skipSymbol("in")||this.fail('parseFor: expected "in" keyword for loop',n.lineno,n.colno),e.arr=this.parseExpression(),this.advanceAfterBlockEnd(n.value),e.body=this.parseUntilBlocks(t,"else"),this.skipSymbol("else")&&(this.advanceAfterBlockEnd("else"),e.else_=this.parseUntilBlocks(t)),this.advanceAfterBlockEnd(),e},r.parseMacro=function(){var e=this.peekToken(),t=(this.skipSymbol("macro")||this.fail("expected macro"),this.parsePrimary(!0)),n=this.parseSignature();t=new nl.Macro(e.lineno,e.colno,t,n);return this.advanceAfterBlockEnd(e.value),t.body=this.parseUntilBlocks("endmacro"),this.advanceAfterBlockEnd(),t},r.parseCall=function(){var e=this.peekToken(),t=(this.skipSymbol("call")||this.fail("expected call"),this.parseSignature(!0)||new nl.NodeList),n=this.parsePrimary(),r=(this.advanceAfterBlockEnd(e.value),this.parseUntilBlocks("endcall")),i=(this.advanceAfterBlockEnd(),new nl.Symbol(e.lineno,e.colno,"caller"));t=new nl.Caller(e.lineno,e.colno,i,t,r);return(r=n.args.children)[r.length-1]instanceof nl.KeywordArgs||r.push(new nl.KeywordArgs),r[r.length-1].addChild(new nl.Pair(e.lineno,e.colno,i,t)),new nl.Output(e.lineno,e.colno,[n])},r.parseWithContext=function(){var e=this.peekToken(),t=null;return this.skipSymbol("with")?t=!0:this.skipSymbol("without")&&(t=!1),null===t||this.skipSymbol("context")||this.fail("parseFrom: expected context after with/without",e.lineno,e.colno),t},r.parseImport=function(){var e=this.peekToken(),t=(this.skipSymbol("import")||this.fail("parseImport: expected import",e.lineno,e.colno),this.parseExpression()),n=(this.skipSymbol("as")||this.fail('parseImport: expected "as" keyword',e.lineno,e.colno),this.parseExpression()),r=this.parseWithContext();t=new nl.Import(e.lineno,e.colno,t,n,r);return this.advanceAfterBlockEnd(e.value),t},r.parseFrom=function(){var e=this.peekToken(),t=(this.skipSymbol("from")||this.fail("parseFrom: expected from"),this.parseExpression());this.skipSymbol("import")||this.fail("parseFrom: expected import",e.lineno,e.colno);for(var n,r=new nl.NodeList;;){var i,s=this.peekToken();if(s.type===Go.TOKEN_BLOCK_END){r.children.length||this.fail("parseFrom: Expected at least one import name",e.lineno,e.colno),"-"===s.value.charAt(0)&&(this.dropLeadingWhitespace=!0),this.nextToken();break}0","<=",">="],t=this.parseConcat(),n=[];;){var r=this.nextToken();if(!r)break;if(-1===e.indexOf(r.value)){this.pushToken(r);break}n.push(new nl.CompareOperand(r.lineno,r.colno,this.parseConcat(),r.value))}return n.length?new nl.Compare(n[0].lineno,n[0].colno,t,n):t},r.parseConcat=function(){for(var e=this.parseAdd();this.skipValue(Go.TOKEN_TILDE,"~");){var t=this.parseAdd();e=new nl.Concat(e.lineno,e.colno,e,t)}return e},r.parseAdd=function(){for(var e=this.parseSub();this.skipValue(Go.TOKEN_OPERATOR,"+");){var t=this.parseSub();e=new nl.Add(e.lineno,e.colno,e,t)}return e},r.parseSub=function(){for(var e=this.parseMul();this.skipValue(Go.TOKEN_OPERATOR,"-");){var t=this.parseMul();e=new nl.Sub(e.lineno,e.colno,e,t)}return e},r.parseMul=function(){for(var e=this.parseDiv();this.skipValue(Go.TOKEN_OPERATOR,"*");){var t=this.parseDiv();e=new nl.Mul(e.lineno,e.colno,e,t)}return e},r.parseDiv=function(){for(var e=this.parseFloorDiv();this.skipValue(Go.TOKEN_OPERATOR,"/");){var t=this.parseFloorDiv();e=new nl.Div(e.lineno,e.colno,e,t)}return e},r.parseFloorDiv=function(){for(var e=this.parseMod();this.skipValue(Go.TOKEN_OPERATOR,"//");){var t=this.parseMod();e=new nl.FloorDiv(e.lineno,e.colno,e,t)}return e},r.parseMod=function(){for(var e=this.parsePow();this.skipValue(Go.TOKEN_OPERATOR,"%");){var t=this.parsePow();e=new nl.Mod(e.lineno,e.colno,e,t)}return e},r.parsePow=function(){for(var e=this.parseUnary();this.skipValue(Go.TOKEN_OPERATOR,"**");){var t=this.parseUnary();e=new nl.Pow(e.lineno,e.colno,e,t)}return e},r.parseUnary=function(e){var t=this.peekToken();t=this.skipValue(Go.TOKEN_OPERATOR,"-")?new nl.Neg(t.lineno,t.colno,this.parseUnary(!0)):this.skipValue(Go.TOKEN_OPERATOR,"+")?new nl.Pos(t.lineno,t.colno,this.parseUnary(!0)):this.parsePrimary();return e?t:this.parseFilter(t)},r.parsePrimary=function(e){var t,n=this.nextToken();if(n?n.type===Go.TOKEN_STRING?t=n.value:n.type===Go.TOKEN_INT?t=parseInt(n.value,10):n.type===Go.TOKEN_FLOAT?t=parseFloat(n.value):n.type===Go.TOKEN_BOOLEAN?"true"===n.value?t=!0:"false"===n.value?t=!1:this.fail("invalid boolean: "+n.value,n.lineno,n.colno):n.type===Go.TOKEN_NONE?t=null:n.type===Go.TOKEN_REGEX&&(t=new RegExp(n.value.body,n.value.flags)):this.fail("expected expression, got end of file"),t=void 0!==t?new nl.Literal(n.lineno,n.colno,t):n.type===Go.TOKEN_SYMBOL?new nl.Symbol(n.lineno,n.colno,n.value):(this.pushToken(n),this.parseAggregate()),t=e?t:this.parsePostfix(t))return t;throw this.error("unexpected token: "+n.value,n.lineno,n.colno)},r.parseFilterName=function(){for(var e=this.expect(Go.TOKEN_SYMBOL),t=e.value;this.skipValue(Go.TOKEN_OPERATOR,".");)t+="."+this.expect(Go.TOKEN_SYMBOL).value;return new nl.Symbol(e.lineno,e.colno,t)},r.parseFilterArgs=function(e){return this.peekToken().type===Go.TOKEN_LEFT_PAREN?this.parsePostfix(e).args.children:[]},r.parseFilter=function(e){for(;this.skip(Go.TOKEN_PIPE);){var t=this.parseFilterName();e=new nl.Filter(t.lineno,t.colno,t,new nl.NodeList(t.lineno,t.colno,[e].concat(this.parseFilterArgs(e))))}return e},r.parseFilterStatement=function(){var e=this.peekToken(),t=(this.skipSymbol("filter")||this.fail("parseFilterStatement: expected filter"),this.parseFilterName()),n=this.parseFilterArgs(t);this.advanceAfterBlockEnd(e.value),e=new nl.Capture(t.lineno,t.colno,this.parseUntilBlocks("endfilter")),this.advanceAfterBlockEnd(),e=new nl.Filter(t.lineno,t.colno,t,new nl.NodeList(t.lineno,t.colno,[e].concat(n)));return new nl.Output(t.lineno,t.colno,[e])},r.parseAggregate=function(){var e,t=this.nextToken();switch(t.type){case Go.TOKEN_LEFT_PAREN:e=new nl.Group(t.lineno,t.colno);break;case Go.TOKEN_LEFT_BRACKET:e=new nl.Array(t.lineno,t.colno);break;case Go.TOKEN_LEFT_CURLY:e=new nl.Dict(t.lineno,t.colno);break;default:return null}for(;;){var n,r=this.peekToken().type;if(r===Go.TOKEN_RIGHT_PAREN||r===Go.TOKEN_RIGHT_BRACKET||r===Go.TOKEN_RIGHT_CURLY){this.nextToken();break}0e.length)c=i.slice(0,e.length),i.slice(c.length,a).forEach((function(e,n){n":">","<=":"<=",">=":">="},vl=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(r=n).prototype=Object.create(t.prototype),Al(r.prototype.constructor=r,t);var r=n.prototype;return r.init=function(e,t){this.templateName=e,this.codebuf=[],this.lastId=0,this.buffer=null,this.bufferStack=[],this._scopeClosers="",this.inBlock=!1,this.throwOnUndefined=t},r.fail=function(e,t,n){throw void 0!==t&&(t+=1),void 0!==n&&(n+=1),new yl(e,t,n)},r._pushBuffer=function(){var e=this._tmpid();return this.bufferStack.push(this.buffer),this.buffer=e,this._emit("var "+this.buffer+' = "";'),e},r._popBuffer=function(){this.buffer=this.bufferStack.pop()},r._emit=function(e){this.codebuf.push(e)},r._emitLine=function(e){this._emit(e+"\n")},r._emitLines=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=(n=n||80)?e:(n-=e.length,r=_a.repeat(" ",n/2-n%2),n=_a.repeat(" ",n/2),gl.copySafeness(e,r+e+n))},e.default=function(e,t,n){return n?e||t:void 0!==e?e:t},e.dictsort=function(e,t,n){if(!_a.isObject(e))throw new _a.TemplateError("dictsort filter: val must be an object");var r,i,s=[];for(i in e)s.push([i,e[i]]);if(void 0===n||"key"===n)r=0;else{if("value"!==n)throw new _a.TemplateError("dictsort filter: You can only sort by either key or value");r=1}return s.sort((function(e,n){return e=e[r],n=n[r],t||(_a.isString(e)&&(e=e.toUpperCase()),_a.isString(n)&&(n=n.toUpperCase())),n\n"))},e.random=function(e){return e[Math.floor(Math.random()*e.length)]},e.reject=s(!1),e.rejectattr=function(e,t){return e.filter((function(e){return!e[t]}))},e.select=s(!0),e.selectattr=function(e,t){return e.filter((function(e){return!!e[t]}))},e.replace=function(e,t,n,r){var i=e;if(t instanceof RegExp)return e.replace(t,n);void 0===r&&(r=-1);var s="";if("number"==typeof t)t=""+t;else if("string"!=typeof t)return e;if("string"!=typeof(e="number"==typeof e?""+e:e)&&!(e instanceof gl.SafeString))return e;if(""===t)return s=n+e.split("").join(n)+n,gl.copySafeness(e,s);var a=e.indexOf(t);if(0===r||-1===a)return e;for(var o=0,c=0;-1]*>|/gi,""));n=n?r.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,"\n").replace(/\n\n\n+/g,"\n\n"):r.replace(/\s+/gi," ");return gl.copySafeness(e,n)},e.title=function(e){var n=(e=t(e,"")).split(" ").map(r);return gl.copySafeness(e,n.join(" "))},e.trim=a,e.truncate=function(e,n,r,i){var s=e;return(e=t(e,"")).length<=(n=n||255)?e:(e=r?e.substring(0,n):(-1===(r=e.lastIndexOf(" ",n))&&(r=n),e.substring(0,r)),gl.copySafeness(s,e+=null!=i?i:"..."))},e.upper=function(e){return(e=t(e,"")).toUpperCase()},e.urlencode=function(e){var t=encodeURIComponent;return _a.isString(e)?t(e):(_a.isArray(e)?e:_a._entries(e)).map((function(e){var n=e[0];e=e[1];return t(n)+"="+t(e)})).join("&")};var o=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,c=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,l=/^https?:\/\/.*$/,u=/^www\./,h=/\.(?:org|net|com)(?:\:|\/|$)/,f=(e.urlize=function(e,t,r){n(t)&&(t=1/0);var i=!0===r?' rel="nofollow"':"";return e.split(/(\s+)/).filter((function(e){return e&&e.length})).map((function(e){var n=e.match(o),r=(n=n?n[1]:e).substr(0,t);return l.test(n)?'"+r+"":u.test(n)?'"+r+"":c.test(n)?''+n+"":h.test(n)?'"+r+"":e})).join("")},e.wordcount=function(e){return(e=(e=t(e,""))?e.match(/\w+/g):null)?e.length:null},e.float=function(e,t){return n(e=parseFloat(e))?t:e},gl.makeMacro(["value","default","base"],[],(function(e,t,r){return void 0===r&&(r=10),n(e=parseInt(e,r))?t:e})));e.int=f,e.d=e.default,e.e=e.escape})),Cl={};function Ol(e,t){for(var n=0,r=e.length-1;0<=r;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;)e.unshift("..");return e}var kl=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Rl=function(e){return kl.exec(e).slice(1)};function Dl(){for(var e="",t=!1,n=arguments.length-1;-1<=n&&!t;n--){var r=0<=n?arguments[n]:"/";if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return(t?"/":"")+Ol(Ml(e.split("/"),(function(e){return!!e})),!t).join("/")||"."}function Ll(e){var t=wl(e),n="/"===Pl(e,-1);return(e=(e=Ol(Ml(e.split("/"),(function(e){return!!e})),!t).join("/"))||t?e:".")&&n&&(e+="/"),(t?"/":"")+e}function wl(e){return"/"===e.charAt(0)}var xl={extname:function(e){return Rl(e)[3]},basename:function(e,t){return e=Rl(e)[2],t&&e.substr(-1*t.length)===t?e.substr(0,e.length-t.length):e},dirname:function(e){var t=(e=Rl(e))[0];e=e[1];return t||e?t+(e&&e.substr(0,e.length-1)):"."},sep:"/",delimiter:":",relative:function(e,t){function n(e){for(var t=0;t=e.length&&(t=0),this.current=e[t],this.current}};var e,t},joiner:function(e){e=e||",";var t=!0;return function(){var n=t?"":e;return t=!1,n}}}});function Kl(e,t){e.prototype=Object.create(t.prototype),Wl(e.prototype.constructor=e,t)}function Wl(e,t){return(Wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var zl=ql.FileSystemLoader,Ql=ql.WebLoader,Jl=ql.PrecompiledLoader,Zl=Ko.Obj,eu=gl.handleError,tu=gl.Frame;function nu(e,t,n){!function(e){var t=lo.length?lo.pop():new uo;t.task=e,t.domain=Xa.domain,to(t)}((function(){e(t,n)}))}var ru={type:"code",obj:{root:function(e,t,n,r,i){try{i(null,"")}catch(e){i(eu(e,null,null))}}}},iu=function(e){function t(){return e.apply(this,arguments)||this}Kl(t,e);var n=t.prototype;return n.init=function(e,t){var n=this;t=this.opts=t||{},this.opts.dev=!!t.dev,this.opts.autoescape=null==t.autoescape||t.autoescape,this.opts.throwOnUndefined=!!t.throwOnUndefined,this.opts.trimBlocks=!!t.trimBlocks,this.opts.lstripBlocks=!!t.lstripBlocks,this.loaders=[],e?this.loaders=_a.isArray(e)?e:[e]:zl?this.loaders=[new zl("views")]:Ql&&(this.loaders=[new Ql("/views")]),"undefined"!=typeof window&&window.nunjucksPrecompiled&&this.loaders.unshift(new Jl(window.nunjucksPrecompiled)),this._initLoaders(),this.globals=Vl(),this.filters={},this.tests={},this.asyncFilters=[],this.extensions={},this.extensionsList=[],_a._entries(bl).forEach((function(e){var t=e[0];e=e[1];return n.addFilter(t,e)})),_a._entries($l).forEach((function(e){var t=e[0];e=e[1];return n.addTest(t,e)}))},n._initLoaders=function(){var e=this;this.loaders.forEach((function(t){t.cache={},"function"==typeof t.on&&(t.on("update",(function(n,r){t.cache[n]=null,e.emit("update",n,r,t)})),t.on("load",(function(n,r){e.emit("load",n,r,t)})))}))},n.invalidateCache=function(){this.loaders.forEach((function(e){e.cache={}}))},n.addExtension=function(e,t){return t.__name=e,this.extensions[e]=t,this.extensionsList.push(t),this},n.removeExtension=function(e){var t=this.getExtension(e);t&&(this.extensionsList=_a.without(this.extensionsList,t),delete this.extensions[e])},n.getExtension=function(e){return this.extensions[e]},n.hasExtension=function(e){return!!this.extensions[e]},n.addGlobal=function(e,t){return this.globals[e]=t,this},n.getGlobal=function(e){if(void 0===this.globals[e])throw new Error("global not found: "+e);return this.globals[e]},n.addFilter=function(e,t,n){return n&&this.asyncFilters.push(e),this.filters[e]=t,this},n.getFilter=function(e){if(this.filters[e])return this.filters[e];throw new Error("filter not found: "+e)},n.addTest=function(e,t){return this.tests[e]=t,this},n.getTest=function(e){if(this.tests[e])return this.tests[e];throw new Error("test not found: "+e)},n.resolveTemplate=function(e,t,n){return e.isRelative&&t&&e.isRelative(n)&&e.resolve?e.resolve(t,n):n},n.getTemplate=function(e,t,n,r,i){var s,a=this,o=this,c=null;if(e&&e.raw&&(e=e.raw),_a.isFunction(n)&&(i=n,n=null,t=t||!1),_a.isFunction(t)&&(i=t,t=!1),e instanceof au)c=e;else{if("string"!=typeof e)throw new Error("template names must be a string: "+e);for(var l=0;l{var t=["th","st","nd","rd"],n=e%100;return`[${e}${t[(n-20)%10]||t[n]||t[0]}]`}};const Nu=(e,t,n)=>{var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},vu=(e,t)=>{var n,r,i;return e.date(){e=-e.utcOffset();var t=Math.abs(e),n=Math.floor(t/60);t%=60;return(e<=0?"+":"-")+Nu(n,2,"0")+":"+Nu(t,2,"0")},m:vu,a:e=>e<0?Math.ceil(e)||0:Math.floor(e),p:e=>({M:Eu,y:Tu,w:du,d:pu,D:_u,h:fu,m:hu,s:uu,ms:lu,Q:mu}[e]||String(e||"").toLowerCase().replace(/s$/,"")),u:e=>void 0===e};let bu="en";const Cu={},Ou=(Cu[bu]=Su,e=>e instanceof Lu),ku=(e,t,n)=>{let r;if(!e)return bu;if("string"==typeof e){const n=e.toLowerCase();if(Cu[n]&&(r=n),t&&(Cu[n]=t,r=n),t=e.split("-"),!r&&1Ru(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset});class Lu{constructor(e){this.$L=ku(e.locale,null,!0),this.parse(e)}parse(e){this.$d=(e=>{const{date:t,utc:n}=e;if(null===t)return new Date(NaN);if(Du.u(t))return new Date;if(!(t instanceof Date||"string"!=typeof t||/Z$/i.test(t))){const e=t.match(Au);if(e){const t=e[2]-1||0,r=(e[7]||"0").substring(0,3);return n?new Date(Date.UTC(e[1],t,e[3]||1,e[4]||0,e[5]||0,e[6]||0,r)):new Date(e[1],t,e[3]||1,e[4]||0,e[5]||0,e[6]||0,r)}}return new Date(t)})(e),this.$x=e.x||{},this.init()}init(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()}$utils(){return Du}isValid(){return!(this.$d.toString()===gu)}isSame(e,t){return e=Ru(e),this.startOf(t)<=e&&e<=this.endOf(t)}isAfter(e,t){return Ru(e)(t=Du.w(this.$u?Date.UTC(this.$y,t,e):new Date(this.$y,t,e),this),n?t:t.endOf(pu)),s=(e,t)=>Du.w(this.toDate()[e].apply(this.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),this),{$W:a,$M:o,$D:c}=this,l="set"+(this.$u?"UTC":"");switch(r){case Tu:return n?i(1,0):i(31,11);case Eu:return n?i(1,o):i(0,o+1);case du:{const e=this.$locale().weekStart||0,t=(a{var n=Ru(this);return Du.w(n.date(n.date()+Math.round(t*e)),this)};return(t=Du.p(t))===Eu?this.set(Eu,this.$M+e):t===Tu?this.set(Tu,this.$y+e):t===pu?n(1):t===du?n(7):(n={[hu]:ou,[fu]:cu,[uu]:1e3}[t]||1,t=this.$d.getTime()+e*n,Du.w(t,this))}subtract(e,t){return this.add(-1*e,t)}format(e){var t=this.$locale();if(!this.isValid())return t.invalidDate||gu;const n=e||"YYYY-MM-DDTHH:mm:ssZ",r=Du.z(this),{$H:i,$m:s,$M:a}=this,{weekdays:o,months:c,meridiem:l}=t,u=(e,t,r,i)=>e&&(e[t]||e(this,n))||r[t].slice(0,i),h=e=>Du.s(i%12||12,e,"0"),f=l||((e,t,n)=>(e=e<12?"AM":"PM",n?e.toLowerCase():e)),p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:Du.s(a+1,2,"0"),MMM:u(t.monthsShort,a,c,3),MMMM:u(c,a),D:this.$D,DD:Du.s(this.$D,2,"0"),d:String(this.$W),dd:u(t.weekdaysMin,this.$W,o,2),ddd:u(t.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(i),HH:Du.s(i,2,"0"),h:h(1),hh:h(2),a:f(i,s,!0),A:f(i,s,!1),m:String(s),mm:Du.s(s,2,"0"),s:String(this.$s),ss:Du.s(this.$s,2,"0"),SSS:Du.s(this.$ms,3,"0"),Z:r};return n.replace(yu,((e,t)=>t||p[e]||r.replace(":","")))}utcOffset(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)}diff(e,t,n){t=Du.p(t);var r=((e=Ru(e)).utcOffset()-this.utcOffset())*ou,i=this-e;e=Du.m(this,e),e={[Tu]:e/12,[Eu]:e,[mu]:e/3,[du]:(i-r)/6048e5,[pu]:(i-r)/864e5,[fu]:i/cu,[hu]:i/ou,[uu]:i/1e3}[t]||i;return n?e:Du.a(e)}daysInMonth(){return this.endOf(Eu).$D}$locale(){return Cu[this.$L]}locale(e,t){var n;return e?(n=this.clone(),(e=ku(e,t,!0))&&(n.$L=e),n):this.$L}clone(){return Du.w(this.$d,this)}toDate(){return new Date(this.valueOf())}toJSON(){return this.isValid()?this.toISOString():null}toISOString(){return this.$d.toISOString()}toString(){return this.$d.toUTCString()}}const wu=Lu.prototype;Ru.prototype=wu,[["$ms",lu],["$s",uu],["$m",hu],["$H",fu],["$W",pu],["$M",Eu],["$y",Tu],["$D",_u]].forEach((e=>{wu[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),Ru.extend=(e,t)=>(e.$i||(e(t,Lu,Ru),e.$i=!0),Ru),Ru.locale=ku,Ru.isDayjs=Ou,Ru.unix=e=>Ru(1e3*e),Ru.en=Cu[bu],Ru.Ls=Cu,Ru.p={};var xu=fr((function(e){function t(e){return e&&(e=e.toString().replace(i.pluses,"%20"),e=decodeURIComponent(e)),e}function n(e){var n,r,s,a,o,c,l,u=[];if(null!=e&&""!==e)for(l=(r=(e=(n=0)===e.indexOf("?")?e.substring(1):e).toString().split(i.query_separator)).length;n>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(1"']/g,q=RegExp(j.source),$=RegExp(Y.source),V=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,W=/<%=([\s\S]+?)%>/g,z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,ee=RegExp(Z.source),te=/^\s+/,ne=/\s/,re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ie=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,oe=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ue=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,pe=/^\[object .+?Constructor\]$/,de=/^0o[0-7]+$/i,Ee=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Te=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,ge="\\ud800-\\udfff",Ae="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ye="\\u2700-\\u27bf",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Ne="\\ufe0e\\ufe0f",ve="["+ge+"]",Ie="["+(Le="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000")+"]",be="["+Ae+"]",Ce="["+ye+"]",Oe="["+(ze="a-z\\xdf-\\xf6\\xf8-\\xff")+"]",ke="[\\ud800-\\udbff][\\udc00-\\udfff]",Re="\\u200d",De="(?:"+Oe+"|"+(Le="[^"+ge+Le+"\\d+"+ye+ze+Se+"]")+")",Le="(?:"+(Se="["+Se+"]")+"|"+Le+")",we="(?:['’](?:d|ll|m|re|s|t|ve))?",xe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Me=(Me="["+Ne+"]?")+(Pe="(?:"+be+"|"+(ye="\\ud83c[\\udffb-\\udfff]")+")?")+"(?:"+Re+"(?:"+[ze="[^"+ge+"]",Qe="(?:\\ud83c[\\udde6-\\uddff]){2}",ke].join("|")+")"+Me+Pe+")*",Pe="(?:"+[Ce,Qe,ke].join("|")+")"+Me,Be=(Ce="(?:"+[ze+be+"?",be,Qe,ke,ve].join("|")+")",RegExp("['’]","g")),Fe=RegExp(be,"g"),Ue=RegExp(ye+"(?="+ye+")|"+Ce+Me,"g"),He=RegExp([Se+"?"+Oe+"+"+we+"(?="+[Ie,Se,"$"].join("|")+")",Le+"+"+xe+"(?="+[Ie,Se+De,"$"].join("|")+")",Se+"?"+De+"+"+we,Se+"+"+xe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",Pe].join("|"),"g"),Ge=RegExp("["+Re+ge+Ae+Ne+"]"),Xe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,je=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ye=-1,qe={},$e=(qe[D]=qe[L]=qe[w]=qe[x]=qe[M]=qe[P]=qe[B]=qe[F]=qe[U]=!0,qe[p]=qe[d]=qe[k]=qe[E]=qe[R]=qe[m]=qe[T]=qe[_]=qe[A]=qe[y]=qe[S]=qe[v]=qe[I]=qe[b]=qe[O]=!1,{}),Ve=($e[p]=$e[d]=$e[k]=$e[R]=$e[E]=$e[m]=$e[D]=$e[L]=$e[w]=$e[x]=$e[M]=$e[A]=$e[y]=$e[S]=$e[v]=$e[I]=$e[b]=$e[C]=$e[P]=$e[B]=$e[F]=$e[U]=!0,$e[T]=$e[_]=$e[O]=!1,{"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"}),Ke=parseFloat,We=parseInt,ze="object"==typeof lr&&lr&&lr.Object===Object&&lr,Qe="object"==typeof self&&self&&self.Object===Object&&self,Je=ze||Qe||Function("return this")(),Ze=(ke=t&&!t.nodeType&&t)&&e&&!e.nodeType&&e,et=Ze&&Ze.exports===ke,tt=et&&ze.process,nt=(ve=function(){try{return Ze&&Ze.require&&Ze.require("util").types||tt&&tt.binding&&tt.binding("util")}catch(e){}}())&&ve.isArrayBuffer,rt=ve&&ve.isDate,it=ve&&ve.isMap,st=ve&&ve.isRegExp,at=ve&&ve.isSet,ot=ve&&ve.isTypedArray;function ct(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function lt(e,t,n,r){for(var i=-1,s=null==e?0:e.length;++i":">",'"':""","'":"'"});function Ht(e){return"\\"+Ve[e]}function Gt(e){return Ge.test(e)}function Xt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function jt(e,t){return function(n){return e(t(n))}}function Yt(e,t){for(var n=-1,r=e.length,i=0,a=[];++n",""":'"',"'":"'"}),zt=function e(t){var ne=(t=null==t?Je:zt.defaults(Je.Object(),t,zt.pick(Je,je))).Array,ge=t.Date,Ae=t.Error,ye=t.Function,Se=t.Math,Ne=t.Object,ve=t.RegExp,Ie=t.String,be=t.TypeError,Ce=ne.prototype,Oe=ye.prototype,ke=Ne.prototype,Re=t["__core-js_shared__"],De=Oe.toString,Le=ke.hasOwnProperty,we=0,xe=(Oe=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+Oe:"",Me=ke.toString,Pe=De.call(Ne),Ue=Je._,Ge=ve("^"+De.call(Le).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=(Oe=et?t.Buffer:n,t.Symbol),ze=t.Uint8Array,Qe=Oe?Oe.allocUnsafe:n,Ze=jt(Ne.getPrototypeOf,Ne),tt=Ne.create,At=ke.propertyIsEnumerable,Ot=Ce.splice,Qt=Ve?Ve.isConcatSpreadable:n,Jt=Ve?Ve.iterator:n,Zt=Ve?Ve.toStringTag:n,en=function(){try{var e=$i(Ne,"defineProperty");return e({},"",{}),e}catch(e){}}(),tn=t.clearTimeout!==Je.clearTimeout&&t.clearTimeout,nn=ge&&ge.now!==Je.Date.now&&ge.now,rn=t.setTimeout!==Je.setTimeout&&t.setTimeout,sn=Se.ceil,an=Se.floor,on=Ne.getOwnPropertySymbols,cn=(Oe=Oe?Oe.isBuffer:n,t.isFinite),ln=Ce.join,un=jt(Ne.keys,Ne),hn=Se.max,fn=Se.min,pn=ge.now,dn=t.parseInt,En=Se.random,mn=Ce.reverse,Tn=(ge=$i(t,"DataView"),$i(t,"Map")),_n=$i(t,"Promise"),gn=$i(t,"Set"),An=(t=$i(t,"WeakMap"),$i(Ne,"create")),yn=t&&new t,Sn={},Nn=_s(ge),vn=_s(Tn),In=_s(_n),bn=_s(gn),Cn=_s(t),On=(Ve=Ve?Ve.prototype:n)?Ve.valueOf:n,kn=Ve?Ve.toString:n;function Rn(e){if(Ia(e)&&!Ea(e)&&!(e instanceof xn)){if(e instanceof wn)return e;if(Le.call(e,"__wrapped__"))return gs(e)}return new wn(e)}var Dn=function(){function e(){}return function(t){return va(t)?tt?tt(t):(e.prototype=t,t=new e,e.prototype=n,t):{}}}();function Ln(){}function wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function xn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Mn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t>>0,t>>>=0;for(var s=ne(i);++r>>1,a=e[s];null!==a&&!La(a)&&(n?a<=t:a>>0)?(e=Xa(e))&&("string"==typeof t||null!=t&&!ka(t))&&!(t=Yr(t))&&Gt(e)?ni(Vt(e),0,r):e.split(t,r):[]},Rn.spread=function(e,t){if("function"!=typeof e)throw new be(r);return t=null==t?0:hn(Fa(t),0),Pr((function(n){var r=n[t];n=ni(n,0,t);return r&&mt(n,r),ct(e,this,n)}))},Rn.tail=function(e){var t=null==e?0:e.length;return t?Ur(e,1,t):[]},Rn.take=function(e,t,r){return e&&e.length?Ur(e,0,(t=r||t===n?1:Fa(t))<0?0:t):[]},Rn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?Ur(e,(t=i-(r||t===n?1:Fa(t)))<0?0:t,i):[]},Rn.takeRightWhile=function(e,t){return e&&e.length?Kr(e,ji(t,3),!1,!0):[]},Rn.takeWhile=function(e,t){return e&&e.length?Kr(e,ji(t,3)):[]},Rn.tap=function(e,t){return t(e),e},Rn.throttle=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw new be(r);return va(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),ia(e,t,{leading:i,maxWait:t,trailing:s})},Rn.thru=Hs,Rn.toArray=Pa,Rn.toPairs=co,Rn.toPairsIn=lo,Rn.toPath=function(e){return Ea(e)?Et(e,Ts):La(e)?[e]:ui(ms(Xa(e)))},Rn.toPlainObject=Ga,Rn.transform=function(e,t,n){var r,i=Ea(e),s=i||ga(e)||wa(e);return t=ji(t,4),null==n&&(r=e&&e.constructor,n=s?i?new r:[]:va(e)&&ya(r)?Dn(Ze(e)):{}),(s?ut:or)(e,(function(e,r,i){return t(n,e,r,i)})),n},Rn.unary=function(e){return ea(e,1)},Rn.union=Os,Rn.unionBy=ks,Rn.unionWith=Rs,Rn.uniq=function(e){return e&&e.length?qr(e):[]},Rn.uniqBy=function(e,t){return e&&e.length?qr(e,ji(t,2)):[]},Rn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?qr(e,n,t):[]},Rn.unset=function(e,t){return null==e||$r(e,t)},Rn.unzip=Ds,Rn.unzipWith=Ls,Rn.update=function(e,t,n){return null==e?e:Vr(e,t,Zr(n))},Rn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Vr(e,t,Zr(r),i)},Rn.values=uo,Rn.valuesIn=function(e){return null==e?[]:xt(e,no(e))},Rn.without=ws,Rn.words=So,Rn.wrap=function(e,t){return ca(Zr(t),e)},Rn.xor=xs,Rn.xorBy=Ms,Rn.xorWith=Ps,Rn.zip=Bs,Rn.zipObject=function(e,t){return Qr(e||[],t||[],jn)},Rn.zipObjectDeep=function(e,t){return Qr(e||[],t||[],Br)},Rn.zipWith=Fs,Rn.entries=co,Rn.entriesIn=lo,Rn.extend=Ya,Rn.extendWith=qa,Lo(Rn,Rn),Rn.add=jo,Rn.attempt=No,Rn.camelCase=ho,Rn.capitalize=fo,Rn.ceil=Yo,Rn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=Ha(r))==r?r:0),t!==n&&(t=(t=Ha(t))==t?t:0),Wn(Ha(e),t,r)},Rn.clone=function(e){return zn(e,4)},Rn.cloneDeep=function(e){return zn(e,5)},Rn.cloneDeepWith=function(e,t){return zn(e,5,t="function"==typeof t?t:n)},Rn.cloneWith=function(e,t){return zn(e,4,t="function"==typeof t?t:n)},Rn.conformsTo=function(e,t){return null==t||Qn(e,t,to(t))},Rn.deburr=po,Rn.defaultTo=function(e,t){return null==e||e!=e?t:e},Rn.divide=qo,Rn.endsWith=function(e,t,r){e=Xa(e),t=Yr(t);var i=e.length;i=r=r===n?i:Wn(Fa(r),0,i);return 0<=(r-=t.length)&&e.slice(r,i)==t},Rn.eq=ha,Rn.escape=function(e){return(e=Xa(e))&&$.test(e)?e.replace(Y,Ut):e},Rn.escapeRegExp=function(e){return(e=Xa(e))&&ee.test(e)?e.replace(Z,"\\$&"):e},Rn.every=function(e,t,r){return(Ea(e)?ht:function(e,t){var n=!0;return er(e,(function(e,r,i){return n=!!t(e,r,i)})),n})(e,ji(t=r&&es(e,t,r)?n:t,3))},Rn.find=js,Rn.findIndex=As,Rn.findKey=function(e,t){return yt(e,ji(t,3),or)},Rn.findLast=Ys,Rn.findLastIndex=ys,Rn.findLastKey=function(e,t){return yt(e,ji(t,3),cr)},Rn.floor=$o,Rn.forEach=qs,Rn.forEachRight=$s,Rn.forIn=function(e,t){return null==e?e:sr(e,ji(t,3),no)},Rn.forInRight=function(e,t){return null==e?e:ar(e,ji(t,3),no)},Rn.forOwn=function(e,t){return e&&or(e,ji(t,3))},Rn.forOwnRight=function(e,t){return e&&cr(e,ji(t,3))},Rn.get=za,Rn.gt=fa,Rn.gte=pa,Rn.has=function(e,t){return null!=e&&zi(e,t,dr)},Rn.hasIn=Qa,Rn.head=Ns,Rn.identity=Oo,Rn.includes=function(e,t,n,r){return e=Ta(e)?e:uo(e),n=n&&!r?Fa(n):0,r=e.length,n<0&&(n=hn(r+n,0)),Da(e)?n<=r&&-1=fn(t,n)&&e=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Rn.prototype.plant=function(e){for(var t,r=this;r instanceof Ln;){var i=gs(r),s=(i.__index__=0,i.__values__=n,t?s.__wrapped__=i:t=i,i);r=r.__wrapped__}return s.__wrapped__=e,t},Rn.prototype.reverse=function(){var e=this.__wrapped__;return e instanceof xn?((e=(e=this.__actions__.length?new xn(this):e).reverse()).__actions__.push({func:Hs,args:[Cs],thisArg:n}),new wn(e,this.__chain__)):this.thru(Cs)},Rn.prototype.toJSON=Rn.prototype.valueOf=Rn.prototype.value=function(){return Wr(this.__wrapped__,this.__actions__)},Rn.prototype.first=Rn.prototype.head,Jt&&(Rn.prototype[Jt]=function(){return this}),Rn}();Ze?((Ze.exports=zt)._=zt,ke._=zt):Je._=zt}).call(lr)})),Pu=fr((function(e,t){e.exports=function(e){var t;if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),!(t=!(t=!(t="undefined"!=typeof globalThis&&globalThis.crypto?globalThis.crypto:t)&&"undefined"!=typeof window&&window.msCrypto?window.msCrypto:t)&&void 0!==lr&&lr.crypto?lr.crypto:t))try{t=Cl}catch(e){}function n(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")}var r=Object.create||function(){function e(){}return function(t){return e.prototype=t,t=new e,e.prototype=null,t}}(),i={},s=i.lib={},a=s.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),(t.init.prototype=t).$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},o=s.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var s=0;s>>2]>>>24-s%4*8&255;t[r+s>>>2]|=a<<24-(r+s)%4*8}else for(var o=0;o>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-i%4*8&255;r.push((s>>>4).toString(16)),r.push((15&s).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new o.init(n,t/2)}},u=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(s))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new o.init(n,t)}},h=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},f=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,s=r.sigBytes,a=this.blockSize,c=s/(4*a),l=(t?e.ceil(c):e.max((0|c)-this._minBufferSize,0))*a;t=e.min(4*l,s);if(l){for(var u=0;u>>2]|=e[i]<<24-i%4*8;t.call(this,r,n)}else t.apply(this,arguments)}).prototype=e)}(),n.lib.WordArray)})),fr((function(e,t){var n;e.exports=(n=Pu,function(){var e=n.lib.WordArray,t=n.enc;function r(e){return e<<8&4278255360|e>>>8&16711935}t.Utf16=t.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(s))}return r.join("")},parse:function(t){for(var n=t.length,r=[],i=0;i>>1]|=t.charCodeAt(i)<<16-i%2*16;return e.create(r,2*n)}},t.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],s=0;s>>2]>>>16-s%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(t){for(var n=t.length,i=[],s=0;s>>1]|=r(t.charCodeAt(s)<<16-s%2*16);return e.create(i,2*n)}}}(),n.enc.Utf16)})),fr((function(e,t){var n;e.exports=(n=Pu,function(){var e=n,t=e.lib.WordArray;function r(e,n,r){for(var i,s=[],a=0,o=0;o>>6-o%4*2,s[a>>>2]|=i<<24-a%4*8,a++);return t.create(s,a)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],s=0;s>>2]>>>24-s%4*8&255)<<16|(t[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|t[s+2>>>2]>>>24-(s+2)%4*8&255,o=0;o<4&&s+.75*o>>6*(3-o)&63));var c=r.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,n=this._map;if(!(i=this._reverseMap))for(var i=this._reverseMap=[],s=0;s>>6-o%4*2,s[a>>>2]|=i<<24-a%4*8,a++);return t.create(s,a)}e.enc.Base64url={stringify:function(e,t=!0){var n=e.words,r=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var s=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,c=0;c<4&&a+.75*c>>6*(3-c)&63));var l=i.charAt(64);if(l)for(;s.length%4;)s.push(l);return s.join("")},parse:function(e,t=!0){var n=e.length,i=t?this._safe_map:this._map;if(!(s=this._reverseMap))for(var s=this._reverseMap=[],a=0;a>>24)|4278255360&(i<<24|i>>>8)}var s=this._hash.words,h=e[t+0],f=e[t+1],p=e[t+2],d=e[t+3],E=e[t+4],m=e[t+5],T=e[t+6],_=e[t+7],g=e[t+8],A=e[t+9],y=e[t+10],S=e[t+11],N=e[t+12],v=e[t+13],I=e[t+14],b=e[t+15],C=o(s[0],R=s[1],k=s[2],O=s[3],h,7,a[0]),O=o(O,C,R,k,f,12,a[1]),k=o(k,O,C,R,p,17,a[2]),R=o(R,k,O,C,d,22,a[3]);C=o(C,R,k,O,E,7,a[4]),O=o(O,C,R,k,m,12,a[5]),k=o(k,O,C,R,T,17,a[6]),R=o(R,k,O,C,_,22,a[7]);C=o(C,R,k,O,g,7,a[8]),O=o(O,C,R,k,A,12,a[9]),k=o(k,O,C,R,y,17,a[10]),R=o(R,k,O,C,S,22,a[11]),C=o(C,R,k,O,N,7,a[12]),O=o(O,C,R,k,v,12,a[13]),k=o(k,O,C,R,I,17,a[14]),C=c(C,R=o(R,k,O,C,b,22,a[15]),k,O,f,5,a[16]),O=c(O,C,R,k,T,9,a[17]),k=c(k,O,C,R,S,14,a[18]),R=c(R,k,O,C,h,20,a[19]),C=c(C,R,k,O,m,5,a[20]),O=c(O,C,R,k,y,9,a[21]),k=c(k,O,C,R,b,14,a[22]),R=c(R,k,O,C,E,20,a[23]),C=c(C,R,k,O,A,5,a[24]),O=c(O,C,R,k,I,9,a[25]),k=c(k,O,C,R,d,14,a[26]),R=c(R,k,O,C,g,20,a[27]),C=c(C,R,k,O,v,5,a[28]),O=c(O,C,R,k,p,9,a[29]),k=c(k,O,C,R,_,14,a[30]),C=l(C,R=c(R,k,O,C,N,20,a[31]),k,O,m,4,a[32]),O=l(O,C,R,k,g,11,a[33]),k=l(k,O,C,R,S,16,a[34]),R=l(R,k,O,C,I,23,a[35]),C=l(C,R,k,O,f,4,a[36]),O=l(O,C,R,k,E,11,a[37]),k=l(k,O,C,R,_,16,a[38]),R=l(R,k,O,C,y,23,a[39]),C=l(C,R,k,O,v,4,a[40]),O=l(O,C,R,k,h,11,a[41]),k=l(k,O,C,R,d,16,a[42]),R=l(R,k,O,C,T,23,a[43]),C=l(C,R,k,O,A,4,a[44]),O=l(O,C,R,k,N,11,a[45]),k=l(k,O,C,R,b,16,a[46]),C=u(C,R=l(R,k,O,C,p,23,a[47]),k,O,h,6,a[48]),O=u(O,C,R,k,_,10,a[49]),k=u(k,O,C,R,I,15,a[50]),R=u(R,k,O,C,m,21,a[51]),C=u(C,R,k,O,N,6,a[52]),O=u(O,C,R,k,d,10,a[53]),k=u(k,O,C,R,y,15,a[54]),R=u(R,k,O,C,f,21,a[55]),C=u(C,R,k,O,g,6,a[56]),O=u(O,C,R,k,b,10,a[57]),k=u(k,O,C,R,T,15,a[58]),R=u(R,k,O,C,v,21,a[59]),C=u(C,R,k,O,E,6,a[60]),O=u(O,C,R,k,S,10,a[61]),k=u(k,O,C,R,p,15,a[62]),R=u(R,k,O,C,A,21,a[63]),s[0]=s[0]+C|0,s[1]=s[1]+R|0,s[2]=s[2]+k|0,s[3]=s[3]+O|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes,s=(n[i>>>5]|=128<<24-i%32,e.floor(r/4294967296));n[15+(64+i>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n[14+(64+i>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=(s=this._hash).words,o=0;o<4;o++){var c=a[o];a[o]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function o(e,t,n,r,i,s,a){return((e=e+(t&n|~t&r)+i+a)<>>32-s)+t}function c(e,t,n,r,i,s,a){return((e=e+(t&r|n&~r)+i+a)<>>32-s)+t}function l(e,t,n,r,i,s,a){return((e=e+(t^n^r)+i+a)<>>32-s)+t}function u(e,t,n,r,i,s,a){return((e=e+(n^(t|~r))+i+a)<>>32-s)+t}t.MD5=i._createHelper(s),t.HmacMD5=i._createHmacHelper(s)}(Math),n.MD5)})),fr((function(e,t){var n;e.exports=(n=Pu,function(){var e=n,t=(i=e.lib).WordArray,r=i.Hasher,i=e.algo,s=[];i=i.SHA1=r.extend({_doReset:function(){this._hash=new t.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],c=n[4],l=0;l<80;l++){s[l]=l<16?0|e[t+l]:(u=s[l-3]^s[l-8]^s[l-14]^s[l-16])<<1|u>>>31;var u=(r<<5|r>>>27)+c+s[l];u+=l<20?1518500249+(i&a|~i&o):l<40?1859775393+(i^a^o):l<60?(i&a|i&o|a&o)-1894007588:(i^a^o)-899497514,c=o,o=a,a=i<<30|i>>>2,i=r,r=u}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(64+r>>>9<<4)]=Math.floor(n/4294967296),t[15+(64+r>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=r._createHelper(i),e.HmacSHA1=r._createHmacHelper(i)}(),n.SHA1)})),fr((function(e,t){var n;e.exports=(n=Pu,function(e){var t=n,r=(s=t.lib).WordArray,i=s.Hasher,s=t.algo,a=[],o=[],c=(function(){function t(e){return 4294967296*(e-(0|e))|0}for(var n=2,r=0;r<64;)!function(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return;return 1}(n)||(r<8&&(a[r]=t(e.pow(n,.5))),o[r]=t(e.pow(n,1/3)),r++),n++}(),[]);s=s.SHA256=i.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],s=n[2],a=n[3],l=n[4],u=n[5],h=n[6],f=n[7],p=0;p<64;p++){c[p]=p<16?0|e[t+p]:(((d=c[p-15])<<25|d>>>7)^(d<<14|d>>>18)^d>>>3)+c[p-7]+(((d=c[p-2])<<15|d>>>17)^(d<<13|d>>>19)^d>>>10)+c[p-16];var d=r&i^r&s^i&s,E=f+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&u^~l&h)+o[p]+c[p];f=h,h=u,u=l,l=a+E|0,a=s,s=i,i=r,r=E+(((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+d)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+s|0,n[3]=n[3]+a|0,n[4]=n[4]+l|0,n[5]=n[5]+u|0,n[6]=n[6]+h|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(64+i>>>9<<4)]=e.floor(r/4294967296),n[15+(64+i>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(s),t.HmacSHA256=i._createHmacHelper(s)}(Math),n.SHA256)})),fr((function(e,t){var n,r,i,s;e.exports=(r=(n=e=Pu).lib.WordArray,s=n.algo,i=s.SHA256,s=s.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=i._createHelper(s),n.HmacSHA224=i._createHmacHelper(s),e.SHA224)})),fr((function(e,t){var n;e.exports=(n=Pu,function(){var e=n,t=e.lib.Hasher,r=(s=e.x64).Word,i=s.WordArray,s=e.algo;function a(){return r.create.apply(r,arguments)}var o=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],c=[];(function(){for(var e=0;e<80;e++)c[e]=a()})(),s=s.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=(h=this._hash.words)[0],r=h[1],i=h[2],s=h[3],a=h[4],l=h[5],u=h[6],h=h[7],f=n.high,p=n.low,d=r.high,E=r.low,m=i.high,T=i.low,_=s.high,g=s.low,A=a.high,y=a.low,S=l.high,N=l.low,v=u.high,I=u.low,b=h.high,C=h.low,O=f,k=p,R=d,D=E,L=m,w=T,x=_,M=g,P=A,B=y,F=S,U=N,H=v,G=I,X=b,j=C,Y=0;Y<80;Y++){var q,$,V=c[Y];Y<16?($=V.high=0|e[t+2*Y],q=V.low=0|e[t+2*Y+1]):(Q=(Z=c[Y-15]).high,Z=Z.low,z=(W=c[Y-2]).high,W=W.low,$=($=($=((Q>>>1|Z<<31)^(Q>>>8|Z<<24)^Q>>>7)+(J=c[Y-7]).high+((q=(Z=(Z>>>1|Q<<31)^(Z>>>8|Q<<24)^(Z>>>7|Q<<25))+J.low)>>>0>>0?1:0))+((z>>>19|W<<13)^(z<<3|W>>>29)^z>>>6)+((q+=Q=(W>>>19|z<<13)^(W<<3|z>>>29)^(W>>>6|z<<26))>>>0>>0?1:0))+(J=c[Y-16]).high+((q+=Z=J.low)>>>0>>0?1:0),V.high=$,V.low=q);var K,W=P&F^~P&H,z=B&U^~B&G,Q=O&R^O&L^R&L,J=(k>>>28|O<<4)^(k<<30|O>>>2)^(k<<25|O>>>7),Z=o[Y],ee=(V=Z.high,Z.low),te=X+((P>>>14|B<<18)^(P>>>18|B<<14)^(P<<23|B>>>9))+((K=j+((B>>>14|P<<18)^(B>>>18|P<<14)^(B<<23|P>>>9)))>>>0>>0?1:0),ne=J+(k&D^k&w^D&w);X=H,j=G,H=F,G=U,F=P,U=B,P=x+(te=te+W+((K+=z)>>>0>>0?1:0)+V+((K+=ee)>>>0>>0?1:0)+$+((K+=q)>>>0>>0?1:0))+((B=M+K|0)>>>0>>0?1:0)|0,x=L,M=w,L=R,w=D,R=O,D=k,O=te+(((O>>>28|k<<4)^(O<<30|k>>>2)^(O<<25|k>>>7))+Q+(ne>>>0>>0?1:0))+((k=K+ne|0)>>>0>>0?1:0)|0}p=n.low=p+k,n.high=f+O+(p>>>0>>0?1:0),E=r.low=E+D,r.high=d+R+(E>>>0>>0?1:0),T=i.low=T+w,i.high=m+L+(T>>>0>>0?1:0),g=s.low=g+M,s.high=_+x+(g>>>0>>0?1:0),y=a.low=y+B,a.high=A+P+(y>>>0>>0?1:0),N=l.low=N+U,l.high=S+F+(N>>>0>>0?1:0),I=u.low=I+G,u.high=v+H+(I>>>0>>0?1:0),C=h.low=C+j,h.high=b+X+(C>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(128+r>>>10<<5)]=Math.floor(n/4294967296),t[31+(128+r>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(s),e.HmacSHA512=t._createHmacHelper(s)}(),n.SHA512)})),fr((function(e,t){var n,r,i,s,a;e.exports=(a=(n=e=Pu).x64,r=a.Word,i=a.WordArray,a=n.algo,s=a.SHA512,a=a.SHA384=s.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=s._createHelper(a),n.HmacSHA384=s._createHmacHelper(a),e.SHA384)})),fr((function(e,t){var n;e.exports=(n=Pu,function(e){var t=n,r=(a=t.lib).WordArray,i=a.Hasher,s=t.x64.Word,a=t.algo,o=[],c=[],l=[],u=(function(){for(var e=1,t=0,n=0;n<24;n++){o[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,a=0;a<24;a++){for(var u,h=0,f=0,p=0;p<7;p++)1&i&&((u=(1<>>24)|4278255360&(s<<24|s>>>8);(b=n[i]).high^=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),b.low^=s}for(var h=0;h<24;h++){for(var f=0;f<5;f++){for(var p=0,d=0,E=0;E<5;E++)p^=(b=n[f+5*E]).high,d^=b.low;var m=u[f];m.high=p,m.low=d}for(f=0;f<5;f++){var T=u[(f+4)%5],_=(g=u[(f+1)%5]).high,g=g.low;for(p=T.high^(_<<1|g>>>31),d=T.low^(g<<1|_>>>31),E=0;E<5;E++)(b=n[f+5*E]).high^=p,b.low^=d}for(var A=1;A<25;A++){var y=(b=n[A]).high,S=b.low,N=o[A];d=N<32?(p=y<>>32-N,S<>>32-N):(p=S<>>64-N,y<>>64-N),(y=u[c[A]]).high=p,y.low=d}var v=u[0],I=n[0];for(v.high=I.high,v.low=I.low,f=0;f<5;f++)for(E=0;E<5;E++){var b=n[A=f+5*E],C=u[A],O=u[(f+1)%5+5*E],k=u[(f+2)%5+5*E];b.high=C.high^~O.high&k.high,b.low=C.low^~O.low&k.low}(b=n[0]).high^=(v=l[h]).high,b.low^=v.low}},_doFinalize:function(){var t=this._data,n=t.words,i=(this._nDataBytes,8*t.sigBytes),s=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(e.ceil((1+i)/s)*s>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,o=(i=this.cfg.outputLength/8)/8,c=[],l=0;l>>24)|4278255360&(u<<24|u>>>8);c.push(16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)),c.push(u)}return new r.init(c,i)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=i._createHelper(a),t.HmacSHA3=i._createHmacHelper(a)}(Math),n.SHA3)})),fr((function(e,t){var n;e.exports=(n=Pu,function(){var e=n,t=(i=e.lib).WordArray,r=i.Hasher,i=e.algo,s=t.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=t.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),o=t.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=t.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=t.create([0,1518500249,1859775393,2400959708,2840853838]),u=t.create([1352829926,1548603684,1836072691,2053994217,0]);i=i.RIPEMD160=r.extend({_doReset:function(){this._hash=t.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var d,E,m,T,_,g,A=this._hash.words,y=l.words,S=u.words,N=s.words,v=a.words,I=o.words,b=c.words,C=d=A[0],O=E=A[1],k=m=A[2],R=T=A[3],D=_=A[4];for(n=0;n<80;n+=1)g=(g=p(g=(g=d+e[t+N[n]]|0)+(n<16?(E^m^T)+y[0]:n<32?h(E,m,T)+y[1]:n<48?((E|~m)^T)+y[2]:n<64?f(E,m,T)+y[3]:(E^(m|~T))+y[4])|0,I[n]))+_|0,d=_,_=T,T=p(m,10),m=E,E=g,g=(g=p(g=(g=C+e[t+v[n]]|0)+(n<16?(O^(k|~R))+S[0]:n<32?f(O,k,R)+S[1]:n<48?((O|~k)^R)+S[2]:n<64?h(O,k,R)+S[3]:(O^k^R)+S[4])|0,b[n]))+D|0,C=D,D=R,R=p(k,10),k=O,O=g;g=A[1]+m+R|0,A[1]=A[2]+T+D|0,A[2]=A[3]+_+C|0,A[3]=A[4]+d+O|0,A[4]=A[0]+E+k|0,A[0]=g},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(64+r>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=(r=this._hash).words,s=0;s<5;s++){var a=i[s];i[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return r},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,n){return e&t|~e&n}function f(e,t,n){return e&n|t&~n}function p(e,t){return e<>>32-t}e.RIPEMD160=r._createHelper(i),e.HmacRIPEMD160=r._createHmacHelper(i)}(),n.RIPEMD160)})),fr((function(e,t){var n;e.exports=(e=Pu.lib.Base,n=Pu.enc.Utf8,void(Pu.algo.HMAC=e.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;(t=t.sigBytes>i?e.finalize(t):t).clamp();e=this._oKey=t.clone(),t=this._iKey=t.clone();for(var s=e.words,a=t.words,o=0;o>>2];e.sigBytes-=t}}),f=(t.BlockCipher=c.extend({cfg:c.cfg.extend({mode:l,padding:h}),reset:function(){c.reset.call(this);var e,t=(n=this.cfg).iv,n=n.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,t&&t.words):(this._mode=e.call(n,this,t&&t.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),t.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),p=(l=(e.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return((e=e.salt)?i.create([1398893684,1701076831]).concat(e).concat(t):t).toString(a)},parse:function(e){var t,n=(e=a.parse(e)).words;return 1398893684==n[0]&&1701076831==n[1]&&(t=i.create(n.slice(2,4)),n.splice(0,4),e.sigBytes-=16),f.create({ciphertext:e,salt:t})}},t.SerializableCipher=r.extend({cfg:r.extend({format:l}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);t=(i=e.createEncryptor(n,r)).finalize(t);var i=i.cfg;return f.create({ciphertext:t,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}})),d=(h=(e.kdf={}).OpenSSL={execute:function(e,t,n,r){return r=r||i.random(8),e=o.create({keySize:t+n}).compute(e,r),n=i.create(e.words.slice(t),4*n),e.sigBytes=4*t,f.create({key:e,iv:n,salt:r})}},t.PasswordBasedCipher=p.extend({cfg:p.cfg.extend({kdf:h}),encrypt:function(e,t,n,r){return n=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize),r.iv=n.iv,(e=p.encrypt.call(this,e,t,n.key,r)).mixIn(n),e},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),n=r.kdf.execute(n,e.keySize,e.ivSize,t.salt),r.iv=n.iv,p.decrypt.call(this,e,t,n.key,r)}}));function E(e){return"string"==typeof e?d:p}}())})),fr((function(e,t){var n;e.exports=((n=Pu).mode.CFB=function(){var e=n.lib.BlockCipherMode.extend();function t(e,t,n,r){var i,s=this._iv;s?(i=s.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var a=0;a>24)?e+=1<<24:(n=e>>8&255,r=255&e,255==(t=e>>16&255)?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e=(e+=t<<16)+(n<<8)+r),e}function r(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}var i=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,s=this._iv,a=this._counter,o=(s&&(a=this._counter=s.slice(0),this._iv=void 0),r(a),a.slice(0));n.encryptBlock(o,0);for(var c=0;c>>2]|=t<<24-n%4*8,e.sigBytes+=t},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},Pu.pad.Ansix923)})),fr((function(e,t){var n;e.exports=((n=Pu).pad.Iso10126={pad:function(e,t){t=(t*=4)-e.sigBytes%t,e.concat(n.lib.WordArray.random(t-1)).concat(n.lib.WordArray.create([t<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)})),fr((function(e,t){var n;e.exports=((n=Pu).pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)})),fr((function(e,t){e.exports=(Pu.pad.ZeroPadding={pad:function(e,t){t*=4,e.clamp(),e.sigBytes+=t-(e.sigBytes%t||t)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;0<=n;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},Pu.pad.ZeroPadding)})),fr((function(e,t){e.exports=(Pu.pad.NoPadding={pad:function(){},unpad:function(){}},Pu.pad.NoPadding)})),fr((function(e,t){var n,r;e.exports=(n=(e=Pu).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){return e=r.parse(e),n.create({ciphertext:e})}},e.format.Hex)})),fr((function(e,t){var n;e.exports=(n=Pu,function(){var e=n,t=e.lib.BlockCipher,r=e.algo,i=[],s=[],a=[],o=[],c=[],l=[],u=[],h=[],f=[],p=[],d=(function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var d=r^r<<1^r<<2^r<<3^r<<4,E=(i[n]=d=d>>>8^255&d^99,e[s[d]=n]),m=e[E],T=e[m],_=257*e[d]^16843008*d;a[n]=_<<24|_>>>8,o[n]=_<<16|_>>>16,c[n]=_<<8|_>>>24,l[n]=_,u[d]=(_=16843009*T^65537*m^257*E^16843008*n)<<24|_>>>8,h[d]=_<<16|_>>>16,f[d]=_<<8|_>>>24,p[d]=_,n?(n=E^e[e[e[T^E]]],r^=e[e[r]]):n=r=1}}(),[0,1,2,4,8,16,32,64,128,27,54]);r=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*(1+(this._nRounds=6+n)),s=this._keySchedule=[],a=0;a>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=d[a/n|0]<<24),s[a]=s[a-n]^l);for(var o=this._invKeySchedule=[],c=0;c>>24]]^h[i[l>>>16&255]]^f[i[l>>>8&255]]^p[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,o,c,l,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,h,f,p,s),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,s,a,o){for(var c=this._nRounds,l=e[t]^n[0],u=e[t+1]^n[1],h=e[t+2]^n[2],f=e[t+3]^n[3],p=4,d=1;d>>24]^i[u>>>16&255]^s[h>>>8&255]^a[255&f]^n[p++],m=r[u>>>24]^i[h>>>16&255]^s[f>>>8&255]^a[255&l]^n[p++],T=r[h>>>24]^i[f>>>16&255]^s[l>>>8&255]^a[255&u]^n[p++],_=r[f>>>24]^i[l>>>16&255]^s[u>>>8&255]^a[255&h]^n[p++];l=E,u=m,h=T,f=_}E=(o[l>>>24]<<24|o[u>>>16&255]<<16|o[h>>>8&255]<<8|o[255&f])^n[p++],m=(o[u>>>24]<<24|o[h>>>16&255]<<16|o[f>>>8&255]<<8|o[255&l])^n[p++],T=(o[h>>>24]<<24|o[f>>>16&255]<<16|o[l>>>8&255]<<8|o[255&u])^n[p++],_=(o[f>>>24]<<24|o[l>>>16&255]<<16|o[u>>>8&255]<<8|o[255&h])^n[p++],e[t]=E,e[t+1]=m,e[t+2]=T,e[t+3]=_},keySize:8});e.AES=t._createHelper(r)}(),n.AES)})),fr((function(e,t){var n;e.exports=(n=Pu,function(){var e=n,t=(r=e.lib).WordArray,r=r.BlockCipher,i=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],o=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=i.DES=r.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=s[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],c=0;c<16;c++){var l=i[c]=[],u=o[c];for(n=0;n<24;n++)l[n/6|0]|=t[(a[n]-1+u)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(a[n+24]-1+u)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=i[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),h.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],s=this._lBlock,a=this._rBlock,o=0,u=0;u<8;u++)o|=c[u][((a^i[u])&l[u])>>>0];this._lBlock=a,this._rBlock=s^o}var p=this._lBlock;this._lBlock=this._rBlock,this._rBlock=p,h.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){t=(this._lBlock>>>e^this._rBlock)&t,this._rBlock^=t,this._lBlock^=t<>>e^this._lBlock)&t,this._lBlock^=t,this._rBlock^=t<192.");var e=r.slice(0,2),n=r.length<4?r.slice(0,2):r.slice(2,4),r=r.length<6?r.slice(0,2):r.slice(4,6);this._des1=u.createEncryptor(t.create(e)),this._des2=u.createEncryptor(t.create(n)),this._des3=u.createEncryptor(t.create(r))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2}),e.TripleDES=r._createHelper(i)}(),n.TripleDES)})),fr((function(e,t){var n;e.exports=(n=Pu,function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=r.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var s=0;i<256;i++){var a=t[(a=i%n)>>>2]>>>24-a%4*8&255;s=(s+r[i]+a)%256,a=r[i];r[i]=r[s],r[s]=a}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=s.call(this)},keySize:8,ivSize:0});function s(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+e[t=(t+1)%256])%256;var s=e[t];e[t]=e[n],e[n]=s,r|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,r}e.RC4=t._createHelper(i),r=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;0>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(n=this._b=0;n<4;n++)o.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var s=(t=t.words)[0],a=(s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8))>>>16|4294901760&(t=16711935&((t=t[1])<<8|t>>>24)|4278255360&(t<<24|t>>>8)),c=t<<16|65535&s;for(i[0]^=s,i[1]^=a,i[2]^=t,i[3]^=c,i[4]^=s,i[5]^=a,i[6]^=t,i[7]^=c,n=0;n<4;n++)o.call(this)}},_doProcessBlock:function(e,t){var n=this._X;o.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function o(){for(var e=this._X,t=this._C,n=0;n<8;n++)s[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,o=r>>>16;a[n]=((i*i>>>17)+i*o>>>15)+o*o^((4294901760&r)*r|0)+((65535&r)*r|0)}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(r)}(),n.Rabbit)})),fr((function(e,t){var n;e.exports=(n=Pu,function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],s=[],a=[];r=r.RabbitLegacy=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]],i=this._b=0;i<4;i++)o.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var s=(t=16711935&((t=(e=t.words)[0])<<8|t>>>24)|4278255360&(t<<24|t>>>8))>>>16|4294901760&(e=16711935&((e=e[1])<<8|e>>>24)|4278255360&(e<<24|e>>>8)),a=e<<16|65535&t;for(r[0]^=t,r[1]^=s,r[2]^=e,r[3]^=a,r[4]^=t,r[5]^=s,r[6]^=e,r[7]^=a,i=0;i<4;i++)o.call(this)}},_doProcessBlock:function(e,t){var n=this._X;o.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function o(){for(var e=this._X,t=this._C,n=0;n<8;n++)s[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,o=r>>>16;a[n]=((i*i>>>17)+i*o>>>15)+o*o^((4294901760&r)*r|0)+((65535&r)*r|0)}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(r)}(),n.RabbitLegacy)})),fr((function(e,t){e.exports=Pu}))),Fu=function(e){return function t(n,i,a){if(void 0===a&&(a=!0),null==n)throw new Error("cheerio.load() expects a string");var o=Qn(Qn({},r),s(i)),c=e(n,o,a,null),l=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}zn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,t),n.prototype._make=function(e,t){return(e=u(e,t)).prevObject=this,e},n.prototype._parse=function(t,n,r,i){return e(t,n,r,i)},n.prototype._render=function(e){return function(e,t){return t.xmlMode||t._useHtmlParser2?V(e,t):function(e){for(var t,n=("length"in e?e:[e]),r=0;r{e.forEach((e=>{e.labels.forEach((e=>{}))}))})),Xu.forEach((({heading:e,encodings:t})=>{"Legacy single-byte encodings"==e&&t.forEach((e=>{e.name.toLowerCase()}))}));let ju="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36",Yu="https://gh.con.sh/https://raw.githubusercontent.com/jadehh/TV/js";function qu(e=null,t=!1){let n=[];if(null!==e)for(const r of Object.keys(e))t?n.push(`${r}=${encodeURIComponent(e[r])}`):n.push(`${r}=${e[r]}`);return n.join("&")}function $u(e){const t=(new Date).getTime();for(;(new Date).getTime()-t<1e3*e;);}function Vu(e,t){let n=e.exec(t);return null!==n&&n.length>=1&&n.length>=1?n[1]:""}function Ku(e){return Gu.enc.Utf8.stringify(Gu.enc.Base64.parse(e))}function Wu(e,t){if(!e||!t)return{length:0,sequence:"",offset:0};for(var n="",r=e.length,i=t.length,s=new Array(r),a=0,o=0,c=0;ca&&(a=s[c][u],o===(h=c-s[c][u]+1)?n+=e[c]:(o=h,n="",n+=e.substr(o,c+1-o))));return{length:a,sequence:n,offset:h}}class zu{constructor(){this.vod_id="",this.vod_name="",this.vod_pic=Yu+"/resources/ali.jpg",this.vod_remarks=""}to_dict(){return JSON.stringify(this)}load_dic(e){let t=JSON.parse(e);for(let e in t)this[e]=t[e]}load_data(e){for(let t in JSON.parse(this.to_dict()))this[t]=e[t]}}class Qu extends zu{constructor(){super(),this.type_name="",this.vod_year="",this.vod_area="",this.vod_actor="",this.vod_director="",this.vod_content="",this.vod_play_from="",this.vod_play_url=""}to_short(){let e=new zu;return e.load_dic(this.to_dict()),e}load_dic(e){let t=JSON.parse(e);for(let e in JSON.parse(this.to_dict()))this[e]=t[e]}}const Ju=["DEBUG","INFO","WARNING","ERROR"];class Zu{constructor(e,t="DEBUG"){this.app_name=e,this.level=t,this.level_index=Ju.indexOf(t)}format(e,t){let n=80;switch(e){case"INFO":n+=1;break;case"WARNING":n-=2}return t.length>>0;if(t<0&&(t=n+t),!(t<0||t>=n))return e[t]}class Eh{constructor({type:e,uri:t,groupId:n,language:r,assocLanguage:i,name:s,isDefault:a,autoselect:o,forced:c,instreamId:l,characteristics:u,channels:h}){ih(e,n,s),rh(["SUBTITLES"===e,t],["CLOSED-CAPTIONS"===e,l],["CLOSED-CAPTIONS"===e,!t],[c,"SUBTITLES"===e]),this.type=e,this.uri=t,this.groupId=n,this.language=r,this.assocLanguage=i,this.name=s,this.isDefault=a,this.autoselect=o,this.forced=c,this.instreamId=l,this.characteristics=u,this.channels=h}}class mh{constructor({uri:e,isIFrameOnly:t=!1,bandwidth:n,averageBandwidth:r,score:i,codecs:s,resolution:a,frameRate:o,hdcpLevel:c,allowedCpc:l,videoRange:u,stableVariantId:h,programId:f,audio:p=[],video:d=[],subtitles:E=[],closedCaptions:m=[],currentRenditions:T={audio:0,video:0,subtitles:0,closedCaptions:0}}){ih(e,n),this.uri=e,this.isIFrameOnly=t,this.bandwidth=n,this.averageBandwidth=r,this.score=i,this.codecs=s,this.resolution=a,this.frameRate=o,this.hdcpLevel=c,this.allowedCpc=l,this.videoRange=u,this.stableVariantId=h,this.programId=f,this.audio=p,this.video=d,this.subtitles=E,this.closedCaptions=m,this.currentRenditions=T}}class Th{constructor({id:e,value:t,uri:n,language:r}){ih(e,t||n),nh("SessionData cannot have both value and uri, shoud be either.",!(t&&n)),this.id=e,this.value=t,this.uri=n,this.language=r}}class _h{constructor({method:e,uri:t,iv:n,format:r,formatVersion:i}){ih(e),sh(["NONE"!==e,t]),rh(["NONE"===e,!(t||n||r||i)]),this.method=e,this.uri=t,this.iv=n,this.format=r,this.formatVersion=i}}class gh{constructor({hint:e=!1,uri:t,mimeType:n,byterange:r}){ih(t),this.hint=e,this.uri=t,this.mimeType=n,this.byterange=r}}class Ah{constructor({id:e,classId:t,start:n,end:r,duration:i,plannedDuration:s,endOnNext:a,attributes:o={}}){ih(e),sh([!0===a,t]),rh([r,n],[r,n<=r],[i,i>=0],[s,s>=0]),this.id=e,this.classId=t,this.start=n,this.end=r,this.duration=i,this.plannedDuration=s,this.endOnNext=a,this.attributes=o}}class yh{constructor({type:e,duration:t,tagName:n,value:r}){ih(e),sh(["OUT"===e,t]),sh(["RAW"===e,n]),this.type=e,this.duration=t,this.tagName=n,this.value=r}}class Sh{constructor(e){ih(e),this.type=e}}class Nh extends Sh{constructor({isMasterPlaylist:e,uri:t,version:n,independentSegments:r=!1,start:i,source:s}){super("playlist"),ih(e),this.isMasterPlaylist=e,this.uri=t,this.version=n,this.independentSegments=r,this.start=i,this.source=s}}class vh extends Nh{constructor(e={}){super(Object.assign(Object.assign({},e),{isMasterPlaylist:!0}));const{variants:t=[],currentVariant:n,sessionDataList:r=[],sessionKeyList:i=[]}=e;this.variants=t,this.currentVariant=n,this.sessionDataList=r,this.sessionKeyList=i}}class Ih extends Nh{constructor(e={}){super(Object.assign(Object.assign({},e),{isMasterPlaylist:!1}));const{targetDuration:t,mediaSequenceBase:n=0,discontinuitySequenceBase:r=0,endlist:i=!1,playlistType:s,isIFrame:a,segments:o=[],prefetchSegments:c=[],lowLatencyCompatibility:l,partTargetDuration:u,renditionReports:h=[],skip:f=0,hash:p}=e;this.targetDuration=t,this.mediaSequenceBase=n,this.discontinuitySequenceBase=r,this.endlist=i,this.playlistType=s,this.isIFrame=a,this.segments=o,this.prefetchSegments=c,this.lowLatencyCompatibility=l,this.partTargetDuration=u,this.renditionReports=h,this.skip=f,this.hash=p}}class bh extends Sh{constructor({uri:e,mimeType:t,data:n,duration:r,title:i,byterange:s,discontinuity:a,mediaSequenceNumber:o=0,discontinuitySequence:c=0,key:l,map:u,programDateTime:h,dateRange:f,markers:p=[],parts:d=[]}){super("segment"),this.uri=e,this.mimeType=t,this.data=n,this.duration=r,this.title=i,this.byterange=s,this.discontinuity=a,this.mediaSequenceNumber=o,this.discontinuitySequence=c,this.key=l,this.map=u,this.programDateTime=h,this.dateRange=f,this.markers=p,this.parts=d}}class Ch extends Sh{constructor({hint:e=!1,uri:t,duration:n,independent:r,byterange:i,gap:s}){super("part"),ih(t),this.hint=e,this.uri=t,this.duration=n,this.independent=r,this.duration=n,this.byterange=i,this.gap=s}}class Oh extends Sh{constructor({uri:e,discontinuity:t,mediaSequenceNumber:n=0,discontinuitySequence:r=0,key:i}){super("prefetch"),ih(e),this.uri=e,this.discontinuity=t,this.mediaSequenceNumber=n,this.discontinuitySequence=r,this.key=i}}class kh{constructor({uri:e,lastMSN:t,lastPart:n}){ih(e),this.uri=e,this.lastMSN=t,this.lastPart=n}}function Rh(e){return function(e,t=" "){return e?(e=e.trim()," "===t||(e.startsWith(t)&&(e=e.slice(1)),e.endsWith(t)&&(e=e.slice(0,-1))),e):e}(e,'"')}function Dh(e){const t=uh(e,",");return{duration:oh(t[0]),title:decodeURIComponent(escape(t[1]))}}function Lh(e){const t=uh(e,"@");return{length:oh(t[0]),offset:t[1]?oh(t[1]):-1}}function wh(e){const t=uh(e,"x");return{width:oh(t[0]),height:oh(t[1])}}function xh(e){const t="ALLOWED-CPC: Each entry must consit of KEYFORMAT and Content Protection Configuration",n=e.split(",");0===n.length&&ah(t);const r=[];for(const e of n){const[n,i]=uh(e,":");n&&i?r.push({format:n,cpcList:i.split("/")}):ah(t)}return r}function Mh(e){const t=ch(e);return 16!==t.length&&ah("IV must be a 128-bit unsigned integer"),t}function Ph(e,t){t.IV&&e.compatibleVersion<2&&(e.compatibleVersion=2),(t.KEYFORMAT||t.KEYFORMATVERSIONS)&&e.compatibleVersion<5&&(e.compatibleVersion=5)}function Bh(e){const t={};for(const r of function(e){const t=[];let n=!0,r=0;const i=[];for(let s=0;st.groupId===e[r]))&&ah(`${r} attribute MUST match the value of the GROUP-ID attribute of an EXT-X-MEDIA tag whose TYPE attribute is ${r}.`)}(t,s,i),s.isIFrameOnly=r,s}function Gh(e,t){if(e.method!==t.method)return!1;if(e.uri!==t.uri)return!1;if(e.iv){if(!t.iv)return!1;if(e.iv.length!==t.iv.length)return!1;for(let n=0;na.targetDuration&&ah("EXTINF duration, when rounded to the nearest integer, MUST be less than or equal to the target duration"),o.duration=r.duration,o.title=r.title;else if("EXT-X-BYTERANGE"===n)a.compatibleVersion<4&&(a.compatibleVersion=4),o.byterange=r;else if("EXT-X-DISCONTINUITY"===n)o.parts.length>0&&ah("EXT-X-DISCONTINUITY must appear before the first EXT-X-PART tag of the Parent Segment."),o.discontinuity=!0;else if("EXT-X-KEY"===n)o.parts.length>0&&ah("EXT-X-KEY must appear before the first EXT-X-PART tag of the Parent Segment."),Ph(a,i),o.key=new _h({method:i.METHOD,uri:i.URI,iv:i.IV,format:i.KEYFORMAT,formatVersion:i.KEYFORMATVERSIONS});else if("EXT-X-MAP"===n)o.parts.length>0&&ah("EXT-X-MAP must appear before the first EXT-X-PART tag of the Parent Segment."),a.compatibleVersion<5&&(a.compatibleVersion=5),a.hasMap=!0,o.map=new gh({uri:i.URI,byterange:i.BYTERANGE});else if("EXT-X-PROGRAM-DATE-TIME"===n)o.programDateTime=r;else if("EXT-X-DATERANGE"===n){const e={};for(const t of Object.keys(i))(t.startsWith("SCTE35-")||t.startsWith("X-"))&&(e[t]=i[t]);o.dateRange=new Ah({id:i.ID,classId:i.CLASS,start:i["START-DATE"],end:i["END-DATE"],duration:i.DURATION,plannedDuration:i["PLANNED-DURATION"],endOnNext:i["END-ON-NEXT"],attributes:e})}else if("EXT-X-CUE-OUT"===n)o.markers.push(new yh({type:"OUT",duration:i&&i.DURATION||r}));else if("EXT-X-CUE-IN"===n)o.markers.push(new yh({type:"IN"}));else if("EXT-X-CUE-OUT-CONT"===n||"EXT-X-CUE"===n||"EXT-OATCLS-SCTE35"===n||"EXT-X-ASSET"===n||"EXT-X-SCTE35"===n)o.markers.push(new yh({type:"RAW",tagName:n,value:r}));else if("EXT-X-PRELOAD-HINT"!==n||i.TYPE)if("EXT-X-PRELOAD-HINT"===n&&"PART"===i.TYPE&&l)ah("Servers should not add more than one EXT-X-PRELOAD-HINT tag with the same TYPE attribute to a Playlist.");else if("EXT-X-PART"!==n&&"EXT-X-PRELOAD-HINT"!==n||i.URI){if("EXT-X-PRELOAD-HINT"===n&&"MAP"===i.TYPE)c&&ah("Servers should not add more than one EXT-X-PRELOAD-HINT tag with the same TYPE attribute to a Playlist."),c=!0,a.hasMap=!0,o.map=new gh({hint:!0,uri:i.URI,byterange:{length:i["BYTERANGE-LENGTH"],offset:i["BYTERANGE-START"]||0}});else if("EXT-X-PART"===n||"EXT-X-PRELOAD-HINT"===n&&"PART"===i.TYPE){"EXT-X-PART"!==n||i.DURATION||ah("EXT-X-PART: DURATION attribute is mandatory"),"EXT-X-PRELOAD-HINT"===n&&(l=!0);const e=new Ch({hint:"EXT-X-PRELOAD-HINT"===n,uri:i.URI,byterange:"EXT-X-PART"===n?i.BYTERANGE:{length:i["BYTERANGE-LENGTH"],offset:i["BYTERANGE-START"]||0},duration:i.DURATION,independent:i.INDEPENDENT,gap:i.GAP});o.parts.push(e)}}else ah("EXT-X-PART / EXT-X-PRELOAD-HINT: URI attribute is mandatory");else ah("EXT-X-PRELOAD-HINT: TYPE attribute is mandatory")}return o}function jh(e,t,n,r,i,s,a){const o=new Oh({uri:t,mediaSequenceNumber:i,discontinuitySequence:s});for(let t=n;t<=r;t++){const{name:n,attributes:r}=e[t];"EXTINF"===n?ah("A prefetch segment must not be advertised with an EXTINF tag."):"EXT-X-DISCONTINUITY"===n?ah("A prefetch segment must not be advertised with an EXT-X-DISCONTINUITY tag."):"EXT-X-PREFETCH-DISCONTINUITY"===n?o.discontinuity=!0:"EXT-X-KEY"===n?(Ph(a,r),o.key=new _h({method:r.METHOD,uri:r.URI,iv:r.IV,format:r.KEYFORMAT,formatVersion:r.KEYFORMATVERSIONS})):"EXT-X-MAP"===n&&ah("Prefetch segments must not be advertised with an EXT-X-MAP tag.")}return o}function Yh(e,t,n,r,i){const{discontinuity:s,key:a,map:o,byterange:c,uri:l}=t;if(s&&(t.discontinuitySequence=n+1),a||(t.key=r),o||(t.map=i),c&&-1===c.offset){const{segments:t}=e;if(t.length>0){const e=dh(t,-1);e.byterange&&e.uri===l?c.offset=e.byterange.offset+e.byterange.length:ah("If offset of EXT-X-BYTERANGE is not present, a previous Media Segment MUST be a sub-range of the same media resource")}else ah("If offset of EXT-X-BYTERANGE is not present, a previous Media Segment MUST appear in the Playlist file")}return e.segments.push(t),[t.discontinuitySequence,t.key,t.map]}function qh(e,t){const[n,r]=function(e){const t=e.indexOf(":");return-1===t?[e.slice(1).trim(),null]:[e.slice(1,t).trim(),e.slice(t+1).trim()]}(e),i=function(e){switch(e){case"EXTM3U":case"EXT-X-VERSION":return"Basic";case"EXTINF":case"EXT-X-BYTERANGE":case"EXT-X-DISCONTINUITY":case"EXT-X-PREFETCH-DISCONTINUITY":case"EXT-X-KEY":case"EXT-X-MAP":case"EXT-X-PROGRAM-DATE-TIME":case"EXT-X-DATERANGE":case"EXT-X-CUE-OUT":case"EXT-X-CUE-IN":case"EXT-X-CUE-OUT-CONT":case"EXT-X-CUE":case"EXT-OATCLS-SCTE35":case"EXT-X-ASSET":case"EXT-X-SCTE35":case"EXT-X-PART":case"EXT-X-PRELOAD-HINT":return"Segment";case"EXT-X-TARGETDURATION":case"EXT-X-MEDIA-SEQUENCE":case"EXT-X-DISCONTINUITY-SEQUENCE":case"EXT-X-ENDLIST":case"EXT-X-PLAYLIST-TYPE":case"EXT-X-I-FRAMES-ONLY":case"EXT-X-SERVER-CONTROL":case"EXT-X-PART-INF":case"EXT-X-PREFETCH":case"EXT-X-RENDITION-REPORT":case"EXT-X-SKIP":return"MediaPlaylist";case"EXT-X-MEDIA":case"EXT-X-STREAM-INF":case"EXT-X-I-FRAME-STREAM-INF":case"EXT-X-SESSION-DATA":case"EXT-X-SESSION-KEY":return"MasterPlaylist";case"EXT-X-INDEPENDENT-SEGMENTS":case"EXT-X-START":return"MediaorMasterPlaylist";default:return"Unknown"}}(n);if(function(e,t){if("Segment"===e||"MediaPlaylist"===e)return void 0===t.isMasterPlaylist?void(t.isMasterPlaylist=!1):void(t.isMasterPlaylist&&Fh());if("MasterPlaylist"===e){if(void 0===t.isMasterPlaylist)return void(t.isMasterPlaylist=!0);!1===t.isMasterPlaylist&&Fh()}}(i,t),"Unknown"===i)return null;"MediaPlaylist"===i&&"EXT-X-RENDITION-REPORT"!==n&&"EXT-X-PREFETCH"!==n&&(t.hash[n]&&ah("There MUST NOT be more than one Media Playlist tag of each type in any Media Playlist"),t.hash[n]=!0);const[s,a]=function(e,t){switch(e){case"EXTM3U":case"EXT-X-DISCONTINUITY":case"EXT-X-ENDLIST":case"EXT-X-I-FRAMES-ONLY":case"EXT-X-INDEPENDENT-SEGMENTS":case"EXT-X-CUE-IN":return[null,null];case"EXT-X-VERSION":case"EXT-X-TARGETDURATION":case"EXT-X-MEDIA-SEQUENCE":case"EXT-X-DISCONTINUITY-SEQUENCE":return[oh(t),null];case"EXT-X-CUE-OUT":return Number.isNaN(Number(t))?[null,Bh(t)]:[oh(t),null];case"EXT-X-KEY":case"EXT-X-MAP":case"EXT-X-DATERANGE":case"EXT-X-MEDIA":case"EXT-X-STREAM-INF":case"EXT-X-I-FRAME-STREAM-INF":case"EXT-X-SESSION-DATA":case"EXT-X-SESSION-KEY":case"EXT-X-START":case"EXT-X-SERVER-CONTROL":case"EXT-X-PART-INF":case"EXT-X-PART":case"EXT-X-PRELOAD-HINT":case"EXT-X-RENDITION-REPORT":case"EXT-X-SKIP":return[null,Bh(t)];case"EXTINF":return[Dh(t),null];case"EXT-X-BYTERANGE":return[Lh(t),null];case"EXT-X-PROGRAM-DATE-TIME":return[new Date(t),null];default:return[t,null]}}(n,r);return{name:n,category:i,value:s,attributes:a}}function $h(e,t){let n;return t.isMasterPlaylist?n=function(e,t){const n=new vh;let r=!1;for(const[i,{name:s,value:a,attributes:o}]of e.entries())if("EXT-X-VERSION"===s)n.version=a;else if("EXT-X-STREAM-INF"===s){const s=e[i+1];("string"!=typeof s||s.startsWith("#EXT"))&&ah("EXT-X-STREAM-INF must be followed by a URI line");const a=Hh(e,o,s,!1,t);a&&("number"==typeof a.score&&(r=!0,a.score<0&&ah("SCORE attribute on EXT-X-STREAM-INF must be positive decimal-floating-point number.")),n.variants.push(a))}else if("EXT-X-I-FRAME-STREAM-INF"===s){const r=Hh(e,o,o.URI,!0,t);r&&n.variants.push(r)}else if("EXT-X-SESSION-DATA"===s){const e=new Th({id:o["DATA-ID"],value:o.VALUE,uri:o.URI,language:o.LANGUAGE});n.sessionDataList.some((t=>t.id===e.id&&t.language===e.language))&&ah("A Playlist MUST NOT contain more than one EXT-X-SESSION-DATA tag with the same DATA-ID attribute and the same LANGUAGE attribute."),n.sessionDataList.push(e)}else if("EXT-X-SESSION-KEY"===s){"NONE"===o.METHOD&&ah("EXT-X-SESSION-KEY: The value of the METHOD attribute MUST NOT be NONE");const e=new _h({method:o.METHOD,uri:o.URI,iv:o.IV,format:o.KEYFORMAT,formatVersion:o.KEYFORMATVERSIONS});n.sessionKeyList.some((t=>Gh(t,e)))&&ah("A Master Playlist MUST NOT contain more than one EXT-X-SESSION-KEY tag with the same METHOD, URI, IV, KEYFORMAT, and KEYFORMATVERSIONS attribute values."),Ph(t,o),n.sessionKeyList.push(e)}else"EXT-X-INDEPENDENT-SEGMENTS"===s?(n.independentSegments&&ah("EXT-X-INDEPENDENT-SEGMENTS tag MUST NOT appear more than once in a Playlist"),n.independentSegments=!0):"EXT-X-START"===s&&(n.start&&ah("EXT-X-START tag MUST NOT appear more than once in a Playlist"),"number"!=typeof o["TIME-OFFSET"]&&ah("EXT-X-START: TIME-OFFSET attribute is REQUIRED"),n.start={offset:o["TIME-OFFSET"],precise:o.PRECISE||!1});if(r)for(const e of n.variants)"number"!=typeof e.score&&ah("If any Variant Stream contains the SCORE attribute, then all Variant Streams in the Master Playlist SHOULD have a SCORE attribute");if(t.isClosedCaptionsNone)for(const e of n.variants)e.closedCaptions.length>0&&ah("If there is a variant with CLOSED-CAPTIONS attribute of NONE, all EXT-X-STREAM-INF tags MUST have this attribute with a value of NONE");return n}(e,t):(n=function(e,t){var n;const r=new Ih;let i=-1,s=0,a=!1,o=!1,c=0,l=null,u=null,h=!1;for(const[n,f]of e.entries()){const{name:p,value:d,attributes:E,category:m}=f;if("Segment"!==m){if("EXT-X-VERSION"===p)void 0===r.version?r.version=d:ah("A Playlist file MUST NOT contain more than one EXT-X-VERSION tag.");else if("EXT-X-TARGETDURATION"===p)r.targetDuration=t.targetDuration=d;else if("EXT-X-MEDIA-SEQUENCE"===p)r.segments.length>0&&ah("The EXT-X-MEDIA-SEQUENCE tag MUST appear before the first Media Segment in the Playlist."),r.mediaSequenceBase=s=d;else if("EXT-X-DISCONTINUITY-SEQUENCE"===p)r.segments.length>0&&ah("The EXT-X-DISCONTINUITY-SEQUENCE tag MUST appear before the first Media Segment in the Playlist."),a&&ah("The EXT-X-DISCONTINUITY-SEQUENCE tag MUST appear before any EXT-X-DISCONTINUITY tag."),r.discontinuitySequenceBase=c=d;else if("EXT-X-ENDLIST"===p)r.endlist=!0;else if("EXT-X-PLAYLIST-TYPE"===p)r.playlistType=d;else if("EXT-X-I-FRAMES-ONLY"===p)t.compatibleVersion<4&&(t.compatibleVersion=4),r.isIFrame=!0;else if("EXT-X-INDEPENDENT-SEGMENTS"===p)r.independentSegments&&ah("EXT-X-INDEPENDENT-SEGMENTS tag MUST NOT appear more than once in a Playlist"),r.independentSegments=!0;else if("EXT-X-START"===p)r.start&&ah("EXT-X-START tag MUST NOT appear more than once in a Playlist"),"number"!=typeof E["TIME-OFFSET"]&&ah("EXT-X-START: TIME-OFFSET attribute is REQUIRED"),r.start={offset:E["TIME-OFFSET"],precise:E.PRECISE||!1};else if("EXT-X-SERVER-CONTROL"===p)E["CAN-BLOCK-RELOAD"]||ah("EXT-X-SERVER-CONTROL: CAN-BLOCK-RELOAD=YES is mandatory for Low-Latency HLS"),r.lowLatencyCompatibility={canBlockReload:E["CAN-BLOCK-RELOAD"],canSkipUntil:E["CAN-SKIP-UNTIL"],holdBack:E["HOLD-BACK"],partHoldBack:E["PART-HOLD-BACK"]};else if("EXT-X-PART-INF"===p)E["PART-TARGET"]||ah("EXT-X-PART-INF: PART-TARGET attribute is mandatory"),r.partTargetDuration=E["PART-TARGET"];else if("EXT-X-RENDITION-REPORT"===p)E.URI||ah("EXT-X-RENDITION-REPORT: URI attribute is mandatory"),0===E.URI.search(/^[a-z]+:/)&&ah("EXT-X-RENDITION-REPORT: URI must be relative to the playlist uri"),r.renditionReports.push(new kh({uri:E.URI,lastMSN:E["LAST-MSN"],lastPart:E["LAST-PART"]}));else if("EXT-X-SKIP"===p)E["SKIPPED-SEGMENTS"]||ah("EXT-X-SKIP: SKIPPED-SEGMENTS attribute is mandatory"),t.compatibleVersion<9&&(t.compatibleVersion=9),r.skip=E["SKIPPED-SEGMENTS"],s+=r.skip;else if("EXT-X-PREFETCH"===p){const a=jh(e,d,-1===i?n:i,n-1,s++,c,t);a&&(a.discontinuity&&(a.discontinuitySequence++,c=a.discontinuitySequence),a.key?l=a.key:a.key=l,r.prefetchSegments.push(a)),o=!0,i=-1}else if("string"==typeof f){-1===i&&ah("A URI line is not preceded by any segment tags"),r.targetDuration||ah("The EXT-X-TARGETDURATION tag is REQUIRED"),o&&ah("These segments must appear after all complete segments.");const a=Xh(e,f,i,n-1,s++,c,t);a&&([c,l,u]=Yh(r,a,c,l,u),!h&&a.parts.length>0&&(h=!0)),i=-1}}else-1===i&&(i=n),"EXT-X-DISCONTINUITY"===p&&(a=!0)}if(-1!==i){const a=Xh(e,"",i,e.length-1,s++,c,t);if(a){const{parts:e}=a;e.length>0&&!r.endlist&&!(null===(n=dh(e,-1))||void 0===n?void 0:n.hint)&&ah("If the Playlist contains EXT-X-PART tags and does not contain an EXT-X-ENDLIST tag, the Playlist must contain an EXT-X-PRELOAD-HINT tag with a TYPE=PART attribute"),Yh(r,a,l,u),!h&&a.parts.length>0&&(h=!0)}}return function(e){const t=new Map,n=new Map;let r=!1,i=!1;for(let s=e.length-1;s>=0;s--){const{programDateTime:a,dateRange:o}=e[s];if(a&&(i=!0),o&&o.start){r=!0,o.endOnNext&&(o.end||o.duration)&&ah("An EXT-X-DATERANGE tag with an END-ON-NEXT=YES attribute MUST NOT contain DURATION or END-DATE attributes.");const e=o.start.getTime(),i=o.duration||0;o.end&&o.duration&&e+1e3*i!==o.end.getTime()&&ah("END-DATE MUST be equal to the value of the START-DATE attribute plus the value of the DURATION"),o.endOnNext&&(o.end=t.get(o.classId)),t.set(o.classId,o.start);const s=o.end?o.end.getTime():o.start.getTime()+1e3*(o.duration||0),a=n.get(o.classId);if(a){for(const t of a)(t.start<=e&&t.end>e||t.start>=e&&t.start0&&en&&ah("PART-TARGET is the maximum duration of any Partial Segment"),e0&&(e.lastPart=t.parts.length-1)}}(r,h),r}(e,t),!n.isIFrame&&t.hasMap&&t.compatibleVersion<6&&(t.compatibleVersion=6)),t.compatibleVersion>1&&(!n.version||n.versiont.startsWith(e))))super.push(t);else{if(this.includes(t)){if(Kh.some((e=>t.startsWith(e))))continue;ah(`Redundant item (${t})`)}super.push(t)}else super.push(t);return this.length}}function zh(e,t){let n=1e3;t&&(n=Math.pow(10,t));const r=Math.round(e*n)/n;return t?r.toFixed(t):r}function Qh(e){const t=[`DATA-ID="${e.id}"`];return e.language&&t.push(`LANGUAGE="${e.language}"`),e.value?t.push(`VALUE="${e.value}"`):e.uri&&t.push(`URI="${e.uri}"`),`#EXT-X-SESSION-DATA:${t.join(",")}`}function Jh(e,t){const n=t?"#EXT-X-SESSION-KEY":"#EXT-X-KEY",r=[`METHOD=${e.method}`];return e.uri&&r.push(`URI="${e.uri}"`),e.iv&&(16!==e.iv.length&&ah("IV must be a 128-bit unsigned integer"),r.push(`IV=${lh(e.iv)}`)),e.format&&r.push(`KEYFORMAT="${e.format}"`),e.formatVersion&&r.push(`KEYFORMATVERSIONS="${e.formatVersion}"`),`${n}:${r.join(",")}`}function Zh(e,t){const n=t.isIFrameOnly?"#EXT-X-I-FRAME-STREAM-INF":"#EXT-X-STREAM-INF",r=[`BANDWIDTH=${t.bandwidth}`];if(t.averageBandwidth&&r.push(`AVERAGE-BANDWIDTH=${t.averageBandwidth}`),t.isIFrameOnly&&r.push(`URI="${t.uri}"`),t.codecs&&r.push(`CODECS="${t.codecs}"`),t.resolution&&r.push(`RESOLUTION=${t.resolution.width}x${t.resolution.height}`),t.frameRate&&r.push(`FRAME-RATE=${zh(t.frameRate,3)}`),t.hdcpLevel&&r.push(`HDCP-LEVEL=${t.hdcpLevel}`),t.audio.length>0){r.push(`AUDIO="${t.audio[0].groupId}"`);for(const n of t.audio)e.push(ef(n))}if(t.video.length>0){r.push(`VIDEO="${t.video[0].groupId}"`);for(const n of t.video)e.push(ef(n))}if(t.subtitles.length>0){r.push(`SUBTITLES="${t.subtitles[0].groupId}"`);for(const n of t.subtitles)e.push(ef(n))}if(ph().allowClosedCaptionsNone&&0===t.closedCaptions.length)r.push("CLOSED-CAPTIONS=NONE");else if(t.closedCaptions.length>0){r.push(`CLOSED-CAPTIONS="${t.closedCaptions[0].groupId}"`);for(const n of t.closedCaptions)e.push(ef(n))}if(t.score&&r.push(`SCORE=${t.score}`),t.allowedCpc){const e=[];for(const{format:n,cpcList:r}of t.allowedCpc)e.push(`${n}:${r.join("/")}`);r.push(`ALLOWED-CPC="${e.join(",")}"`)}t.videoRange&&r.push(`VIDEO-RANGE=${t.videoRange}`),t.stableVariantId&&r.push(`STABLE-VARIANT-ID="${t.stableVariantId}"`),t.programId&&r.push(`PROGRAM-ID=${t.programId}`),e.push(`${n}:${r.join(",")}`),t.isIFrameOnly||e.push(`${t.uri}`)}function ef(e){const t=[`TYPE=${e.type}`,`GROUP-ID="${e.groupId}"`,`NAME="${e.name}"`];return void 0!==e.isDefault&&t.push("DEFAULT="+(e.isDefault?"YES":"NO")),void 0!==e.autoselect&&t.push("AUTOSELECT="+(e.autoselect?"YES":"NO")),void 0!==e.forced&&t.push("FORCED="+(e.forced?"YES":"NO")),e.language&&t.push(`LANGUAGE="${e.language}"`),e.assocLanguage&&t.push(`ASSOC-LANGUAGE="${e.assocLanguage}"`),e.instreamId&&t.push(`INSTREAM-ID="${e.instreamId}"`),e.characteristics&&t.push(`CHARACTERISTICS="${e.characteristics}"`),e.channels&&t.push(`CHANNELS="${e.channels}"`),e.uri&&t.push(`URI="${e.uri}"`),`#EXT-X-MEDIA:${t.join(",")}`}function tf(e,t,n,r,i=1,s=null){let a=!1,o="";if(t.discontinuity&&e.push("#EXT-X-DISCONTINUITY"),t.key){const r=Jh(t.key);r!==n&&(e.push(r),n=r)}if(t.map){const n=function(e){const t=[`URI="${e.uri}"`];return e.byterange&&t.push(`BYTERANGE="${nf(e.byterange)}"`),`#EXT-X-MAP:${t.join(",")}`}(t.map);n!==r&&(e.push(n),r=n)}if(t.programDateTime&&e.push(`#EXT-X-PROGRAM-DATE-TIME:${fh(t.programDateTime)}`),t.dateRange&&e.push(function(e){const t=[`ID="${e.id}"`];e.start&&t.push(`START-DATE="${fh(e.start)}"`),e.end&&t.push(`END-DATE="${fh(e.end)}"`),e.duration&&t.push(`DURATION=${e.duration}`),e.plannedDuration&&t.push(`PLANNED-DURATION=${e.plannedDuration}`),e.classId&&t.push(`CLASS="${e.classId}"`),e.endOnNext&&t.push("END-ON-NEXT=YES");for(const n of Object.keys(e.attributes))n.startsWith("X-")?"number"==typeof e.attributes[n]?t.push(`${n}=${e.attributes[n]}`):t.push(`${n}="${e.attributes[n]}"`):n.startsWith("SCTE35-")&&t.push(`${n}=${lh(e.attributes[n])}`);return`#EXT-X-DATERANGE:${t.join(",")}`}(t.dateRange)),t.markers.length>0&&(o=function(e,t){let n="";for(const r of t)if("OUT"===r.type)n="OUT",e.push(`#EXT-X-CUE-OUT:DURATION=${r.duration}`);else if("IN"===r.type)n="IN",e.push("#EXT-X-CUE-IN");else if("RAW"===r.type){const t=r.value?`:${r.value}`:"";e.push(`#${r.tagName}${t}`)}return n}(e,t.markers)),t.parts.length>0&&(a=function(e,t){let n=!1;for(const r of t)if(r.hint){const t=[];if(t.push("TYPE=PART",`URI="${r.uri}"`),r.byterange){const{offset:e,length:n}=r.byterange;t.push(`BYTERANGE-START=${e}`),n&&t.push(`BYTERANGE-LENGTH=${n}`)}e.push(`#EXT-X-PRELOAD-HINT:${t.join(",")}`),n=!0}else{const t=[];t.push(`DURATION=${r.duration}`,`URI="${r.uri}"`),r.byterange&&t.push(`BYTERANGE=${nf(r.byterange)}`),r.independent&&t.push("INDEPENDENT=YES"),r.gap&&t.push("GAP=YES"),e.push(`#EXT-X-PART:${t.join(",")}`)}return n}(e,t.parts)),a)return[n,r];const c=i<3?Math.round(t.duration):zh(t.duration,function(e){const t=e.toString(10),n=t.indexOf(".");return-1===n?0:t.length-n-1}(t.duration));return e.push(`#EXTINF:${c},${unescape(encodeURIComponent(t.title||""))}`),t.byterange&&e.push(`#EXT-X-BYTERANGE:${nf(t.byterange)}`),null!=s?Array.prototype.push.call(e,s(t)):Array.prototype.push.call(e,`${t.uri}`),[n,r,o]}function nf({offset:e,length:t}){return`${t}@${e}`}function rf(e,t=null){ih(e),nh("Not a playlist","playlist"===e.type);const n=new Wh(e.uri);return n.push("#EXTM3U"),e.version&&n.push(`#EXT-X-VERSION:${e.version}`),e.independentSegments&&n.push("#EXT-X-INDEPENDENT-SEGMENTS"),e.start&&n.push(`#EXT-X-START:TIME-OFFSET=${zh(e.start.offset)}${e.start.precise?",PRECISE=YES":""}`),e.isMasterPlaylist?function(e,t){for(const n of t.sessionDataList)e.push(Qh(n));for(const n of t.sessionKeyList)e.push(Jh(n,!0));for(const n of t.variants)Zh(e,n)}(n,e):function(e,t,n=null){let r="",i="",s=!1;if(t.targetDuration&&e.push(`#EXT-X-TARGETDURATION:${t.targetDuration}`),t.lowLatencyCompatibility){const{canBlockReload:n,canSkipUntil:r,holdBack:i,partHoldBack:s}=t.lowLatencyCompatibility,a=[];a.push("CAN-BLOCK-RELOAD="+(n?"YES":"NO")),void 0!==r&&a.push(`CAN-SKIP-UNTIL=${r}`),void 0!==i&&a.push(`HOLD-BACK=${i}`),void 0!==s&&a.push(`PART-HOLD-BACK=${s}`),e.push(`#EXT-X-SERVER-CONTROL:${a.join(",")}`)}t.partTargetDuration&&e.push(`#EXT-X-PART-INF:PART-TARGET=${t.partTargetDuration}`),t.mediaSequenceBase&&e.push(`#EXT-X-MEDIA-SEQUENCE:${t.mediaSequenceBase}`),t.discontinuitySequenceBase&&e.push(`#EXT-X-DISCONTINUITY-SEQUENCE:${t.discontinuitySequenceBase}`),t.playlistType&&e.push(`#EXT-X-PLAYLIST-TYPE:${t.playlistType}`),t.isIFrame&&e.push("#EXT-X-I-FRAMES-ONLY"),t.skip>0&&e.push(`#EXT-X-SKIP:SKIPPED-SEGMENTS=${t.skip}`);for(const a of t.segments){let o="";[r,i,o]=tf(e,a,r,i,t.version,n),"OUT"===o?s=!0:"IN"===o&&s&&(s=!1)}"VOD"===t.playlistType&&s&&e.push("#EXT-X-CUE-IN"),t.prefetchSegments.length>2&&ah("The server must deliver no more than two prefetch segments");for(const n of t.prefetchSegments)n.discontinuity&&e.push("#EXT-X-PREFETCH-DISCONTINUITY"),e.push(`#EXT-X-PREFETCH:${n.uri}`);t.endlist&&e.push("#EXT-X-ENDLIST");for(const n of t.renditionReports){const t=[];t.push(`URI="${n.uri}"`,`LAST-MSN=${n.lastMSN}`),void 0!==n.lastPart&&t.push(`LAST-PART=${n.lastPart}`),e.push(`#EXT-X-RENDITION-REPORT:${t.join(",")}`)}}(n,e,t),n.join("\n")}const sf="hls_cache",af=[],of={},cf={},lf={};let uf="";function hf(e,t){if(af.push(e),of[e]=t,af.length>5){!function(e){delete of[e],delete af[e],new JSFile(sf+"/"+e).delete()}(af.shift())}}async function ff(e,t){const n=md5X(e);if(of[n])return of[n];let r={},i=e;for(;r=await req(i,{headers:t,redirect:0}),r.headers.location;)i=r.headers.location;if(200==r.code){const e=function(e,t){if(t.variants)for(const n of t.variants)n.uri.startsWith("http")||(n.uri=Ef(e,n.uri));if(t.segments)for(const n of t.segments)n.uri.startsWith("http")||(n.uri=Ef(e,n.uri)),n.key&&n.key.uri&&!n.key.uri.startsWith("http")&&(n.key.uri=Ef(e,n.key.uri));return t}(i,function(e){const t={version:void 0,isMasterPlaylist:void 0,hasMap:!1,targetDuration:0,compatibleVersion:1,isClosedCaptionsNone:!1,hash:{}},n=function(e,t){const n=[];for(const r of e.split("\n")){const e=r.trim();if(e)if(e.startsWith("#")){if(e.startsWith("#EXT")){const r=qh(e,t);r&&n.push(r)}}else n.push(e)}return 0!==n.length&&"EXTM3U"===n[0].name||ah("The EXTM3U tag MUST be the first line."),n}(e,t),r=$h(n,t);return r.source=e,r}(r.content));return hf(n,{code:r.code,plist:e,key:n,headers:r.headers}),of[n]}return{}}async function pf(e,t,n){if(!of[e])return{};const r=of[e].plist.segments;let i=!lf[e];if(i){lf[e]={};for(const t of r){const n=md5X(t.uri+t.mediaSequenceNumber.toString());lf[e][n]={file:sf+"/"+e+"/"+n,uri:t.uri,key:n,index:t.mediaSequenceNumber,order:t.mediaSequenceNumber,state:-1,read:!1}}}for(const n in lf[e]){const i=lf[e][n];i.index>=t?i.order=i.index-t:i.order=r.length-t+i.index}i&&async function(e,t,n){uf&&uf!=e&&delete cf[uf];uf=e,cf[e]=!0;for(let r=0;re){var s=await r.read(i-e,e);await c.write(s),e=i}if(1==o.state||o.state<0)return c.done(),await r.close(),await r.delete(),o.read=!1,void t();setTimeout(n,5)}()})),{buffer:3,content:c}}}async function df(e,t,n){if(t.state>=0)return;if(!cf[e])return;if(t.state=0,await new JSFile(t.file).exist())return void(t.state=1);const r=new JSFile(t.file+".dl");await r.open("w");const i=await req(t.uri,{buffer:3,headers:n,stream:r,timeout:[5e3,1e4]});if(i.error||i.code>=300)return await r.close(),t.read||await r.delete(),void(t.state=-1);await r.close(),t.read?await r.copy(t.file):await r.move(t.file),t.state=1}function Ef(e,t){var n=e.split("/"),r=t.split("/");n.pop();for(var i=0;i0?(this.reconnectTimes=0,i?{cookie:a.headers["set-cookie"],content:a.content}:a.content):1===s?(this.reconnectTimes=0,a.content):(await this.jadeLog.error(`请求失败,请求url为:${e},回复内容为:${JSON.stringify(a)}`),await this.reconnnect(e,t,n,r,i,s))}async fetch(e,t,n,r=!1,i=!1,s=0){let a=qu(t),o=e;Hu.isEmpty(a)||(o=e+"?"+a);let c,l=new Uu(o);return c=await req(l.toString(),{method:"get",headers:n,buffer:s,data:null}),201===c.code||200===c.code||302===c.code||301===c.code||i?await this.getResponse(e,t,n,r,i,s,c):(await this.jadeLog.error(`请求失败,失败原因为:状态码出错,请求url为:${l},回复内容为:${JSON.stringify(c)}`),await this.reconnnect(e,t,n,r,i,s))}async getHtml(e=this.siteUrl,t=this.getHeader()){let n=await this.fetch(e,null,t);if(!Hu.isEmpty(n))return Fu(n);await this.jadeLog.error("html获取失败",!0)}async parseVodShortListFromJson(e,t){for(const n of e.pageComponentList)if(void 0!==n.commonData){let e=new Qu,r=n.commonData;if(e.type_name=r.feature,void 0!==r.notice&&(e.vod_actor=r.notice.replaceAll("演员:","").replaceAll(" ","")),void 0!==r.director&&(e.vod_director=r.director.replaceAll("导演:","").replaceAll(" ","")),"电影"===t.type_name?e.vod_id=r.leftButtonDTO.action.value:e.vod_id=r.showId,e.vod_name=r.titleDTO.displayName,e.vod_name===t.vod_name||e.type_name.indexOf(t.vod_year)>-1||e.type_name.indexOf(t.type_name)>-1||e.vod_director===t.vod_director)return await this.jadeLog.debug(`匹配视频网站成功,名称为:${e.vod_name},类型为:${e.type_name},导演为:${e.vod_director}`,!0),e}return await this.jadeLog.warning("没有匹配到弹幕网站"),null}async parseVodUrlFromJsonByEpisodeId(e,t){for(const r of e.serisesList)if(n=t.episodeId,!isNaN(parseInt(n))&&parseInt(t.episodeId).toString()===r.displayName)return r.action.value;var n;return await this.jadeLog.error("没有找到匹配的集数"),""}async downloadDanmu(e){let t=await req(e,{headers:this.getHeader()});if(200===t.code){let e=function(e){let t=[];return Array.from(e.danmuku).forEach((e=>{let n=Number(e[0]),r=e[4];t.push(``)})),String.raw`chat.bilibili.com521756020100000k-v`+t.join("")+""}(JSON.parse(t.content)),n={do:"set",key:"danmu",value:e};return await req("http://127.0.0.1:9978/cache",{method:"post",data:n,postType:"form-data"}),"http://127.0.0.1:9978/cache?do=get&key=danmu"}return this.jadeLog.error(`弹幕请求失败,返回结果为:${JSON.stringify(t)}`),""}async search(e,t){let n={pg:"1",keyword:e.vod_name},r=JSON.parse(await this.fetch(this.siteUrl+"/api/search",n,this.getHeader())),i=await this.parseVodShortListFromJson(r,e);return Hu.isEmpty(i)?"":await this.getVideoUrl(i.vod_id,t)}async getVideoUrl(e,t){let n="";if(!Hu.isEmpty(e)){if(e.startsWith("http"))n=e;else{let r={appScene:"show_episode",showIds:e},i=JSON.parse(await this.fetch(this.siteUrl+"/api/search",r,this.getHeader()));n=await this.parseVodUrlFromJsonByEpisodeId(i,t)}if(!Hu.isEmpty(n))return await this.jadeLog.debug(`弹幕视频播放连接为:${n}`),await this.downloadDanmu("https://dmku.thefilehosting.com/?ac=dm&url="+n)}return n}async getDammu(e,t){return await this.search(e,t)}}const Tf="Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1",_f="76917ccccd4441c39457a04f6084fb2f";function gf(){const e={};return e["User-Agent"]=Tf,e.Referer="https://www.aliyundrive.com/",e}class Af{constructor(){this.driveId="",this.userId="",this.tokenType="",this.accessToken="",this.refreshToken=""}static objectFrom(e){if(Hu.isEmpty(e))return new Af;let t=JSON.parse(e),n=new Af;return n.driveId=t.default_drive_id,n.userId=t.user_id,n.tokenType=t.token_type,n.accessToken=t.access_token,n.refreshToken=t.refresh_token,n}getDriveId(){return Hu.isEmpty(this.driveId)?"":this.driveId}getUserId(){return Hu.isEmpty(this.userId)?"":this.userId}getTokenType(){return Hu.isEmpty(this.tokenType)?"":this.tokenType}getAccessToken(){return Hu.isEmpty(this.accessToken)?"":this.accessToken}getRefreshToken(){return Hu.isEmpty(this.refreshToken)?"":this.refreshToken}setRefreshToken(e){this.refreshToken=e}getAuthorization(){return this.getTokenType()+" "+this.getAccessToken()}isAuthed(){return this.getTokenType().length>0&&this.getAccessToken().length>0}clean(){return this.refreshToken="",this.accessToken="",this}async save(){return await local.set("ali","aliyundrive_user",this.toString()),this}toString(){return JSON.stringify(this.toDict())}toDict(){return{default_drive_id:this.getDriveId(),user_id:this.getUserId(),token_type:this.getTokenType(),access_token:this.getAccessToken(),refresh_token:this.getRefreshToken()}}}class yf{constructor(){this.tokenType="",this.accessToken="",this.refreshToken=""}static objectFrom(e){if(Hu.isEmpty(e))return new yf;let t=JSON.parse(e),n=new yf;return n.tokenType=t.token_type,n.accessToken=t.access_token,n.refreshToken=t.refresh_token,n}getTokenType(){return Hu.isEmpty(this.tokenType)?"":this.tokenType}getAccessToken(){return Hu.isEmpty(this.accessToken)?"":this.accessToken}getRefreshToken(){return Hu.isEmpty(this.refreshToken)?"":this.refreshToken}getAuthorization(){return this.getTokenType()+" "+this.getAccessToken()}clean(){return this.refreshToken="",this.accessToken="",this}async save(){return await local.set("ali","aliyundrive_oauth",this.toString()),this}toString(){return JSON.stringify(this.toDict())}toDict(){return{token_type:this.getTokenType(),access_token:this.getAccessToken(),refresh_token:this.getRefreshToken()}}}class Sf{constructor(){this.defaultDriveId="",this.resourceDriveId="",this.backupDriveId=""}static objectFrom(e){if(Hu.isEmpty(e))return new Sf;let t=JSON.parse(e),n=new Sf;return n.defaultDriveId=t.default_drive_id,n.resourceDriveId=t.resource_drive_id,n.backupDriveId=t.backup_drive_id,n}getDefaultDriveId(){return Hu.isEmpty(this.defaultDriveId)?"":this.defaultDriveId}getResourceDriveId(){return Hu.isEmpty(this.resourceDriveId)?"":this.resourceDriveId}getBackupDriveId(){return Hu.isEmpty(this.backupDriveId)?"":this.backupDriveId}clean(){return this.defaultDriveId="",this.backupDriveId="",this.resourceDriveId="",this}async save(){return await local.set("ali","aliyundrive_drive",this.toString()),this}toString(){const e={default_drive_id:this.getDefaultDriveId(),resource_drive_id:this.getResourceDriveId(),backup_drive_id:this.getBackupDriveId()};return JSON.stringify(e)}}class Nf{constructor(){this.redirectUri=""}static objectFrom(e){if(Hu.isEmpty(e))return new Nf;let t=JSON.parse(e),n=new Nf;return n.redirectUri=t.redirectUri,n}getRedirectUri(){return Hu.isEmpty(this.redirectUri)?"":this.redirectUri}getCode(){return this.getRedirectUri().split("code=")[1]}}async function vf(e,t,n){return t["Content-Type"]="application/json",await req(e,{headers:n,method:"post",data:t})}let If="",bf=new yf,Cf=new Af,Of=new Sf,kf="TV",Rf=new Zu("阿里云盘","INFO");async function Df(){let e=await async function(){return await local.get("ali","aliyundrive_user")}();Cf=Af.objectFrom(e),Hu.isEmpty(Cf.getRefreshToken())?await Rf.error("读取用户缓存失败",!0):await Rf.info("读取用户缓存成功",!0);let t=await async function(){return await local.get("ali","aliyundrive_oauth")}();bf=yf.objectFrom(t),Hu.isEmpty(bf.getAccessToken())?await Rf.error("读取授权失败",!0):await Rf.info("读取授权成功",!0),await Rf.info("阿里Api初始化完成")}async function Lf(){await async function(){let e=await async function(){let e=await Gf(),t={drive_id:e,parent_file_id:"root",limit:100,order_by:"updated_at",order_direction:"DESC"},n=await Pf("openFile/list",t,!0),r=JSON.parse(n);if(Hu.isEmpty(r.items))return!1;for(const e of r.items)if(e.name===kf)return e.file_id;return!1}();if(e)return await Rf.info("文件夹存在,无需重新创建"),e;await Rf.debug("文件夹不存在,重新创建文件夹");let t={check_name_mode:"refuse",drive_id:await Gf(),name:kf,parent_file_id:"root",type:"folder"},n=await Pf("openFile/create",t,!0),r=JSON.parse(n);if(Hu.isEmpty(r.drive_id))return await Rf.error(`创建文件夹失败,失败原因为:${n}`),null;return await Rf.info("创建文件夹成功",!0),r.file_id}()}function wf(e){return e.indexOf("TooManyRequests")>-1?($u(1),{code:429,content:e}):e.indexOf("AccessTokenInvalid")>-1?{code:400,content:e}:e.indexOf("AccessTokenExpired")>-1?{code:401,content:e}:e.indexOf("BadRequest")>-1?{code:402,content:e}:e.indexOf("NotFound.File")>-1||e.indexOf("ForbiddenFileInTheRecycleBin")>-1?{code:403,content:e}:e.indexOf("user not allowed access drive")>-1?{code:404,content:e}:e.indexOf("ForbiddenNoPermission.File")>-1?{code:500,content:e}:e.indexOf("InvalidParameter.ToParentFileId")>-1?{code:501,content:e}:e.indexOf("NotFound.ParentFileId")>-1?{code:502,content:e}:e.indexOf("The resource drive has exceeded the limit. File size exceeded drive capacity")>-1||e.indexOf("The resource drive has exceeded the limit. File size exceeded drive capacity")>-1?{code:503,content:e}:{code:200,content:e}}async function xf(e,t){let n="https://api-cf.nn.ci/alist/ali_open/"+e,r=(await vf(n,t,gf())).content;return await async function(e){return e.indexOf("Too Many Requests")>-1&&(await bf.clean().save(),!0)}(r)?(await Rf.error(`Alist授权Token失败,失败原因为:太多请求,失败详情为:${r}`),!1):(bf=await yf.objectFrom(r).save(),!0)}async function Mf(e,t,n,r){e=e.startsWith("https")?e:"https://api.aliyundrive.com/"+e;let i=await vf(e,t,function(e){const t={};return t["x-share-token"]=e,t["X-Canary"]="client=Android,app=adrive,version=v4.3.1",Cf.isAuthed()&&(t.authorization=Cf.getAuthorization()),t}(n));return await Rf.debug(`正在请求需要阿里登录的url:${e},参数为:${JSON.stringify(t)}`),i=wf(i.content),r&&400===i.code?(await Rf.error("登录阿里云盘失败,失败原因为:登录Token无效,准备重新授权,失败详情:"+i.content),await Ff(""),await Mf(e,t,n,!1)):(await Rf.debug(`完成请求需要阿里登录的url:${e},参数为:${JSON.stringify(t)},请求结果为${i.content}`),i.content)}async function Pf(e,t,n){e=e.startsWith("https")?e:"https://open.aliyundrive.com/adrive/v1.0/"+e,await Rf.debug(`正在请求需要阿里授权的url:${e},参数为:${JSON.stringify(t)}`);let r=function(){const e={};return e.authorization=bf.getAuthorization(),e}(),i=await vf(e,t,r);if(i=wf(i.content),n&&(400===i.code||401===i.code||429===i.code||402===i.code||403===i.code||404===i.code)){if(400===i.code)await Rf.error("阿里授权失败,失败原因为:授权Token无效,准备重新授权,失败详情:"+i.content),await Bf();else if(401===i.code)await Rf.error("阿里授权失败,失败原因为:授权Token失效,准备重新授权,失败详情:"+i.content),await Bf();else{if(402===i.code)return await Rf.error("阿里授权失败,失败原因为:授权Token失效,准备重新授权,失败详情:"+i.content),await Pf(e,t,!0);if(403===i.code)return await Rf.error("阿里授权失败,失败原因为:没有找到缓存文件,失败详情:"+i.content),await async function(){await local.set("file","file_id",JSON.stringify({}))}(),"retry";if(404===i.code)return await Rf.error("阿里授权失败,失败原因为:用户没有权限"+i.content),await Pf(e,t,!0);if(429===i.code)return await Rf.error(`正在请求需要阿里授权的url:${e},请求过于频繁,稍后重试,10分钟后再重试`),$u(600),await Pf(e,t,!0)}return await Pf(e,t,!1)}return await Rf.debug(`完成请求需要阿里授权的url:${e},参数为:${JSON.stringify(t)},请求结果为:${JSON.stringify(i)}`),i.content}async function Bf(){await bf.clean().save(),await Hf()}async function Ff(e){try{if(Hu.isEmpty(Cf.getAccessToken())||Cf.getRefreshToken()!==e){let e={};e.refresh_token=Cf.getRefreshToken(),e.grant_type="refresh_token",await Rf.info(`准备登录阿里云盘,登录Token为:${Cf.getRefreshToken()}`);let t=await async function(e,t){return e=e.startsWith("https")?e:"https://api.aliyundrive.com/"+e,(await vf(e,t,gf())).content}("https://auth.aliyundrive.com/v2/account/token",e);t.indexOf("InvalidParameter.RefreshToken")>1||Hu.isEmpty(t)?Hu.isEmpty(t)?await Rf.error(`登录阿里云盘失败,登录Token为:${Cf.getRefreshToken()},失败原因为:检查Token是否正确`):await Rf.error(`登录阿里云盘失败,登录Token为:${Cf.getRefreshToken()},失败原因为:检查Token是否正确,返回结果为:${t}`):(await Rf.info(`登录阿里云盘成功,登录Token为:${Cf.getRefreshToken()}`),Cf=await Af.objectFrom(t).save())}else await Rf.info(`阿里云盘已登录,无需重复登录,登录Token为:${Cf.getRefreshToken()}`);return!0}catch(e){return await Rf.error(`登录阿里云盘失败,登录Token为:${Cf.getRefreshToken()},失败原因为:${e}`),await Cf.clean().save(),!0}}async function Uf(){try{let e={authorize:1,scope:"user:base,file:all:read,file:all:write"},t="https://open.aliyundrive.com/oauth/users/authorize?client_id="+_f+"&redirect_uri=https://alist.nn.ci/tool/aliyundrive/callback&scope=user:base,file:all:read,file:all:write&state=";await Rf.debug(`正在请求获取阿里授权码的url:${t},参数为:${e}`);let n=await Mf(t,e,If,!0);if(await Rf.debug(`完成请求获取阿里授权码的url:${t},参数为:${e},返回值为:${n}`),!(Hu.isEmpty(n)||n.indexOf("AccessTokenInvalid")>-1))return await Rf.info(`请求获取阿里授权码成功,返回值为:${n}`),await async function(e){try{let t={};return t.code=e,t.grant_type="authorization_code",await xf("code",t)}catch(e){return await bf.clean().save(),!1}}(Nf.objectFrom(n).getCode());Hu.isEmpty(n)?await Rf.error("请求获取阿里授权码失败,失败原因为:还未登录"):await Rf.error(`请求获取阿里授权码失败,失败原因为:还未登录,失败详情为:${n}`)}catch(e){return await Rf.error(`请求获取阿里授权失败,失败原因为:${e}`),!1}}async function Hf(){try{if(Hu.isEmpty(bf.getRefreshToken()))return await Uf();if(Hu.isEmpty(bf.getAccessToken())){let e={grant_type:"refresh_token"};return e.refresh_token=bf.getRefreshToken(),await xf("token",e)}return!0}catch(e){return await Rf.error("刷新授权Token失败,失败原因为:"+e),await bf.clean().save(),!1}}async function Gf(){if(Hu.isEmpty(Cf.getDriveId())){return(await async function(){if(!Hu.isEmpty(Of)&&!Hu.isEmpty(Of.default_drive_id))return Of;let e=await Pf("user/getDriveInfo",{},!0),t=JSON.parse(e);return Of={default_drive_id:t.default_drive_id,resource_drive_id:t.resource_drive_id,backup_drive_id:t.backup_drive_id},Of}()).resource_drive_id}return Cf.getDriveId()}const Xf=new Zu("阿里云盘");async function jf(e){await Df(),await async function(e){Cf.setRefreshToken(e),await Ff(e),await Hf()}(e),await Lf(),await Xf.info("阿里云盘初始化完成",!0)}class Yf{constructor(){this.fileId="",this.shareId="",this.shareToken="",this.shareFileToken="",this.seriesId="",this.name="",this.type="",this.formatType="",this.size="",this.parent="",this.shareData=null,this.shareIndex=0,this.lastUpdateAt=0}static objectFrom(e,t,n){let r=new Yf;return r.fileId=null==typeof e.fid?"":e.fid,r.shareId=t,r.shareToken=null==typeof e.stoken?"":e.stoken,r.shareFileToken=null==typeof e.share_fid_token?"":e.share_fid_token,r.seriesId=null==typeof e.series_id?"":e.series_id,r.name=null==typeof e.file_name?"":e.file_name,r.type=null==typeof e.obj_category?"":e.obj_category,r.formatType=null==typeof e.format_type?"":e.format_type,r.size=null==typeof e.size?"":e.size,r.parent=null==typeof e.pdir_fid?"":e.pdir_fid,r.lastUpdateAt=null==typeof e.last_update_at?"":e.last_update_at,r.shareIndex=n,r}getFileExtension(){return this.name.split(".").slice(-1)[0]}getFileId(){return Hu.isEmpty(this.fileId)?"":this.fileId}getName(){return Hu.isEmpty(this.name)?"":this.name}getParent(){return Hu.isEmpty(this.parent)?"":"["+this.parent+"]"}getSize(){return 0===this.size?"":"["+(((e=this.size)<=0?"":e>1099511627776?(e/=1099511627776).toFixed(2)+"TB":e>1073741824?(e/=1073741824).toFixed(2)+"GB":e>1048576?(e/=1048576).toFixed(2)+"MB":(e/=1024).toFixed(2)+"KB")+"]");var e}getShareIndex(){return this.shareIndex}getDisplayName(e){let t=this.getName();if("电视剧"===e){let e=["4k","4K"];t=t.replaceAll("."+this.getFileExtension(),""),t=t.replaceAll(" ","").replaceAll(" ","");for(const n of e)t=t.replaceAll(n,"");t=function(e,t){let n=e.exec(t);return null!==n&&n.length>=1&&n.length>=1?n[1]:t}(/\.S01E(.*?)\./,t);const n=t.match(/\d+/g);!Hu.isEmpty(n)&&n.length>0&&(t=n[0])}return t+" "+this.getSize()}getEpisodeUrl(e){return this.getDisplayName(e)+"$"+this.getFileId()+"++"+this.shareFileToken+"++"+this.shareId+"++"+this.shareToken}}const qf=new Zu("夸克云盘"),$f=new class{constructor(){this.apiUrl="https://drive-pc.quark.cn/1/clouddrive/",this.cookie="",this.ckey="",this.shareTokenCache={},this.pr="pr=ucpro&fr=pc",this.subtitleExts=[".srt",".ass",".scc",".stl",".ttml"],this.saveFileIdCaches={},this.saveDirId=null,this.saveDirName="TV",this.isVip=!1}async initQuark(e){this.ckey=Gu.enc.Hex.stringify(Gu.MD5(e)).toString(),this.cookie=e,this.isVip=await this.getVip()}getHeaders(){return{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) quark-cloud-drive/2.5.20 Chrome/100.0.4896.160 Electron/18.3.5.4-b478491100 Safari/537.36 Channel/pckk_other_ch",Referer:"https://pan.quark.cn/","Content-Type":"application/json",Cookie:this.cookie,Host:"drive-pc.quark.cn"}}async api(e,t,n,r){const i=n||3;let s=await req(this.apiUrl+e,{method:r||"post",data:t,headers:this.getHeaders()});if(s.headers["set-cookie"]){const e=[s.headers["set-cookie"]].join(";;;").match(/__puus=([^;]+)/);e&&this.cookie.match(/__puus=([^;]+)/)[1]!=e[1]&&(this.cookie=this.cookie.replace(/__puus=[^;]+/,`__puus=${e[1]}`))}return 200!==s.code&&i>0?($u(1),await this.api(e,t,i-1)):JSON.parse(s.content)||{}}getShareData(e){let t=/https:\/\/pan\.quark\.cn\/s\/([^\\|#/]+)/.exec(e);return t?{shareId:t[1],folderId:"0"}:null}async getVip(){return"EXP_SVIP"===(await this.api("member?pr=ucpro&fr=pc&uc_param_str=&fetch_subscribe=true&_ch=home&fetch_identity=true",null,null,"get")).data.member_type}getPlayFormatList(){return this.isVip?["4K","超清","高清","普画"]:["普画"]}getPlayFormtQuarkList(){return this.isVip?["4k","2k","super","high","normal","low"]:["low"]}async getShareToken(e){if(!this.shareTokenCache[e.shareId]){delete this.shareTokenCache[e.shareId];const t=await this.api(`share/sharepage/token?${this.pr}`,{pwd_id:e.shareId,passcode:e.sharePwd||""});t.data&&t.data.stoken&&(this.shareTokenCache[e.shareId]=t.data)}}async listFile(e,t,n,r,i,s,a){a=a||1;const o=await this.api(`share/sharepage/detail?${this.pr}&pwd_id=${i}&stoken=${encodeURIComponent(this.shareTokenCache[i].stoken)}&pdir_fid=${s}&force=0&_page=${a}&_size=200&_sort=file_type:asc,file_name:asc`,null,null,"get");if(!o.data)return[];const c=o.data.list;if(!c)return[];const l=[];for(const i of c)if(!0===i.dir)l.push(i);else if(!0===i.file&&"video"===i.obj_category){if(i.size<5242880)continue;i.stoken=this.shareTokenCache[t.shareId].stoken,n.push(Yf.objectFrom(i,t.shareId,e))}else"file"===i.type&&this.subtitleExts.some((e=>i.file_name.endsWith(e)))&&r.push(Yf.objectFrom(i,t,e));if(an[r].lcs.length&&(r=i)}return{allLCS:n,bestMatch:n[r],bestMatchIndex:r}}async getFilesByShareUrl(e,t,n,r){const i="string"==typeof t?this.getShareData(t):t;return i?(await this.getShareToken(i),this.shareTokenCache[i.shareId]?(await this.listFile(e,i,n,r,i.shareId,i.folderId),void(r.length>0&&n.forEach((e=>{var t=this.findBestLCS(e,r);t.bestMatch&&(e.subtitle=t.bestMatch.target)})))):[]):[]}clean(){const e=Object.keys(this.saveFileIdCaches);for(const t of e)delete this.saveFileIdCaches[t]}async clearSaveDir(){const e=await this.api(`file/sort?${this.pr}&pdir_fid=${this.saveDirId}&_page=1&_size=200&_sort=file_type:asc,updated_at:desc`,{},{},"get");e.data&&e.data.list&&e.data.list.length>0&&await this.api(`file/delete?${this.pr}`,{action_type:2,filelist:e.data.list.map((e=>e.fid)),exclude_fids:[]})}async createSaveDir(e){if(this.saveDirId)return void(e&&await this.clearSaveDir());const t=await this.api(`file/sort?${this.pr}&pdir_fid=0&_page=1&_size=200&_sort=file_type:asc,updated_at:desc`,{},{},"get");if(t.data&&t.data.list)for(const e of t.data.list)if(e.file_name===this.saveDirName){this.saveDirId=e.fid,await this.clearSaveDir();break}if(!this.saveDirId){const e=await this.api(`file?${this.pr}`,{pdir_fid:"0",file_name:this.saveDirName,dir_path:"",dir_init_lock:!1});e.data&&e.data.fid&&(this.saveDirId=e.data.fid)}}async save(e,t,n,r,i){if(await this.createSaveDir(i),i&&this.clean(),!this.saveDirId)return null;if(!t&&(await this.getShareToken({shareId:e}),!this.shareTokenCache[e]))return null;const s=await this.api(`share/sharepage/save?${this.pr}`,{fid_list:[n],fid_token_list:[r],to_pdir_fid:this.saveDirId,pwd_id:e,stoken:t||this.shareTokenCache[e].stoken,pdir_fid:"0",scene:"link"});if(s.data&&s.data.task_id){let e=0;for(;;){const t=await this.api(`task?${this.pr}&task_id=${s.data.task_id}&retry_index=${e}`,{},{},"get");if(t.data&&t.data.save_as&&t.data.save_as.save_as_top_fids&&t.data.save_as.save_as_top_fids.length>0)return t.data.save_as.save_as_top_fids[0];if(e++,e>2)break;$u(1)}}return!1}async getLiveTranscoding(e,t,n,r,i){if(!this.saveFileIdCaches[n]){const i=await this.save(e,t,n,r,!0);if(!i)return null;this.saveFileIdCaches[n]=i}const s=await this.api(`file/v2/play?${this.pr}`,{fid:this.saveFileIdCaches[n],resolutions:"normal,low,high,super,2k,4k",supports:"fmp4"});if(s.data&&s.data.video_list){let e=i.split("-").slice(-1)[0],t=function(e,t){const n=e.map(((e,t)=>t)).filter((n=>e[n]===t));return n}(this.getPlayFormatList(),e),n=this.getPlayFormtQuarkList()[t];for(const e of s.data.video_list)if(e.resolution===n)return e.video_info.url;return s.data.video_list[t].video_info.url}return null}async getDownload(e,t,n,r,i){if(!this.saveFileIdCaches[n]){const s=await this.save(e,t,n,r,i);if(!s)return null;this.saveFileIdCaches[n]=s}const s=await this.api(`file/download?${this.pr}&uc_param_str=`,{fids:[this.saveFileIdCaches[n]]});return s.data?s.data[0]:null}};async function Vf(e){jf(e.aliToken),async function(e){$f.initQuark(e),await qf.info(`夸克云盘初始化完成,Cookie为:${e}`,!0)}(e.quarkCookie)}class Kf{constructor(){this.class=[],this.list=[],this.filters=[],this.header={"User-Agent":ju},this.format="",this.danmaku="",this.url="",this.subs=[],this.parse=0,this.jx=0,this.page=0,this.pagecount=0,this.limit=0,this.total=0,this.extra={}}get(){return new Kf}home(e,t,n){return JSON.stringify({class:e,list:t,filters:n})}homeVod(e){return JSON.stringify({page:this.page,list:e,pagecount:this.page,total:this.page})}category(e,t,n,r,i){return JSON.stringify({page:parseInt(t),pagecount:n,limit:r,total:i,list:e})}search(e){return JSON.stringify({list:e,page:this.page,pagecount:this.pagecount,total:this.total})}detail(e){return JSON.stringify({list:[e]})}play(e){return Hu.isEmpty(this.danmaku)?JSON.stringify({url:e,parse:this.parse,header:this.header,format:this.format,subs:this.subs,extra:this.extra,jx:this.jx}):JSON.stringify({url:e,parse:this.parse,header:this.header,format:this.format,subs:this.subs,danmaku:this.danmaku,extra:this.extra,jx:this.jx})}playTxt(e){return e}errorCategory(e){let t=new zu;return t.vod_name="错误:打开无效",t.vod_id="error",t.vod_pic=Yu+"/resources/error.png",t.vod_remarks=e,JSON.stringify({page:parseInt(0),pagecount:0,limit:0,total:0,list:[t]})}setClass(e){return this.class=e,this}setVod(e){return"object"==typeof e&&Array.isArray(e)?this.list=e:void 0!==e&&(this.list=[e]),this}setFilters(e){return this.filters=e,this}setHeader(e){return this.header=e,this}setParse(e){return this.parse=e,this}setJx(){return this.jx=1,this}setUrl(e){return this.url=e,this}danmu(e){return this.danmaku=e,this}setFormat(e){return this.format=e,this}setSubs(e){return this.subs=e,this}dash(){return this.format="application/dash+xml",this}m3u8(){return this.format="application/x-mpegURL",this}rtsp(){return this.format="application/x-rtsp",this}octet(){return this.format="application/octet-stream",this}setPage(e,t,n,r){return this.page=e,this.limit=n,this.total=r,this.pagecount=t,this}toString(){return JSON.stringify(this)}}class Wf{constructor(){this.siteKey="",this.siteType=0,this.jadeLog=new Zu(this.getAppName(),"DEBUG"),this.classes=[],this.filterObj={},this.result=new Kf,this.catOpenStatus=!0,this.danmuStaus=!1,this.reconnectTimes=0,this.maxReconnectTimes=5,this.siteUrl="",this.vodList=[],this.homeVodList=[],this.count=0,this.limit=0,this.total=0,this.page=0,this.vodDetail=new Qu,this.playUrl="",this.header={},this.remove18=!1,this.type_id_18=0,this.type_name_18="伦理片",this.episodeObj={},this.danmuUrl="",this.cfgObj={}}async reconnnect(e,t,n,r,i,s){return await this.jadeLog.error("请求失败,请检查url:"+e+",两秒后重试"),$u(2),this.reconnectTimes0?(this.reconnectTimes=0,i?{cookie:a.headers["set-cookie"],content:a.content}:a.content):1===s?(this.reconnectTimes=0,a.content):(await this.jadeLog.error(`请求失败,请求url为:${e},回复内容为:${JSON.stringify(a)}`),await this.reconnnect(e,t,n,r,i,s,o))}async fetch(e,t,n,r=!1,i=!1,s=0,a=!1){let o=qu(t),c=e;Hu.isEmpty(o)||(c=e+"?"+o);let l,u=new Uu(c);return l=r?await req(u.toString(),{method:"get",headers:n,buffer:s,data:null,redirect:2,proxy:a}):await req(u.toString(),{method:"get",headers:n,buffer:s,data:null,proxy:a,timeout:1e4}),200===l.code||302===l.code||301===l.code||i?await this.getResponse(e,t,n,r,i,s,l,a):(await this.jadeLog.error(`请求失败,失败原因为:状态码出错,请求url为:${u},回复内容为:${JSON.stringify(l)}`),await this.reconnnect(e,t,n,r,i,s,l,a))}async redirect(e){}async post(e,t,n,r="form",i=0){let s=new Uu(e),a=await req(s.toString(),{method:"post",headers:n,data:t,postType:r,buffer:i});return 200===a.code||void 0===a.code||302===a.code?void 0!==a.headers.location?await this.redirect(a):Hu.isEmpty(a.content)?await this.postReconnect(e,t,n,r,i):(this.reconnectTimes=0,a.content):(await this.jadeLog.error(`请求失败,请求url为:${e},回复内容为${JSON.stringify(a)}`),await this.postReconnect(e,t,n,r,i))}getName(){return"🍥┃基础┃🍥"}getAppName(){return"基础"}getJSName(){return"base"}getType(){return 3}async parseVodShortListFromDoc(e){}async parseVodShortListFromJson(e){}parseVodShortFromElement(e,t){}async parseVodShortListFromDocByCategory(e){}async getFilter(e){}async setClasses(){}async setFilterObj(){}async parseVodShortListFromDocBySearch(e){return[]}async parseVodDetailFromDoc(e){}async parseVodDetailfromJson(e){}async parseVodPlayFromUrl(e,t){}async parseVodPlayFromDoc(e,t){}async SpiderInit(e){try{this.siteKey=e.skey,this.siteType=parseInt(e.stype.toString());let t=null;"string"==typeof e.ext?(await this.jadeLog.info(`读取配置文件,ext为:${e.ext}`),t=JSON.parse(e.ext)):"object"==typeof e.ext?(await this.jadeLog.info(`读取配置文件,所有参数为:${JSON.stringify(e)}`),await this.jadeLog.info(`读取配置文件,ext为:${JSON.stringify(e.ext)}`),t=e.ext):await this.jadeLog.error("不支持的数据类型,数据类型为"+typeof e.ext);let n=t.box;return t.CatOpenStatus="CatOpen"===n,t}catch(e){return await this.jadeLog.error("初始化失败,失败原因为:"+e.message),{token:null,CatOpenStatus:!1,code:0}}}async initCloud(e){await Vf(e)}async spiderInit(){}async init(e){this.danmuSpider=new mf,this.cfgObj=await this.SpiderInit(e),await this.jadeLog.debug(`初始化参数为:${JSON.stringify(e)}`),this.catOpenStatus=this.cfgObj.CatOpenStatus,this.danmuStaus=this.cfgObj.danmu??this.danmuStaus;try{await this.loadFilterAndClasses()?await this.jadeLog.debug("读取缓存列表和二级菜单成功"):(await this.jadeLog.warning("读取缓存列表和二级菜单失败"),await this.writeFilterAndClasses())}catch(e){await local.set(this.siteKey,"classes",JSON.stringify([])),await local.set(this.siteKey,"filterObj",JSON.stringify({})),await this.jadeLog.error("读取缓存失败,失败原因为:"+e)}this.jsBase=await js2Proxy(!0,this.siteType,this.siteKey,"img/",{}),this.douBanjsBase=await js2Proxy(!0,this.siteType,this.siteKey,"douban/",{}),this.baseProxy=await js2Proxy(!0,this.siteType,this.siteKey,"img/",this.getHeader()),this.videoProxy=await js2Proxy(!0,this.siteType,this.siteKey,"m3u8/",{}),this.detailProxy=await js2Proxy(!0,this.siteType,this.siteKey,"detail/",this.getHeader())}async loadFilterAndClasses(){return this.classes=await this.getClassesCache(),this.filterObj=await this.getFiletObjCache(),this.classes.length>0||(await local.set(this.siteKey,"classes",JSON.stringify([])),await local.set(this.siteKey,"filterObj",JSON.stringify({})),!1)}async writeFilterAndClasses(){this.catOpenStatus&&this.classes.push({type_name:"最近更新",type_id:"最近更新"}),await this.setClasses(),await this.setFilterObj(),await local.set(this.siteKey,"classes",JSON.stringify(this.classes)),await local.set(this.siteKey,"filterObj",JSON.stringify(this.filterObj))}async getClassesCache(){let e=await local.get(this.siteKey,"classes");return Hu.isEmpty(e)?this.classes:JSON.parse(e)}async getFiletObjCache(){let e=await local.get(this.siteKey,"filterObj");return Hu.isEmpty(e)?this.filterObj:JSON.parse(e)}async setHome(e){}async home(e){return this.vodList=[],await this.jadeLog.info("正在解析首页类别",!0),await this.setHome(e),await this.jadeLog.debug(`首页类别内容为:${this.result.home(this.classes,[],this.filterObj)}`),await this.jadeLog.info("首页类别解析完成",!0),this.result.home(this.classes,[],this.filterObj)}async setHomeVod(){}async homeVod(){return await this.jadeLog.info("正在解析首页内容",!0),await this.setHomeVod(),await this.jadeLog.debug(`首页内容为:${this.result.homeVod(this.homeVodList)}`),await this.jadeLog.info("首页内容解析完成",!0),this.result.homeVod(this.homeVodList)}async setCategory(e,t,n,r){}async category(e,t,n,r){if(this.page=parseInt(t),await this.jadeLog.info(`正在解析分类页面,tid = ${e},pg = ${t},filter = ${n},extend = ${JSON.stringify(r)}`),"最近更新"===e)return this.page=0,await this.homeVod();try{return this.vodList=[],await this.setCategory(e,t,n,r),await this.jadeLog.debug(`分类页面内容为:${this.result.category(this.vodList,this.page,this.count,this.limit,this.total)}`),await this.jadeLog.info("分类页面解析完成",!0),this.result.category(this.vodList,this.page,this.count,this.limit,this.total)}catch(e){await this.jadeLog.error(`分类页解析失败,失败原因为:${e}`)}}async setDetail(e){}setEpisodeCache(){let e={vodDetail:this.vodDetail.to_dict()},t=this.vodDetail.vod_play_url.split("$$$");for(const n of t){let t=n.split("#");for(const n of t){let t=n.split("$")[0].split(" ")[0],r=n.split("$")[1],i=t.match(/\d+/g);null!==i&&i.length>0&&(t=i[0]),e[r]={episodeName:t,episodeId:t}}}return e}async detail(e){this.vodDetail=new Qu,await this.jadeLog.info(`正在获取详情页面,id为:${e}`);try{return await this.setDetail(e),await this.jadeLog.debug(`详情页面内容为:${this.result.detail(this.vodDetail)}`),await this.jadeLog.info("详情页面解析完成",!0),this.vodDetail.vod_id=e,3===this.siteType&&(this.episodeObj=this.setEpisodeCache()),this.result.detail(this.vodDetail)}catch(e){await this.jadeLog.error("详情界面获取失败,失败原因为:"+e)}}async setPlay(e,t,n){this.playUrl=t}async setDanmu(e){await this.jadeLog.debug(`${JSON.stringify(this.episodeObj)}`);let t=this.episodeObj[e],n=JSON.parse(this.episodeObj.vodDetail);return delete n.vod_content,delete n.vod_play_from,delete n.vod_play_url,delete n.vod_pic,await this.jadeLog.debug(`正在加载弹幕,视频详情为:${JSON.stringify(n)},集数:${JSON.stringify(this.episodeObj[e])}`),await this.danmuSpider.getDammu(n,t)}async play(e,t,n){await this.jadeLog.info(`正在解析播放页面,flag:${e},id:${t},flags:${n}`,!0);try{let r;if(await this.setPlay(e,t,n),void 0!==this.playUrl.content)r=this.result.playTxt(this.playUrl);else if(this.danmuStaus&&!this.catOpenStatus)if(Hu.isEmpty(this.danmuUrl)){let e;try{e=await this.setDanmu(t)}catch(e){await this.jadeLog.error(`弹幕加载失败,失败原因为:${e}`)}r=this.result.danmu(e).play(this.playUrl)}else await this.jadeLog.debug("播放详情页面有弹幕,所以不需要再查找弹幕"),r=this.result.danmu(this.danmuUrl).play(this.playUrl);else await this.jadeLog.debug("不需要加载弹幕",!0),r=this.result.play(this.playUrl);return await this.jadeLog.info("播放页面解析完成",!0),await this.jadeLog.debug(`播放页面内容为:${r}`),r}catch(e){await this.jadeLog.error("解析播放页面出错,失败原因为:"+e)}}async setSearch(e,t){}async search(e,t){return this.vodList=[],await this.jadeLog.info(`正在解析搜索页面,关键词为 = ${e},quick = ${t}`),await this.setSearch(e,t,1),0===this.vodList.length&&e.indexOf(" ")>-1&&(await this.jadeLog.debug(`搜索关键词为:${e},其中有空格,去除空格在搜索一次`),await this.search(e.replaceAll(" ","").replaceAll("\ufeff",""),t)),await this.jadeLog.debug(`搜索页面内容为:${this.result.search(this.vodList)}`),await this.jadeLog.info("搜索页面解析完成",!0),this.result.search(this.vodList)}async getImg(e,t){let n,r=t.Proxy;Hu.isEmpty(t)&&(t={Referer:e,"User-Agent":ju}),n=await req(e,{buffer:2,headers:t,proxy:r});try{return Ku(n.content),r?await this.jadeLog.error(`使用VPN代理,图片地址为:${e},headers:${JSON.stringify(t)},代理失败,准备重连,输出内容为:${JSON.stringify(n)}`):await this.jadeLog.error(`使用普通代理,图片地址为:${e},headers:${JSON.stringify(t)},代理失败,准备重连,输出内容为:${JSON.stringify(n)}`),this.reconnectTimesjs2Proxy(!1,this.siteType,this.siteKey,"ts/"+encodeURIComponent(o.key+"/"+e.mediaSequenceNumber.toString()),t)));return{code:o.code,content:l,headers:a(o,l)}}}if("ts"===n){const u=r.split("/"),h=u[0],f=parseInt(u[1]);return await pf(h,f,t)}if("detail"===n){let p=await this.getHtml(this.siteUrl+r),d=await this.parseVodDetailFromDoc(p),E=await this.getImg(d.vod_pic,t);return JSON.stringify({code:E.code,buffer:2,content:E.content,headers:E.headers})}return JSON.stringify({code:500,content:""})}{let m=await this.doubanSearch(r);if(null!==m){let T,_=m[0].vod_pic;return T=Hu.isEmpty(t)?await req(_,{buffer:2,headers:{Referer:_,"User-Agent":ju}}):await req(_,{buffer:2,headers:t}),JSON.stringify({code:T.code,buffer:2,content:T.content,headers:T.headers})}}}getSearchHeader(){const e=["api-client/1 com.douban.frodo/7.22.0.beta9(231) Android/23 product/Mate 40 vendor/HUAWEI model/Mate 40 brand/HUAWEI rom/android network/wifi platform/AndroidPad","api-client/1 com.douban.frodo/7.18.0(230) Android/22 product/MI 9 vendor/Xiaomi model/MI 9 brand/Android rom/miui6 network/wifi platform/mobile nd/1","api-client/1 com.douban.frodo/7.1.0(205) Android/29 product/perseus vendor/Xiaomi model/Mi MIX 3 rom/miui6 network/wifi platform/mobile nd/1","api-client/1 com.douban.frodo/7.3.0(207) Android/22 product/MI 9 vendor/Xiaomi model/MI 9 brand/Android rom/miui6 network/wifi platform/mobile nd/1"];return{"User-Agent":e[Math.floor(Math.random()*e.length)]}}async parseDoubanVodShortListFromJson(e){let t=[];for(const n of e){let e=new zu;e.vod_id="msearch:"+n.id,void 0===n.title?e.vod_name=n.target.title:e.vod_name=n.title,void 0===n.pic?e.vod_pic=n.target.cover_url:e.vod_pic=n.pic.normal,void 0===n.rating?e.vod_remarks="评分:"+n.target.rating.value.toString():e.vod_remarks="评分:"+n.rating.value.toString(),t.push(e)}return t}sign(e,t,n="GET"){let r="%2F"+e.split("/").slice(3).join("%2F"),i=[n.toLocaleUpperCase(),r,t.toString()].join("&");return CryptoJS.HmacSHA1(i,"bf7dddc7c9cfe6f7").toString(CryptoJS.enc.Base64)}async doubanSearch(e){try{let t="0dad551ec0f84ed02907ff5c42e8ec70",n="https://frodo.douban.com/api/v2"+"/search/movie",r=new Date,i=r.getFullYear().toString()+(r.getMonth()+1).toString()+r.getDate().toString(),s={_sig:this.sign(n,i),_ts:i,apiKey:t,count:20,os_rom:"android",q:encodeURIComponent(e),start:0},a=await this.fetch(n,s,this.getSearchHeader());if(!Hu.isEmpty(a)){let e=JSON.parse(a);return await this.jadeLog.debug(`豆瓣搜索结果:${a}`),await this.parseDoubanVodShortListFromJson(e.items)}return null}catch(e){await this.jadeLog.error("反向代理出错,失败原因为:"+e)}}}let zf=new class extends Wf{constructor(){super(),this.siteUrl="https://www.dygangs.org"}getAppName(){return"电影港"}getName(){return"🏖️┃电影港┃🏖️"}getJSName(){return"dygangs"}getType(){return 3}async setClasses(){let e=await this.getHtml(),t=e(e('[class="top-nav"]')[0]).find("a");for(const n of t){let t=n.attribs.href.replaceAll(this.siteUrl,""),r=e(n).text();"/"!==t&&this.classes.push(this.getTypeDic(r,t))}}async getFilter(e,t){let n=e('[class="nav-down-2 clearfix"]')[t],r=[];if(void 0!==n){let t="按类型",i={key:t,name:t,value:[]};i.name=t,i.value.push({n:"全部",v:"0"});for(const t of e(n).find("a")){let n=e(t).html(),r=t.attribs.href.split("/").slice(-2)[0];i.value.push({n:n,v:r})}r.push(i)}return r}async setFilterObj(){let e=0;for(const t of this.classes.slice(1,5)){let n=t.type_id;if("最近更新"!==n){let t=this.siteUrl+`${n}`,r=await this.getHtml(t);this.filterObj[n]=await this.getFilter(r,e)}e+=1}}parseVodShortFromElement(e,t){let n=new zu;return n.vod_id=t.attribs.href,n.vod_name=t.attribs.title,n.vod_pic=e(t).find("img")[0].attribs["data-original"],n.vod_remarks=e(e(t).find("i")[0]).text().replaceAll(" ","").replaceAll("\n",""),Hu.isEmpty(n.vod_pic)&&(n.vod_pic=Yu+"/resources/dygang.jpg"),n}async parseVodShortListFromDoc(e){let t=[],n=e('[class="index-tj-l"]').find("li");for(const r of n){let n=e(r).find("a")[0],i=this.parseVodShortFromElement(e,n);t.push(i)}return t}async parseVodShortListFromDocByCategory(e){let t=[],n=e('[class="index-area clearfix"]').find("li");for(const r of n){let n=e(r).find("a")[0],i=this.parseVodShortFromElement(e,n);t.push(i)}return t}async parseVodDetailFromDoc(e){let t=new Qu,n=e('[ class="ct mb clearfix"]');t.vod_pic=e(n).find("img")[0].attribs.src,t.vod_name=Vu(/◎片  名 (.*?)
/,e(n).html()),t.vod_area=Vu(/◎产  地 (.*?)
/,e(n).html()),t.vod_year=Vu(/◎年  代 (.*?)
/,e(n).html()),t.type_name=Vu(/◎类  别 (.*?)
/,e(n).html()),t.vod_remarks=Vu(/◎集  数 (.*?)
/,e(n).html());let r=Vu(/◎主  演 (.*?)<\/p>/s,e(n).html());Hu.isEmpty(r)&&(r=Vu(/◎演  员 (.*?)<\/p>/s,e(n).html()));let i=[];for(const e of r.split("\n"))i.push(e.replaceAll("       ","").replaceAll("
","").replaceAll("     ",""));t.vod_actor=i.join("/"),t.vod_director=Vu(/◎导  演 (.*?)
/,e(n).html()),t.vod_content=Vu(/◎简  介<\/p>(.*?)
/s,e(n).html()).replaceAll("

","").replaceAll("\n",""),Hu.isEmpty(t.vod_content)&&(t.vod_content=Vu(/◎简  介
(.*?)<\/p>/s,e(n).html()).replaceAll("

","").replaceAll("\n",""));let s=[],a=[],o=e('[class="playfrom tab8 clearfix"]'),c=e('[class="videourl clearfix"]');for(let t=0;t ',""));let r=[];for(const n of e(c[t]).find("a")){let e=n.attribs.title,t=n.attribs.href;r.push(e+"$"+t)}a.push(r.join("#"))}let l=e(e(n).find("span")[0]).find("span");if(l.length>0){let t=e(l).html();s.push(Vu(/【(.*?)】/,t.replaceAll("下载地址","磁力链接")));let r=[];for(const t of e(e(e(n).find("tbody")).find("tr")).find("a")){let n=e(t).html().replaceAll(".mp4",""),i=t.attribs.href;r.push(n+"$"+i)}a.push(r.join("#"))}return t.vod_play_from=s.join("$$$"),t.vod_play_url=a.join("$$$"),t}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,t,n,r){let i=this.siteUrl+e;void 0!==r["按类型"]&&"0"!==r["按类型"]&&(i+=`${r["按类型"]}/`),parseInt(t)>1&&(i+=`index_${t}.html`);let s=await this.getHtml(i);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setDetail(e){let t=await this.getHtml(e);this.vodDetail=await this.parseVodDetailFromDoc(t)}async setSearch(e,t){let n=this.siteUrl+"/e/search/index.php",r={keyboard:e,submit:"搜 索",show:"title,zhuyan",tempid:"1"},i=await this.post(n,r,this.getHeader()),s=Fu(i);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setPlay(e,t,n){if(t.indexOf("http")>-1){let e=await this.getHtml(t),n=Vu(/url: '(.*?)',/,e.html());if(Hu.isEmpty(n)){let t=e(e('[class="video"]')[0]).find("iframe")[0].attribs.src,n=await this.fetch(t,null,{"User-Agent":ju});if(this.playUrl=Vu(/url: '(.*?)',/,n),Hu.isEmpty(this.playUrl)){let e=function(e){let t=e.split("/");return t[0]+"//"+t[2]}(t);this.playUrl=e+Vu(/var main = "(.*?)";/,n)}}else this.playUrl=n}else this.playUrl=t}};async function Qf(e){await zf.init(e)}async function Jf(e){return await zf.home(e)}async function Zf(){return await zf.homeVod()}async function ep(e,t,n,r){return await zf.category(e,t,n,r)}async function tp(e){return await zf.detail(e)}async function np(e,t,n){return await zf.play(e,t,n)}async function rp(e,t){return await zf.search(e,t)}async function ip(e,t){return await zf.proxy(e,t)}function sp(){return{init:Qf,home:Jf,homeVod:Zf,category:ep,detail:tp,play:np,search:rp,proxy:ip}}export{sp as __jsEvalReturn,zf as spider};